I've tried various permutations of the new adx function without any luck. Tried in es #f 3000v and 750v charts:
function preMain()
{
setStudyTitle("ADXMoSet");
setCursorLabelName("ADXMoSet",0);
setPlotType(PLOTTYPE_HISTOGRAM, 0);
}
var vADX = null;
function main()
{
if (vADX == null)
{
//vADX = adx(7, 3, close(sym("ES #F, 3000v")));//new ADXDMStudy(7, 3);
vADX = adx(7, 3, close(inv("3000v")));
return 0;
}
var adx = vADX.getValue(0); //vADX.getValue(ADXDMStudy.ADX);
if (adx == null)
return -1;
return adx;
}
Also tried using '1' instead of '3000v'.
My return is always <none>.
Thanks.
function preMain()
{
setStudyTitle("ADXMoSet");
setCursorLabelName("ADXMoSet",0);
setPlotType(PLOTTYPE_HISTOGRAM, 0);
}
var vADX = null;
function main()
{
if (vADX == null)
{
//vADX = adx(7, 3, close(sym("ES #F, 3000v")));//new ADXDMStudy(7, 3);
vADX = adx(7, 3, close(inv("3000v")));
return 0;
}
var adx = vADX.getValue(0); //vADX.getValue(ADXDMStudy.ADX);
if (adx == null)
return -1;
return adx;
}
Also tried using '1' instead of '3000v'.
My return is always <none>.
Thanks.
Comment