Libraries: MultiTester - page 28

 

b2980

TesterSettings.mqh in MultiTester gives warnings

TesterSettings

SingleTesterCash .mqh stopped compiling - posted in that topic

Regards.

 
HimOrik:

b2980

TesterSettings.mqh in MultiTester generates warnings

It looks like a compiler defect.
 

Bypassed. Not sure of the correctness.

  bool Init( const int Pos ) const
  {
    bool Res = true;

    bool bufBool=(bool)this.iInit[Pos];      //there are similar rules in DeInit
    if (this.GetSize() && bufBool)           //and here
    {
      const INITDEINIT Ptr = this.iInit[Pos]; // https://www.mql5.com/ru/forum/324536/page23#comment_13868048

      Res = Ptr();
    }

    return(Res);
  }
 

Forum on trading, automated trading systems and testing trading strategies

MT5: MultiTester

SimpleUser, 2021.09.23 22:03

Good afternoon!
I downloaded it from https://www.mql5.com/ru/code/26132
I make a tester, as in the example
.
#include <fxsaber\MultiTester\MultiTester.mqh> // Multiple runs/optimisations in Tester.

// This function is responsible for generating the task list.
void SetTesterSettings()
{
  TesterSettings.Add("AUDCAD"); // Run AUDCAD with the settings specified in the Tester.
}
I set up the "strategy tester", run it... and it doesn't work. In the log, from the suspicious, only
.
2021.09.23 22:57:21.236 Core 1  tester stopped because OnInit returns non-zero code 1
What am I doing wrong?
P.S. The permission to use DLL is set globally in MT5 settings.

 

A small addition to the MultiTester results.

TesterDashboard - эффективное привлечение эволюционной интеллектуальной машины к поиску закономерностей.
TesterDashboard - эффективное привлечение эволюционной интеллектуальной машины к поиску закономерностей.
  • www.mql5.com
Идея не нова, вопрос был только в реализации. Платформа MetaTrader 5 обладает возможностями автоматизации Тестера. Расчет огромного количества данных на истории реальных тиков - обыденность . Проверка
 
One way not to skew the Tester's result with open positions at the end of the backtest.
#include <fxsaber\MultiTester\MTTester.mqh> // https://www.mql5.com/ru/code/26132

sinput datetime inTesterEndDate = 0; // End of the optimisation interval
input int inRange = 0;

datetime GetTesterEndDate( void )
{
  string Str;

  return(MTTESTER::GetSettings(Str) ? (datetime)MTTESTER::GetValue(Str, "ToDate") : 0);  
}

// This variable will always contain the end date of the Tester interval.
const datetime TesterEndDate = MQLInfoInteger(MQL_OPTIMIZATION) ? inTesterEndDate : GetTesterEndDate();

void OnTesterInit( void )
{    
  ParameterSetRange("inTesterEndDate", false, TesterEndDate, 0, 0, 0);    
  
  ChartClose();
}

void OnTesterDeinit() {}

// Trading System.
void System( const bool OnlyClose = false ) {}

void OnTick()
{
  System(TimeCurrent() >= TesterEndDate - 24 * 3600); // On the last day, only closing signals.
}

A similar question often arises.

 

Hi,

How do you add a task for an ea on a symbol with input variables?

How do you run an optimisation like input variable A should run from 1 to 10 with steps of 1 and input variable B goes from 1 to 100 with steps of 10?

Looked through this forum thread, but couldn't find if and how it is possible.

 
pcdeni symbol with input variables?

How do you run an optimisation like input variable A should run from 1 to 10 with steps of 1 and input variable B goes from 1 to 100 with steps of 10?

Looked through this forum thread, but couldn't find if and how it is possible.

MTTester.mqh allows you to fully control Tester, except for symbol settings. I am not ready to write FAQ.

 
fxsaber # :

MTTester.mqh allows you to fully control the Tester, except for the symbol settings. FAQ is not ready to write.

so, no.

 
Automated-Trading:

MultiTester:

Author: fxsaber