Martingale trade immediately when stop loss hit, not at next open condition
-
Hello
I'd like to open a martingale position not when the next open condition is met, but immediately when the original position is closed at stop loss. I've tried with a loop checking the last closed position to confirm it;s stop loss (see below link) but this doesn't work correctly. Can anyone help with this?
https://fxdreema.com/shared/AHINlPrN
FYI the strategy is to have pending opposite positions above and below the last candle with stop loss at the opposite position's price. Basket close at x pips. The martingale would only be used if stop loss triggered.
-
hi.
you should choose the martingale form menu and fill in loss properties -
@xfire Will the stop loss be modified at any moment before the trade is closed? I see no breakeven conditions are used.
-
@xfire I believe the martingale function in menu only opens the martingale trade at the next open condition. I need it to open as soon as the previous trade is closes at stop loss.
-
@l-andorrà The stop loss remains fixed, with no breakeven.
I will be running this on multiple pairs with a separate basket close EA on another chart (so a losing trade with be offset by winning ones).
-
@maximump
I think your blocks are logical for the condition. just you want to follow martingale lot size.
i don't know want is the "condition" block? what does mean 0.01 lot? if you open the first position with martingale you can follow that
try this
-
@maximump Xfire is right. Your logic is correct. That should work. Is that the whole project?
-
@xfire Your suggestion uses martingale but only when the "once per bar" condition is met. I need it to open a martingale position as soon as the previous trade is closed at stop loss, and not at the next bar.
So, a buy trade hits stoploss and a sell trade is opened immediately.