Read the documentation for iMA and CopyBuffer
i read but i can not fully understand
hello, first of all thank you for read my post. I wrote custom indicator at mql4. But now i need to write that custom indicator at mql5. But there is a problem that is:
in mql4 iMA(NULL,0,10,0,MODE_SMA,PRICE_CLOSE,i) this format is available but in mql5 iMA(_Symbol,_Period,10,0,MODE_SMA,PRICE_CLOSE) this format is available. In mql5 i can not store every moving average value in array without last parameter of iMA in mql4. How to fix it. I attached my script of mql4.
you need to post your mql5 code if that i what you have the problem with..
you need to post your mql5 code if that i what you have the problem with..
i do not know how to write that code in mql5
i do not know how to write that code in mql5
Documentation: https://www.mql5.com/en/docs
There are also lots of examples/articles on this site to help you.
You need to start by trying, otherwise it will be an endless set of questions, as I said to you before.

- www.mql5.com
i read but i can not fully understand
Read it and try it, you may make mistakes but that is part of learning.
It can be difficult to understand when reading the documentation for the first time, but if you persevere, the understanding will come.
The good thing is that once you understand how to use iMA you will be able to use iRSI, iCCI, iATR etc with no problems.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
hello, first of all thank you for read my post. I wrote custom indicator at mql4. But now i need to write that custom indicator at mql5. But there is a problem that is:
in mql4 iMA(NULL,0,10,0,MODE_SMA,PRICE_CLOSE,i) this format is available but in mql5 iMA(_Symbol,_Period,10,0,MODE_SMA,PRICE_CLOSE) this format is available. In mql5 i can not store every moving average value in array without last parameter of iMA in mql4. How to fix it. I attached my script of mql4.