Attachments forums

List of attachments posted on this forum.


All files on forums: 162862

Re: HMA - Hull Moving Average Indicators MT4

mrtools, Fri Nov 28, 2025 11:48 am

alllineid wrote: Fri Nov 28, 2025 10:40 am Hi @mrtools
I downloaded the ! HMA big (alerts + arrows +btn).ex4 indicator from this post: post1295556820.html#p1295556820
When loading it on MT4 for XAUUSD on M5 timeframe during backtesting, I'm encountering these errors in the log:

2025.11.28 07:28:19.851 2025.09.01 02:50:00 HMA big XAUUSD,M5: not initialized
2025.11.28 07:28:19.851 2025.09.01 02:50:00 HMA big XAUUSD,M5: zero divide in '! HMA big (alerts + arrows +btn).mq4' (199,38)
2025.11.28 07:28:19.824 2025.09.01 02:45:00 HMA big XAUUSD,M5: not initialized

It seems like there's an initialization issue and a divide-by-zero error at line 199, column 38 in the source code. Could you please take a look and update the indicator? Maybe add a check for zero denominators or ensure proper initialization with sufficient data bars.
Thanks a lot for your great work—I really appreciate it! Looking forward to the fix.
Best regards,
🌞alllineid
Hello, not sure what is causing the error, made a couple of little changes, but not sure if it did any good.
All files in topic