fxDreema

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

    Negative Shift Doesn't Work

    Questions & Answers
    3
    8
    230
    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.
    • R
      Remco Rich last edited by

      hey how do i make a MA Crossover EA Work with the same Period but one MA has a Shift of -5? i can do negatives in the shift on MT4 so it has to work in an EA, right?

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

        -5 is no 5 candles forward, if yo want to look at 5 candles ago it's 5

        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
        • roar
          roar last edited by

          Technically you can use -5 shift in MA, but such an indicator doesnt have a current value. It has only history values.
          image.png

          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
          • R
            Remco Rich last edited by

            Naamloos 2.png

            i will use is with a second MA with no Shift,
            so an sell example:

            MA1 Period 9 with shift -5
            x<
            MA2 Period 9 with shift 0

            see this sell example in the screenshot.

            i tried using the candle ID 5, but unlike the -5 shift, the signal crossover comes 5 candles too late.

            with the -5 shift the signal comes 5 candles earlier.

            i want to use the crossover like the example i mentioned

            roar 1 Reply Last reply Reply Quote 0
            • roar
              roar @Remco Rich last edited by

              @Remco-Rich you get that result by comparing ID 1 and ID 2.

              ID 1 crosses below ID 2

              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

              R 1 Reply Last reply Reply Quote 0
              • R
                Remco Rich last edited by

                i don't realy understand... i want a shift of 5 , how will that look like?

                when will the signal be, the same as what my example looked like ?

                1 Reply Last reply Reply Quote 0
                • R
                  Remco Rich @roar last edited by

                  @roar
                  i don't realy understand... i want a shift of 5 , how will that look like?

                  when will the signal be, the same as what my example looked like ?

                  roar 1 Reply Last reply Reply Quote 0
                  • roar
                    roar @Remco Rich last edited by

                    @Remco-Rich sorry, I thought the lines are only 1 candle apart.

                    Compare MAs on candle IDs 1 and 6 then.

                    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

                    K

                    9
                    Online

                    146.8k
                    Users

                    22.4k
                    Topics

                    122.6k
                    Posts

                    Powered by NodeBB Forums | Contributors