I am looking to do an indicator that paints bars based on their relationship to the previous bar. I will be using this on a constant volume chart.
Green = higher high, higher low
Red = lower high, lower low
Cyan = higher high, lower low (i.e. engulfing bar)
Yellow = lower high, higher low (i.e. inside bar)
I don't have experience in creating ninjascript indicators. What is the best/fastest way for me to achieve the above?

Comment