PROTECTED SOURCE SCRIPT
已更新

Sigma-Level

238
1-Sigma-Level Indicator (for 28 FX Pairs)
This TradingView indicator calculates and visualizes the 1-sigma price projection range for the current FX pair, based on implied volatility (IV) and a user-defined reference price.

🔧 User Inputs
1. Implied Volatility (IV) Selection
You can choose which volatility term to apply:
ON (Overnight)
1W (1 Week)
1M (1 Month)

Each currency pair uses manually entered IV values (in %), grouped by base currency (USD, EUR, GBP, etc.).

https://www.investing.com/currencies/forex-options

2. Base Price Selection
You can define the price level used as the anchor for the sigma projection:

CurrentPrice — live market price
YesterdayClose — close of the previous day
LastHourClose — close of the last 1-hour candle
LastFriday — weekly close from last Friday
LastMonthClose — close of the previous monthly candle
LastYearClose — close of the previous yearly candle

These values are retrieved using the appropriate timeframe (D, W, M, 12M, or 60 for hourly).

📐 How the Calculation Works
The indicator calculates the 1σ range using this formula:

1σ Range = basePrice × (IV / √N) / 100
Where:
basePrice is the selected anchor price.

IV is the selected implied volatility for the current pair.

N is the number of periods per year, depending on the IV term:
√252 for ON (trading days)
√52 for 1W (weeks)
√12 for 1M (months)

The upper and lower bands are then:
1σ Up = basePrice + range
1σ Down = basePrice - range

These bands are plotted only during the current calendar week.

🖼️ Visual Output
Green Line: 1σ Upper Boundary
Red Line: 1σ Lower Boundary
Labels show the exact 1σ values at the most recent bar

⚠️ Disclaimer
This indicator is for informational and analytical purposes only. It does not constitute financial advice, a trading signal, or a guarantee of future performance. Always perform your own research and consult with a qualified financial advisor before making trading decisions.
發行說明
Updaten Input to ON 1W and 1M
發行說明
Fix Price Settings
發行說明
Shrink to only ON

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。