Hello, How can I write this MQL4 code in MQL5? for(int r=1; r<11 ; r++) ATR_SUM=ATR_SUM+(iATR(Symbol(),Period(),14,r)); ATR_TP=(ATR_SUM/10); in MQL4 there is shift parameter which is not on MQL5! MQL4: double iATR ( string symbol , // symbol int timeframe