fxDreema

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

    Buy if value is over the maximum of last 5 candles

    Tutorials by Users
    2
    4
    350
    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.
    • J
      Jotha last edited by

      Hi I'm new here and hae been checking for the Q&A but haven't quite figure it out.

      If you want an EA that is able to BUY if the price goes higher than the maximum of the last 5 candles how would you do that?

      4869e179-1e65-4619-ba01-208799b50aa8-imagen.png

      (Need to check the maximum price of last 5 candles and whenever the current price goes over it then BUY)

      I understand that you would need to start "on tick"
      And then use "Market Properties" - Highest price (Start Candle ID 1 & End 5) using price Value

      How would you compare it to current price. Is using "Ask"?

      fedafe87-e5f9-4903-b854-125c5e50566f-imagen.png

      I tried but doesn't work.

      https://fxdreema.com/shared/uokB86w0d

      Thanks in advance

      1 Reply Last reply Reply Quote 0
      • J
        Jotha last edited by

        Sorry finally it does work and it was a Question not a Tutorial.

        As it works it can be kept as a tutorial in case anyone else wants to know how to build a BUY in case the price is over a number of candles.

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

          What is it that's not working? alert or delay?

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

            Everything works fine now. I was just a mess with ask/bid prices. Thanks for checking.

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

            Online Users

            E
            A

            16
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors