I've been racking my brain for a few days, but so far I haven't been able to plot the line on the chart - Expert Advisor.
I will be very grateful if some kind soul can help me fix this code.
Thank you in advance for all your help.
1. Question about the design: there is no name, code, no code extension, no header, no OnInit.
2. A gross mistake: you create an indicator handle at every tick !!! Remember, in MQL5 the indicator handle MUST be created ONCE and it MUST be done in OnInit!
3. A gross mistake: ChartIndicatorAdd must be used in OnInit.
- 2021.08.27
- www.mql5.com
Vladimir Karputov
Thank you so much for taking the time to help me, no words. I ran some tests and I believe I'm going to the wrong solution. In fact, what I needed was to plot the average of a larger time graph over the shortest period. For example, the 60-minute average on 5-minute charts. Is the solution to create objects to solve this issue? Speaking of which, thank you for sending the material, I have already started studying. It has very relevant subjects. But once again thanks for sharing knowledge. Simply unspeakable!
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I've been racking my brain for a few days, but so far I haven't been able to plot the line on the chart - Expert Advisor.
I will be very grateful if some kind soul can help me fix this code.
Thank you in advance for all your help.