The two methods in the title are called multiple times, once in state configure, then in OnBarUpdate().
They are ignored in OnBarUpdate() and the trades exits occur at the end of day...
If we comment the OnBarUpdate call, the State.Configure call works as expected.
Would anyone have an idea why this occurs ? Is the issue from the attached reduced sample script or some property I didn' take into account ?
We can find them line 116.
Thank you very much.

​
Comment