MQL4 - automated forex trading   /  

Forum

Hedging Command

Back to topics list To post a new topic, please log in or register

avatar
547
eliteeservices 2008.10.22 09:52 

How come I cannot send 2 orders at the same time:


int start()
{
//----

OrderSend(Symbol(),OP_BUY,1,Ask,3,Ask-25*Point,Ask+25*Point,"My order #2",16384,0,Green);
OrderSend(Symbol(),OP_SELL,1,Bid,3,Ask-25*Point,Ask+25*Point,"My order #3",1622,0,Green);



//----
return(0);
}


Is there a way to send a buy and sell at the same time?

article

Reporting the First Days of the Championship (1-3 October)

The first three days of the Championship appeared to be dramatic and managed to show what some Expert Advisors are capable of.


avatar
747
fbj 2008.10.22 12:50 

because Terminal ONLY do ONE TradeOperation at any one time - no matter if 1...100 EAs running.

u must use search box for more - is loads of articles and stuff about this 'issue' ;)

think:


avatar
242
schnappi 2008.10.22 14:42 
eliteeservices wrote >>
...



Is there a way to send a buy and sell at the same time?

There is. Open up two accounts and run two seperate MT-instances. Like in a Master/Slave-relationship: the master opens a pos, passes the info to the "slave", slave opens counter-pos in seperate account.

Back to topics list  

To add comments, please log in or register