Complete the task when there is any change
Michal Wolny:
... my code is updated every day ...
"Code update" means a new version of the program?
In order to be able to react to changes in your positions, you must also observe "OnTradeTransaction" in addition to "OnTimer"
I'm sending some code