Skip to main content
This page lists the formula operators available to TQX factors. Use lowercase field names such as close and volume, and uppercase operator names such as MA and RANK.
FUTURE_RETURNS(X, N) is intentionally rejected in factor formulas because it introduces look-ahead bias. Use RETURNS(X, N) for a historical return instead.

Math operators

Cross-sectional operators

Time-series operators

Comparison and conditional operators

Statistical and relationship operators

Restricted operators

Technical indicators

Market compatibility

The operator set is shared across markets, but the fields available to an expression depend on the market:

Examples