fxDreema

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

    How to use ZigZag [advanced]

    Tutorials by Users
    19
    69
    46708
    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.
    • M
      miro1360 last edited by

      After longer time I am adding new trick how I am using ZigZag indicator in fxDreema.

      First something about ZigZag. ZigZag is indicator mostly used for plotting another lines based on its highs/lows, or placing pending orders here.
      ... but it is repainting indicator == dont expect 100% accuracy.
      Most repainted is current leg - it can be used for comparing with previous legs (if last leg value is more or less as leg previous, but last leg is not good to use it for placing pending orders). Pending orders is good to place into previous legs.

      This current leg can have two scenarios, these (and it is important for understand) :
      0_1504568194979_upload-5ec4cc8e-a16f-4123-ac20-82d243bb8033

      0_1504568224706_upload-7bd36fd3-7c4c-467c-be7b-0ef06c667153

      Question is, is it possible in fxdreema to find, if current leg is "low" or "high" ?
      Yes, it is, but it is little tricky.
      In fxdreema can be legs found by ID. But you cant find if last leg is L0 or if it is H0. You can not use simple condition for comparing current price with zigzag leg ID(0).
      For right comparison you need some small algorithm which create order for IDs (or in another words, find if L0_id is > or < as H0_id).

      For this I create small algorithm which write zigzag candle ID values into variables called var_zz_H0_ID, var_zz_L0_ID, .......
      parameter zz_ID_interval is candles interval, where searching is done
      (note, important are only H0/L0 IDs, but I am creating this from my previous project where I had also H1 2 and L1 2 IDs, just for this example ignore H1,2 L1,2):
      0_1504568862649_upload-8699c6d5-60b3-465c-a653-8cd1c1b7d8e2

      After this algorithm I can compare/find if last zigzag leg is Up/high or Down/low:
      0_1504569027173_upload-970c67dc-7da1-4c48-98c5-87767fc76063

      When I know this, I can use zigzag prices in right way (here for pending orders or ploting lines where current (not closed) zigzag leg is ignored) :
      0_1504569151794_upload-e0f02ede-783a-436a-80af-9e2efda56f49

      Inputs and variables used in project:
      0_1504569203628_upload-113f66e3-88b1-4338-a065-ed58c9e3bd0f

      0_1504569211400_upload-09f34ee5-1ea2-4a4e-930e-a7e767673921

      And result: ploting lines in tester where ZigZag current leg is ignored:
      0_1504569254690_upload-fcd33cc7-d3fb-411f-90f7-034faf07e409

      0_1504569261141_upload-5198fef5-cf44-4f31-a7bd-7d480ab6d503

      Shared project:
      https://fxdreema.com/shared/8eW5li27d

      Important note: Algorithm in this project was created fast, is not perfect, is slow and crazy behaviour can be expected. It can be done in better way, but I never needed another form 😄

      Have a fun 🙂

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

      J D 4 Replies Last reply Reply Quote 3
      • J
        Jennifer @miro1360 last edited by

        @miro1360
        miro you are a real life saver
        this is what i have been looking for

        ===>Jennifer Syn<===

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

          @miro1360
          so this is for finding if the current leg is in upward direction or in downward direction right ?
          0_1504619770266_c1.PNG

          and this is for drawing the lines on high and lows right ?
          0_1504619854015_c2.PNG

          and what is this ?
          0_1504619892607_c3.PNG

          ===>Jennifer Syn<===

          1 Reply Last reply Reply Quote 0
          • J
            Jennifer last edited by

            by the way i just tested it and it works perfect

            ===>Jennifer Syn<===

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

              glad to hear that it is working for you 😎 ... not connected block (alone) is not added into EA, I am using this Pass block only for adding scroll bars into fxdreema working area 😄 (it have nothing to do with EA functionality)

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

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

                @miro1360
                so it wont be a problem if i remove this alone block and add my own sauce?
                i mean removing this block wont effect the functionality , right ?

                ===>Jennifer Syn<===

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

                  yes you can remove it 😄 ... dont worry to do things and test them 🙂

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

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

                    @miro1360 😆 😆 😆 😆 😆 😆 😆 😆 😆 😆 😆

                    ===>Jennifer Syn<===

                    1 Reply Last reply Reply Quote 0
                    • J
                      Jennifer last edited by

                      hello . can you please help me out with a little thing?
                      actually i have an indicator it draws arrows on the zigzag high and low
                      could you please modify it in a way that it does not draw arrow on the leg of the zigzag
                      0_1504692041489_arrow.mq4
                      i would have done it myself but i dont have any programming skills

                      ===>Jennifer Syn<===

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

                        it draw arrows not exactly on zigzag, it draws them based on highest/lowest thing ... 😄
                        you need hide arrows? just change in settings color to None (in EA clrNone) ...
                        0_1504702339504_upload-78912ecf-5fc5-4c4f-994b-ddf5feca1b2a

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

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

                          @miro1360
                          no no
                          i dont want all the arrows to disapear
                          i want only arrows that appears on the leg to disappear

                          ===>Jennifer Syn<===

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

                            modification like this is something as create new indicator from scratch,
                            because it needs a lot of things == it cost a lot of time and I have not this time ... 😄 ...

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

                            1 Reply Last reply Reply Quote 0
                            • J
                              Jennifer last edited by

                              hmmm okay thanks

                              ===>Jennifer Syn<===

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

                                @miro1360
                                hello just tried to use this in an ea but 55 errors i know i must be doing something wrong can you help me out here?0_1504975851625_Capture.PNG

                                ===>Jennifer Syn<===

                                1 Reply Last reply Reply Quote 0
                                • J
                                  Jennifer last edited by

                                  never mind
                                  i forgot to declare constants and variables , its good now

                                  ===>Jennifer Syn<===

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

                                    @miro1360 Hi Miro! Do you have this algorithm for MT5? I can't make it work...

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

                                      I have not it for MT5 ... not yet ...

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

                                      L 1 Reply Last reply Reply Quote 0
                                      • Z
                                        Zinho last edited by Zinho

                                        @miro1360 Hi Miro, I am trying hardly to make this for MT5. I did all things that you show but when I try to create the EA I receive this message:

                                        Compilation errors
                                        'zzTF' - cannot convert enum

                                        Could you help me?

                                        Thank you!

                                        1 Reply Last reply Reply Quote 0
                                        • Z
                                          Zinho last edited by

                                          @miro1360 Here the project:

                                          https://fxdreema.com/shared/NzdroYNic

                                          Thank you!

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

                                            hi, you must do another system for crazy MQL5 with few changes in logic, something like this:
                                            (import project to see details in externs-inputs) https://fxdreema.com/shared/jmgcWOcIc

                                            0_1518483767203_b9d7a5ad-cfe7-4c64-b48b-6363e56a111d-image.png

                                            0_1518483665267_1bd9aece-7ca9-4b5d-8820-c03e6ae50728-image.png

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

                                            Z T 2 Replies Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 1 / 4
                                            • First post
                                              Last post

                                            Online Users

                                            K
                                            E
                                            D
                                            E
                                            M
                                            H
                                            C
                                            I
                                            I

                                            26
                                            Online

                                            146.6k
                                            Users

                                            22.4k
                                            Topics

                                            122.6k
                                            Posts

                                            Powered by NodeBB Forums | Contributors