Resubmit pending order when SL is triggered.
-
Something I am having a hard time figuring out how to do is: I have a Buy or Sell Stop triggered then lets say if my SL is hit (which is a tight SL) I'd like for that Buy Stop or Sell Stop to re-post at that Original price. Some might say well if the the conditions are me to place that Buy Stop or Sell Stop then the Pending order will be placed, and I would say, well of course. But in my case the pending order could have been place based on a condition that was met minutes or hours ago. What I am saying if when that pending order is triggered then my SL hits I'd like for that pending order to resubmit at the time my SL was triggered. I know this is possible to do. Can someone please help me?
-
Will there be one or many open trades at the same time at any moment in time?
-
1 at a time
-
The you will need a variable to store the value of the previous closed trade and use this in the 'on trade' tab:
https://fxdreema.com/shared/xRfgYZ4Oc -
@l-andorrà Thanks, I see that you have a variable as, 'open_price'... What value do I give it in the settings? '0' ? I've never used the variables section kind of intimates me. lol Thanks for your help
-
Yes, the initial value can be 0. Then it will be modify accordingly as the bot is progressing in time.