fxDreema

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

    Fibo + ZigZag

    Questions & Answers
    0
    19
    756
    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.
    • P
      Pheaktra Capo last edited by

      Hello everyone.
      I wonder how can i define Fibo for BUY(low to high) and SELL(high to low) based on ZigZag while the it always have H0 and L0 at the same time?

      P 1 Reply Last reply Reply Quote 0
      • P
        Pheaktra Capo @Pheaktra Capo last edited by

        @pheaktra-capo How to fine current leg? (L0 or H0)?

        roar 1 Reply Last reply Reply Quote 0
        • roar
          roar @Pheaktra Capo last edited by

          @pheaktra-capo ZigZag only has a value when the line makes a corner. All other candles have value of 0. So to find a corner, make a loop that checks all candles backward in time as long as needed to get a non-zero indicator value. Then you can find out if its an up or down corner using the secondary buffers.

          Need small help? Tag me in your post
          Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

          P 1 Reply Last reply Reply Quote 0
          • P
            Pheaktra Capo @roar last edited by

            @roar Hello.
            You mean check back xCandle to make sure the current price is higher than LO or lower than H0 right?
            Please share me example project . . . .

            roar 1 Reply Last reply Reply Quote 0
            • roar
              roar @Pheaktra Capo last edited by

              @pheaktra-capo check back to find a non-zero value of the indicator itself. I dont have any example project

              Need small help? Tag me in your post
              Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

              P 2 Replies Last reply Reply Quote 0
              • P
                Pheaktra Capo @roar last edited by

                @roar ok let me try. Thank you very much

                P 1 Reply Last reply Reply Quote 0
                • P
                  Pheaktra Capo @Pheaktra Capo last edited by Pheaktra Capo

                  @pheaktra-capo this what i have done. But it work not correct.
                  Please help check and adjust it

                  https://fxdreema.com/shared/dByMWs2c

                  1 Reply Last reply Reply Quote 0
                  • P
                    Pheaktra Capo @roar last edited by Pheaktra Capo

                    @roar his what i have done. But it work not correct.
                    Please help check and adjust it

                    https://fxdreema.com/shared/dByMWs2c

                    roar 1 Reply Last reply Reply Quote 0
                    • roar
                      roar @Pheaktra Capo last edited by

                      @pheaktra-capo you keep increasing a candle ID in a loop, but you dont use that ID in the indicator.

                      0_1675251642035_e98a917e-f3c2-4304-804a-d7ea866a9559-image.png

                      Need small help? Tag me in your post
                      Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

                      P 2 Replies Last reply Reply Quote 0
                      • P
                        Pheaktra Capo @roar last edited by

                        @roar ohhhh yeah i see let me check again

                        1 Reply Last reply Reply Quote 0
                        • P
                          Pheaktra Capo @roar last edited by Pheaktra Capo

                          @roar it is still dont work.
                          I want to ask other thing. How can i capture price of some moment and use it in the future?
                          EX: now 8:00am, highest value of Candle[1 to 20] is 1.12000.
                          Some moment later, few day maybe, highest value of Candle[1 to 20] is 1.13000. How can i get that value 1.12000 in the past to work now?

                          roar 1 Reply Last reply Reply Quote 0
                          • roar
                            roar @Pheaktra Capo last edited by

                            @pheaktra-capo get value of candle[6 to 20] or something... Why do you need exactly that value and not the new high?

                            Need small help? Tag me in your post
                            Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

                            P 2 Replies Last reply Reply Quote 0
                            • P
                              Pheaktra Capo @roar last edited by

                              @roar 0_1675277519292_aa4e28ff-d0c3-45fa-9246-3b321b2d818c-image.png
                              As you can see, Condition is if:
                              Candle[2]&[3] < Mid line(yellow) && Candle[1] X> Mid line(yellow) ==>> Buy Now
                              As the moment of candle[2]and[3] was above Mid Line. But for current situation, the price of candle[2]&[3] was stay below Mid line(yellow) and it trigger the condition.
                              You can see it is not correct what i want.

                              1 Reply Last reply Reply Quote 0
                              • P
                                Pheaktra Capo @roar last edited by Pheaktra Capo

                                @roar 0_1675277943228_697d9b69-5408-47a0-be16-3a4f4c3e5bf7-image.png

                                roar 1 Reply Last reply Reply Quote 0
                                • roar
                                  roar @Pheaktra Capo last edited by

                                  @pheaktra-capo just use the "candle id" setting in your condition block

                                  Need small help? Tag me in your post
                                  Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

                                  P 1 Reply Last reply Reply Quote 0
                                  • P
                                    Pheaktra Capo @roar last edited by

                                    @roar Yes i did. But as time goes by, value of candle[2]&[3] become lower than current value of Yellow line

                                    roar 1 Reply Last reply Reply Quote 0
                                    • roar
                                      roar @Pheaktra Capo last edited by roar

                                      @pheaktra-capo you can save the datetime value if needed, but why do you need to come back checking those candles in the future?

                                      Why doesnt it work simply like this https://fxdreema.com/shared/7nj8NulMd

                                      Need small help? Tag me in your post
                                      Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

                                      P 1 Reply Last reply Reply Quote 0
                                      • P
                                        Pheaktra Capo @roar last edited by Pheaktra Capo

                                        @roar 0_1675279763936_bd7ae9fd-09b0-4859-a39b-9a4321e1eb19-image.png
                                        This is the correct one.
                                        CandleClose[2]&[3] < Yellow && CandleClose[1] X> Yellow == Buy Now.
                                        But the last picture above, it is something not correct

                                        It was:
                                        CandleClose[2]&[3] > Yellow
                                        But after few Candle later, it was count as bellow Yellow Line

                                        roar 1 Reply Last reply Reply Quote 0
                                        • roar
                                          roar @Pheaktra Capo last edited by

                                          @pheaktra-capo you can compare last candles to last values of the yellow line, or
                                          compare last candles to current value of the yellow line, or
                                          compare current candle to last values of the yellow line.

                                          Just use the candle ID.

                                          Need small help? Tag me in your post
                                          Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

                                          1 Reply Last reply Reply Quote 0
                                          • 1 / 1
                                          • First post
                                            Last post

                                          Online Users

                                          P
                                          M
                                          B
                                          H
                                          S

                                          13
                                          Online

                                          146.8k
                                          Users

                                          22.4k
                                          Topics

                                          122.6k
                                          Posts

                                          Powered by NodeBB Forums | Contributors