|
Need Help with hedging ea
Ok im almost gave it up
but how can i execute an order instant ?
always when im firing the ea up it takes some times before the orders executes.
is there a way to execute the orders instantly ?
here is the code
code begin
RefreshRates();
OrderSend(Sym_1,OP_BUY,Lots,MarketInfo(Sym_1,MODE_ ASK),Slippage,0,MarketInfo(Sym_1,MODE_ASK)+1000*Po int,"Hedging",1234,0,Green);
RefreshRates();
OrderSend(Sym_2,OP_BUY,Lots,MarketInfo(Sym_2,MODE_ ASK),Slippage,0,MarketInfo(Sym_2,MODE_ASK)+1000*Po int,"Hedging",1234,0,Green);
code end
also how should i do to close the above orders at the same time instantly
hope someone can help me out
|