I am switching to using NinjaTrader and trading in other markets. On another platform I use a rule for coloring the bars and the Volume Histogram. Something like a heatmap.
Basically it is a weighted average of the last 400 periods (bars of the histogram) and incremented with standard deviation calculations. And that paints the bars in warmer colors indicating an increase in volume.
I have the Groovy script on which this indicator was made. I tried to transcribe it to C # in NinjaScript, but I was unsuccessful.
The image below shows the idea.
I would like help with clarifying how I can resolve this code.
Thanks!
Comment