I have this formula and I'm trying to add the code so the price bars will change color- blue above MA and red below. I can't get it to work with this coding:
this in your preMain()
setColorPriceBars(true);
and place this at the end of your Main(), but before your return value
setPriceBarColor(Color.RGB(128,128,128))
if (getSeries(xMA) < close()) setPriceBarColor(Color.RGB(0,0,255))
if (getSeries(xMA) > close()) setPriceBarColor(Color.RGB(255,0,0))
Anyone?
Here is the efs:
this in your preMain()
setColorPriceBars(true);
and place this at the end of your Main(), but before your return value
setPriceBarColor(Color.RGB(128,128,128))
if (getSeries(xMA) < close()) setPriceBarColor(Color.RGB(0,0,255))
if (getSeries(xMA) > close()) setPriceBarColor(Color.RGB(255,0,0))
Anyone?
Here is the efs:
Comment