Buy / Sell @ market

 

OrderSend(Symbol(), OP_BUY, 0.2, Ask, 0, Bid - 15* Point, Ask +50* Point, "Buy Order", 0, TimeCurrent() + 60 * 60, Blue);

when my  criterion are fullfilled, nothing happen; 

but if I use OP_BUYlimit instead, it will take action, why is that?

 Is it something to with my slippage (I've set it to zero at the moment). 

 

Thanks.

William 

 
Wslwilson:

OrderSend(Symbol(), OP_BUY, 0.2, Ask, 0, Bid - 15* Point, Ask +50* Point, "Buy Order", 0, TimeCurrent() + 60 * 60, Blue);

when my  criterion are fullfilled, nothing happen; 

but if I use OP_BUYlimit instead, it will take action, why is that?

 Is it something to with my slippage (I've set it to zero at the moment). 

Rad these links:  ECN  What are Function return values ? How do I use them ?
 

 Bid - 15* Point     What about the Stoplevel ??   It might in this case be no issue  because OP_BUYlimit  it will take action

slippage  -  Maximum price slippage for buy or sell orders.
expiration  -  Order expiration time (for pending orders only).



see   OrderSend 
Reason: