Where is the OrderSend() call ?
Alain Verleyen:
Where is the OrderSend() call ?
Where is the OrderSend() call ?
I'm sorry, i forgot put it. I edited the code with the OrderSend() function, however the problem follows.
- 4753 is not " Buy order request could not be completed"
-
mrequest.price = NormalizeDouble(Price, _Digits); mrequest.sl = NormalizeDouble(Price + Stop*_Point, _Digits); mrequest.tp = NormalizeDouble(Price - Take*_Point, _Digits);
You buy at the Ask and sell at the Bid. So for buy orders you pay the spread on open. For sell orders you pay the spread on close.- Your buy order's TP/SL (or Sell Stop's/Sell Limit's entry) are triggered when the Bid reaches it. Not the Ask. Your SL is shorter by the spread and your TP would be longer. Don't you want the same/specified amount for either direction?
- Your sell order's TP/SL (or Buy Stop's/Buy Limit's entry) will be triggered when the Ask
reaches it. To trigger at a specific Bid price, add the average spread.
MODE_SPREAD (Paul) - MQL4 programming forum - Page 3 #25 - The charts show Bid prices only. Turn on the Ask line to see how big the spread is (Tools → Options (Control-O) → charts → Show ask line.)
it works!!. Thank's to all for the recommendations!.

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'm new in mql5. i'm trying to make an expert that sends a sell order depending of a trading signal, but i get the error 4753. Can someone help me?
This is the code. Thank´s for the help
This expert only makes an operation only if no exists open positions.