dogabot dogabot

Strategy

Price Ratio Rule

How dogabot’s Price Ratio rule fires buy or sell when closeA÷closeB vs a second market meets a threshold—TradingView-style relative strength on a single book.

strategyratiofilterspairsrelative-value

The Price Ratio rule compares two closes as A ÷ B (TradingView’s Ratio idea). Market A defaults to your automation’s primary symbol; Market B is an observe-only reference (symbolB). When the ratio (or its rolling z-score) meets your compare condition, it fires a configured buy or sell.

Use it when relative strength between two markets matters—for example USDBRLUSDT versus EWZUSDT—without placing on both books.

When to use it

This is different from Pairs Spread with metric price ratio (basis) (A÷B − 1), which is built for multi-leg placement. Price Ratio keeps a single trade book and only observes B.

What you’ll set in the app

Add Price ratio under entry, exit, increase, decrease, or reversal—or under filters for the same sections.

Until Market B is set or (in z-score mode) enough history exists, the rule does not fire.

Tips

Example

Entry rules: Price ratio, Market A = strategy USDBRLUSDT, Market B = EWZUSDT, mode Raw (A÷B), ratio > 0.15, side buy. Fires when USDBRL ÷ EWZ rises above 0.15 (similar to a TradingView Ratio breakout).

Entry filters: Same rule with side buy so another long signal only passes while the ratio stays elevated.

Related in the app

Ready to put this into practice?

Create a free account and explore dogabot with paper trading.

Try Backtest