Download MetaTrader 5

3 Buys

To add comments, please log in or register
Find out the most discussed Forum topics. Have a look at the Wall section!
danielth
63
danielth 2009.12.18 17:40 

When I make 3 market orders in a row to buy 1 lot EURUSD with different takeprofit settings, the position indicates that I bought 3 lots and the t/p value takes the value of last (highest) t/p entered (however, the history of orders indicates the correct t/p for the three orders).

When the price reaches the t/p values, the 2 lower t/p values do not trigger. Only the highest one triggers to finish off the position (the one materialized on the graph with a red dotted horizontal line).

To me this is not really hedging and it should be allowed, as it is with MT4. 

Is there any trick to get around this ? 

Documentation on MQL5: Standard Constants, Enumerations and Structures / Objects Constants / Object Types
  • www.mql5.com
Standard Constants, Enumerations and Structures / Objects Constants / Object Types - Documentation on MQL5
Andrei Moraru
1157
Andrei Moraru 2009.12.18 18:30  
danielth :

When I make 3 market orders in a row to buy 1 lot EURUSD with different takeprofit settings, the position indicates that I bought 3 lots and the t/p value takes the value of last (highest) t/p entered (however, the history of orders indicates the correct t/p for the three orders).

When the price reaches the t/p values, the 2 lower t/p values do not trigger. Only the highest one triggers to finish off the position (the one materialized on the graph with a red dotted horizontal line).

To me this is not really hedging and it should be allowed, as it is with MT4. 

Is there any trick to get around this ? 


You can use pending orders to set multiple TPs and SLs on a single positions.
mgalaraga
6
mgalaraga 2010.05.18 14:58  

I have done this but it did not work. I have the same issue. I have pending orders got filled with same entry and stop. When i adjusted stop loss of the 1st position, the second one came along with it. I got no choice but to exit the trade with both entries.

Anyone who uses the same strategy will definitely wont like mt5 unless this issue is resolved. But its still in its beta phase, so i think its going to be fine.


lee
191
lee 2010.05.24 02:58  
danielth posted  :

When I make 3 market orders in a row to buy 1 lot EURUSD with different takeprofit settings, the position indicates that I bought 3 lots and the t/p value takes the value of last (highest) t/p entered (however, the history of orders indicates the correct t/p for the three orders).

When the price reaches the t/p values, the 2 lower t/p values do not trigger. Only the highest one triggers to finish off the position (the one materialized on the graph with a red dotted horizontal line).

To me this is not really hedging and it should be allowed, as it is with MT4. 

Is there any trick to get around this ? 

hi, danielth

i want to ask

you say that mt5 only close the highest t/p , but what the lots mt5 closed ?  1 lot or  3 lot be closed ?

danielth
63
danielth 2010.05.24 11:09  
chiwing:

hi, danielth

i want to ask

you say that mt5 only close the highest t/p , but what the lots mt5 closed ?  1 lot or  3 lot be closed ?

3 are closed.

But Enivid gave the trick to solve this (use opposite pending orders, and it works).

In fact I do differently now. I have written an EA to send oppposite orders when Bid reaches the desired price level.

LEE Chun Wing
831
LEE Chun Wing 2010.05.24 20:18  
danielth:

3 are closed.

But Enivid gave the trick to solve this (use opposite pending orders, and it works).

In fact I do differently now. I have written an EA to send oppposite orders when Bid reaches the desired price level.

using differnet TP by sending oppposite orders , needing a variable or some checking for checking whether the action be taken?

right?

if ((_Bid >= target) &&  (have_not_send==true)) 

      send_oppposite_orders ();

danielth
63
danielth 2010.05.25 21:07  
kelly:

using differnet TP by sending oppposite orders , needing a variable or some checking for checking whether the action be taken?

right?

if ((_Bid >= target) &&  (have_not_send==true)) 

      send_oppposite_orders ();

Yes,

See also the forum topic about the same subject :  COMBAT to auto-combine the order 

To add comments, please log in or register