I have created a strategy through the strategy builder.
The issue with the strategy is, that the limit orders and drawings are updating every time a new bar opens.
How can this be avoided?
The strategy should just plot a limit-order and the drawings when the conditions are met, and not change every time a new bar is opened. The limit order should only be canceled at session close, if the limit order is not hit or filled.
I have tried to play around with the parameter isLiveUntilCancelled, but with any luck. I am not even sure this is the right way to handle this issue.
This also causes the backtest to enter trades at totally wrong pricelevels.
Attached is my conditions and actions from the strategy builder.
Below is the code from the NinjaScript editor.
Any help is much appreciated.
Thanks in advance!
Comment