so I came up with this simple little formula to plot $ADD as a histogram, any way to plot a 20ema of the $ADD on the same?
function preMain()
{
setStudyTitle("ADVDEC");
setCursorLabelName("ADD");
setDefaultBarFgColor(Color.red);
setPlotType(PLOTTYPE_HISTOGRAM);
}
function main()
{
var vA;
vA = getValue("Close",0,1,"$ADD");
return (vA);
}
function preMain()
{
setStudyTitle("ADVDEC");
setCursorLabelName("ADD");
setDefaultBarFgColor(Color.red);
setPlotType(PLOTTYPE_HISTOGRAM);
}
function main()
{
var vA;
vA = getValue("Close",0,1,"$ADD");
return (vA);
}
Comment