On mq5 do not need calculate the average price.
each symbol have only one position. it is price of position.
POSITION_PRICE_OPEN
KuzMan:
Hi !
Hi !
I make N buys and want to calculate the average price :
( Price_1*Qty_1 + ... Price_N*Qty_N) / (Qty_1 + .. Qty_N)
Analysing history of deals is a little bit difficult to me...
Can you advice me a standard function, pls ?
tuoitrecuoi:
He thinks that Analysing history of deals
On mq5 do not need calculate the average price.
each symbol have only one position. it is price of position.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
I make N buys and want to calculate the average price :
( Price_1*Qty_1 + ... Price_N*Qty_N) / (Qty_1 + .. Qty_N)
Analysing history of deals is a little bit difficult to me...
Can you advice me a standard function, pls ?