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.
DEFPARAM NOCASHUPDATE = true/false
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.
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.