fxDreema

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

    Strategy Tester Error

    Questions & Answers
    errors tester mt5
    4
    33
    2654
    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.
    • T
      Tehern last edited by

      Hi guys, how to solve this error? I have tried different period, different pair and EA but still having same problem. Customer service just said they don't have data during 23:59 - 00:01. I have tested few times before with same period and same EA but suddenly popped out this error but until now I still can't solve this. Pls help🄲
      b615bde2-21e0-40a4-8390-e4367f8087eb-image.png

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

        I don't think this is an EA problem, I think from what you say your broker doesn't have the data, maybe try another broker and see if this resolves the problem

        Learn fxDreema Without the Wait!

        My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

        The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

        Don’t miss out

        Click hereāž”ļø https://mybook.to/fxDreema to get your copy today!

        Enjoy! 😊

        1 Reply Last reply Reply Quote 0
        • T
          Tehern last edited by

          Before this error appeared, i used same settings to test the EA at least 10 times so I also believe that not my EA problem. I have tried another platform but it could not run the EA as the script too long ( my script around 3700 lines)

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

            FX code does contain a lot of a lot of unused lines that's not used in your project, but this should work with all brokers.

            Learn fxDreema Without the Wait!

            My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

            The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

            Don’t miss out

            Click hereāž”ļø https://mybook.to/fxDreema to get your copy today!

            Enjoy! 😊

            1 Reply Last reply Reply Quote 0
            • T
              Tehern last edited by

              2024.08.23 21:57:49.849 Core 01 2024.08.01 03:00:00 array out of range in '110813-14855.mq5' (8426,52)

              I saw this error

              and the line is this:
              double EventValueProfit() {return eventValues[eventValuesQueueIndex].profit;}

              Complete part:
              double EventValueCommission() {return eventValues[eventValuesQueueIndex].commission;}
              double EventValuePriceOpen() {return eventValues[eventValuesQueueIndex].priceOpen;}
              double EventValuePriceClose() {return eventValues[eventValuesQueueIndex].priceClose;}
              double EventValueProfit() {return eventValues[eventValuesQueueIndex].profit;}
              double EventValueStopLoss() {return eventValues[eventValuesQueueIndex].stopLoss;}
              double EventValueSwap() {return eventValues[eventValuesQueueIndex].swap;}
              double EventValueTakeProfit() {return eventValues[eventValuesQueueIndex].takeProfit;}
              double EventValueVolume() {return eventValues[eventValuesQueueIndex].volume;}

              string EventValueComment() {return eventValues[eventValuesQueueIndex].comment;}
              string EventValueSymbol()  {return eventValues[eventValuesQueueIndex].symbol;}
              

              };

              Is my code got problem?

              1 Reply Last reply Reply Quote 0
              • T
                Tehern last edited by

                https://fxdreema.com/shared/yJxuBSrLc

                can refer to this too

                if any error pls let me know so I can improve it

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

                  The yellow no position is if position so the multiple blocks are pointless. The purple on trade (event data) in your condition can only work on the on trade tab:
                  image.png
                  Once per bar is normally better underneath conditions, if 1 is false for a second the once per bar will stop EA from working until the next candle.

                  Learn fxDreema Without the Wait!

                  My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                  The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                  Don’t miss out

                  Click hereāž”ļø https://mybook.to/fxDreema to get your copy today!

                  Enjoy! 😊

                  1 Reply Last reply Reply Quote 0
                  • T
                    Tehern last edited by Tehern

                    How should I arrange the modify stop loss for first level of profit achieved then the start to trailing the stop loss? Should it be linked after the buy/sell block? For the purple on trade, I don't know how to set the profit of the trade then I saw this option then only pick it so what should I choose to make the profit value to be compared? Hence, the once per bar should be correct right as I only need to open trade at the start of the candle. Sorry if I misunderstanding.

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

                      Ok but what if on the 1st tick of a candle 1 of your conditions is false, but then by the second tick it's true, so the once per bar has stopped the EA?

                      With trail I would use the blue block, set it up in a separate tree, you can set up a small test project to see if as you want works on backtest.

                      Learn fxDreema Without the Wait!

                      My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                      The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                      Don’t miss out

                      Click hereāž”ļø https://mybook.to/fxDreema to get your copy today!

                      Enjoy! 😊

                      T 2 Replies Last reply Reply Quote 0
                      • T
                        Tehern @jstap last edited by

                        @jstap said in Strategy Tester Error:

                        Ok but what if on the 1st tick of a candle 1 of your conditions is false, but then by the second tick it's true, so the once per bar has stopped the EA?

                        Nope, the EA will continue to proceed the buy/sell order if one of the condition is fulfilled

                        1 Reply Last reply Reply Quote 0
                        • T
                          Tehern @jstap last edited by

                          @jstap said in Strategy Tester Error:

                          With trail I would use the blue block, set it up in a separate tree, you can set up a small test project to see if as you want works on backtest.

                          May I know what is blue block? (I just joined this 3rd day) Is it "Bucket of position or orders"? If it is in separate tree without linking to the order condition, the trailing will still continue to update the stop loss for the order?

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

                            It can be in a separate tree but will need to be connected to a block to work

                            Learn fxDreema Without the Wait!

                            My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                            The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                            Don’t miss out

                            Click hereāž”ļø https://mybook.to/fxDreema to get your copy today!

                            Enjoy! 😊

                            1 Reply Last reply Reply Quote 0
                            • T
                              Tehern last edited by

                              But may I know what is blue block?

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

                                Blue blocks are loops set to work specifically with the information you have set. Some loops are set in 2 parts q to select a relevant trade (or trades) and 1' to get the information.

                                Learn fxDreema Without the Wait!

                                My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                                The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                                Don’t miss out

                                Click hereāž”ļø https://mybook.to/fxDreema to get your copy today!

                                Enjoy! 😊

                                1 Reply Last reply Reply Quote 0
                                • T
                                  Tehern last edited by

                                  https://fxdreema.com/shared/Z8vtTyVnd

                                  Am I correct? If not could you show me the correct version? Thanks

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

                                    I am not sure exactly which blocks you are talking about, is easier to set up a test project only using a few blocks, so you can work on that one element without other blocks potentially causing problems.

                                    image.png

                                    Learn fxDreema Without the Wait!

                                    My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                                    The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                                    Don’t miss out

                                    Click hereāž”ļø https://mybook.to/fxDreema to get your copy today!

                                    Enjoy! 😊

                                    1 Reply Last reply Reply Quote 0
                                    • T
                                      Tehern last edited by

                                      I have followed the method how u put the right side tree block, then I realized that my trailing part is not working. They only modify the stop loss once.

                                      1 Reply Last reply Reply Quote 0
                                      • T
                                        Tehern last edited by

                                        https://fxdreema.com/shared/wBxa2mqhc

                                        Hi sir, here is the updated version, my trailing are not working but my first modify works with similar tree blocks, thanks

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

                                          You don't need a pink block above the trail block:
                                          image.png

                                          Learn fxDreema Without the Wait!

                                          My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                                          The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                                          Don’t miss out

                                          Click hereāž”ļø https://mybook.to/fxDreema to get your copy today!

                                          Enjoy! 😊

                                          1 Reply Last reply Reply Quote 0
                                          • T
                                            Tehern last edited by

                                            I followed how u arrange but I still face some minor problem, trying to solve it btw thanks jstap for helping

                                            If can't solve will ask for help

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

                                            Online Users

                                            D
                                            V
                                            O
                                            J
                                            B

                                            15
                                            Online

                                            146.7k
                                            Users

                                            22.4k
                                            Topics

                                            122.6k
                                            Posts

                                            Powered by NodeBB Forums | Contributors