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 someone please help me by making a simple EA...which places a BUY order few pips away from the current price.....e.g GBPUSD is 1.8000 what I want EA to do is place BUY order if price goes to 1.8100 and place SELL order if the price drops to 1.7900 with trailing stop.......i dont know what do you call this type of trading.....
Can someone please help me by making a simple EA...which places a BUY order few pips away from the current price.....e.g GBPUSD is 1.8000 what I want EA to do is place BUY order if price goes to 1.8100 and place SELL order if the price drops to 1.7900 with trailing stop.......i dont know what do you call this type of trading.....
Thanks in Advance
Babar
Babar,
It's call a "Pending Order"
Please use this function to open a pending order:
PHP Code:
int OpenPendingOrder(int pType=OP_BUYLIMIT,double pLots=1,double pLevel=5,int sp=0, double sl=0,double tp=0,string pComment="",int pMagic=123,datetime pExpiration=0,color pColor=Yellow) { int ticket=0; int err=0; int c = 0;
Can someone please help me by making a simple EA...which places a BUY order few pips away from the current price.....e.g GBPUSD is 1.8000 what I want EA to do is place BUY order if price goes to 1.8100 and place SELL order if the price drops to 1.7900 with trailing stop.......i dont know what do you call this type of trading.....
Thanks in Advance
Babar
Hi Babar, then what you do with the trade ? If price goes to 1.8100 and fill your BUY order, then move back to 1.8000, what to do ? If price retrace back all the way to fill the SELL order at 1.7900, what to do ? Hope you could give more entry rule / trading plan for this strategy. Just my two cents
__________________ David Michael H
"Trader helps traders with sincerity, honesty and integrity"
Thanks for your reply.....well if the price hits 1.8100 then ofcourse there will be stop loss and trailing stop. and ake Profit will be say 50 pip......price reverses...and will be closed b stop loss...and vice versa for Sell...