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
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
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);