PROTECTED SOURCE SCRIPT
Fair Value Z Gauge

๐ Fair Value Z Gauge Indicator Description
- This indicator visually represents whether the price is relatively overvalued or undervalued compared to a specific moving average (MA) using a Z-score normalization approach.
- When the Z-score is around 0, it can be interpreted statistically as fair value or "fair price."
โ Key Concept
- Price-to-MA ratio (p_ratio): Calculated by dividing the price by the MA and then subtracting 1, this shows the relative deviation from the moving average.
- Z-score normalization: p_ratio is divided by its 200-period standard deviation, making it easy to identify statistically significant overbought or oversold zones.
โ Default & User Inputs
- Default MA period (100, DEMA by default)
- Selectable MA types: EMA, SMA, WMA, VWMA, RMA, DEMA, TEMA, ZLEMA, HMA
- Upper/lower threshold levels (h_level: 3, l_level: -1.5)
- Signal line period (default: 100) and line thickness
โ Visualization
- Z-score line: Red gradient for overbought, aqua/green gradient for oversold zones
- Signal line: SMA of p_ratio for trend confirmation
- Upper/lower threshold lines: Clearly indicate risk and undervaluation zones
- Fill highlights: Visual emphasis when crossing thresholds
- Bar color: Automatically adjusts based on Z-score status
- Table: Displays real-time p_ratio value
โ Swing Trading Strategy Interpretation & Usage
- Upper red peak: Overbought zone โ Mandatory profit-taking or sell signal
- Lower blue bottom: Undervalued zone โ Mandatory buy signal
- Line dropping toward 0: Ideal for gradual, phased entries (scaling in)
- Signal line: Helps confirm overall trend and entry/exit timing
๐ก Usage Ideas
- Enables clear, quantified entry/exit strategies based on statistical overextension
- Allows for various MA combinations to define personalized "fair value" levels
- Ideal for scaling in/out and portfolio rebalancing strategies
copyright invest_hedgeway
===========================================================================
๐ Fair Value Z Gauge ์งํ ์ค๋ช
- ์ด ์งํ๋ ๊ฐ๊ฒฉ์ด ํน์ ์ด๋ํ๊ท (MA) ๋๋น ์๋์ ์ผ๋ก ๊ณ ํ๊ฐ(Overvalued) ํน์ ์ ํ๊ฐ(Undervalued) ๋์๋์ง๋ฅผ Z-score ๋ฐฉ์์ผ๋ก ์ ๊ทํํ์ฌ ์๊ฐ์ ์ผ๋ก ๋ณด์ฌ์ค๋๋ค.
- Z-Score๊ฐ 0์ด๋ผ๋ฉด ํต๊ณ์ ์ผ๋ก ์ ์ ํ๊ฐ=๊ณต์ ๊ฐ์น๋ผ๊ณ ์ค๋ช ํ ์ ์์ต๋๋ค.
โ ์ฃผ์ ๊ฐ๋
-๊ฐ๊ฒฉ ๋๋น ์ด๋ํ๊ท ๋น์จ (p_ratio) : ๊ฐ๊ฒฉ์ MA๋ก ๋๋ ๋ค -1์ ์ ์ฉํด MA์์ ์๋์ ๊ดด๋ฆฌ๋ฅผ ๊ณ์ฐํฉ๋๋ค.
- Z-score ๊ธฐ๋ฐ ์ ๊ทํ: p_ratio๋ฅผ 200๊ธฐ๊ฐ ํ์คํธ์ฐจ๋ก ๋๋์ด, ํต๊ณ์ ์ผ๋ก ์๋ฏธ ์๋ ๊ณผ์ด ๊ตฌ๊ฐ๊ณผ ์ ํ๊ฐ ๊ตฌ๊ฐ์ ์ฝ๊ฒ ํ์ ํ๋๋ก ์ค๊ณํ์ต๋๋ค.
โ ๊ธฐ๋ณธ ์ ๋ ฅ ๋ฐ ์ฌ์ฉ์ ์ ๋ ฅ๊ฐ
- ๊ธฐ๋ณธ MA ๊ธฐ๊ฐ (๊ธฐ๋ณธ: 100, DEMA)
- MA ์ ํ ์ ํ ๊ฐ๋ฅ : EMA, SMA, WMA, VWMA, RMA, DEMA, TEMA, ZLEMA, HMA
- ์๋จ/ํ๋จ ๊ธฐ์ค ๊ฒฝ๊ณ์ (h_level: 3, l_level: -1.5)
- ์๊ทธ๋ ๋ผ์ธ ๊ธฐ๊ฐ (๊ธฐ๋ณธ: 100) ๋ฐ ๊ตต๊ธฐ
โ ์๊ฐํ ๊ตฌ์ฑ
- Z-score ๋ผ์ธ: ๊ณผ์ด ์ ๋นจ๊ฐ์, ๊ณผ๋งค๋ ์ ์ฒญ๋ก์/๋ น์ ๊ทธ๋ผ๋์ธํธ
- ์๊ทธ๋ ๋ผ์ธ: p_ratio์ SMA๋ก ์ถ์ธ ๋ณด์กฐ
- ์๋จ/ํ๋จ ๊ธฐ์ค์ : ์ํ ๊ตฌ๊ฐ๊ณผ ์ ์ ๊ตฌ๊ฐ ํ๋์ ํ์ธ
- fill ๊ฐ์กฐ: ๊ธฐ์ค์ ๋ํ ์ ์๊ฐ์ ๊ฐ์กฐ
- ๋ฐ ์์: Z-score ์ํ์ ๋ฐ๋ผ ์๋ ์ฑ์
- ํ ์ด๋ธ: ํ์ฌ p_ratio ๊ฐ ์ค์๊ฐ ํ์
โ ์ค์๋งค๋งค ๊ฐ ์ ๋ต์ ํด์ ๋ฐ ํ์ฉ
- ์๋จ ๋นจ๊ฐ ์์ ์ต๊ณ ยท์ ์ : ๊ณผ์ด ๊ตฌ๊ฐ โ ๋ฐ๋์ ์ฐจ์ต์คํ ๋๋ ๋งค๋ ์ ํธ
- ํ๋จ ํ๋ ์์ ์ ์ : ์ ํ๊ฐ ๊ตฌ๊ฐ โ ๋ฐ๋์ ๋งค์ ์ ํธ
- ์ ์ด ํ๋ฝํ๋ฉฐ 0 ์ธ๊ทผ ๋๋ฌ: ๋จ๊ณ์ ๋ถํ ๋งค์ ์์
- ์๊ทธ๋ ๋ผ์ธ์ ์ ์ฒด ํ๋ฆ๊ณผ ์ถ๊ฐ ํ์ด๋ฐ ๋ณด์กฐ
๐ก ํ์ฉ ์์ด๋์ด
- ์ ๋ํ๋ ๊ณผ์ดยท๊ณผ๋งค๋ ๊ธฐ์ค์ผ๋ก ๋จํธํ ์ง์ ยท์ฒญ์ฐ ์ ๋ต ๊ฐ๋ฅ
- ๋ค์ํ MA ์คํ์ผ๋ก ์์ ๋ง์ "๊ณต์ ๊ฐ์น" ํ์
- ๋ถํ ๋งค์ยท๋งค๋, ํฌํธํด๋ฆฌ์ค ๋ฆฌ๋ฐธ๋ฐ์ฑ ์ ๋ต์ ์ต์
copyright invest_hedgeway
- This indicator visually represents whether the price is relatively overvalued or undervalued compared to a specific moving average (MA) using a Z-score normalization approach.
- When the Z-score is around 0, it can be interpreted statistically as fair value or "fair price."
โ Key Concept
- Price-to-MA ratio (p_ratio): Calculated by dividing the price by the MA and then subtracting 1, this shows the relative deviation from the moving average.
- Z-score normalization: p_ratio is divided by its 200-period standard deviation, making it easy to identify statistically significant overbought or oversold zones.
โ Default & User Inputs
- Default MA period (100, DEMA by default)
- Selectable MA types: EMA, SMA, WMA, VWMA, RMA, DEMA, TEMA, ZLEMA, HMA
- Upper/lower threshold levels (h_level: 3, l_level: -1.5)
- Signal line period (default: 100) and line thickness
โ Visualization
- Z-score line: Red gradient for overbought, aqua/green gradient for oversold zones
- Signal line: SMA of p_ratio for trend confirmation
- Upper/lower threshold lines: Clearly indicate risk and undervaluation zones
- Fill highlights: Visual emphasis when crossing thresholds
- Bar color: Automatically adjusts based on Z-score status
- Table: Displays real-time p_ratio value
โ Swing Trading Strategy Interpretation & Usage
- Upper red peak: Overbought zone โ Mandatory profit-taking or sell signal
- Lower blue bottom: Undervalued zone โ Mandatory buy signal
- Line dropping toward 0: Ideal for gradual, phased entries (scaling in)
- Signal line: Helps confirm overall trend and entry/exit timing
๐ก Usage Ideas
- Enables clear, quantified entry/exit strategies based on statistical overextension
- Allows for various MA combinations to define personalized "fair value" levels
- Ideal for scaling in/out and portfolio rebalancing strategies
copyright invest_hedgeway
===========================================================================
๐ Fair Value Z Gauge ์งํ ์ค๋ช
- ์ด ์งํ๋ ๊ฐ๊ฒฉ์ด ํน์ ์ด๋ํ๊ท (MA) ๋๋น ์๋์ ์ผ๋ก ๊ณ ํ๊ฐ(Overvalued) ํน์ ์ ํ๊ฐ(Undervalued) ๋์๋์ง๋ฅผ Z-score ๋ฐฉ์์ผ๋ก ์ ๊ทํํ์ฌ ์๊ฐ์ ์ผ๋ก ๋ณด์ฌ์ค๋๋ค.
- Z-Score๊ฐ 0์ด๋ผ๋ฉด ํต๊ณ์ ์ผ๋ก ์ ์ ํ๊ฐ=๊ณต์ ๊ฐ์น๋ผ๊ณ ์ค๋ช ํ ์ ์์ต๋๋ค.
โ ์ฃผ์ ๊ฐ๋
-๊ฐ๊ฒฉ ๋๋น ์ด๋ํ๊ท ๋น์จ (p_ratio) : ๊ฐ๊ฒฉ์ MA๋ก ๋๋ ๋ค -1์ ์ ์ฉํด MA์์ ์๋์ ๊ดด๋ฆฌ๋ฅผ ๊ณ์ฐํฉ๋๋ค.
- Z-score ๊ธฐ๋ฐ ์ ๊ทํ: p_ratio๋ฅผ 200๊ธฐ๊ฐ ํ์คํธ์ฐจ๋ก ๋๋์ด, ํต๊ณ์ ์ผ๋ก ์๋ฏธ ์๋ ๊ณผ์ด ๊ตฌ๊ฐ๊ณผ ์ ํ๊ฐ ๊ตฌ๊ฐ์ ์ฝ๊ฒ ํ์ ํ๋๋ก ์ค๊ณํ์ต๋๋ค.
โ ๊ธฐ๋ณธ ์ ๋ ฅ ๋ฐ ์ฌ์ฉ์ ์ ๋ ฅ๊ฐ
- ๊ธฐ๋ณธ MA ๊ธฐ๊ฐ (๊ธฐ๋ณธ: 100, DEMA)
- MA ์ ํ ์ ํ ๊ฐ๋ฅ : EMA, SMA, WMA, VWMA, RMA, DEMA, TEMA, ZLEMA, HMA
- ์๋จ/ํ๋จ ๊ธฐ์ค ๊ฒฝ๊ณ์ (h_level: 3, l_level: -1.5)
- ์๊ทธ๋ ๋ผ์ธ ๊ธฐ๊ฐ (๊ธฐ๋ณธ: 100) ๋ฐ ๊ตต๊ธฐ
โ ์๊ฐํ ๊ตฌ์ฑ
- Z-score ๋ผ์ธ: ๊ณผ์ด ์ ๋นจ๊ฐ์, ๊ณผ๋งค๋ ์ ์ฒญ๋ก์/๋ น์ ๊ทธ๋ผ๋์ธํธ
- ์๊ทธ๋ ๋ผ์ธ: p_ratio์ SMA๋ก ์ถ์ธ ๋ณด์กฐ
- ์๋จ/ํ๋จ ๊ธฐ์ค์ : ์ํ ๊ตฌ๊ฐ๊ณผ ์ ์ ๊ตฌ๊ฐ ํ๋์ ํ์ธ
- fill ๊ฐ์กฐ: ๊ธฐ์ค์ ๋ํ ์ ์๊ฐ์ ๊ฐ์กฐ
- ๋ฐ ์์: Z-score ์ํ์ ๋ฐ๋ผ ์๋ ์ฑ์
- ํ ์ด๋ธ: ํ์ฌ p_ratio ๊ฐ ์ค์๊ฐ ํ์
โ ์ค์๋งค๋งค ๊ฐ ์ ๋ต์ ํด์ ๋ฐ ํ์ฉ
- ์๋จ ๋นจ๊ฐ ์์ ์ต๊ณ ยท์ ์ : ๊ณผ์ด ๊ตฌ๊ฐ โ ๋ฐ๋์ ์ฐจ์ต์คํ ๋๋ ๋งค๋ ์ ํธ
- ํ๋จ ํ๋ ์์ ์ ์ : ์ ํ๊ฐ ๊ตฌ๊ฐ โ ๋ฐ๋์ ๋งค์ ์ ํธ
- ์ ์ด ํ๋ฝํ๋ฉฐ 0 ์ธ๊ทผ ๋๋ฌ: ๋จ๊ณ์ ๋ถํ ๋งค์ ์์
- ์๊ทธ๋ ๋ผ์ธ์ ์ ์ฒด ํ๋ฆ๊ณผ ์ถ๊ฐ ํ์ด๋ฐ ๋ณด์กฐ
๐ก ํ์ฉ ์์ด๋์ด
- ์ ๋ํ๋ ๊ณผ์ดยท๊ณผ๋งค๋ ๊ธฐ์ค์ผ๋ก ๋จํธํ ์ง์ ยท์ฒญ์ฐ ์ ๋ต ๊ฐ๋ฅ
- ๋ค์ํ MA ์คํ์ผ๋ก ์์ ๋ง์ "๊ณต์ ๊ฐ์น" ํ์
- ๋ถํ ๋งค์ยท๋งค๋, ํฌํธํด๋ฆฌ์ค ๋ฆฌ๋ฐธ๋ฐ์ฑ ์ ๋ต์ ์ต์
copyright invest_hedgeway
Geschรผtztes Skript
Dieses Script ist als Closed-Source verรถffentlicht. Sie kรถnnen es kostenlos und ohne Einschrรคnkungen verwenden โ erfahren Sie hier mehr.
Haftungsausschluss
Die Informationen und Verรถffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlรคgen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Geschรผtztes Skript
Dieses Script ist als Closed-Source verรถffentlicht. Sie kรถnnen es kostenlos und ohne Einschrรคnkungen verwenden โ erfahren Sie hier mehr.
Haftungsausschluss
Die Informationen und Verรถffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlรคgen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.