CASH

Category: ProBacktest

The CASH keyword in ProBuilder language is used to specify the amount of cash to be allocated for a trading position. This instruction is crucial for strategies that involve managing cash balance dynamically based on certain trading criteria.

Syntax:

BUY x CASH

In this syntax, x represents the amount of cash to be used for the buy order. It is important to note that x should be a numerical value representing the cash amount in the account’s currency.

Example:

BUY 1000 CASH

This example demonstrates a buy order where 1000 units of the account’s currency are used to purchase the asset. This is particularly useful in strategies where the investment amount varies based on available capital or specific trading rules.

  • The CASH keyword helps in precise capital management, allowing traders to allocate a fixed amount of cash to each trade rather than a quantity of shares or contracts.
  • This feature is especially useful in backtesting scenarios where simulating realistic capital allocation is crucial.

Understanding the use of the CASH keyword can significantly aid in developing more controlled and financially managed trading strategies within the ProRealTime trading environment.

Related Instructions:

  • CONTRACT probacktest
  • LOT probacktest
  • SHARES probacktest
  • Logo Logo
    Loading...