james_lee: I am now coding with my own logic and have faced some problems. I tried several times, but I am new to this language.
To better understand how this works, the "Moving Average.mq5" file is a helpful example (You can find it in the Examples folder) especially regarding how to declare the custom moving average handle in the OnInit function. Please also make sure to post this topic in the appropriate section of the forum.
Your topic has been moved to the section: Expert Advisors and Automated Trading
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
When you use iMA in an EA, you will need to use copybuffer to copy the data into a designated buffer.
It's different to MQL4. Please look at moving average based EAs in the mql5 codebase section.

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
I am now coding with my own logic and have faced some problems.
I tried several times, but I am new to this language.
So if someone can help me, I would be really thank you.