The strategy is calculated on bar close.
After every bar closes it's trying to fing a certain pattern within previous bars, and if it's found - it enters a long/short position on a buy/sell stop at certain price. But despite the stop order is GTC, it's getting cancelled if it's not executed during current bar.
How can I make the order stay after the current bar closes?

Comment