fxDreema

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

    Pivot Variable Help

    Questions & Answers
    3
    13
    630
    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.
    • Labutters
      Labutters last edited by

      Hello all,

      So I'm trying to make a very basic pivot price action EA just for fun.

      It's pretty simple but I can't seem to get the logic right on it. My conditions for a Bull Pivot are - Bear Candle id 1 > Bull Candle id 2 and try to save it as a variable and vice versa for a Bear pivot like the screenshot shown here > Real Pivot.png

      I'd like to draw a line when the bear pivot is broken from that candle id to the current candle that closed above it.

      Would someone be able to help me with my logic? I really appreciate it in advance.
      https://fxdreema.com/shared/HSPYseXeb

      Thanks

      Butters

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

        @jstap would you be able to assist with this king?

        Labutters 1 Reply Last reply Reply Quote -1
        • jstap
          jstap last edited by

          Your pivots are not set to record an ID, they are set to record price:
          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
          • Labutters
            Labutters @Labutters last edited by

            @Labutters @jstap Okay thank you! Gave that a try and it still doesn't seem to work. I feel like my logic is correct here but no lines are being drawn. Is there something I should look into i'm missing?

            https://fxdreema.com/shared/wTV7T0KK

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

              That's still using price and ID, saving the candle time then use it from time, ID is static but IDs change, time is static but doesn't change.

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

                I am so sorry King but I have read the back 10 times and can't seem to understand. Would you be able to give me a quick example?

                I even asked chatgpt to explain it to me like i'm 12 lol

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

                  I use chatgpt all the time, ask it 5-year-old questions, and you quite often get a usable answer. This is an example of what I mean, I forgot how some blocks need adding to to do everything you need: https://fxdreema.com/shared/lAuzqMT7c

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

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

                    @jstap oh wow thank you! This is super helpful! Does this look okay to you?

                    https://fxdreema.com/shared/jS6M8flbc

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

                      Yes it looks good, is it working as needed?

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

                        @jstap I could not show my gratitude for your help! I think I'm starting to understand. I think it's working properly but the line is static and not being redrawn every time the condition is met. I'm very close to figuring it out but not quiet there.

                        How would I work around this?

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

                          Move the once per bar just above the modify block

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

                            @jstap I actually completely re worked it using @miro1360 candle formations examples and modifying the variables to save the candle id's. For some reason, using conditions and creating the Bull/Bear blocks are easier to work with as variables compared to the actual built in Bull/Bear blocks!

                            Thank you again for your help!

                            Will turn to solved

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

                              @Labutters 👍

                              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

                              L
                              S
                              A
                              F

                              18
                              Online

                              146.7k
                              Users

                              22.4k
                              Topics

                              122.6k
                              Posts

                              Powered by NodeBB Forums | Contributors