NOCASHUPDATE

Category: ProBacktest

The NOCASHUPDATE instruction is used in ProBuilder language primarily for backtesting trading strategies. It allows users to simulate trading strategies without updating the initial capital based on gains or losses incurred during the backtest. This can be particularly useful for evaluating the performance of a strategy independently of the capital fluctuations.

Syntax:

DEFPARAM NOCASHUPDATE = true/false

Example:

DEFPARAM NOCASHUPDATE = true
// Your trading strategy code here

In this example, the backtest will run assuming the initial capital remains constant throughout the simulation, regardless of any profits or losses generated by the strategy.

  • Setting NOCASHUPDATE to true means the initial capital will not be adjusted during the backtest.
  • Setting it to false (which is the default setting) allows the backtest to adjust the initial capital based on the trading results.

This parameter is particularly useful when you want to analyze the effectiveness of a strategy without the influence of compounding gains or losses. It helps in understanding the raw trading performance of the strategy.

Related Instructions:

  • DEFPARAM instructions
  • Logo Logo
    Loading...