I would like to color an indicator line to be green on the bar where a low pivot in the indicator is formed (MyInd[0] > MyInd[1] && MyInd[2] > MyInd[1]), red for the reverse, and blue otherwise. I looked at the example using ROC in the help guide, but that is based on > or < 0 -- I still tried to replicate it by having three plots, and assigning -1 if another of the plots (effectively, the green, red or blue) was supposed to display and the real value of the indicator otherwise. I then set each plot to have a Plot[n].Min = 0. Somehow, it didn't work. Any thoughts, anyone?
Meanwhile, I had a strange experience -- when I added the indicator (just the current, working single-color version), all of my paint bar coloring on the main price chart disappeared. The indicator plotted in its pane, #2, price in the pane above it, #1, but some of my code in pane #1 appeared to have stopped working. Hmmm. Has anyone seen that?
Thanks,
Gordon
Comment