higler
05-10-2007, 08:47 AM
I have read the tutorials and can get multi colored indicator plots by setting threshold values. However, it seems that if you are going to want a number of different colors and thresholds then you have to add a plot for each one and set the threshold values. It also seems that you then have to to do a "Set" command such as AboveZero. Set for each one of these plots at the end of the method even though you have no intention of ever using the set values that the method returns. You also then get multiple plots listed in the indicators dialog box. This system works, but it doesn't seem too elegant from a programming standpoint to have a method return so many "throw away" values and to have the indicator dialog box listing multiple plots. Does each plot really need to be set to a value at the end of the OnBarUpdate? I tried doing it a different way by having one plot and changing the Pen color, but as noted in other posts, this changes the color of the whole indicator plot and not the individual bar plot colors. Is there a way to color individual indicator plot bars without using the "threshold" method?
I also have the feeling that when using this threshold method of coloring the plots, and with price markers turned on, that the price markers of all the plots are being updated, displayed, and overlayed simultaneously. I am thinking this because the price marker on my plots using the threshold method for coloring always displays in the same price color even though I am at a different threshold. (example: my price marker is currently DarkRed even though my indicator bar is Blue. DarkRed is one of my threshold colors, but the price marker is always displayed in the DarkRed color. It doesn't change when the indicator bar color changes) Thus the price marker color does not always match the indicator bar color.
Thanks.
I also have the feeling that when using this threshold method of coloring the plots, and with price markers turned on, that the price markers of all the plots are being updated, displayed, and overlayed simultaneously. I am thinking this because the price marker on my plots using the threshold method for coloring always displays in the same price color even though I am at a different threshold. (example: my price marker is currently DarkRed even though my indicator bar is Blue. DarkRed is one of my threshold colors, but the price marker is always displayed in the DarkRed color. It doesn't change when the indicator bar color changes) Thus the price marker color does not always match the indicator bar color.
Thanks.