My EA Zigzag did not run as I want
-
Sorry, but once again I need your help here. Again I ask, if the language I couldn't understand well because I use a translator.
All right! I include here a picture to explain my problem to make it more clear.

I try to make a zigzag EA that can act as I would describe in the picture above. but I can't make it. I have run out of ways to make it buy or sell when the line of zigzag 5 touching the zigzag's line of 50.
Thanks for the help and here my project.
https://fxdreema.com/shared/2EWl3IOUdHope I get a response from anyone here.
and Please give me a simple example -
Well, I'm not a good friend with this indicator. I always need to remind myself how everything works. But if you don't know what exactly happens in that Condition block, put those values in a Trace block, so you can actually see them in realtime and decide how to compare them.
I don't like blocks 9 and 10. Take a look at this: https://fxdreema.com/demo/mt4-wrong-closing-rule
-
@fxDreema Thank you for answer. Although unable to solve my problem now, but, I believe that the fxdreema could resolve it at the future. I am fully convinced that zigzag indicator is the most perceptive, wise and complete among all indicator. Therefore I hope if there are solutions for my problem now.
Thanks!
-
@Ahlanbika
you probably dont know how exactly zigzag works .... last leg is reapainting, so "current value" can never cross itself ... please run zigzag indicator in tester and see its behaviour ... -
@miro1360 Thank you for your advice. I will try to see how its work by using tester. I am sorry for inconvenience you all.
But I still hope if you can give an example about how to make pending in place that I mark in the picture above. I want after zigzag 5,1,0 while the opposite direction of zigzag 50,1,0 then the ea will be pending (limit) on place I mark with circle. For example, The EA pending will happen when the price has reached 130.481. See examples of image I attach above.
I want every time when there is a turnaround I mean when there is sign of reversal then pending would happen. Despite the reversal occurred several times.
So I will make this EA as EA for pending limit and not to open position on current time.
I really hope.
I'm sorry to trouble. -
actually it is problem
... because here is something like high ID , low ID and these IDs reprezenting high/low of zigzag ... but ID 0 means first High or Low ... and from core of this logic current ID is sometimes High 0 and sometimes Low 0 ... that means, you need some separated custom code which can detect previous High when (High 0 == current zz value)
...
working with zigzag is really complicated and I dont recommend it for people who can not working with basics mql code, if you are coder you can resolve it but can take a lot of time ...
and it is why this simple project can not working properly ....
https://fxdreema.com/shared/ymOGQbagb -
@miro1360 Thank you! I will try to emulate the example you have provided and try it with tester before I start using to trade without caring.
Thanks once again to you and fxdreema.
-
@Ahlanbika Thank u very much! by the example you provide it above I feel i know now and begin understand. Thank you!