fxDreema

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

    20 Lookback candles above MA

    Questions & Answers
    2
    4
    151
    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
      JTCarcil last edited by

      Screenshot 2023-11-26 214218.jpg

      I'm trying to code a simple MA alert that will only trigger when. Example for a BUY

      1. All 3 MAs are spread-out in one direction.
      2. Gives a signal when a candle closes above the fast MA.
        BUT before it gives the signal, it will have to lookback 20 candles and check if.
      3. No candle closes below the slow MA, a wick is allowed to touch or go below and return.
      4. At least 1 of the candles must touch the medium MA.

      i can't seem to attach what i tried doing here.

      Any help will be appreciated. Thanks

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

        Create a loop that counts candles, then check when enough candles are > or <. https://fxdreema.com/shared/QMnH4RNmb

        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
          JTCarcil last edited by

          Thanks a lot, i'll try it out

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

            Yow will always need to check > because this loop will add numbers, so will always be when the number is high enough.

            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

            C
            E
            A
            K
            F
            E
            F

            16
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors