I am working on a strategy to limit trading only when the profit goal hasnt been reached or the loss limit haa not been reached.
I was able to set the condition inside the Strategy Builder. No Issues there.
But when I run it, I found out that the value of Realized PnL iwas already beyond the profit/loss limits , so no order was going through.
I put a text drawing the chart and found out that the Realized PnL value was 200.
So, I quit the Playback Session and started a new PLayback Session. That didnt work.
I tried resetting the database (I saw a post along those lines in the forum somewhere..) and that didnot work either.
Can you guide me as to how I can reset the Realized PnL value (without having to write code to do that..)?
Or suggest a code clip that I can incorporate in the ninja script?
Thanks for your help.
Regards.
Comment