I developed a strategy which handles stop in OnExecution (like in NT examples). My stops are 8 ticks and the statement for short is:
stopOrder = ExitShortStop (0, true, execution.Order.Filled, SLPrice, "Stop", EntryName);
SLPrice is correct!
I attach two pics from the same run of back testing.
1. I go short on an up bar and it triggers stop on the same bar. It is probably wrong, because the stop was not reached after the entry, but I understand that NT has no option to know it.
2. I enter short on a down bar and now the stop wasn't triggered at all, so on this bar or the next I didn't exit on stop. When I run it in VS debugger it runs the statement but stopOrder remains NULL.
I use limit entries.
How can I trigger the stop?
Regards,
Baruch

Comment