工作已完成
指定
Code for me a Reverse Martingale EA
features --
2 EA's one will focus on BUY only and the other on SELL only.
each EA will have the following features:
create orders at candle close (whatever timeframe EA is added into on MT4) and will only close orders via stop-loss as this is a reverse martingale.
calculation of the SL will be exactly the same as the martingale and will move every time a new order has been created exactly like a martingale strategy but on stop loss.
Settings Box to pop out every time i drag and drop the EA on a chart
settings box will have the following information which i will set except lot size multiplier (but can be edited if needed)
- lot size multiplier - initially set to 1.135
- initial lot size
- max order
- SL distance
- pip step
- SL pips added (so i can adjust the SL closer or further if necessary, hope i wont need to :) )
(SL pips added --> will only affect the final calculated SL as per martingale, if i set to 0, will not change the calculation)
second order will be same size as the first
third order until max trades (which i set at the beginning) will be multiplied by lot size multiplier (1.135) of the previous lot size ( for example, second order size is 0.15, third order is 0.20 rounded up or down)
Buy orders will be labelled "" REV_Buy "" (with numbers that will identify the order from 1 to what ever max trade i set at the settings box)
Sell orders will be labelled "" REV_Sell "" (with numbers that will identify the order from 1 to what ever max trade i set at the settings box)