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.
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.
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.
Understanding the use of the CASH keyword can significantly aid in developing more controlled and financially managed trading strategies within the ProRealTime trading environment.