How to know BUYLIMIT success

 
I want to create an EA
after making buylimit1
when buylimit1 success, it will execute buylimit2
 
In MT4, the buylimit becomes a buy.