I am trying to change the color of the price bars of a chart with the following code
if(CurrentBar < Period) return;
if(ValidTradeTime(Time[0]) == true)
{
BarColor = Color.Wheat;
BackColor = Color.White;
}
ValidTradeTime is taken from the user defined methods section of the user manual. I am unable to get this code to work to change the color of a price bar. Could one of the moderators etc supply a code example whereby the bar color is changed? I have tried the sample indicator CCI
Custom in the help guide but that is not working either!
Thanks
Comment