Is there any way I can just plot the MACD as a line that will just show the MACD, and not the slow or fast MA. I need to set separate values for the Slow MA and Fast MA and the MACD MA, but just plot the MACD. TIA!
Announcement
Collapse
No announcement yet.
Plotting a MACD line only
Collapse
X
-
mikem144
You can easily modify the builtinMACD.efs that is in the Builtin folder. Open it with the Editor and replace the following line
return new Array (vMACD.getValue(MACDStudy.HIST),vMACD.getValue(MAC DStudy.MACD),vMACD.getValue(MACDStudy.SIGNAL));
with
return vMACD.getValue(MACDStudy.MACD);
Then in the preMain() replace
setStudyTitle("MACD");
setCursorLabelName("MACDHist",0);
setCursorLabelName("MACD",1);
setCursorLabelName("MACDSig",2);
setDefaultBarFgColor(Color.magenta,0);
setDefaultBarFgColor(Color.blue,1);
setDefaultBarFgColor(Color.red,2);
setDefaultBarThickness(1,0);
setDefaultBarThickness(1,1);
setDefaultBarThickness(1,2);
setPlotType(PLOTTYPE_HISTOGRAM);
with
setStudyTitle("MACD");
setCursorLabelName("MACD",0);
setDefaultBarFgColor(Color.blue,0);
setDefaultBarThickness(1,0);
That should do it
Alex
Comment