Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1822
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
It is mandatory to select an order (OrderSelect) before calling.
The close function is under what condition should an order be closed?
I did not notice the elephant))) What do you think the closing price of the open order is equal to?
Try to do it this way
It is mandatory to select an order (OrderSelect) before calling.
If the order is not from the current character?
And I didn't notice the elephant))) What do you think the closing price of an open order equals?
Try it this way
Bid symbol
And I didn't notice the elephant))) What do you think the closing price of an open order equals?
Try it that way.
I've got it that way.
OrderClosePrice()
I read on the forum that you can specify it instead of bid and ask and it will work. I trusted it. I'm a naive fool. Tried another Bid || Ask, also did not work.
Thanks for the help!
If the order is not from the current symbol?
Then SymbolInfoDouble
And I didn't notice the elephant))) What do you think the closing price of an open order equals?
Try to do it that way.
Another question
How do you calculate the profit in points - is this OrderProfit * Point?
Then SymbolInfoDouble
Why not right away?
Another question
Is the profit calculation in pips an OrderProfit * Point?
OrderProfit Returns net profit value, (those in the deposit currency)
Point- Point size of the current instrument in the quote currency
All from reference
OrderProfit Returns the net profit value, (those in the deposit currency)
Point - Current instrument point size in the quote currency
All from reference
I agree, I read the reference.
I multiplied the profit by the Point and got 0.00001 or less.