Skip to main content
Version: 3.0

PAOV - Parameter Override

Using the parameters from this input group, you can override parameter lines from the loaded module files. Overrides can be applied globally, affecting all module files at once, or selectively to one or more specific modules. This functionality is particularly useful for fully leveraging the MetaTrader optimization feature, as it allows you to optimize module file parameters even if they are not exposed in the expert properties dialog.

You can define up to 20 parameters and their corresponding values. For simplicity, the table below shows only one example; the remaining 19 inputs behave identically.

Input variable within MetaTrader
(Identifier in SET file)
Default valueComment
> (PAOV) Override 1: Selection
(IN_strPaov1Selection)
Specifies parameter and module selection using the format parameter@modules.
Multiple parameters and modules can be selected for override. If a line in the loaded module file matches the specified selection, its value will be replaced by the value defined in the subsequent line
> (PAOV) Override 1: Value
(IN_dPaov1Value)
0.0Enter the override value directly, or use MetaTrader's optimization settings to test a range of values.
> (PAOV) Override X: Selection
(IN_strPaovXSelection)
The same principle applies to parameters 2 through 20.
> (PAOV) Override X: Value
(IN_dPaovXValue)

To fully understand this feature, please review the examples provided for > (PAOV) Override 1: Selection:

  • INOS_1_dParameter1@ALL - Single parameter override applied to all modules.
  • INOS_1_dParameter1@100,300 - Single parameter override applied to the specific modules with number 100 and 300.
  • dParameter1@ALL - Applied to all parameters containing the parameter name and for all modules.
  • dParameter1@100,300 - Applied to all parameters containing the parameter name and used for modules with number 100 and 300.
  • INOS_1_dParameter1@100;INOS_4_dParameter1@300 - Applied to multiple parameters with different module assignments.
  • dParameter1,dParameter2@100,200,300;dParameter3@400: Applied to multiple parameters with different module assignments.

If the override is successful, its status will be displayed in the log window. When using the MetaTrader 4 Strategy Tester, this information will appear in the Journal tab:

Override is successful, its status will be displayed in the log window.webp