I currently have the issue that my NT freezes when I apply an indicator.
As this should end up being part of a strategy I would highly appreciate your feedback.
I believe this code is part of the issue:
{
if (Time[a].DayOfWeek != Time[a-1].DayOfWeek)
{
firstBarOfDay = a;
Log("Bars Since Session Start " + firstBarOfDay, NinjaTrader.Cbi.LogLevel.Information);
break;
}
}
How can I configure this, that NT only runs this once, for the current day and for the current bar? Hence the whole process is only done once. I.e. starts with the current bar and then goes back once until it finds the first bar of today ... that's it. The for loop should be done there.
If I can configure this I could test the parts of the strategy as the indicator and run the strategy. I have not waited for more than 5min to see if NT comes back online but this would not be suitable in a live situation anyways.
Thank you.
Cheers tosaxx

Comment