Comments for https://ctrader.com/products/2057
Comments for: https://ctrader.com/products/2057
- Eedgar281220013
Hello,
I need some technical support. Today is November 12, 2025, and when I put the “ZONE HUNTER cBot” in the 15-minute timeframe, I get the same error message as melkerkhandmark. But when I test the bot in the 1-hour chart, it runs, but the error message appears at different intervals in the log, just like melkerkhandmark. This “Index was out of range.”
The more important problem I have is that I wanted to use the bot on another CTrader account, but I got an error message. Can you give me any advice? Or should I request a refund and then buy it again with the correct account?
Kind regards,
EdgarThe code has been updated with the fix, however this means that you are now running the old version. Please provide your cTrader ID (cTID) for me to share the updated version with you directly. Many thanks.
- Eedgar281220013
Hello AWTrades,
First of all, I would like to thank you for your support.
My new cTrader ID is as follows, username is: edgartrader
Here is the public link to the profile: https://community.ctrader.com/u/edgartrader/
I hope everything works out :) Thank you again.
Have a nice weekend!
Best regards,
EdgarHi Edgar thank you. I have generated an algo file to send to you which will provide you with access to the updated code. I am currently waiting for a response from ctrader support to advise on how I can share this file with you. As soon as I can provide this to you I will.
- Eedgar281220013
Hello AWTrades,
Support just wrote to me saying that it would be best to continue this matter in a private chat. I'll give you my email address so you can send me a message.
Email: edgartomas@web.de You can send me an email here with all the information we need to complete the transfer :)
Thank you very much!
- MIn reply tosystem⬆:melkerkhandmark
Zone Hunter crashes live with:
03/11/2025 18:30:05.111 | Error | Crashed in OnBar with ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection
The bot still backtests fine and opens trades, but this crash repeats every bar when running live on AUDUSD M30. Even with full history loaded (about 6800 bars) and Trend Filter set to No, the bot throws this error on every bar close. The issue seems to be inside the OnBar() logic accessing an indicator buffer before it’s fully populated.
You might want to add a check like:
if (Bars.Count < minimumRequiredBars) return;
or
if (index < 0 || index >= myArray.Count) return;Would be great to know if an update is planned — I’d be happy to help test it.
Hello many thanks for the detailed information about this. I am working on a fix and will provide an update as soon as the code has been updated.
- Mmelkerkhandmark
That is wonderful to see! Thank you in advance
I have generated an algo file (using melkerkhandmark as your ctrader ID - please let me know if it is different from this) to send to you which will provide you with access to the updated code. I am currently waiting for a response from ctrader support to advise on how I can share this file with you. As soon as I can provide this to you I will.
- In reply tomelkerkhandmark⬆:
The fix has now been applied and the code has received some additional updates. It is now working as it should on live markets. However this means that you are now running the old version. Please provide your cTrader ID (cTID) for me to share the updated version with you directly. Many thanks.