Two things that don't work
-
I retook this old MT5 project and I would appreciate some help about two parts that don't do what they are supposed to do:
https://fxdreema.com/shared/8qdJwCRLb
-
The first one is a wonderful miro1360's suggestion. I use the zigzag indicator on blocks 9, 10, 11 and 12. There I can identify if there is a local high or low and that activates an on/off switch used on blocks 24 and 84. When miro1360 suggested me that structure for MT4 it worked perfectly, but apparently it doesn't on MT5.
-
The whole structure on tab 'on Trade'. I correctly capture the ticket number of every first buy and sell through blocks 29 and 30 (see 'on Tick' tab). The question is that once those trades are closed their ticket numbers should be erased as per blocks 52 and 56 (see 'on Trade' tab), but they don't.
Once again, any help will be much appreciated.
-
-
Apparently the 'on Trade' part should work properly according to what I can read on other threads. I simply can't see why it doesn't work here.
-
you must create another logic in onTrade event ...

the rest about zigzag, I am not sure about MT5 .... check this:
https://fxdreema.com/forum/topic/5060/how-to-use-zigzag-advanced/20 -
Interesting. I'll take a look at it. Thank you very much.