- 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
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
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?