cannot copy atr data. Initialization returns false. how can i solve this problem? if I disable this part it works normally.
OnInit as following;
Hi,
i think the issue may be connected with the array you want to store the ATR into
arrayATR
What is the size of this array ?
If you havent set the size of it, the issue is most probably because its size is 0,and youre pushing 40 elements into it
cannot copy atr data. Initialization returns false. how can i solve this problem? if I disable this part it works normally.
OnInit as following;
In OnInit, you can (and should) create an indicator handle.
But you need to receive data from the indicator (using CopyBuffer) in OnTick ().
Do not be lazy to show the complete MQL5 code. Do not be lazy to format the code correctly: name and code extension ...
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
cannot copy atr data. Initialization returns false. how can i solve this problem? if I disable this part it works normally.
OnInit as following;