I ask for your help because I do not know what I am doing wrong in this operation.
If I run the attached code after 04/27/2021 at 21:00:01 (Only the second block of the code is executed)(Note Time Zone), everything is fine.
But if I run it from before that date (Both code blocks are executed), it fails. It seems as the new StopLoss did not act, since the error tells me that the value of the StopLoss is not valid for the market price, but it indicates the value of the Stop Loss that is set in the first block.
What I am doing wrong?
Any help will be greatly appreciated.
Thanks in advance.
TEST ENVIRONMENT:
Account: Simulated account with $ 10,000 of initial balance
Connection: Playback Connection
Instrument: M6E 06-21
Candles width: 60-minutes
Ninja Version: Ninja Trader 8 version 8.0.24.2 64-bit.
Time Zone: (UTC+01:00) Bruselas, Copenhague, Madrid, París
Comment