Please use the SRC button when posting code. I've fixed it for you this time
Instead of this
double BuyPrice=Open[0]+0.0003; double SellPrice=Open[0]-0.0003;
Why not use
extern double Distance=0.3 int ticket1=OrderSend(Symbol(),OP_BUYSTOP,Lots,Ask+Distance*MyPoint,Slippage,0,0,"My Order",MagicNumber,0,Blue);
Ndumiso Mavuso:
Instead of this
Why not use
After using this, it is not doing anything.
extern double Distance=0.3 int ticket1=OrderSend(Symbol(),OP_BUYSTOP,Lots,Ask+Distance*MyPoint,Slippage,0,0,"My Order",MagicNumber,0,Blue);
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,
I am trying to code an EA for pending buy stop and sell stop orders.
buy stop : open[0]+0.0003
sell stop : open[0]-0.0003
This EA is placing only buy stop orders and not placing any sell stop. Kindly suggest necessary modification.