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.
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
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?
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.......
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
__________________ 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
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.
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......
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"
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...