Make an ea for these two indicator

 

plz, could someone help me to make an ea depend on these two indicators

first indicator ( indicator#1 ) this to decide the trend

second indicator ( trend wave ) thisto enter the trade

1- buy ( first indicator green it means buy signal --- then wait signal buy from second indicator trend wave to enter ( we enter all signals buy from trend wave indicator while first indicator green .

2- sell ( first indicator red it means sell signal - then wait signal sell from trend wave indicator to enter the trade ( we enter all signals sell from trend wave indicator while first indicator red

3- we close buy and sell order (if any opposite signal come from one of two indicators )

two indicators + example for buy and sell signal

indicator__1_1.mq4 trendwave.ex4

Files:
trendwave.ex4  8 kb
1_7.jpg  355 kb
2.jpg  356 kb
Reason: