toliuchen / Publications
Forum
My indicator value seems incorrect in MT5 strategy tester
Hello, I wrote a function in MT5 to get the value of indicator ATR like this: double mATR( int days) { double ATR[]; int ATR_handle; ATR_handle= iATR ( NULL , 0 ,days); CopyBuffer (ATR_handle, 0 , 0 , 1 ,ATR); ArraySetAsSeries (ATR, true ); return (ATR[ 0 ]); } But I noticed that it