Rafal W.
Rafal W.
> 2021.12.13 13:45:01.774 Core 1 pass 14 tested with error "critical runtime error 502 in OnTick function (array out of range, module Experts\EA31337-Advanced-v2.009.ex5, file Log.mqh, line 133, col 9)" in...
- 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); ```