I need to change the color of a previously-displayed price bar.
I have tryed with setBar(Bar.FgColor, ...) but don't work.
For instance, this code would have to change the color to green of all bars:
function preMain() {
setPriceStudy(true);
setColorPriceBars(true);
}
function main(){
setBar(Bar.FgColor, -1, 0, Color.green);
return true;
}
but donĀ“t work. However, this code with SetBar(Bar.BgColor, ...) work fine:
function main(){
setBar(Bar.BgColor, -1, 0, Color.green);
return true;
}
I don't understad it. Could you help me? Thanks very much.
I have tryed with setBar(Bar.FgColor, ...) but don't work.
For instance, this code would have to change the color to green of all bars:
function preMain() {
setPriceStudy(true);
setColorPriceBars(true);
}
function main(){
setBar(Bar.FgColor, -1, 0, Color.green);
return true;
}
but donĀ“t work. However, this code with SetBar(Bar.BgColor, ...) work fine:
function main(){
setBar(Bar.BgColor, -1, 0, Color.green);
return true;
}
I don't understad it. Could you help me? Thanks very much.
Comment