fxDreema

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

    Stop and Reverse Strategy not working MT5

    Bug Reports
    4
    9
    599
    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.
    • S
      sm24 last edited by

      Hey here is a shared copy of a very Simple Stop and Reverse strategy for MT5.

      https://fxdreema.com/shared/6vQgsR9jd

      Doesn't work for some reason, will not run optimization tests. I've messed around with changing where to put the once per bar block but doesn't make a difference.

      1 Reply Last reply Reply Quote 1
      • B
        Byens last edited by

        Try this

        image.png

        https://entrepreneurstart.pw | https://www.mql5.com/en/users/byens8199

        1 Reply Last reply Reply Quote 0
        • S
          sm24 last edited by

          Yeah tried that doesn't work.

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

            @sm24 look at journal for any errors. Anyway move "once per bar" just above buy and sell block

            1 Reply Last reply Reply Quote 0
            • S
              sm24 last edited by

              Trust me I've tried moving around the blocks, there's an issue with the code.
              Here's a screenshot of the error.

              S A 2 Replies Last reply Reply Quote 0
              • S
                sm24 last edited by

                Screenshot 2023-03-22 142116.png

                1 Reply Last reply Reply Quote 0
                • S
                  sktsec @sm24 last edited by

                  @sm24
                  What if you input 0 instead of 1 to the Candle ID? Does it work?

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

                    @sm24 said in Stop and Reverse Strategy not working MT5:

                    Trust me I've tried moving around the blocks, there's an issue with the code.
                    Here's a screenshot of the error.

                    i said to look for any errors because it works on my MT5, i already backtested it. One thing: are you backtesting on "every tick model" or not?

                    1 Reply Last reply Reply Quote 1
                    • S
                      sm24 last edited by

                      But it won't work on open prices only right? Because I'm trying to have it only check on the opening or closing of each bar not every tick.

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

                      Online Users

                      S
                      T
                      A
                      Y
                      H
                      B
                      K

                      16
                      Online

                      146.7k
                      Users

                      22.4k
                      Topics

                      122.6k
                      Posts

                      Powered by NodeBB Forums | Contributors