Hi,
Is it possible to turn off/on the PriceBarColor?
If yes, can anybody tell me what I am doing wrong?
Belowis the code I am trying.
Thank you.
function main(Show64CH, ShowPaint, PaintBackground, ShowSignals){
if(ShowPaint == null) {ShowPaint = 0;}
if(Show64CH == null) { Show64CH = 0;}
if(PaintBackground == null) { PaintBackground = 0;}
if(ShowSignals == null) { ShowSignals = 0;}
.......................
//{{PAINT PRICE BARS
if (ShowPaint > 0){
setColorPriceBars(true);
if (Strategy.isLong() == 1) {setPriceBarColor(Color.lime);}
else if (Strategy.isShort() == 1) {setPriceBarColor(Color.red);}
else {setPriceBarColor(Color.lightgrey);}
} else {setColorPriceBars(false);}
Is it possible to turn off/on the PriceBarColor?
If yes, can anybody tell me what I am doing wrong?
Belowis the code I am trying.
Thank you.
function main(Show64CH, ShowPaint, PaintBackground, ShowSignals){
if(ShowPaint == null) {ShowPaint = 0;}
if(Show64CH == null) { Show64CH = 0;}
if(PaintBackground == null) { PaintBackground = 0;}
if(ShowSignals == null) { ShowSignals = 0;}
.......................
//{{PAINT PRICE BARS
if (ShowPaint > 0){
setColorPriceBars(true);
if (Strategy.isLong() == 1) {setPriceBarColor(Color.lime);}
else if (Strategy.isShort() == 1) {setPriceBarColor(Color.red);}
else {setPriceBarColor(Color.lightgrey);}
} else {setColorPriceBars(false);}
Comment