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
Size:
Color:
Yes, it has always been like this - by design. See
Bars, Loops, and Bar + 1QUOTE:
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
Size:
Color:
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.
Size:
Color: