ZigZag compare H1 vs H2 and L1 vs L2
-
Hi FxDreema Community,
I would like to seek your assistance again relating to this Zigzag indicator. What I want to happen is to get the value of H1, H2, L1, L2, and so on. Use their values to determine the trend of the market whether it is going up or down. I know this may involve variables and such, so I do hope for your help as I am just an ordinary person.

I saw two post relating to Zigzag, but it is for another use case.
https://fxdreema.com/forum/topic/6412/aaaaand-the-zigzag-indicator-again
https://fxdreema.com/forum/topic/5060/how-to-use-zigzag-advancedAlso, I know that the current leg is repainting. Thus, I am only interested on the previous legs at the moment.
Regards,
-
@fideld003 Miros zigzag advanced contains all you need to do this, download the MQ file, import back into FX so you can add/amend. You can add mote points like l4, l5, l6 etc but things may start to not work correctly, you can also get this from a standard condition block but only Miros code will give you whether the current leg is on the way UP or DN.
-
you really dont need to draw any of it. Miro's is very complicated because he is constantly trying to put a ID to a value. If you only need to see the orientation is in a right direction, stick with the values of the indicator. I would just do it logically to make sense for you and then use a "buy now" as a way to verify if it worked or not.
For a ZZ to tell you if market is up or down, in its simplest form you just logically compare ZZ vs ZZ, nothing crazy.
Conditions required for market is in a uptrend:
ZZ HH 1 is above ZZ LL 0, and
ZZ HH 0 is above ZZ HH 1Conditions required for market is in a downtrend:
ZZ LL 1 is below ZZ HH 0, and
ZZ LL0 is below, ZZ LL 1As @jstap said however, Miro built an amazing little tool to not only visually display where each level is, but also gives you a referenceable ID rather than a value. That would be the way to go, just adding more numbers if required. But given the Elliot Wave theory is why I think the stopped at 4 and 4 for HH and LL.
-
@tipsywisdom Don't think this will work? I say this because H1 is always above L1 regardless of weather price is going up or down, if L1 is above L2 then price is going up but this could just be a durance in the swing.
-
@jstap H1 can be below L1 in up movements...
edit- One of the strats I built with the zigzag I was waiting on that specific action...if memory serves me right...I might be wrong, its in the discord somewhere. ill have to look
-
@tipsywisdom Very good, like to learn things I wrong with, it's just in my knowledge as a H goes towards a L it becomes L0 or the previous L0 repaints.
-
Hi @jstap @TipsyWisdom,
Just wanted to update you that I found the latest version of Zigzag by Miro. That was the project I needed as it was more detailed and clear. Also, I was able to do what I wanted to happen. Anyways, I just wanted to thank you for responding.
Miro's latest project(2 years ago)
https://fxdreema.com/forum/topic/8898/zizzag-trendlinesRegards,
-
@fideld003 3 Glad you found what was needed.
-
@jstap Though, my current issue right now is doing backtesting. When I do the "Skip to," the EA stops unless I drag it to go forward. lol.
-
@fideld003 Not sure what you mean by skip to.
-
@jstap "Skip to" to do a fast backtest. Not sure if zigzag is really not compatible with backtesting. So what I do is look for different patterns and run it there.

-
@fideld003 Never used it, either start on a different time or painfully wait : )
-
@jstap I'm painfully waiting. Hahaha! It iz what it iz.
-
Hi @jstap and @TipsyWisdom,
I got a question, so I would like to also get the H1, H0, L1, and L0 Awesome Oscillator values. I just wanted to make sure as when I temporarily turned off the Original Draw Text H2 and so on and turned on my version for testing, it is not showing any text on the chart. Do you think what I did was correct or there should be a better approach to this?
The original was like this:

My version is something like this, I boxed them in red for faster reference.

-
@fideld003 I have never tried this so don't really know. The line with iCustom is looking for ZigZag indicator information, you will need to separately recreate the ZZ information with just AO information, will probably work but will have to see by trial and error.
-
@jstap Yeah, I actually tried to separate them, but I don't think I got the syntax of it right.
!