I want to develop an oscillator. I have candlesticks on my chart and 2 moving averages. SMA 25 and SMA 300. If a candlestick is above SMA 25 I want a blue colored bar to appear on the oscillator. When a candlestick is above SMA 300 I want the oscillator to have a green colored bar. When a candlestick is below SMA 300 I want the oscillator to have a red bar, and when a candlestick is below SMA 25 I want it to have grey bar.
I also want this oscillator to be in pane 2 (below the candlesticks on the chart). I'm using 5 minute candles.
How can this be done, and is it easy to do? Thanks for any help.
Edit: If this can't be done, then simply the candlestick being below/above SMA 300 producing red/green bars would be sufficient.
Comment