I was wondering about how I could change the color of a plot object on the fly.
For example I would like to see the Bollinger Band middle line to be red when going down and green when going up.
Actually the color is set in the Initialize method :
Add(new Plot(Color.Orange, "Upper band"));
Add(new Plot(Color.Orange, "Middle band"));
Add(new Plot(Color.Orange, "Lower band"));
How could I change that so that the color will be applied dynamically depending on the direction of the market.
Many thanks for helping.
Comment