Stop Orders active for next bar only
Author: akardar1
Creation Date: 1/4/2010 6:20 AM
profile picture

akardar1

#1
Hello Eugene, Cone,

Its seems that stop orders to enter the market, (i.e a buy stop entry above the market, or sell stop entry below the market) are only active for the next bar (signal bar +1), and cancels itself if thereafter. Can you confirm that this is the case ? Is it possible to enter a stop order that stays active for X days or until another criteria is hit ?

Adrien
profile picture

Eugene

#2
Yes, it has always been like this - by design. See Bars, Loops, and Bar + 1
QUOTE:
Is it possible to enter a stop order that stays active for X days or until another criteria is hit ?

GTC orders et al. are not supported, but it's possible to program a workaround for e.g. a signal to stay active until some condition:

Tutorial: Setups, Triggers, Delays, and Timeouts
profile picture

Cone

#3
QUOTE:
Is it possible to enter a stop order that stays active for X days or until another criteria is hit ?
Wait a minute. GTC orders are equivalent to processing the Stop order on every bar that you want the Stop to be active. This a natural fallout of Strategy programming. Likewise, "canceling" an order is equivalent to not processing a trading signal that was active on the previous bar.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).