Re: HMA - Hull Moving Average Indicators MT4

371
mrtools wrote: Fri Dec 27, 2024 11:46 pm Added an on/off button to the triple hull also noticed the arrows may repaint on the Hma big so hopefully fixed that.
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


Re: HMA - Hull Moving Average Indicators MT4

372
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.
These users thanked the author mrtools for the post:
alllineid

Re: HMA - Hull Moving Average Indicators MT4

373
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
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
I discovered this tiny 🐞 (zero divide)... (not spelling out the bugs here, just a cute emoji), and this little guy has been persisting through the following versions. I've fixed it in these:

HMA big (alerts + arrows).mq4 post1295548271.html#p1295548271
HMA big (alerts + arrows) bt.mq4 post1295556794.html#p1295556794

For the closed-source '! HMA big (alerts + arrows +btn).ex4', we'll have to wait for mrtools to handle it, haha!
Thanks for the awesome indicator—hope this helps!
Best regards

Re: HMA - Hull Moving Average Indicators MT4

374
mrtools wrote: Fri Nov 28, 2025 11:48 am Hello, not sure what is causing the error, made a couple of little changes, but not sure if it did any good.
The ! HMA - big (alerts + arrows + btn).ex4 above still has this 🐞 (zero divide).

2025.11.28 09:03:01.728 2025.09.01 00:20:00 ! HMA - big (alerts + arrows + btn) XAUUSD,M5: zero divide in '! HMA - big (alerts + arrows + btn).mq4' (199,38)
2025.11.28 09:03:01.702 2025.09.01 00:20:00 ! HMA - big (alerts + arrows + btn) XAUUSD,M5: not initialized

Re: HMA - Hull Moving Average Indicators MT4

375
alllineid wrote: Fri Nov 28, 2025 12:11 pm The ! HMA - big (alerts + arrows + btn).ex4 above still has this 🐞 (zero divide).

2025.11.28 09:03:01.728 2025.09.01 00:20:00 ! HMA - big (alerts + arrows + btn) XAUUSD,M5: zero divide in '! HMA - big (alerts + arrows + btn).mq4' (199,38)
2025.11.28 09:03:01.702 2025.09.01 00:20:00 ! HMA - big (alerts + arrows + btn) XAUUSD,M5: not initialized
When you get a chance try redownloading it, added your fix to it and replaced it, BTW thanks for fixing.