Download MetaTrader 5

Placing same market order by expert advisor

To add comments, please log in or register
Are you accustomed to using the standard library? MQL5 has one!
S M Jaber Rahman
246
S M Jaber Rahman 2014.01.29 20:53 
Is it possible to make an EA to place an exact order of a trade after hitting the TP?! For example, imagine that I had a gbp/usd limit order at 1.65593 with a 10 pip TP then eventually the order got executed & hit the TP. As soon as the excuted order hit the TP the EA will place another exact same limit order at 1.65593. I guess It would be a simple coding but would help me greatly.
Simon Gniadkowski
Moderator
17998
Simon Gniadkowski 2014.01.29 21:08  
jaber70:
Is it possible to make an EA to place an exact order of a trade after hitting the TP?! For example, imagine that I had a gbp/usd limit order at 1.65593 with a 10 pip TP then eventually the order got executed & hit the TP. As soon as the excuted order hit the TP the EA will place another exact same limit order at 1.65593. I guess It would be a simple coding but would help me greatly.
Yes, assuming it meets these requirements: Requirements and Limitations in Making Trades
whroeder1
14470
whroeder1 2014.01.29 22:12  
No because you Buy at the Ask and Sell at the Bid. When your buy order hits it's TP the Bid=1.65593, but you have to buy at Bid+spread, or you could place a BuyLimit at that price but then the market must fade by the spread to be opened.
Alain Verleyen
Moderator
30707
Alain Verleyen 2014.01.29 22:25  
jaber70:
Is it possible to make an EA to place an exact order of a trade after hitting the TP?! For example, imagine that I had a gbp/usd limit order at 1.65593 with a 10 pip TP then eventually the order got executed & hit the TP. As soon as the excuted order hit the TP the EA will place another exact same limit order at 1.65593. I guess It would be a simple coding but would help me greatly.

Of course it's possible. See Jobs section if you need a coder.

Please don't double post between forums.

To add comments, please log in or register