Can anyone give me formula how MetaTrader 5 calculates profit? Probably somehow it depends on price, volume and maybe more arguments. Thanks!
- Bug replaces my parameters with defaults
- Trading: Mathematics in Trading: How to Estimate Trade Results
- How does Drawdown calculate? What is the formula?
I have found answer to my question. It is
bool OrderCalcProfit(
ENUM_ORDER_TYPE action, // type of the order (ORDER_TYPE_BUY or ORDER_TYPE_SELL)
string symbol, // symbol name
double volume, // volume
double price_open, // open price
double price_close, // close price
double& profit // variable for obtaining the profit value
);
Thank you anyway!
mql4 does not have equivalent function for OrderCalcProfit()
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