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
There is no status to check, your variable status is the return value from OrderSend(), if it is less than 0 you have an error, do you then print the error to the log ? what error is it ?
What is the value of price compared to Bid at the time you try to place the order ?
The value of price is close prev bar.
..and i would after 5 minutes later buy/sell by ask/bid price, if the order by close price is failed. That way i would like to know order status
The value of price is close prev bar.
..and i would after 5 minutes later buy/sell by ask/bid price, if the order by close price is failed. That way i would like to know order status
Just so it is clear to us can you name what order status information you are seeking?
I would like to know status order is it still pending or is it finished, one of this, to check what happen with this order.
If the Order failed you need to know why. If the Order may still be pending then Select the order and check it's OrderType().
Thank you is working...
One more question maybe stupid but I don't have experience on forex.
I have LONG position, why i can buy SHORT but i can not close LONG by the same price like SHORT ?
I mean i tested and i can close pos by price long but i can not close pos by short but i can take short
Thank you is working...
One more question maybe stupid but I don't have experience on forex.
I have LONG position, why i can buy SHORT but i can not close LONG by the same price like SHORT ?
I mean i tested and i can close pos by price long but i can not close pos by short but i can take short
To close a Buy a Sell is used, a Sell is placed at Bid. To close a Sell a Buy is used, a Buy is placed at Ask. So to close a Buy use Bid, to close a Sell use Ask. Or select the order using OrderSelect() and use OrderClosePrice(), it works for Buys and Sells.