I'm working on an indicator that plots values from indicators in secondary timeframes. I strated and simply plot the SMA vaues of 3, 10, and 30 min to a 5 min chart. Everything works fine and my next idea was to change the plot color with the Rising/Falling method.
My problem is that the SMA of higher secondary timeframes keeps its value and thus is neither rising, nor falling. How can I code it to keep the last color used? Or define the color as a function of the Rising/Falling of the SMA in the secondary timeframe?
Comment