CumulateOrders is a parameter in ProBuilder language that controls whether a trading strategy is allowed to increase its position size by placing multiple orders in the same direction. When set to false, the strategy is restricted to a single entry per direction until the position is closed. This parameter is crucial for defining the risk management behavior of automated trading strategies.
DEFPARAM CumulateOrders = true/false
DEFPARAM CumulateOrders = false
// This setting prevents the strategy from adding to an existing position. Only one buy or sell order can be active at a time in the same direction.
Setting CumulateOrders to true allows the strategy to place additional orders in the same direction, potentially increasing the position size if the conditions defined in the strategy are met again. This can be useful in trending markets where reinforcing positions might lead to greater profits. Conversely, setting it to false helps in limiting exposure and is often used in strategies where capital preservation is prioritized over aggressive growth.
Understanding how to use CumulateOrders effectively can help in tailoring the strategy’s market entry behavior to align with specific trading goals and risk management protocols.