Hi,
Is it possible to calculate the ROC of an Indicator? :
Eg : ( RSI Close() - RSI Close (-1) )
Paul
Is it possible to calculate the ROC of an Indicator? :
Eg : ( RSI Close() - RSI Close (-1) )
Paul
var vRSI14 = new RSIStudy(14, "Close");
function preMain() {
setPriceStudy(false);
setStudyTitle("RSI diff");
setCursorLabelName("RSI diff", 0);
setDefaultBarStyle(PS_SOLID, 0);
setDefaultBarFgColor(Color.blue, 0);
setDefaultBarThickness(1, 0);
setPlotType(PLOTTYPE_LINE, 0);
}
function main() {
var vDiff = vRSI14.getValue(RSIStudy.RSI)-vRSI14.getValue(RSIStudy.RSI, -1)
return vDiff;
}
Comment