You made a BIG mistake: you create an indicator handle on every tick.
Correctly, you need to do this: you need to get the indicator handle ONCE and you need to do this in OnInit.
weyhub: Hey, I'm having a issue on a ATR indicator. Even though the codes don't have any problem when compiling, it doesn't plot on the screen. I think there is a thing that I didn't get on PlotIndexes. I also checked the datas of arrays(ind_buffer1, ind_buffer2) and nothing is wrong, the data is correct while I'm printing and checking it in the EA, but on Data Window it's different than the indicator shows me. I didn't get the logic here. Anyone can illuminate me or show me where I'm incorrect?
Don't rely on MQL4 to MQL5 kludge conversion tactics. It is just going to complicate things and you will end up not properly understanding MQL5.
Do away with the MQL4 stuff and code it properly in the MQL5 way!

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hey, I'm having a issue on a ATR indicator. Even though the codes don't have any problem when compiling, it doesn't plot on the screen. I think there is a thing that I didn't get on PlotIndexes. I also checked the datas of arrays(ind_buffer1, ind_buffer2) and nothing is wrong, the data is correct while I'm printing and checking it in the EA, but on Data Window it's different than the indicator shows me. I didn't get the logic here. Anyone can illuminate me or show me where I'm incorrect?