fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    Testing my EA on BackTest

    Questions & Answers
    3
    6
    1685
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • KLG
      KLG @fxDreema last edited by

      @fxDreema same with me , trying to use CCI and RSI 😕

      CPU i9 13th, is this causing the error !

      1 Reply Last reply Reply Quote 0
      • R
        rdalvic last edited by

        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

        1 Reply Last reply Reply Quote 0
        • fxDreema
          fxDreema last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • R
            rdalvic last edited by

            ok, i hope that you can fix the error, please can you notify us when you have fixed it?

            thanks!...

            1 Reply Last reply Reply Quote 0
            • fxDreema
              fxDreema last edited by

              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 🙂

              KLG 1 Reply Last reply Reply Quote 1
              • KLG
                KLG last edited by

                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)

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post

                Online Users

                A
                H
                H

                14
                Online

                146.7k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors