EA31337 / EA31337-classes

📦📈 EA31337 framework (MQL library for writing trading Expert Advisors, indicators and scripts)
https://ea31337.github.io/EA31337-classes
GNU General Public License v3.0
191 stars 100 forks source link

Summary: Deposit is zero #15

Open kenorb opened 8 years ago

kenorb commented 8 years ago

Initial deposit is always zero for backtests. CalculateInitialDeposit() is to fix. Class: SummaryReport.mqh

Test:

void OnDeinit(const int reason) {
  double ExtInitialDeposit = CalculateInitialDeposit();
  CalculateSummary(ExtInitialDeposit);
  Print(GenerateReport());
}

To test, run EA with WriteSummaryReport input param to generate the report file.

Est. 2-3h

kenorb commented 5 years ago

This needs testing whether it's still the issue.