Testing my EA on BackTest
-
@fxDreema same with me , trying to use CCI and RSI

CPU i9 13th, is this causing the error !
-
Hello admin,
i made some other tests before doing this ea, i dont know what am i doing wrong, is it some bug? its because this ea inst working on backtest, when i tried another ea i have made, it worked, now this new one isnt it, please verify if there is a bug, thanks.
http://fxdreema.com/shared/M1z2Gu5hd
note: i found these 2 errors at mt5 jornal
2013.08.12 16:11:34 2013.08.01 00:00:00 Error: Cannot get value from an indicator. (handle=10 | error code=4806)
2013.08.12 16:11:34 2013.08.01 00:00:00 Error: Cannot get value from an indicator. (handle=10 | error code=4806)......
20130812.log -
This error was a mystery for me long time, now I know why it happens. It's interesting that it happens only when backtesting. When the EA starts there is a time needed for the indicators to load their data, and it seems that the backtest starts before that happened. I think this is a bug of MetaTrader 5, but there is a way to resolve it and now I'm preparing an update where this error will be fixed.
-
ok, i hope that you can fix the error, please can you notify us when you have fixed it?
thanks!...
-
This error appeared in the past when in the code each indicator was used on demand - you call it when you need it, and this created this problem in the past. Then I make it like they say in MetaTrader's documentation - handles of all indicators are created in Init(), then used in in OnTick() or where needed. This update stopped that error message back then... at least on my PC. There is a little time delay between Init() and OnTick() probably. Now I wonder why you have the problem, because now everything is like it should be in the documentation. I guess your PC is even faster than that delay and indicators are loaded asynchronously. But now I want to turn back to the idea of using the indicators on demand and synchronously, so I fixed that problem (locally on my local fxDreema) by waiting for the indicator to load and then use it. But this is part of a bigger update, so I can't upload it right now

-
2023.11.23 17:34:33.319 Core 01 2022.11.23 15:27:20 Error: Cannot get value from a custom indicator. (handle=10 | error code=4806)