工作已完成
指定
I want the EA to monitor the currency pair in the chart and perform some tasks for me. I have an indicator that adds signs on my charts. Information is displayed when the cursor is placed over it.
I would like two of these values to trigger the closing of the trade the EA has previously opened and open a new one. I will provide the first transaction number to close (if there is one already opened) or let the EA find the next trigger and open the first one.
Trigger Values from the indicator
Value1 and Value2
Inputs for the trade
- 2 Volume size choices = by lot (default = 0.10) or % of the Available Margin (default 25%)
- Stop Loss $$
- Take Profit $$
- # times to repeat the cycle (stop after closing the trade)
And, when I want the EA to monitor a trade already opened:
- Trigger value to look for next (default = Value1)
- Transaction number the trade to close
Action (when trigger value is added to chart)
- verify if new trigger value added is different from the previous one (if the same, ignore and continue monitoring)
- for Value1 - Close BUY and open SELL
- for Value2 - Close SELL and open BUY
- a sound alert and email or txt message would be nice to let me know the CLOSE and BUY were successful
Because I may be trading the same currency pair when the EA is running, I would like the EA to be self contained and only close the transaction it has previously opened. I also would like the EA to keep note of every trigger signal added to the chart (with date, time and price) in a file that I could use to analyze my indicator's performance and tweak it when necessary.