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.
    • Z
      Zinho @miro1360 last edited by

      @miro1360 Hi Miro! I am going to try! But I need to know, you are the best. Thank you for helping us!!

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

        @miro1360 Hi Miro, I appreciate so much your help. I am trying to create a sell and buy pending orders.

        I tried to put sell pending orders in the last bottom and put buy pending orders in the last top, mas I donΒ΄t know what is happening. I was so difficult, could you help me to create those orders, or at least one (buy pending order or sell pending order).

        Bellow the project!

        https://fxdreema.com/shared/UGVmGrF9

        Thank you a lot!

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

          here are limits and stops pending orders, one is above current price and another is below current price, so you should compare current price with desired zigzag price and with condition decide which pending order you want to open ...

          next you need some comparison in zigzag prices, and when these prices are changed - new zigzag leg is comfirmed and after this comfirmation you need to change your current pending order (delete it and create new one in another price, or wait for another one pending order)

          so as result, this can be pretty complicated algorithm, because here are more orders combinations (buy limits, buy stops, sell limits, sell stops), + zigzag variations ...
          I can assure you that it is possible to do, but you will need to make more testing efforts with every small section of changes πŸ™‚ I am sure that using my trick for zigzag from this tutorial, you can do all with pending orders πŸ™‚

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

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

            @miro1360 Thank you! I am going to try again. I would like to learn more about how create EA MQL5. Do you indicate an intermediate or advanced course for this? I know to create basic EA's like MM, stchocastic, RSI and other, but I would like to know more deeply. I like the strategy of breakouts, dow theory, and is so difficult to create. Do you have a recommendation?

            Thank you!

            Darlan

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

              I dont know if some course can help you because here is nothing specific how it can be learned by following steps, there are few abstract things connected with creativity using logic πŸ˜„ ... you can follow few examples and tutorials with the assumption of capturing the principle of connecting (or to uncover the possibilities) blocks in fxdreema into logic assemblies ... after this assumption you must start with your own creativity ... if you have a big complicated goal, you must (not should, but you must) divide it into smaller working parts and test every part if it is working as you expected, when right working is confirmed than you can connect these parts into bigger and bigger assemblies and test them again for logic conflicts (you can test it with visual tester, plotting graphical objects and comments as temporary auxiliary) ... it is the same as LEGO, but with extension to create own "blocks" πŸ˜„

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

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

                @miro1360 Thank you!

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

                  @miro1360

                  Thank you!

                  I have a question, could you help me? I am using zigzag indicator that you send for me. Is ok, my only problem is about the tests. When I run the test in "Open prices only" is ok, but I don't like this test. I like at least OHLC 1 min. But when I run 1 min OHLC the tests takes a long time. I don't what happen,. When I remove the zigzag structure the tests run well.

                  Could you help me?

                  Thank you!

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

                    zigzag needs a lot of calculation, and it is reason why it is slower ... the faster procesor you have (+SSD disk) the faster test result can be ..

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

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

                      get time ...

                      https://fxdreema.com/forum/topic/5810/how-to-get-the-candle-time-of-previous-ll-on-zig-zag-indicator

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

                      1 Reply Last reply Reply Quote 0
                      • chance4373
                        chance4373 @Zinho last edited by

                        @zinho

                        You can speed this up considerably if you use the "Once per bar" block before the calculations. https://fxdreema.com/shared/jLyXfD5Ed

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

                          in case Once per bar do not use values with ID=0 πŸ˜‰

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

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

                            @chance4373

                            Thank you! I will try using Once per bar.

                            1 Reply Last reply Reply Quote 0
                            • H
                              Hadees last edited by Hadees

                              [][][][][][][][][][][

                              1 Reply Last reply Reply Quote 0
                              • S
                                surachefx last edited by

                                Hi Miro,
                                This is really great stuff and what I was looking for.

                                Is there a way to label the waves so we know which one is actually the L1 and H1 of the structure?

                                What I want to do is have an impulse up, (top is H0), then next move down (L0), then next move up (H1), then sell here and take the L1 down. The problem i am having is I don't actually know which one the calculation is actually labeling as L1.

                                Thank you in advance and for this great script

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

                                  the whole project is about this what you asked ...
                                  variables:
                                  var_zz_H0_ID, var_zz_H1_ID, var_zz_H2_ID
                                  var_zz_L0_ID, var_zz_L1_ID, var_zz_L2_ID

                                  if you compare them as this:
                                  var_zz_L0_ID < var_zz_H0_ID, if the condition is true, then you know that L0 is the last zigzag leg (pointing down), and you know where is L1
                                  if the condition is false, then you know that H0 is the last zigzag leg (pointing up), and you know where is H1

                                  ID is not the price, it is ID of specific zigzag candle ...
                                  prices are variables without ID (var_zz_L0, var_zz_H0, ...)

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

                                  1 Reply Last reply Reply Quote 1
                                  • S
                                    surachefx last edited by

                                    Hi Miro,
                                    thank you for the reply.
                                    Maybe I am not understanding. for instance this is the script I have added a few blocks for the sell.
                                    https://fxdreema.com/demo/simple

                                    It sells below what i believe is the H1.
                                    0_1557227109417_sells.JPG

                                    What I hope hoping to achieve:
                                    BUYS
                                    0_1557227473057_Buys.JPG

                                    SELLS
                                    0_1557227719264_sells1.JPG

                                    How possible is this? Thank you!!

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

                                      H1 and L1 are not future points, they are past points ... candles are marked 0,1,2,... from left (0 is the most recent candle) to the right (past candles)

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

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

                                        @miro1360

                                        Thank you again.
                                        Okay so it didn't work.
                                        This is what I have so far. Also I changed the Depth variable from "12" to "6" to capture the smaller zigzag.
                                        https://fxdreema.com/shared/FSzlRw9ud

                                        What I want to achieve is when you have a zigzag, when it completes the 3 wave structure, you look for 6 candles dropping with lower highs and lower lows consecutively, then you BUY once the high of the lowest candle (1) is broken.

                                        Below is a picture of the structure.

                                        0_1557913535982_script 5.JPG

                                        Can this be done?

                                        Thank you so much!

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

                                          because you messed up it completely πŸ˜„ ... I told many times, and I repeat myself once again and again: zigzag is not simple for beginners (or not coders)
                                          ... and I'm banging my head on the table, why the hell I got this idea to create the zigzag thread, because instead of explaining how the zigzag works I do the whole project for people from scratch πŸ˜„ ...

                                          https://fxdreema.com/shared/8Xeio059c

                                          0_1557938196119_5c666c1f-015f-4891-895b-da4b30b5b849-image.png

                                          0_1557939136938_fb49a3ff-595a-466f-b9d9-14931961931d-image.png

                                          0_1557939387072_1f775281-1171-498b-ba1b-82618a610005-image.png

                                          Anyway, this is my last reply for this ZigZag thread. Everything was covered here into details with many examples ... If you does not understand zigzag, read it once again, and once again. Notice also how important are block IDs - order. If you failed, give a break for zigzag and do anything other. Come back after a few days and read everything again and give a new try.

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

                                          S N VHV-Profit-Masters 3 Replies Last reply Reply Quote 4
                                          • S
                                            surachefx @miro1360 last edited by

                                            @miro1360

                                            You are a life saver. Thank you so much for clearing this up. I will stop annoying you on this now.

                                            πŸ™πŸ™πŸ™

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

                                            Online Users

                                            R
                                            S
                                            D
                                            V
                                            O

                                            14
                                            Online

                                            146.7k
                                            Users

                                            22.4k
                                            Topics

                                            122.6k
                                            Posts

                                            Powered by NodeBB Forums | Contributors