PROTECTED SOURCE SCRIPT

Fair Value Z Gauge

125
๐Ÿ“Š 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

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.