Forex



Go Back   Forex Trading > Downloads > Expert Advisors - Metatrader 4
Forex Forum Register More recent Blogs 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 05-04-2006, 10:09 PM
babarmughal's Avatar
Senior Member
 
Join Date: Apr 2006
Posts: 315
babarmughal is on a distinguished road
Smile Pending Order EA

HI Guys,

Can anyone help me making an EA of pending Orders........

I have found this guys idea on another fourm which is exactly like mine...

If market price equals = X or Current Price
then place buy stop order at market price Y
and...place sell stop order at market price Z

Optional: If one order is opened then second order is cancelled.

I'm hoping to use this EA with my hand drawn Fib Ratios, so orders can be placed while I'm asleep


Thanks
Babar
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 05-05-2006, 02:10 PM
babarmughal's Avatar
Senior Member
 
Join Date: Apr 2006
Posts: 315
babarmughal is on a distinguished road
Smile

anyone got any clue how can I make this EA ????????????

thanks in advance
Babar
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 05-05-2006, 02:31 PM
babarmughal's Avatar
Senior Member
 
Join Date: Apr 2006
Posts: 315
babarmughal is on a distinguished road
Smile

Hi Guys,

Can you please help me making this EA

The strategy is

Exmple

Current market price = x

Place pending BUY order on x + 100 Pips
Place pending SELL order on x - 100 Pips

If BUY order executes then cancel SELL pending order and Vice Versa

Stop Loss = 50
Take Profit = 50
Trailing Stop = 50

I will really appreciate your help in this matter

Thanks in Advance
Babar
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 05-05-2006, 02:32 PM
Member
 
Join Date: Jan 2006
Location: Florida
Posts: 45
HoggZilla is on a distinguished road
Do you already have an EA started?

Let me see if I understand your goal. You want to be able to plug in a price. If the market moves to that price then you want to place a stop order to be triggered if the price moves back to a certain price?
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
  #5 (permalink)  
Old 05-05-2006, 03:01 PM
babarmughal's Avatar
Senior Member
 
Join Date: Apr 2006
Posts: 315
babarmughal is on a distinguished road
Smile

Quote:
Originally Posted by HoggZilla
Do you already have an EA started?

Let me see if I understand your goal. You want to be able to plug in a price. If the market moves to that price then you want to place a stop order to be triggered if the price moves back to a certain price?
HI Hoggzilla,

thanks for your reply....well i want to put a pending BUY and SELL order 100 pips away FROM THE CURRENT market price......and if the BUY order it excuted the SELL pending order has to be cancelled......thats it really.......

Thanks
Babar
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
  #6 (permalink)  
Old 05-05-2006, 03:29 PM
firedave's Avatar
Senior Member
 
Join Date: Nov 2005
Location: Jakarta, Indonesia
Posts: 414
firedave is on a distinguished road
Hi Babar, try this EA. It's only set two pending order once and if one order filled it deletes the other order (OCO). You could set the EntryLevel if you don't want to use the current price, or set it to 0 (zero) to use the current price (bid). If the order price is too close to current price (less than 10 pips) this EA will reject it. Hope this help
Attached Files
File Type: mq4 PendingOrderEA.mq4 (10.1 KB, 704 views)
__________________
David Michael H
"Trader helps traders with sincerity, honesty and integrity"

Last edited by firedave; 05-06-2006 at 05:28 AM. Reason: revised EA
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
  #7 (permalink)  
Old 05-05-2006, 03:39 PM
babarmughal's Avatar
Senior Member
 
Join Date: Apr 2006
Posts: 315
babarmughal is on a distinguished road
Thumbs up

Quote:
Originally Posted by firedave
Hi Babar, try this EA. It's only set two pending order once and if one order filled it deletes the other order (OCO). You could set the EntryLevel if you don't want to use the current price, or set it to 0 (zero) to use the current price (bid). If the order price is too close to current price (less than 10 pips) this EA will reject it. Hope this help
Dave you are the man.......!!!!!!!!

thanks dude.......i will try this and will let u know.

once again thanks
Babar.
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
  #8 (permalink)  
Old 05-05-2006, 09:05 PM
babarmughal's Avatar
Senior Member
 
Join Date: Apr 2006
Posts: 315
babarmughal is on a distinguished road
Smile

Hi Dave,

Ihave tried this EA....it works fine...but it places order on every tick...is it possible that it places Pending Order on the current price and thats it...do not place further orders...cuz it places orders on every tick....and i will have 100s of orders within few minutes......

Thanks
Babar
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
  #9 (permalink)  
Old 05-06-2006, 05:29 AM
firedave's Avatar
Senior Member
 
Join Date: Nov 2005
Location: Jakarta, Indonesia
Posts: 414
firedave is on a distinguished road
Quote:
Originally Posted by babarmughal
Hi Dave,

Ihave tried this EA....it works fine...but it places order on every tick...is it possible that it places Pending Order on the current price and thats it...do not place further orders...cuz it places orders on every tick....and i will have 100s of orders within few minutes......

Thanks
Babar
Okay, my mistake. Revised the EA, see my previous post. Hope this help
__________________
David Michael H
"Trader helps traders with sincerity, honesty and integrity"
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
  #10 (permalink)  
Old 07-10-2006, 05:33 PM
babarmughal's Avatar
Senior Member
 
Join Date: Apr 2006
Posts: 315
babarmughal is on a distinguished road
Smile

Quote:
Originally Posted by firedave
Okay, my mistake. Revised the EA, see my previous post. Hope this help
HI Dave,

I have noticed one thing that this EA doesn't delete the pending order if one of the pending order is open (if BUY is open the it doesn't delete the Sell pending order) and 2nd that the trailing stop doesnt work...can you please fix this...

Thanks
Babar
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

Tags
pending order ea


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
EA or Script for pending order ? Nordic12 Tools and utilities 6 10-08-2007 07:35 PM
Pending Order Hartadi Metatrader 4 0 06-07-2007 04:48 AM
Help - Pending Order with Time Settings EA. sohail212 Expert Advisors - Metatrader 4 2 12-06-2006 01:37 AM
Pending Order EA Trailing Stop not working qazij Expert Advisors - Metatrader 4 2 08-18-2006 12:50 PM


All times are GMT. The time now is 09:19 AM.



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