hope you're doing great,
I'd like somebody to help me coding this indicador in NT8. It is a consensual indicator: these indicators iteratively evaluate whether a population "z" of means with different number of bars satisfy a specific target criterion.
In this case the code is calculating an ADX consensual indicator but I can't make it work in NT8.
Could somebody please help?
The indicator should look something like this here below and it has two parameters: "FinalPeriod" and "Filter":
The code is:
nA = 0;
Ma = 0;
int step = finalPeriod/20;
for (int x = 10; x < finalPeriod+1; x+=step)
{
if (Slope(ADX(x),filter,0)<0)
{
Ma = Ma+1;
}
nA = nA+1;
}
MCADX.Set(CSaxd);
if (CSaxd<80)
{
BackColor=Color.Salmon;
}
else
{
BackColor=Color.Aquamarine;
}
Thanks
regards

Comment