Can someone help me change the color of the MACD Oscillator when it is rising, sideways, or falling?
Thank you
Joe
Thank you
Joe
if(vMACD.getValue(MACDStudy.SIGNAL)>vMACD.getValue(MACDStudy.SIGNAL,-1))//if SIGNAL is greater than previous SIGNAL
setBarFgColor(Color.blue,2);//color the third element of the return array in blue
if(vMACD.getValue(MACDStudy.SIGNAL)<vMACD.getValue(MACDStudy.SIGNAL,-1))//if SIGNAL is less than previous SIGNAL
setBarFgColor(Color.red,2);//color the third element of the return array in red
Comment