but just by using OnRender.
I've been trying and let's just say my head hurts
high0 = BarsArray[0].GetHigh(ChartBars.ToIndex - 1);
low0 = BarsArray[0].GetLow(ChartBars.ToIndex - 1);
close1 = BarsArray[0].GetClose(ChartBars.ToIndex);
double trueRange =
Math.Max(Math.Abs(low0 - close1),
Math.Max(high0 - low0,
Math.Abs(high0 - close1)));
the default Ninja atr uses a plot with Value, but I would have to reconstruct the values necessary for the period.
If only I could use ATR(12)[ChartBars.ToIndex];
Long shot, but any advice from the community and I'm all ears
Comment