fxDreema

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

    Pass for n times

    Questions & Answers
    2
    4
    159
    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.
    • A
      alimilani2006 last edited by alimilani2006

      I want to implement this scenario but it doesn't work:
      Whenever MA 5 crosses above MA 20, it draws 5 vertical lines for the next 5 candles (one vertical line on each upcoming candle following the crossover). How can I fix this?

      This is how I though it would work:
      https://fxdreema.com/shared/Jtc4ga5ze

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

        Set it up witout the loop, draw all at same time, use the shift forward in time, this is set up to work on 5m chart:
        image.png

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

          thank you very much.
          Actually I mentioned 5 candles as an example.
          In the real project I am working on, I sometimes need to do so on 52 upcoming candles. SO that adding 52 draw line blocks will be very difficult.
          Isn't there any block or automatic way to do that?

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

            In the loop you can add to a variable, use this in your draw block, reset this when the next x happens before the loop starts

            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

            R
            A
            D
            A
            E
            N
            N

            28
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors