dogabot dogabot

Strategy

Variance Ratio Gate Filter

How dogabot’s Variance Ratio Gate filter passes or blocks on Lo–MacKinlay VR(q=2)—without firing buy or sell.

strategyfiltersvariance-ratiostatistics

The Variance Ratio Gate filter is a pass/block gate on the Lo–MacKinlay variance ratio of simple returns with q=2: variance of two-bar returns divided by twice the variance of one-bar returns, over a rolling window. When VR meets your compare condition against a threshold, the filter passes; otherwise it blocks. It never fires a buy or sell by itself.

VR near 1 is consistent with a random walk. Above 1 favors persistence/momentum; below 1 favors mean-reversion. Default VR > 1.0 pairs with trend stacks; flip to VR < for mean-reversion stacks.

When to use it

What you’ll set in the app

Add Variance ratio gate under filters.

Warm-up history or near-zero return variance blocks the gate. Disabled passes.

Tips

Example

Entry filters: Variance ratio gate, window 64, VR > 1.0. A momentum long only passes when recent returns look persistent rather than mean-reverting.

Related in the app

Ready to put this into practice?

Create a free account and explore dogabot with paper trading.

Try Backtest