BackColor = Color.FromArgb(downIntensity,backColorDown);
...
BackColor = Color.FromArgb(upIntensity,backColorUp);
This indicator determines the proper color for BackColor from a higher timeframe.
So if I run this indicator on a 5 minute chart, it determines the BackColor from a 10 min timeframe. This indicator is working correctly.
My problem is when the chart is being updated in realtime, it won't change the BackColor to a different color when it should. It just continues to paint the next bar with the previous bar BackColor.
But if I hit F5 to refresh the chart, then BackColor is updated correctly.
How do I get the indicator to update BackColor in realtime?
Comment