
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi all,
ticket=OrderSend(Symbol(),OP_BUY,Lots,Ask,Slippage,SL,TP,comment,Magic,0,Green);
you know this code, open buy position but I want to open opposite position when buy position is +15 bip. and then I did this,
ticket=OrderSend(Symbol(),OP_BUY,Lots,Ask,Slippage,SL,TP,comment,Magic,0,Green);
ticket=OrderSend(Symbol(),OP_SELLLİMİT,Lots,(Ask+15)*Point,Slippage,SL1,TP1,comment,Magic,0,Green);
ok opposite position(sell) open. buy position was sl or tp. now, but no sl, tp.
if buy is tp, op_selllimit have to close in buy tp price. op_selllimit is sl in buy tp.------> tp=sl1
if buy is sl, op_selllimit have to close in buy sl price. opsellimit is tp in buy sl.--------->sl=tp1
is it possible ?
if it is ok. how is the code?
thanksss.