I need a simple Expert Advisor which can realize when a “Take Profit” in platform (can be for any orders and positions) is triggered and open a message box ???
I am sure it’s very simple EA but as I am beginner I’m very confused how to do it ? It caused a bad problem for me . Could somebody please help me about this ?
Why not just set the TP when you place the orders with your broker ? Maybe I am misunderstanding the question. Do you want an EA that closes open positions when a certain predefined TP has been reached (obviously requiring metatrader to be open and the EA looping through your open positions) ?
When the open position closes because it reaches TP then you want to delete the pending orders? There are plenty of scripts and EA’s which are more than likely already built and tested that can do that. Search the online library in metatrader.
Sorry mate for trouble . I have done lots of search . i couldnt find something good .
This is my scenario:
EA at first open a buy position with current price and 4 pending buy order below that (below current price) with 100 pips difference .
I need when one of these orders including the current open order or the pending orders Reach to its take profit , all pending orders will be deleted and EA start again and creates a new buy position and a new set of pending orders .
Now you know why I need to have a real time check to realize when a Take Profit is reached .
Can you help me ? I need the command for that IF which realize a TP is reached .