| New signals service! | |
|
|||||||
| Register in Forex TSD! | |
|
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time). Click here to register and get more information |
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Too much distance from real price in Open Orders
Hello,
I have a problem with to much distance in open Order with the OrderSend() function. Here a picture: ![]() Often there are taken prices 3 pips over the visible bars in the chart. Here ist my Code to open Orders: PHP Code:
|
|
|||
|
Hi,
That's normal, when you place a BUY order, you buy at the ask price, which includes a commission. It depends of the broker and seems to be 3 pips in your case (you can get it by calling the OrderCommission() function). Since the charts usually represent bid prices, you buy at ask = bid + 3 pips. By the way, you should write : ticket=OrderSend(Symbol(),OP_BUY,Lots,Ask,Slippage ,Bid-StopLoss*Point,Bid+TakeProfit*Point,"EMA_Cross_2",MAGIC,0,Green); since you sell at the bid price. Regards, Mark |
|
|||
|
Hello Mark,
thank you very much for helping with your tips. Since I have think that a Buy Order must be made with the Aks Price, but now because you say that I can use the Bid price to for OrderSend() function, I will test it, thank you for the tip. Regadrs Echi |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| close all open orders script | forextrend | General Discussion | 2 | 12-17-2006 06:16 AM |
| Script to close open orders... | babarmughal | Expert Advisors - Metatrader 4 | 1 | 12-13-2006 04:50 PM |
| Using Arrays to track info for All Open Orders | deeforex | Questions | 6 | 09-12-2006 06:01 PM |
| how to get the real server time or how to tell if the market is open | theimperialone | General Discussion | 3 | 06-24-2006 04:17 AM |
| Minimum Distance between market prices and limit price | Maji | Metatrader 4 | 2 | 05-02-2006 03:30 PM |