Hi good people of this forum,
I apreciate your help and I made significant progress with your assistance.
I want to control how long the order is valid by creating a variable TR_minutes, which in the Pending_Order block will limit how long the order is valid. I found that I had orders staying on, at prices outside the _last_ask_candle_price and they were executed the following day
.
Unfortunately, the TR_minutes calculation does not work as expected. I attach a .png which clearly shows that the TR_minutes is in the past relative to the strategy running time. On other occassions it does not get updated at all.
I attahced the strategy and the screenshot of the running strategy with TR in the middle.
Kind Regards