fxDreema

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

    highest / lowest close of a period of n candles

    General Discussions
    highest close lowest close
    3
    8
    264
    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.
    • R
      rfaust last edited by

      Re: Last highest/lowest close

      How can I use a condition like
      close[1] > highest CLOSE of the last n candles, starting with candle [2] ?

      Similar to highest / lowest price of n candles, but based on the candles close.

      Many thanks!

      1 Reply Last reply Reply Quote 0
      • l'andorrà
        l'andorrà last edited by

        The only way is by creating a custom loop searching for that close price. There is no fxDreema blocks doing that.

        (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

        (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

        (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

        R 1 Reply Last reply Reply Quote 0
        • R
          rfaust @l'andorrà last edited by

          @l-andorrà
          Thanks!
          I don't know how to do that. how is a custom loop integrated?
          I think the iHighest function could deliver the highes close.
          but I don't know how to integrate it either.

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

            This should do it, not tested but compiles: https://fxdreema.com/shared/FoVpQnJDb

            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! 😊

            R 1 Reply Last reply Reply Quote 1
            • R
              rfaust @jstap last edited by

              @jstap
              Many thanks !!!
              I will test this.

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

                Added variables to draw blocks, let me know if it works: https://fxdreema.com/shared/9RCAmiyOd

                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! 😊

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

                  @jstap
                  Many thanks! This seems to do what I need.
                  When I want to compare the close of the latest candle[1] to the highest or lowest close of the previous candles (starting from candle[2], is the following calculation correct?

                  int copied = CopyClose(_Symbol, _Period, 2, Count, closes);

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

                    Yes t should be

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

                    Online Users

                    S
                    T
                    A
                    Y
                    H
                    B
                    K

                    12
                    Online

                    146.7k
                    Users

                    22.4k
                    Topics

                    122.6k
                    Posts

                    Powered by NodeBB Forums | Contributors