Job finished
Specification
Hello,
I need a very simple Expert Advisor that must do the following:
- If price reaches the value d then open a buy order with Stop Loss at e (e < d) and Take Profit at f (f > d).
- Option for setting the start and finish date (with hours if possible but not necessary) for the expert advisor.
- Option for setting the numer of lots to buy or sell.
- The EA must not open orders simultaneously (for example if I buy order is sent, then it must wait the price hit the Stop Loss or Take Profit and close the order before open another).
- Need to work for both forex and futures (in my country we use MT for futures).
For example:
Expert Advisor turn on: 31/05/2016, 16:00
Expert Advisor turn off: 15/06/2016, 12:00
a value would be 0.95264, b=0.95447 and c=0.94664. Yellow circles would be where sell orders are sent by the EA.
d value would be 0.94079, e=0.93869 and f=0.94664. Orange circles would be where buy orders are sent by the EA.
Please provide the source code because I want to adapt it to MT5 and beyond in the future. I also want the possibility to allow backtesting.
Many Thanks