Pending Order Expiry by N candles
-
Is this possible?
Open pending order -> after 2 candles, if it doesn't trigger, cancel the order -
@yoloyacht Do this:

-
Is there a way to do this so that the algo automatically makes an order expire after 2 or 3 candles, irrespective of the timeframe?
Right now I'm creating different versions of algos based on their timeframes and the main difference is that I use a different expiry fore each timeframe. It makes keeping track of the algos unnecessarily duplicative.
Ex:
Algo V.0 - 15m timeframe with 45 min pending order expiry
Algo V.1 - 1h timeframe with 3 hour pending order expiry
Algo V.2 - 4h timeframe with 12 hour pending order expiry
Algo V.3 - 1D timeframe with 3 day pending order expiryIs there a way to have one algo which makes the order expire after say, 3 candles, irrespective of the timeframe I back test it on?
Thanks for your help!
-
@Chase_Collins Sure. You can do it this way:

-
Hi David,
Thanks for chiming in.
I tried those settings and they didn't work. The Buy Stop was set but it didn't expire. That order eventually got tagged and activated, but it should have expired after the third candle following the trigger candle (Which I've marked out with a yellow arrow)
Please see attached.
Thanks in advance


-
@Chase_Collins That means the block is not working correctly. You should contact the admin to let him know this issue. Mean while you can use this structure instead:

-
Hi David, Ok I'll reach out to admin and let them know.
Thanks for the work around, I'll try your suggestion.
-
You're welcome.
-
@l-andorrà
Candle ID = 3 probably refers to the past time at the previous third candle (current candle as 0). It serves as the base for the input of Shift in Time -
@sktsec You're right. Probably using the shift box should be the answer.