Good day to everyone. I want to make an EA based on ADX. I want to ask if how to code using ADX indicator? thank you. I mean what are the necessary parameters? it's like if the ADX 14 is above level 25, it will execute position based on another trend following indicator.
Thank you and God Bless you all.
NIECO P. PAMA
int ADXPeriod = 14;
double ADXMain = iADX(NULL,0,ADXPeriod,PRICE_CLOSE,MODE_MAIN,0);
if( ADXMain > 25 )
// do something