fxDreema

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

    Moving Averages Crossing by a Number of Pips

    Questions & Answers
    2
    2
    306
    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.
    • N
      neo_me last edited by

      I am trying to execute a trade after two moving averages cross each other not immediately but as soon as they are 4 pips away from each other. I know that this can be done in the adjust field of the condition. My question is....

      Do I use a positive value for crossing above and a negative value for crossing below? Please refer to the screenshot. Am I working correct?

      0_1632903417313_0c6ecd50-9f01-4540-828e-1701e74aebf7-image.png

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

        @neo_me Yes negative is below positive is above.

        Not sure if you can use the adjust for this although moving MA price up/dn 4pips would technical cause the cross to happen 4pips higher/lower, this may because of using candle 0, you could record the price into a variable and then use pink pips away to do something at the 4pips price but would think you can do this in the standard condition block.

        Another thing you could do is use a loop to count the candles from the cross, when enough counted get EA to react.

        LINK

        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
        • 1 / 1
        • First post
          Last post

        Online Users

        H
        G

        9
        Online

        146.7k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors