Building Metric-Based Strategies
Advanced Workbench strategies: TPS crossover, TAS threshold, and regime-filtered entries with full SQL and backtesting.
From Thrive on YouTube
Watch the matching Thrive video
Welcome to Thrive | Crypto Market Intelligence Platform for Traders
Education only. Not financial advice.
From Metrics to Systematic Strategies
The previous lessons taught you how to read Thrive metrics. This lesson teaches you how to build complete, rule-based trading strategies using those metrics as inputs. We will construct three specific strategies using SQL in the Workbench, from the query logic to scheduling, dashboard integration, and alerting. These are not hypothetical frameworks. They are working strategies you can deploy today using the Thrive Workbench.
Each strategy uses a different metric as its primary signal, demonstrating how TPS, TAS, and TRP can each serve as the foundation for a systematic approach. The goal is not to give you strategies to blindly follow, but to show you the methodology for building and testing your own: using the raw metric data that Thrive exposes through the Workbench.
Strategy 1: TPS Crossover Strategy
Concept: Enter long when TPS crosses above 70 from below (conditions improving to strong), exit when TPS crosses below 50 (conditions deteriorating to neutral). The logic is simple: be positioned when the data says conditions are broadly strong, and step aside when they weaken. The crossover requirement (crossing from below) filters out assets that are already at high TPS. We want to catch the transition from weak/neutral to strong, not buy into already-strong conditions.
TPS Crossover Detection Query
WITH tps_with_prev AS (
SELECT
symbol,
DATE(snapshot_at) AS date,
ROUND(AVG(tps_score), 1) AS tps,
LAG(ROUND(AVG(tps_score), 1)) OVER (
PARTITION BY symbol ORDER BY DATE(snapshot_at)
) AS prev_tps
FROM thrive_power_score_history
WHERE snapshot_at >= NOW() - INTERVAL '90 days'
GROUP BY symbol, DATE(snapshot_at)
)
SELECT
symbol,
date,
tps,
prev_tps,
CASE
WHEN tps >= 70 AND prev_tps < 70 THEN 'BUY'
WHEN tps < 50 AND prev_tps >= 50 THEN 'SELL'
ELSE NULL
END AS signal
FROM tps_with_prev
WHERE (tps >= 70 AND prev_tps < 70)
OR (tps < 50 AND prev_tps >= 50)
ORDER BY date DESC, symbolThis query scans 90 days of historical TPS data for every asset and returns every BUY and SELL signal generated by the crossover logic. Each row shows the asset, date, current TPS, previous TPS, and the signal type. Use this to study the historical frequency and clustering of signals.
Backtesting the TPS Crossover
To evaluate this strategy historically, join the signal data with price data to calculate the return from each BUY signal to its corresponding SELL signal.
WITH signals AS (
SELECT
symbol,
date,
tps,
CASE
WHEN tps >= 70 AND LAG(tps) OVER (
PARTITION BY symbol ORDER BY date
) < 70 THEN 'BUY'
WHEN tps < 50 AND LAG(tps) OVER (
PARTITION BY symbol ORDER BY date
) >= 50 THEN 'SELL'
END AS signal
FROM (
SELECT symbol, DATE(snapshot_at) AS date,
ROUND(AVG(tps_score), 1) AS tps
FROM thrive_power_score_history
WHERE snapshot_at >= NOW() - INTERVAL '180 days'
GROUP BY symbol, DATE(snapshot_at)
) daily
),
buy_signals AS (
SELECT symbol, date AS buy_date, tps AS buy_tps,
LEAD(date) OVER (
PARTITION BY symbol ORDER BY date
) AS next_signal_date
FROM signals WHERE signal = 'BUY'
),
sell_signals AS (
SELECT symbol, date AS sell_date, tps AS sell_tps
FROM signals WHERE signal = 'SELL'
)
SELECT
b.symbol,
b.buy_date,
s.sell_date,
s.sell_date - b.buy_date AS hold_days,
b.buy_tps,
s.sell_tps
FROM buy_signals b
LEFT JOIN sell_signals s
ON b.symbol = s.symbol
AND s.sell_date > b.buy_date
AND s.sell_date <= COALESCE(b.next_signal_date, '2099-01-01')
ORDER BY b.buy_date DESCJoin this output with your price data table to compute the percentage return for each trade. The typical hold period for TPS crossover trades is 5–15 days. Expect a win rate around 55–65% with an average winner larger than the average loser, since strong TPS environments tend to produce sustained moves while the exit threshold at 50 limits drawdowns on losers.
Setting Up as a Live Strategy
Scheduled query: Save the crossover detection query as a scheduled Workbench query running daily at market open (00:00 UTC). It will automatically scan all assets and identify new BUY or SELL signals each day.
Dashboard widget: Pin the query results to your dashboard as a live widget. The widget will display any active signals, and you can configure it to highlight BUY signals in green and SELL signals in red for instant visual scanning.
Alert configuration: Create a multi-metric alert where the condition is “TPS crosses above 70” for any asset in your watchlist. Deliver via push notification for immediate awareness. A second alert for “TPS crosses below 50” on your held positions handles the exit signal.
Strategy limitations
Strategy 2: TAS Threshold Strategy
Concept: Enter long when TAS crosses above +50 (strong bullish conviction), enter short when TAS crosses below -50 (strong bearish conviction), and exit in either direction when TAS returns to the neutral zone (-24 to +24). This strategy captures directional moves only when the signal engine has high conviction in one direction and exits when conviction fades.
TAS Threshold Entry/Exit Query
WITH tas_daily AS (
SELECT
symbol,
DATE(snapshot_at) AS date,
ROUND(AVG(tas_score), 1) AS tas,
LAG(ROUND(AVG(tas_score), 1)) OVER (
PARTITION BY symbol ORDER BY DATE(snapshot_at)
) AS prev_tas
FROM thrive_alpha_signal_history
WHERE snapshot_at >= NOW() - INTERVAL '90 days'
GROUP BY symbol, DATE(snapshot_at)
)
SELECT
symbol,
date,
tas,
prev_tas,
CASE
WHEN tas >= 50 AND prev_tas < 50 THEN 'ENTER_LONG'
WHEN tas <= -50 AND prev_tas > -50 THEN 'ENTER_SHORT'
WHEN tas > -24 AND tas < 24
AND (prev_tas >= 50 OR prev_tas <= -50) THEN 'EXIT'
WHEN tas > -24 AND tas < 24
AND (prev_tas >= 24 OR prev_tas <= -24) THEN 'EXIT'
ELSE NULL
END AS signal
FROM tas_daily
WHERE (tas >= 50 AND prev_tas < 50)
OR (tas <= -50 AND prev_tas > -50)
OR (tas BETWEEN -24 AND 24
AND (prev_tas >= 50 OR prev_tas <= -50
OR prev_tas >= 24 OR prev_tas <= -24))
ORDER BY date DESC, symbolThe TAS Threshold Strategy produces fewer signals than TPS Crossover because the +50/-50 thresholds are strict. This is by design: Strong Long and Strong Short signals are rare and have higher historical hit rates than moderate signals. Expect 2–5 signals per asset per month. The win rate is typically 60–70% with a favorable risk/reward ratio because the exit at the neutral zone limits drawdowns.
Performance Query
WITH entries_exits AS (
SELECT
symbol, date, tas,
CASE
WHEN tas >= 50 AND LAG(tas) OVER (
PARTITION BY symbol ORDER BY date) < 50 THEN 'ENTER_LONG'
WHEN tas <= -50 AND LAG(tas) OVER (
PARTITION BY symbol ORDER BY date) > -50 THEN 'ENTER_SHORT'
WHEN ABS(tas) < 24 AND ABS(LAG(tas) OVER (
PARTITION BY symbol ORDER BY date)) >= 24 THEN 'EXIT'
END AS signal
FROM (
SELECT symbol, DATE(snapshot_at) AS date,
ROUND(AVG(tas_score), 1) AS tas
FROM thrive_alpha_signal_history
WHERE snapshot_at >= NOW() - INTERVAL '180 days'
GROUP BY symbol, DATE(snapshot_at)
) d
)
SELECT
symbol,
COUNT(*) FILTER (WHERE signal = 'ENTER_LONG') AS long_entries,
COUNT(*) FILTER (WHERE signal = 'ENTER_SHORT') AS short_entries,
COUNT(*) FILTER (WHERE signal = 'EXIT') AS exits
FROM entries_exits
WHERE signal IS NOT NULL
GROUP BY symbol
ORDER BY long_entries + short_entries DESCDashboard widget: Pin this as a summary widget showing signal frequency per asset. Use the detailed signal query as a second widget showing the live signal feed: any new ENTER_LONG or ENTER_SHORT that appears is your action item for the day.
Alert configuration: Set a TAS threshold alert at +50 for bullish and -50 for bearish on your watchlist. The alert should include the TAS component breakdown in the notification body so you can immediately see what is driving the signal without opening the dashboard.
Strategy 3: Regime-Filtered Entries
Concept: The most sophisticated strategy combines all three metrics. Take TAS long signals only during Breakout or Momentum regimes (where trend-following works), take TAS short signals only during Distribution or Capitulation regimes (where downside is active), and take no TAS signals during Chop or Accumulation (where directional signals have lower hit rates). This regime filter eliminates the lowest-quality signals and concentrates capital on the highest-quality opportunities.
Regime-Filtered Signal Query
WITH daily_metrics AS (
SELECT
tps.symbol,
DATE(tps.snapshot_at) AS date,
ROUND(AVG(tps.tps_score), 1) AS tps,
ROUND(AVG(tas.tas_score), 1) AS tas,
MODE() WITHIN GROUP (ORDER BY trp.regime) AS regime,
ROUND(AVG(trp.intensity), 1) AS regime_intensity
FROM thrive_power_score_history tps
JOIN thrive_alpha_signal_history tas
ON tps.symbol = tas.symbol
AND DATE(tps.snapshot_at) = DATE(tas.snapshot_at)
JOIN thrive_regime_pulse_history trp
ON tps.symbol = trp.symbol
AND DATE(tps.snapshot_at) = DATE(trp.snapshot_at)
WHERE tps.snapshot_at >= NOW() - INTERVAL '90 days'
GROUP BY tps.symbol, DATE(tps.snapshot_at)
),
with_prev AS (
SELECT *,
LAG(tas) OVER (PARTITION BY symbol ORDER BY date) AS prev_tas,
LAG(regime) OVER (PARTITION BY symbol ORDER BY date) AS prev_regime
FROM daily_metrics
)
SELECT
symbol,
date,
tps,
tas,
regime,
regime_intensity,
CASE
WHEN tas >= 50 AND prev_tas < 50
AND regime IN ('Breakout', 'Momentum')
AND regime_intensity >= 50
THEN 'REGIME_LONG'
WHEN tas <= -50 AND prev_tas > -50
AND regime IN ('Distribution', 'Capitulation')
AND regime_intensity >= 50
THEN 'REGIME_SHORT'
WHEN ABS(tas) < 24 AND ABS(prev_tas) >= 24
THEN 'EXIT'
END AS signal
FROM with_prev
WHERE (tas >= 50 AND prev_tas < 50
AND regime IN ('Breakout', 'Momentum')
AND regime_intensity >= 50)
OR (tas <= -50 AND prev_tas > -50
AND regime IN ('Distribution', 'Capitulation')
AND regime_intensity >= 50)
OR (ABS(tas) < 24 AND ABS(prev_tas) >= 24)
ORDER BY date DESC, symbolThe regime filter dramatically reduces signal count. You may see only 1–3 signals per asset per month. But these are the highest-quality signals the platform produces. Every REGIME_LONG signal means that the directional engine, the strength score, and the market regime classifier all agree that conditions favor a long entry. Every REGIME_SHORT signal means all three agree that downside is the high-probability outcome.
Position Sizing with Regime Intensity
Use the regime intensity as a position sizing multiplier. A REGIME_LONG signal during Breakout at intensity 85 warrants full position size. The same signal at intensity 55 warrants 60% position size. This scales your exposure proportionally to the regime classifier’s confidence.
| Intensity 80–100 | 100% of target position size. Regime classification is very high confidence. Maximum conviction. |
| Intensity 60–79 | 75% of target position size. Clear regime but room for doubt. Standard conviction. |
| Intensity 50–59 | 50% of target position size. Regime is present but not dominant. Reduced conviction: the threshold minimum for taking a signal. |
| Below 50 | Signal is filtered out entirely. Regime classification is too weak to act on. |
Dashboard and Alert Setup
Scheduled query: Run the regime-filtered query every 4 hours (00:00, 04:00, 08:00, 12:00, 16:00, 20:00 UTC). Regime changes and TAS crossovers can happen intra-day, and a more frequent schedule ensures you do not miss a signal that forms between daily snapshots.
Dashboard widget: Pin two widgets: (1) the signal feed showing the most recent REGIME_LONG, REGIME_SHORT, and EXIT signals, and (2) a summary table showing all assets currently in an active position (entered via REGIME_LONG or REGIME_SHORT and not yet exited). The second widget is your live portfolio monitor.
Pinning Workbench results to the dashboard
Alert configuration: Create a compound alert with these conditions: TAS crosses ±50 AND TRP regime is in the allowed list AND regime intensity is above 50. This three-condition alert fires only for regime-filtered signals. Deliver via push notification with the full metric snapshot (TPS, TAS score and label, TRP regime and intensity) in the notification body.
Honest Limitations and Expectations
No strategy wins every trade. Setting realistic expectations prevents you from abandoning a working system during a normal drawdown.
| TPS Crossover | Expected win rate: 55–65%. Strength: catches trending moves early. Weakness: whipsaws in Chop regimes, slow to exit distribution tops. Best improvement: add TRP Chop filter. |
| TAS Threshold | Expected win rate: 60–70%. Strength: high-conviction entries with clear exit rules. Weakness: low signal frequency (may miss moves that start below ±50). Best improvement: scale entry thresholds by TPS level. |
| Regime-Filtered | Expected win rate: 65–75%. Strength: highest signal quality, lowest noise. Weakness: very low signal count (1–3 per asset per month), may feel like missing opportunities. Best improvement: expand to more assets to increase total signal flow. |
All three strategies share common limitations. They are based on daily or intra-day metric snapshots, which means they cannot react to minute-level events. Black swan events (exchange failures, regulatory announcements, zero-day exploits) can move markets faster than any metric can update. Always use stop-losses as your final line of defense regardless of what the metrics say.
These strategies are starting points. The Workbench gives you the raw metric data to modify thresholds, test new combinations, and build entirely novel strategies. The most successful Thrive users treat these as foundations: then iterate, backtest, and refine until they have a system that matches their risk tolerance, time horizon, and trading style.
Your edge is in the iteration
1.What are the three dimensions that make up the Thrive Power Score (TPS)?
2.When TAS (Thrive Alpha Signal) crosses above +50 with a Bullish label, what does this indicate?
3.What is the correct response when TRP transitions from Accumulation to Breakout regime?
4.In the TPS Crossover strategy, what additional filter dramatically improves the win rate from 55–65% to 65–75%?
5.Why is the Workbench critical for building metric-based strategies rather than just using the dashboard?
Put this lesson to work
Free on Thrive, no account needed.