Can anybody help me with this :
Is it possible to plot DX instead of ADX on the chart?
Is it possible to plot DX instead of ADX on the chart?
var DIplus = null;
var DIminus = null;
if(DIplus==null) DIplus = pdi(14,14);//replace the parameters with ones of your choice
if(DIminus==null) DIminus = ndi(14,14);//as above
if(DIplus.getValue(0)==null || DIminus.getValue(0)==null) return;
var DX = (100 * Math.abs((DIplus.getValue(0)) - (DIminus.getValue(0)))) / ((DIplus.getValue(0)) + (DIminus.getValue(0)));
return DX;
Comment