Go Back   Forex-TSD > Downloads > Expert Advisors - Metatrader 4
Forex Forum Register More recent Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 08-16-2006, 07:24 PM
Junior Member
 
Join Date: Jul 2006
Posts: 6
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #2 (permalink)  
Old 08-19-2006, 11:18 PM
Member
 
Join Date: Jul 2006
Location: Denver, Colorado
Posts: 54
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #3 (permalink)  
Old 08-20-2006, 07:58 AM
Mr.Marketz's Avatar
Senior Member
 
Join Date: Feb 2006
Posts: 350
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, 48 views)
__________________
F*CK your market analysis.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #4 (permalink)  
Old 08-22-2006, 10:33 AM
Junior Member
 
Join Date: Jul 2006
Posts: 6
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 63 04-30-2009 05:43 PM
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 03:10 PM.



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