How to place an order on an event

 

Hello, 

I would like to place an order when an event occurs, for example when my previous order hits either the SL or the TP. 

Is this possible in mql4?

Thanks! 

 
Yes. It can be done.
 

How can this be done? could you give me a small example with a TP event?

Thanks 

 

Check market for active orders
   - Save tickets

Check history orders for closed tickets (those you saved)
   - if closed: Open new order.

 
dem_ec:

How can this be done? could you give me a small example with a TP event?

Thanks 

There are lots of free EA codes in the codebase
Reason: