Forex
Google
New signals service!

Go Back   Forex Trading > Downloads > Expert Advisors - Metatrader 4


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

 
 
LinkBack Thread Tools
 
Old 08-16-2006, 07:24 PM
Junior Member
 
Join Date: Jul 2006
Posts: 4
zleepan is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 
Old 08-19-2006, 11:18 PM
Junior Member
 
Join Date: Jul 2006
Posts: 29
AirforceMook is on a distinguished road
Not sure what you're asking here.

When you use the function: OrderSend() with a standard OP_BUY or OP_SELL it is instant. Same with the others, but of course they will only be "valid" once the price hits whatever you've set it to.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 
Old 08-20-2006, 07:58 AM
Senior Member
 
Join Date: Feb 2006
Posts: 267
Mr.Marketz is on a distinguished road
Quote:
Originally Posted by zleepan
also how should i do to close the above orders at the same time instantly

hope someone can help me out

Try this script.
Attached Files
File Type: mq4 Close all open and pending orders.mq4 (1.4 KB, 34 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 
Old 08-22-2006, 10:33 AM
Junior Member
 
Join Date: Jul 2006
Posts: 4
zleepan is on a distinguished road
thanks

im trying to create a hedging ea
that when the hedge is in profit it should close it and directly open another trade.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 

Bookmarks
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Question on Hedging Maji Martingale/Average Cost and Hedging 61 10-04-2008 11:26 PM
How much would you be willing to pay to be able to backtest a hedging strategy? huhenyo Deleted Commercial Threads 20 11-26-2007 10:38 AM
Forex Hedging Camen General Discussion 7 05-12-2007 09:58 PM
Low risk Hedging strategy jgerousis Suggestions for Trading Systems 2 03-01-2007 07:33 PM


All times are GMT. The time now is 08:56 PM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.