I Try to calculate average price of open orders . I am unebel to calculate it. I don't know reason. I am very thankful if eny one can helpme
RGD
Lot_Price+=Lot_Price+(OrderLots()*OrderOpenPrice());maybe...
- roshjardine: maybe...
Lot_Price+=Lot_Price+(OrderLots()*OrderOpenPrice());
Absolutely not.
- manntrade: I Try to calculate average price of open orders . I am unebel to calculate it. I don't know reason. I am very thankful if eny one can helpme
You correctly calculated lots weighted average open price; that is your break even price. You were. There is no reason. There is no one able.
-
Why did you post your MT4 question in the Root / MT5 General section instead of the MQL4 section, (bottom of the Root page?)
General rules and best pratices of the Forum. - General - MQL5 programming forum
Next time post in the correct place. The moderators will likely move this thread there soon.
-
Absolutely not.
-
You correctly calculated lots weighted average open price; that is your break even price. You were. There is no reason. There is no one able.
-
Why did you post your MT4 question in the Root / MT5 General section instead of the MQL4 section, (bottom of the Root page?)
General rules and best pratices of the Forum. - General - MQL5 programming forum
Next time post in the correct place. The moderators will likely move this thread there soon.
-
maybe...
Thanks for the respons. Lot_Price is correct.
-
Absolutely not.
-
You correctly calculated lots weighted average open price; that is your break even price. You were. There is no reason. There is no one able.
-
Why did you post your MT4 question in the Root / MT5 General section instead of the MQL4 section, (bottom of the Root page?)
General rules and best pratices of the Forum. - General - MQL5 programming forum
Next time post in the correct place. The moderators will likely move this thread there soon.
-
Sorry for the mistake
Avg_Sell=NormalizeDouble((Lot_Price/Total_Lots),Digits);
if this line is there. EA is not runnig.
Thank you every one Problem solved
Problem is dividing zero value. now i have avoided dividing the zero value
RGD
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I Try to calculate average price of open orders . I am unebel to calculate it. I don't know reason. I am very thankful if eny one can helpme
RGD