poorasianguy / Publications
Forum
The MQL4 based ADX is buggy and trades incorrectly in the tester
Hi I have written a very simple logic based on ADX that is shipped with MT4. Code: double adx_previous = iADX(NULL,PERIOD_M15,6,PRICE_CLOSE,MODE_MAIN,1); //Previous Candle ADX Double Value double adx_current = iADX(NULL,PERIOD_M15,6,PRICE_CLOSE,MODE_MAIN,0); //Current Candle ADX Double Value