OPEN-SOURCE SCRIPT
STRYK Market Bias

Multi-timeframe EMA-alignment dashboard: short-term, long-term, and overall bias boxes, plus an optional two-line color band.
# STRYK Market Bias
A multi-timeframe EMA-alignment dashboard. It reads one moving average across several timeframes at once and summarizes how those timeframes line up into two composite readings — a short-term read and a long-term read — plus a combined overall read. It can also draw a two-line band on the chart. This is a descriptive context tool for discretionary analysis. It does not generate buy or sell signals.
## What it does
For each of several timeframes, it checks whether price is above or below that timeframe's EMA. Above reads bull, below reads bear. Those individual reads are combined into a weighted score for each group and shown as simple BULL / BEAR / NEUTRAL boxes, so you can see multi-timeframe alignment at a glance instead of loading the same moving average on seven separate charts.
## How it works
**One EMA, many timeframes.** A single EMA length (default 233) is applied to each timeframe: fast frames (5m / 15m / 30m, with an optional 1m) and slow frames (1h / 2h / 4h). All higher-timeframe values are taken from the last closed bar by default, so they do not repaint.
**Each frame votes.** Price above its EMA = +1 (bull), below = −1 (bear).
**Two composites, weighted differently on purpose:**
- **Short-term** emphasizes *freshness*. A fast frame that has just flipped receives a temporary extra weight that decays back to normal over a set number of bars, so recent changes on the fast frames carry more emphasis than stale ones.
- **Long-term** emphasizes *persistence*. The longer a slow frame has held its side, the more its vote weighs (up to a cap), so a slow frame that has stayed on one side for a long time carries more of the read.
Each group's score runs from −100 to +100 and is mapped to BULL / BEAR / NEUTRAL with an adjustable threshold. The **Overall** box is a blend of the two (default 60% long-term / 40% short-term, adjustable). A **fresh flag** lights when a fast frame flips within the fresh window in the same direction as the short-term read.
**Per-frame grid (optional).** Expand it to see every timeframe's own arrow and its own bars-since-flip, so you can tell which timeframe is driving or breaking the score.
## The band (optional)
Pick any two timeframes (default 1m and 4h). The EMA of each is drawn as a line and the area between them is filled. The band and lines are colored by where price sits relative to the two lines: above both, between them, or below both. A **fade** option holds the current color until price stays in a new zone for a set number of bars, so a brief poke into the band does not immediately change the color.
## How to use it
Treat it as context, not instructions. When all the boxes agree and sit at their extremes, the timeframes are simply aligned. The more informative moments are when the short-term and long-term reads diverge, or when a fresh flip appears against the current read. Use the per-frame grid to see exactly which timeframe is responsible.
Everything is adjustable: the EMA length and source, which timeframes are used, the weighting mode per group, the fresh and persistence settings, the threshold and overall blend, and the band and its colors, transparency and fade.
## Notes
- With non-repaint on (default), higher-timeframe reads are delayed by one bar of that timeframe in exchange for values that do not change after the fact. Turn it off for live intrabar values, which repaint.
- Timeframes smaller than your chart timeframe are sampled at chart resolution.
- Alerts are provided for short-term, long-term, and overall state changes.
## Disclaimer
This script is for informational and educational purposes only. It does not produce buy or sell signals and makes no claim about future results. Do your own analysis and manage your own risk.
# STRYK Market Bias
A multi-timeframe EMA-alignment dashboard. It reads one moving average across several timeframes at once and summarizes how those timeframes line up into two composite readings — a short-term read and a long-term read — plus a combined overall read. It can also draw a two-line band on the chart. This is a descriptive context tool for discretionary analysis. It does not generate buy or sell signals.
## What it does
For each of several timeframes, it checks whether price is above or below that timeframe's EMA. Above reads bull, below reads bear. Those individual reads are combined into a weighted score for each group and shown as simple BULL / BEAR / NEUTRAL boxes, so you can see multi-timeframe alignment at a glance instead of loading the same moving average on seven separate charts.
## How it works
**One EMA, many timeframes.** A single EMA length (default 233) is applied to each timeframe: fast frames (5m / 15m / 30m, with an optional 1m) and slow frames (1h / 2h / 4h). All higher-timeframe values are taken from the last closed bar by default, so they do not repaint.
**Each frame votes.** Price above its EMA = +1 (bull), below = −1 (bear).
**Two composites, weighted differently on purpose:**
- **Short-term** emphasizes *freshness*. A fast frame that has just flipped receives a temporary extra weight that decays back to normal over a set number of bars, so recent changes on the fast frames carry more emphasis than stale ones.
- **Long-term** emphasizes *persistence*. The longer a slow frame has held its side, the more its vote weighs (up to a cap), so a slow frame that has stayed on one side for a long time carries more of the read.
Each group's score runs from −100 to +100 and is mapped to BULL / BEAR / NEUTRAL with an adjustable threshold. The **Overall** box is a blend of the two (default 60% long-term / 40% short-term, adjustable). A **fresh flag** lights when a fast frame flips within the fresh window in the same direction as the short-term read.
**Per-frame grid (optional).** Expand it to see every timeframe's own arrow and its own bars-since-flip, so you can tell which timeframe is driving or breaking the score.
## The band (optional)
Pick any two timeframes (default 1m and 4h). The EMA of each is drawn as a line and the area between them is filled. The band and lines are colored by where price sits relative to the two lines: above both, between them, or below both. A **fade** option holds the current color until price stays in a new zone for a set number of bars, so a brief poke into the band does not immediately change the color.
## How to use it
Treat it as context, not instructions. When all the boxes agree and sit at their extremes, the timeframes are simply aligned. The more informative moments are when the short-term and long-term reads diverge, or when a fresh flip appears against the current read. Use the per-frame grid to see exactly which timeframe is responsible.
Everything is adjustable: the EMA length and source, which timeframes are used, the weighting mode per group, the fresh and persistence settings, the threshold and overall blend, and the band and its colors, transparency and fade.
## Notes
- With non-repaint on (default), higher-timeframe reads are delayed by one bar of that timeframe in exchange for values that do not change after the fact. Turn it off for live intrabar values, which repaint.
- Timeframes smaller than your chart timeframe are sampled at chart resolution.
- Alerts are provided for short-term, long-term, and overall state changes.
## Disclaimer
This script is for informational and educational purposes only. It does not produce buy or sell signals and makes no claim about future results. Do your own analysis and manage your own risk.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。