How to use ZigZag [advanced]
-
@jstap If possible please correct my EA and share the link. Thanks Dear. Humble request
-
@jstap

Sir too many orders open and closed, i think its because of if trade command because before if trade its was.Can you please correct my mistake in EA
-
@muneeb00 I just noticed this is in Miro's thread, start a new one and put the shared link in there, I will see what is wrong.
-
How do I do this?

-
@svoki Down load the version you want MT4/MT5, test in demo and draw a line (trend between points, horizontal an a point), this will show how things will work, put the ZZ on your back test chart to visually check whats happening.
-
Good Morning Miro ,
Hope you are well.
Thanks for the Fantastic Code above, ive made some changes to get it to work on multiple timeframes but my only concern is on the tester it will work and get the value for the weekly and daily Zigzag current leg and then look at H4 before looking for trades.
But to run it on MT5 live chart i get an error ( 1. Cant load custom indicator error 4022.... 2. Cant get value from Indicator Handle=10 ) do you perhaps know what might cause this issue ?
Or do you perhaps have a solution to get the value for the higher timeframe that might work.
-
Sadly miro is not present in these forums for more than one year now.

-
@miro1360 said in How to use ZigZag [advanced]:
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

Using this method, it works fine most of the time, but when I was testing it, I noticed that it would occasionally throw an error. For example, when I tested EURUSD_M15 in ICMarkets with the default parameters, I got an error at 17:15 on 2023.01.02 and a few minutes after that, the ZZ indicator on the chart was going down, but the result of this algorithm was showing up, so I changed the zz_ID_interval from 200 to 49 and it showed up correctly! . What is the reason for this, please? Can it be solved? I want it to be correct all the time.
-
@miro1360 Hello, I would like to know if you have ever had the boss and choch drawn since I think it can be achieved with a logic very similar to the one you are applying in this EA