Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Programs for controlled testing and optimization - MetaTrader 4 Scripts | Trading Script Downloads - MT4/MT5 Resources

author EAcpu | 3 reads | 0 comments |

Program for controlling testing and optimization - script for MetaTrader 4

Program for controlling testing and optimization - script for MetaTrader 4

Program for controlling testing and optimization - script for MetaTrader 4

Program for controlling testing and optimization - script for MetaTrader 4

The name of the macro and the tested and optimized versions:

1) "Multy_DATA" macro - performs tests at specified intervals.

Execute sequential tests at predetermined intervals,

The number and duration of intervals can be set manually in an array in the "TestCommander" script.

Program for controlling testing and optimization - script for MetaTrader 4

When increasing or decreasing the number of time intervals, it is necessary to specify the number of rows in the array accordingly (below the tick V)

2) "Multy_TF" - macro program - tests according to the specified time range (period), the parameters are set in the array

Execute sequential tests within a predetermined time period set in the "TestCommander" script array.

These parameters can be set manually.

Program for controlling testing and optimization - script for MetaTrader 4

"MultySymbol" macro - performs sequential testing via currency pairs specified in the "TestCommander" script array,

Program for controlling testing and optimization - script for MetaTrader 4

When increasing or decreasing the number of currency pairs (symbols), you need to specify the corresponding number of rows in the array (below the tick V)

4) "MultyVariable" macro - tests with variables specified in the "TestCommander" script array,

Program for controlling testing and optimization - script for MetaTrader 4

It is necessary to set the variable name and test value at the same time, unused variable name

Should be set to ""; (null value specified)

5) "StabilityTest" macro - Stability check, testing against three criteria simultaneously -

MultySymbol (passes symbol test),

Multy_DATA (test by time interval),

Multy_TF (test by time range).

Parameters are replaced from the corresponding array in the "TestCommander" script.

6) “OneOptim” macro - performs parameter optimization and then filters unprofitable trades,
Duplicates are removed, filtered by minimum and maximum number of transactions per day, results are sorted in the order specified by the user at the beginning. The results are output to a report file in the "Report" folder.

7) "Complex" macros - complex optimization and then testing,

Filter and sort the obtained values, check the stability of the best values

The best results are output to the report file.

--------------------------------------------------------------------------------------------------------------------------------------------------

The program checks the availability and status of the available history before testing or optimization begins.
In order to perform specialized optimizations, the program implements the following capabilities:
Pass commands to the EA during the optimization process and receive immediate response information from the EA. It provides the ability to perform automatic optimization at a specified time by running it from the EA.
You can use up to 10 variables at a time for testing and optimization.
The program has the ability to add custom macros for testing and optimization

The program and a more detailed description can be found in the accompanying archive.


Attachment download

📎 code_7614.zip

Source: MQL5 #7614

Verification code Refresh