Calculate Average price of Open Positions for Hedge account
thanks for reply,
Lots Weighted Average Price = ∑ op(i) × lot(i) ÷ ∑ lot(i). This is the break even price of all orders combined.
OrderOpenPrice question . - MQL4 programming forum (2017)
looking for sample code on how to calculate the price BE for a few Buy and Sell orders simultaneously - Pips - MQL4 programming forum (2016)
When combining buys and sells, use +Lots for buys and -Lots for sells.
hi All,
I need a help in calculating average price of open positions, considering both buy positions and sell positions.
currently i am using two separate functions, buy average price and Sell average price.
i use reverse martingale system to add positions.
please help me out for the same,
thanks in advance