About zigzag arrow.mq4 indicator or just zigzag.mq4 need help for modification

 

Hello cracks,


I try to modify the indicator zigzag arrow (or just zigzag) who is awesome for my needs. Maybe you have an idea, as I am lost.

 

My intention:

 

To place buy or sell arrows on certain conditions for example:

 

if(Close[i] > Open[1+i] //Candlestick Close > Candlestick Open

       Close[1+i] < Open[2+i] //Candlestick Close < Candlestick Open……..

 

……myAlert("indicator", "Buy"); //Alert on next bar open

 

(Just an example)

 

BUT ONLY IF ZIGZAG is in upper Trend

 

And vis versa for “Sell”

 

 

Would be nice if you can help me.

 

Many thanks and Happy Halloween

 

Kind regards

 

Lucien Desalmand

 

Help you with what? You haven't stated a problem, you stated a want. Show us your attempt (using the CODE button) and state the nature of your problem.
          No free help (2017)

Or pay someone. Top of every page is the link Freelance.
          Hiring to write script - General - MQL5 programming forum (2018)

We're not going to code it for you (although it could happen if you are lucky or the problem is interesting).
          No free help (2017)

 
Hi,  You need to validate the trend with any indicator you like (Moving Averages, Supertrend, Bollinger Bands etc..) and use that as a condition.  Be specific with your needs would help a lot.