How to get Breakeven point
- David Diez: BreakevenPoint, how do I calculate its price?
Volume weighted average price = Sum( OOPi * lotsi ) / Sum(lotsi)
-
David Diez: when OrdersProfit=0Doubles are rarely equal. Understand the links in:
The == operand. - MQL4 and MetaTrader 4 - MQL4 programming forum
William Roeder:
Ok I think that matches, thank you much.
Volume weighted average price = Sum( OOPi * lotsi ) / Sum(lotsi)
-
Doubles are rarely equal. Understand the links in:
The == operand. - MQL4 and MetaTrader 4 - MQL4 programming forum
The question is how to get breakeven point for a grid of orders.
I think it could be storing the Ask/Bid Price when OrdersProfit=0 and then apply TP distance to that price.
But if I want to draw a line in that BreakevenPoint, how do I calculate its price?