SetCustomBacktestProc
- define custom backtest procedure formula file

Trading system toolbox
(AmiBroker 4.70)


SYNTAX SetCustomBacktestProc( filename, enable = True )
RETURNS NOTHING
FUNCTION This function allows changing custom backtest procedure file from AFL formula level.

To learn more about custom backtester procedures please read this document.

Parameters

  • filename parameter instructs backtester to use external formula file as custom backtest procedure, if empty - it means use current formula
  • enable = True (default) - enables custom backtesting procedure (the same as SetOption("UseCustomBacktestProc", True );
    enable = False - disables custom proc
EXAMPLE SetCustomBacktestProc( "Formulas\MyCustomBacktest.afl", True );
SEE ALSO

References:

The SetCustomBacktestProc function is used in the following formulas in AFL on-line library:

More information:

See updated/extended version on-line.