Fork me on GitHub
Library for MQL5 (MetaTrader) with support for Spark
CTesterSql Class Reference

Detailed Description

Record optimization results in SQL and CSV format files.

If the functions OnTesterDeinit() and OnTester() are not defined, then to use it is enough to include this file in the code.

Inheritance diagram for CTesterSql:
CSqlObject

The documentation for this class was generated from the following file:

Public Member Functions

double tester ()
 
void testerDeinit ()
 

Static Public Attributes

static const ENUM_STATISTICS stats []
 

Protected Member Functions

bool frameNext ()
 
virtual bool toSqlTable (string &types[][2], string &primaryKeys[])
 Create a table. More...
 
virtual bool toSqlRecord (string &list[][2])
 Forming data for writing to a table. More...
 

Protected Attributes

ulong tester_pass
 
string tester_name
 
long tester_id
 
double tester_value
 
double tester_result []
 

Member Function Documentation

◆ frameNext()

bool CTesterSql::frameNext ( )
protected

◆ tester()

double CTesterSql::tester ( )

◆ testerDeinit()

void CTesterSql::testerDeinit ( )

◆ toSqlRecord()

virtual bool CTesterSql::toSqlRecord ( string &  list[][2])
protectedvirtual

Forming data for writing to a table.

Parameters
[out]list[x][0] = name, [x][1] = data
Returns
True if the data is formed, and otherwise False.

Reimplemented from CSqlObject.

◆ toSqlTable()

virtual bool CTesterSql::toSqlTable ( string &  types[][2],
string &  primaryKeys[] 
)
protectedvirtual

Create a table.

Parameters
[out]types[x][0] = name, [x][1] = type
[out]primaryKeyshttps://en.wikipedia.org/wiki/Primary_key
Returns
True if the data is formed, and otherwise False.

Reimplemented from CSqlObject.

Member Data Documentation

◆ stats

static const ENUM_STATISTICS CTesterSql::stats
static

◆ tester_id

long CTesterSql::tester_id
protected

◆ tester_name

string CTesterSql::tester_name
protected

◆ tester_pass

ulong CTesterSql::tester_pass
protected

◆ tester_result

double CTesterSql::tester_result[]
protected

◆ tester_value

double CTesterSql::tester_value
protected