I have a custom indicator which paints all the session bars every 2 sessions (see attached), it uses an integer variable which switches between 0 and 1 at each new session first bar .
I used this to paint the bars :
if (value1 == 0)
{
BarColor=Color.Maroon;
}
How can code it so to have the color for the bars as input in the General Section of the indicator ?
Rgds.
Massimo
Comment