Order doesn't auto close (bug or user error?)
Posted: Tue Feb 14, 2023 12:33 pm
Hi,
Can anyone help debugging why orders don't close in my automated backtesting?
I cannot find any errors in my "code", but the auto backtest doesn't behave as expected.
I created an exit rule that should close an order automatically when the current bar low breaks the low of the last 20 bars counting from the previous bar using the Donchian Channel indicator. I've attached a screenshot to illustrate. It also shows the Core rule which is used in the Exit rule.
Any ideas to what is causing my issue?
Cheers!
-Martin
Can anyone help debugging why orders don't close in my automated backtesting?
I cannot find any errors in my "code", but the auto backtest doesn't behave as expected.
I created an exit rule that should close an order automatically when the current bar low breaks the low of the last 20 bars counting from the previous bar using the Donchian Channel indicator. I've attached a screenshot to illustrate. It also shows the Core rule which is used in the Exit rule.
Any ideas to what is causing my issue?
Cheers!
-Martin