fxDreema

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

    Optimization and Backtesting

    General Discussions
    4
    11
    730
    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.
    • P
      Progress337 last edited by

      Not sure if this is an issue or just how things are, but I'm noticing it takes an extended amount of time to backtest (45 mins or more) and optimize (3-4 hours) simple strategies in MT5. Maybe I'm doing something wrong in my block structure. I would love some guidance if possible. I am using a VPS (2.6ghz, 4 processors, 8gb ram). Here is a link to a simple RSI strategy that took 4 hours to optimize. https://fxdreema.com/shared/Jls3zg58b

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

        Do you use tick data or rough data?

        Need small help? Tag me in your post
        Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

        1 Reply Last reply Reply Quote 0
        • P
          Progress337 last edited by

          tick data

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

            Tick data can be expected to take 10x more time...
            Fxdreema projects are inherently slower, but there are some performance optimization you can do:

            • move the "once per bar" to the top of your flow
            • dont use the yellow (false) output of the "once per bar" I think its just a mistake in your project
            • "close positions" block is known to cause infinite loops, see here: https://fxdreema.com/forum/topic/16494/close-positions-when-market-is-closed

            Need small help? Tag me in your post
            Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

            1 Reply Last reply Reply Quote 2
            • P
              Progress337 last edited by

              Thank you!

              1 Reply Last reply Reply Quote 0
              • P
                Progress337 last edited by

                If anyone was wondering, i changed the modeling to '1 minute ohlc' and it works like a charm. Optimizations take about 6 mins and backtesting takes about 2 minutes. I appreciate the feedback roar!

                1 Reply Last reply Reply Quote 1
                • P
                  Progress337 last edited by

                  Results are a few dollars off, but nothing major

                  A 1 Reply Last reply Reply Quote 0
                  • A
                    ambrogio @Progress337 last edited by ambrogio

                    @Progress337 you can certainly do a quick optimization, just to get a general overview, but after that, if you want a 100% reliable backtest you have to run the one "every tick based on real ticks", you can see the difference.

                    1 Reply Last reply Reply Quote 0
                    • P
                      Progress337 last edited by

                      Yup that's what I do.
                      1 minute olhc (Optimization in sample, backtest out of sample)
                      Every tick (Backtest in sample and out of sample to confirm)

                      1 Reply Last reply Reply Quote 0
                      • M
                        martymoon120 last edited by

                        A question if I may, I have been running tests on MT5 for my strategy using 'every tick'. I was getting amazing results on a 1m 'trend following' strategy in the NY session, with my test showing circa $50K profit in a year (on $100k). I then switched to 'every tick based on real ticks' and got a $90k loss. Can it really be that different?

                        I understand that the affect depends on the type of strategy. I was originally trying to snipe entries and would need tick data, but I've changed it so that all of my conditions are at candle close. But I still get -$90k using 'real ticks', whereas OHLC is +$25k. Can anyone give me any more insight? Is the MT5 tester totally useless for testing scalping strategies therefore?

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

                          Trailing stop or just very small fixed stops will cause that issue.

                          Need small help? Tag me in your post
                          Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

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

                          Online Users

                          S
                          L
                          N
                          Q
                          A
                          F
                          S
                          T
                          A
                          P

                          14
                          Online

                          146.7k
                          Users

                          22.4k
                          Topics

                          122.6k
                          Posts

                          Powered by NodeBB Forums | Contributors