Help to wait condition in EA

Mq4_programing
9
Mq4_programing  
Hello.I hope you are good.Am new in programing and i have problem about crossover. I use two différent crossover of moving average.I would to code in EA after the first crossing the robot waits for the second crossing to open a position.  If after the first purchase crossing the second crossing which follows is a sell crossing the robot does not buy. In the same way after a first sell crossing the robot the next sell crossing to sell. If the crossing which follows the first  Selling crossover is a buy the robot does not sell.
Keith Watford
Moderator
31035
Keith Watford  

Please take a screenshot, do not post photos of your screen.

Is your query concerning MQL4? It appears that it may be from your user name.

Topics concerning MT4 and MQL4 have their own section.