Difference between OrderClosePrice() and Ask/Bid

 

Hello,

i have a short question.

Whats the differents between the OrderClosePrice()-function and Ask/Bid operator ?

For example when i use it in the OrderClose-function:

OrderClose(order_id,1,Ask,3,Red);

or

OrderClose(order_id,1,OrderClosePrice(),3,Red);

 
You close a Sell at Ask and a Buy at Bid . . . or you can close a Buy or Sell at OrderClosePrice() . . . so OrderClosePrice() is dependant on the type of trade.
 

Another difference is that with using Bid or Ask you can only close the trades with same symbol as chartsymbol

With Ordercloseprice you can close also the trades with other symbol as chartsymbol

 

Thats exactly what i wanted to know. Thank you !


regards

exec

Reason: