I have a custom indicator 20 period which I have saved as a separate 6 period indicator and plotted both to my chart. I am trying to change the bar color when they diverge, i.e one goes up while the other goes down, but this is not working.
if ((myBsl[0]>myBsl[1]) && (myBslShortPeriod[0]<myBslShortPeriod[1])) { BarColor = shortPeriodBsl; }
(myBsl[0]>myBsl[1])
(myBslShortPeriod[0]<myBslShortPeriod[1])
if (Rising(myBsl))&& Falling(myBslShortPeriod)
if (Rising(myBsl(20))&& Falling(myBsl(6)))
Thank you!
Comment