Attachments forums

List of attachments posted on this forum.


All files on forums: 136076

Please help me to fix this EA

GeorgeNol, Tue Sep 19, 2017 4:22 am

Hi valuable coders
Could you help me fix this EA?
a) I want to avoid opening a second position in the same candle even if the first one has closed.
b) I want to follow the martingale of doubling the quantity of lots after price hits a stop loss.
i.e 1 lot for 1st trade
2 lots for 2nd trade
4 lots for 3rd
8 lots for 4th

Unfortunately, the EA does not work correctly and in the third trade instead of opening the position with 4 lots, it opens it again with 2 instead of 4.
Keep in mind that the external parameters Lots & Lots1 must be equal, as both of them are used for the 1st trade.
Also, keep in mind that the external parameters TakeProfit & TakeProfit1 must also be equal, as both of them are used for the 1st trade.
Thanks in advance,

GeorgeNol
All files in topic