Forum

ATR with RMA smoothing

Hi, I'm trying to port ATR function with RMA smoothing from mt4. Code I have is below. I'm getting '{' - function definition unexpected ATR-RMA.mq5 108 3 error but can't find out why? I double checked { } and looks ok. I new to MQL5, have very small experience in MQL4. Could anyone help me solve