
02-25-2008, 06:52 AM
|
 |
Senior Member
|
|
Join Date: Jun 2007
Posts: 3,354
|
|
Thanks wolfe...I am going to bed...
ES
Quote:
Originally Posted by wolfe
I'm still here for just a little while longer.
The rules in coding an OrderSend() command:
At opening of a market order (OP_SELL or OP_BUY), only the latest prices of Bid (for selling) or Ask (for buying) can be used as open price.
All the long OrderSend() commands contain the Ask:
PHP Code:
Ticket=OrderSend(Symbol(),OP_BUY,Lot_Size,Ask,Slippage,NULL,NULL,"TFX_LONG_ADDITIONAL",Magic_Number,0,Green);
All the short OrderSend() commands contain the Bid:
PHP Code:
Ticket=OrderSend(Symbol(),OP_SELL,Lot_Size,Bid,Slippage,NULL,NULL,"TFX_SHORT_ADDITIONAL",Magic_Number,0,Red);
When using your entry lag take into account your spread.
I'll think about this tomorrow, and see if any other good answer arises. 
|
|