OPEN-SOURCE SCRIPT
StonkGame MTF MA Trend Table

Overview
StonkGame MTF MAs & Trend Table is designed to provide objective market context across multiple trading horizons, regardless of the timeframe you're trading.
Rather than trying to predict future price, it measures where price sits relative to trend, whether that trend is strengthening or weakening, how well different horizons agree with one another, and whether today's move is typical or historically unusual.
The goal is to keep the bigger picture in view, whether you're trading a 1-minute chart or managing a long-term position.
How It Works
Each horizon (Hourly, Daily, Weekly, Monthly, Quarterly, Half-Year, Yearly and Multi-Year) can use its own timeframe and moving average length. Every horizon evaluates:
Price relative to its moving average
Trend direction and momentum
Historical Z-score
Historical percentile
Adaptive normalization
Those measurements are combined into an objective view of trend quality, momentum and cross-horizon alignment.
Adaptive Normalization
Markets don't all behave the same. A 2% move in SPY doesn't carry the same meaning as a 2% move in Bitcoin, crude oil or gold.
Instead of comparing raw price movement, each horizon compares today's reading against that market's own history using up to 1,000 valid observations. If less history exists, the script automatically uses the largest reliable sample available. If there isn't enough data to produce meaningful statistics, it displays N/A rather than potentially misleading values.
Reading the Dashboard
The dashboard is designed to answer four questions:
Trend: Is the market structurally bullish, bearish or mixed?
Momentum: Is that trend strengthening or weakening?
Context: How unusual is the current move relative to its own history?
Alignment: Are different trading horizons telling the same story?
The Setup Score summarizes overall trend quality, consistency and market structure. Higher scores generally reflect cleaner, more aligned conditions, while lower scores suggest greater conflict or uncertainty.
Notes
This indicator is descriptive, not predictive. Strong trends can stay extended, and statistically extreme readings are not automatic buy or sell signals. They are intended to provide context alongside price action, risk management and your own trading process.
Changing the moving average type, timeframe, horizon lengths or normalization settings changes how the market is evaluated. There is no universally correct configuration—choose settings that match your trading horizon and objectives.
StonkGame MTF MAs & Trend Table is designed to provide objective market context across multiple trading horizons, regardless of the timeframe you're trading.
Rather than trying to predict future price, it measures where price sits relative to trend, whether that trend is strengthening or weakening, how well different horizons agree with one another, and whether today's move is typical or historically unusual.
The goal is to keep the bigger picture in view, whether you're trading a 1-minute chart or managing a long-term position.
How It Works
Each horizon (Hourly, Daily, Weekly, Monthly, Quarterly, Half-Year, Yearly and Multi-Year) can use its own timeframe and moving average length. Every horizon evaluates:
Price relative to its moving average
Trend direction and momentum
Historical Z-score
Historical percentile
Adaptive normalization
Those measurements are combined into an objective view of trend quality, momentum and cross-horizon alignment.
Adaptive Normalization
Markets don't all behave the same. A 2% move in SPY doesn't carry the same meaning as a 2% move in Bitcoin, crude oil or gold.
Instead of comparing raw price movement, each horizon compares today's reading against that market's own history using up to 1,000 valid observations. If less history exists, the script automatically uses the largest reliable sample available. If there isn't enough data to produce meaningful statistics, it displays N/A rather than potentially misleading values.
Reading the Dashboard
The dashboard is designed to answer four questions:
Trend: Is the market structurally bullish, bearish or mixed?
Momentum: Is that trend strengthening or weakening?
Context: How unusual is the current move relative to its own history?
Alignment: Are different trading horizons telling the same story?
The Setup Score summarizes overall trend quality, consistency and market structure. Higher scores generally reflect cleaner, more aligned conditions, while lower scores suggest greater conflict or uncertainty.
Notes
This indicator is descriptive, not predictive. Strong trends can stay extended, and statistically extreme readings are not automatic buy or sell signals. They are intended to provide context alongside price action, risk management and your own trading process.
Changing the moving average type, timeframe, horizon lengths or normalization settings changes how the market is evaluated. There is no universally correct configuration—choose settings that match your trading horizon and objectives.
สคริปต์แบบโอเพนซอร์ส
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์แบบโอเพนซอร์ส
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน