fxDreema

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

    Aaaaand...the ZigZag indicator again!!!

    Questions & Answers
    2
    10
    5377
    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.
    • isp00rt
      isp00rt last edited by

      I recently discovered this outstanding thread about Zigzag indicator from miro:

      [https://fxdreema.com/forum/topic/5060/how-to-use-zigzag-advanced]

      The only thing I don't find there is how can I capture the proce level of the active leg (what miro calls L0 or H0). I know it changes over time, but I need to know at what price it is right now. I tried to do it this way:

      0_1540813835932_00.png

      ...But to no avail. No price level is shown, only a permanent result of 0.

      Any hint?

      1 Reply Last reply Reply Quote 0
      • M
        miro1360 last edited by

        this zigzag value is being checked on the candle 0 ... it has value until it is on that candle, but when zigzag is not on first candle, the value is lost ... you can prevent this loss by using temp value:

        0_1540822143078_9910416f-9a65-4097-9ad5-11459a7bd34f-image.png
        this is using two variables .....

        as the alternative with one variable you can use condition check directly and than write zigzag value to the variable - but this calls zigzag two times and is bit slower as the first variant with two variables 😄

        Between trading and gambling is a very small gap, be careful.

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

          Interesting. I'll try it. Thank you very much...again! 😉

          1 Reply Last reply Reply Quote 0
          • isp00rt
            isp00rt @miro1360 last edited by

            @miro1360 Sorry, but it doesn't work.

            https://fxdreema.com/shared/s70kPdOGc

            1 Reply Last reply Reply Quote 0
            • M
              miro1360 last edited by

              😄 it is ... but wait for next value (the first logically can not be read if is not located on candle ID 0 imediatelly after EA is placed on the chart)
              0_1540893175253_5fc456bc-c69b-4582-b4d3-928852c2137b-image.png

              Between trading and gambling is a very small gap, be careful.

              1 Reply Last reply Reply Quote 1
              • isp00rt
                isp00rt last edited by

                I'll take a new look on it. Thank you.

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

                  Once again...miro was right! 😉

                  Thank you very much.

                  1 Reply Last reply Reply Quote 1
                  • isp00rt
                    isp00rt last edited by

                    Sorry to bother you again miro, but I have another question. How does this part of the condition block work?

                    0_1541060783808_00.png

                    You say in your tutorial that the 'normal' block conditions let you know a past high/low by ID, but not the current leg. My problem is that I don't understand how that past high/low can be found by ID. I tried this to find it:

                    0_1541061135604_00.png

                    ...and nothing happens. Could you please tell me how can I identify the last high/low?

                    1 Reply Last reply Reply Quote 0
                    • M
                      miro1360 last edited by

                      The block Indicator appear is not the right block for working with zigzag.

                      The block "Indicator is visible" could be theoretically used, but it will not work right.
                      It will not work because H0 or L0 is always present on the chart (and in this block it is not related to the Candle ID) and because of that the condition "Indicator is visible" will be always true. It can be used only for the current leg, which is related to the candle ID in the block.

                      Few notes, because zigzag is a bit complicated:

                      • current leg (0) differs from other legs (1,2, - these are static), because this current leg can be repainted (and often is repainted/updated)

                      • zigzag leg ID is not the same as zigzag on the candle ID, but they are related (zigzag leg ID have its own candle ID and this is changed/moved with each new candle .... moreover the change of zigzag leg IDs changes whole relation)

                      • for identifying the presence of zigzag leg on the specific candle you must use custom code, whereby you check if zigzag leg is present on the past candles (and save such presence - save candle ID on which the zigzag leg is present)
                        (I am doing this in my tutorial, where am I looking if the most present zigzag leg is high - H0 or zigzag leg low - L0)

                      I am not sure, if I remember these things about zigzag right, because it was long ago when I was working with zigzag, and it needed a lot of debugging, because not everything worked as expected 😄 😄

                      Between trading and gambling is a very small gap, be careful.

                      1 Reply Last reply Reply Quote 1
                      • isp00rt
                        isp00rt last edited by

                        Once more, thank you for your great help. 😉

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

                        Online Users

                        E
                        R
                        S
                        A
                        B
                        N
                        M
                        A
                        T
                        V
                        M

                        18
                        Online

                        146.7k
                        Users

                        22.4k
                        Topics

                        122.6k
                        Posts

                        Powered by NodeBB Forums | Contributors