Is there any predifined command to reference the colors of previous bars? I'm trying to identify within a loop going back a number of bars as to when bars changed from "Green" to "Red" and vice-versa...
I know of the BarColor command however it doesn't seem suitable for this, for example:
if((BarColor[index] == Green) && (BarColor[index + 1] == Red)){do something;}
Thanks
Comment