Purpose
The Count Trades block tracks the number of open or pending trades and determines whether to execute additional orders based on a defined limit.
How It Works
Select the type of trades to count (buys, sells, or all trades).
Set a condition (
≥,≤,=) to control execution.If the condition is met, it follows the "true" path; otherwise, it stops execution.
Use Case
Prevent overtrading by limiting open positions.
Restrict new trades if existing risk exposure is too high.
Apply risk controls by capping the number of active trades.
⚠ Note: This block is crucial for managing account leverage and exposure.
Best Practices
If you are using the Count Trades block as a means to limit the number of open trades or pending orders, place it as close to the trade execution blocks as you can. The block function may not deliver the expected result due to the order of logic in the tree.

