How can I find out the weighted average opening price of a position after several trades? PriceOpen() from CPositionInfo shows the price of the first trade, but I need the current price, obtained after several trades.
The weighted average is what it shows. And what could be the opening price of a position?
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Folks, who's oriented on the question: inclusion of header files in a C++ project (all classes are embedded, i.e. have no cpp file)?
Ideally, make the inclusion so that everything is visible from everywhere.
How can I programmatically determine that stops cannot be placed on the market only when an order is modified?
I can't figure out why the Print function outputs 0 instead of 40?
The attentive reader of the documentation will notice that:
SetDeviationInPoints - Sets the allowable slippage.
RequestDeviation - Gets the maximum deviation from the requested price used in the last request.
Help, I can't find any information anywhere.
How can I find out the weighted average opening price of a position after several trades? PriceOpen() from CPositionInfo shows the price of the first trade, but I need the current price, obtained after several trades.
possible loss of data due to type conversion
When you compile the Expert Advisor, you get a warning:
possible loss of data due to type conversion
1. why SymbolInfoInteger(SymbolInfoInteger twice ?
2. What type of value does SymbolInfoInteger() return according to the Reference Manual?
3. See type listing
Why does the Print function print 0?
Why does the Print function print 0?