Martingale issues on Take Profit, Stop Loss and Breakeven with Custom
-
Hi Guys, I have a little problem with Betting: Custom sequence. It works fine but i'm trying to make it work in a different way.
For every trade that hit TP, it resets which works perfectly.
For every trade that hit SL, it multiplies perfectly.
HERE IS THE ISSUE.
Now when a trade has moved a certain distance and the EA moves the SL to BE and the market goes back to hit SL, since the trade is in profit, the process is reset.
I'm trying to figure out how to skip this Breakeven trade and the next trade continues to martingale with the lot size of the Breakeven trade. -
https://fxdreema.com/shared/5lxIEr6Gb
The martingale sequence is customized, its not as easy as multiplying with a factor. I've been able to come up with something but i have an issue with it opening unlimited trades
-
Don't worry guys, i've figured it out, its working perfectly now. Its just that its not smart programming but all that matters is the end result.
-
@JTCarcil Amen, brother!

-
Encountered another problem. "On Tick" tab everything works fine. The issue is found on the "On Trade" tab. i just discovered in backtest, if the parent trade is buy, and the child martingale trades try to recover the position, it only opens buy trades until it passes or the martingale steps is exceeded before any sell trade can be opened and vice versa.
shared/6ezS0VJDb -
https://fxdreema.com/shared/6ezS0VJDb
It's quite clunky tho.
-
@JTCarcil Did you check the value of those variables is correct as the martingale moves on? You should check it via 'comment' block. I guess the problem is there.
-
thanks, i'll try that
-
You're welcome.