I would like to show my MT5 account and stats on my website. That means I need an EA which creates the stats once a day (probably with OnTimer). These stats shoukd get calculated:
- Account history in %
- Max. Drawdown since start
- Max. Return since start
- CAGR
- Risk of Ruin (Loss size, Probability of loss, Consecutive loosing trades)
- Value at Risk
- Sharpe Ratio
- Sortino Ratio
- Calmar Ratio
- Profit Factor
- Winrate
- Trades since start
- Monthly development in %
- Trade history
The EA should create a json file which gets sent to my web-host / database automatically.