fxDreema

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

    Searching past information of an indicator

    Questions & Answers
    2
    8
    323
    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.
    • S
      sajjad3245 last edited by

      Hi, I have problem using Loop. I can't figure it out...
      Need Help PLEASE!

      Screen Shot 3-24-2024 at 9.10 PM.png

      I have 2 MACDs. First one is four times MACD (48,104,36) and the second one is half of the original MACD (6,13,4).

      What I need is to count the number of downs in smaller MACD while the bigger MACD is above zero LVL, as shown in the picture.

      To be exact:

      1. Let's say in the live market we are in the position of No.6 as shown in the picture.
      2. The search in the past must start when the bigger MACD is above zero LVL.
      3. I want to count the number of downs in the smaller MACD and then store it in a variable.

      I know I should use Loop Block but can't figure it out. Any help is much appreciated šŸ™‚

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

        You can do it like this: https://fxdreema.com/shared/UXr0s94Xb

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

          Tnx @jstap .
          How does it search the past?
          You didn’t use Loop Block…

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

            That will just tell you the current <>0, to look in the past you need to change the starting candle ID.

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

              I want to search in the past, I don’t know the starting Candle ID of the past!

              The search in the past starts When the bigger MACD is above zero LVL

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

                Just 1 < or> period in the past?

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

                  Period, and the period is when bigger MACD is above zero LVL. (Say MACD A)

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

                    For 1 period you have the ID to start from because it is the candle before MACD went from <> or ><, to get this save this ID into a new variable, but you will have to set up a separate tree that adds 1 onto that variable every bar.

                    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

                    M
                    A
                    E

                    14
                    Online

                    146.7k
                    Users

                    22.4k
                    Topics

                    122.6k
                    Posts

                    Powered by NodeBB Forums | Contributors