Hello to the forum
I recently learned the mql5 programming language.
I needed to create a Hall Moving Average indicator with the ability to adjust the average type.
I made it with difficulty, but the indicator does not draw the next points after the first candlestick.
Can anyone help me?
Files:
Screenshot_t3847.png
42 kb
Screenshot_q385z.png
42 kb
Infinity_Hull_Moving_Average_V1.01.mq5
5 kb
- Hull Moving Average EA
- EA question
- Draw_Line: does not draw the buffer (MQL5)
There is an error on line 144.
2021.06.11 22:32:09.871 Infinity_Hull_Moving_Average_V1.01 (GBPJPY,M1) array out of range in 'Infinity_Hull_Moving_Average_V1.01.mq5' (144,21)
Fix it as follows
for(int a = 0; a < rates_total - 1 && !IsStopped(); a++) { hullc[a] = hullc[a + 1]; if (hull[a] > hull[a + 1]) hullc[a] = 1; if (hull[a] < hull[a + 1]) hullc[a] = 0; }
Nagisa Unada:
Thanks dear
There is an error on line 144.
2021.06.11 22:32:09.871 Infinity_Hull_Moving_Average_V1.01 (GBPJPY,M1) array out of range in 'Infinity_Hull_Moving_Average_V1.01.mq5' (144,21)
Fix it as follows
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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