Here's the relevant code, the indicators are the stock ninjatrader ones.
// Set 43 if (Range1[0] > ATR1[0]) { DailyRangeBlock = true; Print("DailyRangeBlock = True"); } // Set 44 if (Range1[0] <= ATR1[0]) { DailyRangeBlock = false; Print("DailyRangeBlock = False"); }
Is there some way to access today's range as it is being painted? I already tried to Print the string from the Range indicator Ninjatrader.Custom.Resource.RangeValue and it just returns "Range value." I dug down deeper and found I was just referencing yesterday's value.
Also tried calculating on each tick. That didn't work.
Edit: just realized I should probably reference the bar directly. Going to work on that now.
Comment