If I set dist to 5, sometimes ir recolors if the high-low is only 5 and sometimes it doesnt. It always recolors when the spread is > 5.
// Condition set 1
if (High[0]-Low[0] >= (TickSize*dist)//0.1
&& Close[0] > Open[0])
{
BarColor = Color.Lime;
}
// Condition set 2
if (High[0]-Low[0] >= (TickSize*dist) //0.1
&& Close[0] < Open[0])
{
BarColor = Color.DeepPink;
}
Comment