I am trying to run a bear spread strategy where I am expecting the strategy to exit when pnl exceeds 30% of the net premium received.
For this I created a Runtime Variable TARGET post entry condition is triggered, and it calculates the target amount for the exit.
And then I am using the same variable with Get Runtime Number in the exit condition
After entry in the strategy I see the TARGET variable set with expected value in the runtime data as expected
However, my strategy does not exit even after pnl is reached beyond the TARGET number, now if I pause and start the strategy system successfully compared pnl to TARGET and exits the strategy, thus requiring manual intervention (pause-start) every time.
Has anyone faced a similar issue, how can this be resolved?