Help Needed With EA
-
Hi...
I tried to code a reversal Martingale system with three sets of increasing orders with a target profit of 20 pips of the Last Position and a stop loss system that closes all positions if the price reaches 80 pips from the original position.The problem is when I test the EA it seams the new positions Lot size is stuck at the same size as the 1st Position, and the Positions never closes and the EA keeps adding new positions...
Could Someone Please take a look to see where I've made a mistake? much appreciated
-
This Link to FXDreema Project
-
You are using Constants as your lot size for 1st, 2dn and 3rd trade. If you are selecting different values, they should be different as per your loginc. Is this the whole project or just part of it?
-
@l-andorrà Hi...yes I'm using constants but the size is different
Lot_1 is 0.01
Lot_2 is 0.03
Lot_3 is 0.07the problem is that the expert is only opening new positions using 0.01 lot size
and the second problem is that the positions never closeand yes this is supposed to be the whole project
-
Trades never close because you specified those belonging to groups 1, 2 and 3 were to do it while all open ones belong to group 0. Simply remove those groups 1,2 and 3 from blocks 12, 27 and 42. On your lot size, it is weird because your logic is correct if those initial values are correctly selected.