I have a strategy I am trying to migrate to NT8 from NT7 but am running into a problem with one line of the code. There is a BarsSinceExit used in the NT7 code. When I port it over to NT8, I keep getting different results. I have narrowed it down to this one particular line using the BarsSinceExitExecution, but cannot figure out why. I have attached what I believe are identical codes for NT7 and NT8. You will see the results are different between the two. If I remove line 85 in the NT8 code and line 57 in the NT7 code, I get identical results. These lines are identical for each code except the BarsSinceExit or BarsSinceExitExecution for NT7 and NT8 respectively.
Any ideas on why there is an issue here? I have tried what little I know, but it just seems NT8 is using it differently, or ignoring it. Any help would be appreciated as I would like to migrate to NT8 but can't until I get this resolved.
Thanks,
Lee
Comment