I have an EA that for some reason, the calculated value for the iADX indicator is always 0. It works fine in live / forward testing.
Here is the code:
//Get ADX
double ADX60 = iADX(Symbol(),PERIOD_H1,14,iClose(Symbol(),PERIOD_H1,0),MODE_MAIN,0);
I have confirmed it is not working by printing it to the journal. It is always 0.
Any ideas?
Here is the code:
//Get ADX
double ADX60 = iADX(Symbol(),PERIOD_H1,14,iClose(Symbol(),PERIOD_H1,0),MODE_MAIN,0);
I have confirmed it is not working by printing it to the journal. It is always 0.
Any ideas?