PROTECTED SOURCE SCRIPT
업데이트됨 Exact-Month Avg & Vol (USDT) + Winsor/Clip/RV - V0.95d by McToga

What the indicator does
1) Data basis & window Uses the chart symbol by default (or manually via input). Works internally with daily closing prices (request.security(..., “D”, ...)) – regardless of whether you use D/W/M in the chart. Exact monthly logic: The evaluation window is determined by actual calendar months (1/3/6/12 or custom), not by fixed 30/90 days.
2) Returns & preprocessingReturn definition selectable: logarithmic (default) or simple return – each in %/day. Winsorizing (lower/upper percentile) and clipping (|r| ≤ X percentage points) optional to limit outliers.
3) Key figures (not annualized)Arithmetic daily volatility: Mean of absolute daily returns in %.Median volatility: Median of absolute daily returns in %. Standard deviation (StdDev) of daily returns in %. Realized variance (RV) = Σ r² and √RV (indicative of cumulative realized vol).
4) Annualization (optional) Basis 252 or 365 days. For |r|-based measures (arithmetic/median), optional Abs→Sigma factor √(π/2) to bring them closer to StdDev. Provides arithmetic p.a., median p.a., StdDev p.a., RV p.a..
5) Additional metrics Avg Price: Arithmetic average of daily closes in the window. Days (effDays): Number of trading days actually considered in the window.
6) Display & operation Only active on D/W/M (intraday everything is suppressed). Short mode (default): compact table with Avg Price • Days • Arith Vol • Median Vol • StdDev • √RV • Arith p.a. • Median p.a. • StdDev p.a. • RV p.a. Full mode: detailed table; individual rows can be toggled (Avg Price, Arith/Median/StdDev, RV, Annuals). Positions: table can be selected at 4 corners; toggle without restarting. Label (optional): compact text summary on the chart (corner selectable). Price plot (optional): 1D close as overlay.
7) Help, Debug & AlertsOnline help: 3 lines in the status bar (Help-On variant).Debug table (optional): shows RetCount, Winsor limits, clip status, key figures.Alert: Trigger when arithmetic daily volatility ≥ threshold value.
8) RobustnessTables/label handles are correctly deleted/recreated when TF/mode/position changes.No prohibited global writes in functions; clear typing (no na on bool).Typical useSelect monthly window (e.g., 3M) → optionally set Winsor/clip.Short or full as needed; select position. Annualization on/off; activate Abs→Sigma if necessary. Optional: Switch on label/price plot/debug; set alert threshold.
1) Data basis & window Uses the chart symbol by default (or manually via input). Works internally with daily closing prices (request.security(..., “D”, ...)) – regardless of whether you use D/W/M in the chart. Exact monthly logic: The evaluation window is determined by actual calendar months (1/3/6/12 or custom), not by fixed 30/90 days.
2) Returns & preprocessingReturn definition selectable: logarithmic (default) or simple return – each in %/day. Winsorizing (lower/upper percentile) and clipping (|r| ≤ X percentage points) optional to limit outliers.
3) Key figures (not annualized)Arithmetic daily volatility: Mean of absolute daily returns in %.Median volatility: Median of absolute daily returns in %. Standard deviation (StdDev) of daily returns in %. Realized variance (RV) = Σ r² and √RV (indicative of cumulative realized vol).
4) Annualization (optional) Basis 252 or 365 days. For |r|-based measures (arithmetic/median), optional Abs→Sigma factor √(π/2) to bring them closer to StdDev. Provides arithmetic p.a., median p.a., StdDev p.a., RV p.a..
5) Additional metrics Avg Price: Arithmetic average of daily closes in the window. Days (effDays): Number of trading days actually considered in the window.
6) Display & operation Only active on D/W/M (intraday everything is suppressed). Short mode (default): compact table with Avg Price • Days • Arith Vol • Median Vol • StdDev • √RV • Arith p.a. • Median p.a. • StdDev p.a. • RV p.a. Full mode: detailed table; individual rows can be toggled (Avg Price, Arith/Median/StdDev, RV, Annuals). Positions: table can be selected at 4 corners; toggle without restarting. Label (optional): compact text summary on the chart (corner selectable). Price plot (optional): 1D close as overlay.
7) Help, Debug & AlertsOnline help: 3 lines in the status bar (Help-On variant).Debug table (optional): shows RetCount, Winsor limits, clip status, key figures.Alert: Trigger when arithmetic daily volatility ≥ threshold value.
8) RobustnessTables/label handles are correctly deleted/recreated when TF/mode/position changes.No prohibited global writes in functions; clear typing (no na on bool).Typical useSelect monthly window (e.g., 3M) → optionally set Winsor/clip.Short or full as needed; select position. Annualization on/off; activate Abs→Sigma if necessary. Optional: Switch on label/price plot/debug; set alert threshold.
릴리즈 노트
What the indicator does1.) Data basis & window Uses the chart symbol by default (or manually via input).
Works internally with daily closing prices (request.security(..., “D”, ...))
regardless of whether you use D/W/M in the chart.
Exact monthly logic: The evaluation window is determined by
actual calendar months (1/3/6/12 or custom), not by fixed 30/90 days.
2.) Returns & preprocessingReturn definition selectable:
logarithmic (default) or simple return – each in %/day.
Winsorizing (lower/upper percentile) and clipping (|r| ≤ X percentage points)
optional to limit outliers.
3.) Key figures (not annualized) Arithmetic daily volatility:
Mean of absolute daily returns in %.Median volatility: Median of absolute daily returns in %.
Standard deviation (StdDev) of daily returns in %.
Realized variance (RV) = Σ r² and √RV (indicative of cumulative realized vol).
4.) Annualization (optional) Basis 252 or 365 days.
For |r|-based measures (arithmetic/median), optional Abs→Sigma factor √(π/2)
to bring them closer to StdDev. Provides arithmetic p.a., median p.a., StdDev p.a., RV p.a..
5.) Additional metrics Avg Price:
Arithmetic average of daily closes in the window.
Days (effDays): Number of trading days actually considered in the window.
6.) Display & operation Only active on D/W/M (intraday everything is suppressed).
Short mode (default):
compact table with
Avg Price • Days • Arith Vol • Median Vol • StdDev • √RV • Arith p.a. •
Median p.a. • StdDev p.a. • RV p.a.
Full mode: detailed table; individual rows can be toggled
(Avg Price, Arith/Median/StdDev, RV, Annuals).
Positions: table can be selected at 4 corners; toggle without restarting.
Label (optional): compact text summary on the chart (corner selectable).
Price plot (optional): 1D close as overlay.
7.) Help, Debug & AlertsOnline help: 3 lines in the status bar (Help-On variant).
Debug table (optional): shows RetCount, Winsor limits, clip status, key figures.
Alert: Trigger when arithmetic daily volatility ≥ threshold value.
8.) RobustnessTables/label handles are correctly deleted/recreated
when TF/mode/position changes.
No prohibited global writes in functions; clear typing (no na on bool).
Typical useSelect monthly window (e.g., 3M) → optionally set Winsor/clip.
Short or full as needed; select position. Annualization on/off;
activate Abs→Sigma if necessary.
Optional: Switch on label/price plot/debug; set alert threshold.
보호된 스크립트입니다
이 스크립트는 비공개 소스로 게시됩니다. 하지만 이를 자유롭게 제한 없이 사용할 수 있습니다 – 자세한 내용은 여기에서 확인하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
보호된 스크립트입니다
이 스크립트는 비공개 소스로 게시됩니다. 하지만 이를 자유롭게 제한 없이 사용할 수 있습니다 – 자세한 내용은 여기에서 확인하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.