EA31337-classes
EA31337-classes copied to clipboard
📦📈 EA31337 framework (MQL library for writing trading Expert Advisors, indicators and scripts)
- DateTime.struct.h: Implement GetWeekOfYear() - Confirm 'New week started' logic in GetStartedPeriods()
- Support for closing order via % (e.g. when order_close_loss/order_close_profit is below 0) - Strategy's OnOrderOpen()
- [ ] New Class: Base64 (`base64.mqh`) - Related: https://www.mql5.com/en/code/15930 - [ ] Compatibility with MQL4 and MQL5 - [ ] Create a CI test.
Method: `SummaryReport.CalculateSummary()` Currently, all profit is calculated from the history. It would be great if the summary report has the breakdown of profits for the given magic numbers. So if...
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,...
Release indicator after successful test (is ready), so it's not showing on the chart anymore. - Refs: https://github.com/EA31337/EA31337-classes/blob/v2.006/tests/IndicatorsTest.mq5#L171
``` // bands_on_price_params.SetDataSource(indi_price_4_bands, true, INDI_PRICE_MODE_OPEN); ... // ma_on_price_params.SetDataSource(indi_price_4_ma, true, INDI_PRICE_MODE_OPEN); ... // rsi_on_price_params.SetDataSource(indi_price_4_rsi, true, INDI_PRICE_MODE_OPEN); ```
- Improve entry validation. - Improve GetEntry() code to the latest standard. - Add enumeration for support and resistance modes.