OPEN-SOURCE SCRIPT
Telah dikemas kini ATR%

指標概要 / Overview
ATR Percentage (MTF):把 ATR 轉為百分比(ATR%)或保留為絕對值,並在該「波動序列」上套用布林帶。支援多週期(MTF)計算:例如在 5 分圖顯示 4H / D1 的 ATR%。內建白色點狀水平線作為固定門檻(預設 1%)。
ATR Percentage (MTF): Converts ATR to a percentage of price (ATR%) or keeps it as absolute ATR, then applies Bollinger Bands on this volatility series. Supports multi-timeframe (MTF) calculation (e.g., show 4H/D1 ATR% on a 5-min chart). Includes a configurable white dotted horizontal threshold line (default 1%).
⸻
設計目的 / Purpose
• 以 ATR% 衡量相對波動,利於跨品種比較。
Use ATR% for relative volatility to compare across markets.
• 以 布林帶 標示「高/低波動區」,觀察擴張與壓縮。
Use Bollinger Bands on volatility to highlight expansion/squeeze.
• 提供 固定閾值(1%) 作為策略濾網或告警門檻。
Provide a fixed threshold (1%) for filters/alerts.
• 以 MTF 方式,讓低週期策略用高週期波動做濾網。
MTF lets lower-TF strategies filter by higher-TF volatility.
⸻
參數說明 / Inputs
• Use ATR as % of Close:切換 ATR(絕對值)/ ATR%(建議)。
Toggle between absolute ATR and ATR% (recommended).
• ATR Periods:ATR 計算長度(預設 22)。
ATR lookback (default 22).
• Show Bollinger Bands / BB Periods / StdDev:布林帶開關、長度與倍數(預設 20 / 2)。
Bollinger Bands on/off, length, and deviation (default 20 / 2).
• Source Timeframe:計算用週期(如 60、240、D、W;留空/Chart = 跟隨圖表)。
Timeframe used for calculations (e.g., 60, 240, D, W; empty/“Chart” = current).
• Threshold Line (%):白色點線門檻,預設 1.0(即 1%)。
White dotted threshold line, default 1.0 (1%).
提醒:當 非 ATR% 模式時,Threshold 值代表「價格單位」而非百分比。
Note: In non-ATR% mode, the threshold is in price units, not percent.
⸻
訊號解讀 / How to Read
• ATR% > 上軌:波動顯著擴張(趨勢啟動或加速常見)。
ATR% above upper band: significant expansion; often trend ignition/acceleration.
• ATR% < 下軌:波動明顯壓縮(常見於突破前)。
ATR% below lower band: volatility squeeze; often precedes breakouts.
• ATR% 穿越 Threshold(1%):達到固定波動標準,可作策略開關或風控分水嶺。
ATR% crossing the 1% threshold: fixed volatility bar for filters/risk gates.
⸻
內建告警 / Built-in Alerts
• Volatility Breakout (MTF):ATR/ATR% 向上穿越上軌。
Triggers when ATR/ATR% crosses above the upper band.
• Volatility Squeeze (MTF):ATR/ATR% 向下穿越下軌。
Triggers when ATR/ATR% crosses below the lower band.
⸻
使用建議 / Suggested Uses
• 當沖濾網:於 1–5 分圖選擇 4H / D1 作為 Source Timeframe;僅在 ATR% > 1% 且位於中線以上時允許趨勢進場。
Intraday filter: on 1–5m charts, set 4H/D1 as source TF; allow trend entries only when ATR% > 1% and above the midline.
• 突破前偵測:ATR% 長時間貼近下軌 → 留意可能的波動擴張。
Pre-breakout scan: prolonged ATR% near lower band can foreshadow expansion.
• 跨品種比較:用 ATR% 統一指數、外匯、商品的波動刻度。
Cross-asset comparison: ATR% normalizes volatility across indices/FX/commodities.
⸻
已知限制 / Notes
• MTF 對齊:使用 request.security() 對映高週期資料到當前圖表;在歷史回補與即時邊界棒可能略有差異。
MTF alignment: request.security() maps higher-TF data; boundary bars may differ slightly between historical and realtime.
• 百分比分母:ATR% 的分母為同一週期的 close;若需更平滑可改 ATR / SMA(close, N) × 100。
Denominator: ATR% uses same-TF close; for smoother values consider ATR / SMA(close, N) × 100.
• 風險聲明:僅供研究/教育用途,非投資建議,請自行控管風險。
Disclaimer: For research/education only. Not investment advice.
⸻
版本與更新 / Version & Updates
• v1.0:ATR/ATR% + BB(MTF)、1% 白色點線、兩組告警。
v1.0: ATR/ATR% + BB (MTF), 1% white dotted line, two alert conditions.
ATR Percentage (MTF):把 ATR 轉為百分比(ATR%)或保留為絕對值,並在該「波動序列」上套用布林帶。支援多週期(MTF)計算:例如在 5 分圖顯示 4H / D1 的 ATR%。內建白色點狀水平線作為固定門檻(預設 1%)。
ATR Percentage (MTF): Converts ATR to a percentage of price (ATR%) or keeps it as absolute ATR, then applies Bollinger Bands on this volatility series. Supports multi-timeframe (MTF) calculation (e.g., show 4H/D1 ATR% on a 5-min chart). Includes a configurable white dotted horizontal threshold line (default 1%).
⸻
設計目的 / Purpose
• 以 ATR% 衡量相對波動,利於跨品種比較。
Use ATR% for relative volatility to compare across markets.
• 以 布林帶 標示「高/低波動區」,觀察擴張與壓縮。
Use Bollinger Bands on volatility to highlight expansion/squeeze.
• 提供 固定閾值(1%) 作為策略濾網或告警門檻。
Provide a fixed threshold (1%) for filters/alerts.
• 以 MTF 方式,讓低週期策略用高週期波動做濾網。
MTF lets lower-TF strategies filter by higher-TF volatility.
⸻
參數說明 / Inputs
• Use ATR as % of Close:切換 ATR(絕對值)/ ATR%(建議)。
Toggle between absolute ATR and ATR% (recommended).
• ATR Periods:ATR 計算長度(預設 22)。
ATR lookback (default 22).
• Show Bollinger Bands / BB Periods / StdDev:布林帶開關、長度與倍數(預設 20 / 2)。
Bollinger Bands on/off, length, and deviation (default 20 / 2).
• Source Timeframe:計算用週期(如 60、240、D、W;留空/Chart = 跟隨圖表)。
Timeframe used for calculations (e.g., 60, 240, D, W; empty/“Chart” = current).
• Threshold Line (%):白色點線門檻,預設 1.0(即 1%)。
White dotted threshold line, default 1.0 (1%).
提醒:當 非 ATR% 模式時,Threshold 值代表「價格單位」而非百分比。
Note: In non-ATR% mode, the threshold is in price units, not percent.
⸻
訊號解讀 / How to Read
• ATR% > 上軌:波動顯著擴張(趨勢啟動或加速常見)。
ATR% above upper band: significant expansion; often trend ignition/acceleration.
• ATR% < 下軌:波動明顯壓縮(常見於突破前)。
ATR% below lower band: volatility squeeze; often precedes breakouts.
• ATR% 穿越 Threshold(1%):達到固定波動標準,可作策略開關或風控分水嶺。
ATR% crossing the 1% threshold: fixed volatility bar for filters/risk gates.
⸻
內建告警 / Built-in Alerts
• Volatility Breakout (MTF):ATR/ATR% 向上穿越上軌。
Triggers when ATR/ATR% crosses above the upper band.
• Volatility Squeeze (MTF):ATR/ATR% 向下穿越下軌。
Triggers when ATR/ATR% crosses below the lower band.
⸻
使用建議 / Suggested Uses
• 當沖濾網:於 1–5 分圖選擇 4H / D1 作為 Source Timeframe;僅在 ATR% > 1% 且位於中線以上時允許趨勢進場。
Intraday filter: on 1–5m charts, set 4H/D1 as source TF; allow trend entries only when ATR% > 1% and above the midline.
• 突破前偵測:ATR% 長時間貼近下軌 → 留意可能的波動擴張。
Pre-breakout scan: prolonged ATR% near lower band can foreshadow expansion.
• 跨品種比較:用 ATR% 統一指數、外匯、商品的波動刻度。
Cross-asset comparison: ATR% normalizes volatility across indices/FX/commodities.
⸻
已知限制 / Notes
• MTF 對齊:使用 request.security() 對映高週期資料到當前圖表;在歷史回補與即時邊界棒可能略有差異。
MTF alignment: request.security() maps higher-TF data; boundary bars may differ slightly between historical and realtime.
• 百分比分母:ATR% 的分母為同一週期的 close;若需更平滑可改 ATR / SMA(close, N) × 100。
Denominator: ATR% uses same-TF close; for smoother values consider ATR / SMA(close, N) × 100.
• 風險聲明:僅供研究/教育用途,非投資建議,請自行控管風險。
Disclaimer: For research/education only. Not investment advice.
⸻
版本與更新 / Version & Updates
• v1.0:ATR/ATR% + BB(MTF)、1% 白色點線、兩組告警。
v1.0: ATR/ATR% + BB (MTF), 1% white dotted line, two alert conditions.
Nota Keluaran
指標概要 / OverviewATR Percentage (MTF):把 ATR 轉為百分比(ATR%)或保留為絕對值,並在該「波動序列」上套用布林帶。支援多週期(MTF)計算:例如在 5 分圖顯示 4H / D1 的 ATR%。內建白色點狀水平線作為固定門檻(預設 1%)。
ATR Percentage (MTF): Converts ATR to a percentage of price (ATR%) or keeps it as absolute ATR, then applies Bollinger Bands on this volatility series. Supports multi-timeframe (MTF) calculation (e.g., show 4H/D1 ATR% on a 5-min chart). Includes a configurable white dotted horizontal threshold line (default 1%).
⸻
設計目的 / Purpose
• 以 ATR% 衡量相對波動,利於跨品種比較。
Use ATR% for relative volatility to compare across markets.
• 以 布林帶 標示「高/低波動區」,觀察擴張與壓縮。
Use Bollinger Bands on volatility to highlight expansion/squeeze.
• 提供 固定閾值(1%) 作為策略濾網或告警門檻。
Provide a fixed threshold (1%) for filters/alerts.
• 以 MTF 方式,讓低週期策略用高週期波動做濾網。
MTF lets lower-TF strategies filter by higher-TF volatility.
⸻
參數說明 / Inputs
• Use ATR as % of Close:切換 ATR(絕對值)/ ATR%(建議)。
Toggle between absolute ATR and ATR% (recommended).
• ATR Periods:ATR 計算長度(預設 22)。
ATR lookback (default 22).
• Show Bollinger Bands / BB Periods / StdDev:布林帶開關、長度與倍數(預設 20 / 2)。
Bollinger Bands on/off, length, and deviation (default 20 / 2).
• Source Timeframe:計算用週期(如 60、240、D、W;留空/Chart = 跟隨圖表)。
Timeframe used for calculations (e.g., 60, 240, D, W; empty/“Chart” = current).
• Threshold Line (%):白色點線門檻,預設 1.0(即 1%)。
White dotted threshold line, default 1.0 (1%).
提醒:當 非 ATR% 模式時,Threshold 值代表「價格單位」而非百分比。
Note: In non-ATR% mode, the threshold is in price units, not percent.
⸻
訊號解讀 / How to Read
• ATR% > 上軌:波動顯著擴張(趨勢啟動或加速常見)。
ATR% above upper band: significant expansion; often trend ignition/acceleration.
• ATR% < 下軌:波動明顯壓縮(常見於突破前)。
ATR% below lower band: volatility squeeze; often precedes breakouts.
• ATR% 穿越 Threshold(1%):達到固定波動標準,可作策略開關或風控分水嶺。
ATR% crossing the 1% threshold: fixed volatility bar for filters/risk gates.
⸻
內建告警 / Built-in Alerts
• Volatility Breakout (MTF):ATR/ATR% 向上穿越上軌。
Triggers when ATR/ATR% crosses above the upper band.
• Volatility Squeeze (MTF):ATR/ATR% 向下穿越下軌。
Triggers when ATR/ATR% crosses below the lower band.
⸻
使用建議 / Suggested Uses
• 當沖濾網:於 1–5 分圖選擇 4H / D1 作為 Source Timeframe;僅在 ATR% > 1% 且位於中線以上時允許趨勢進場。
Intraday filter: on 1–5m charts, set 4H/D1 as source TF; allow trend entries only when ATR% > 1% and above the midline.
• 突破前偵測:ATR% 長時間貼近下軌 → 留意可能的波動擴張。
Pre-breakout scan: prolonged ATR% near lower band can foreshadow expansion.
• 跨品種比較:用 ATR% 統一指數、外匯、商品的波動刻度。
Cross-asset comparison: ATR% normalizes volatility across indices/FX/commodities.
⸻
已知限制 / Notes
• MTF 對齊:使用 request.security() 對映高週期資料到當前圖表;在歷史回補與即時邊界棒可能略有差異。
MTF alignment: request.security() maps higher-TF data; boundary bars may differ slightly between historical and realtime.
• 百分比分母:ATR% 的分母為同一週期的 close;若需更平滑可改 ATR / SMA(close, N) × 100。
Denominator: ATR% uses same-TF close; for smoother values consider ATR / SMA(close, N) × 100.
• 風險聲明:僅供研究/教育用途,非投資建議,請自行控管風險。
Disclaimer: For research/education only. Not investment advice.
⸻
版本與更新 / Version & Updates
• v1.0:ATR/ATR% + BB(MTF)、1% 白色點線、兩組告警。
v1.0: ATR/ATR% + BB (MTF), 1% white dotted line, two alert conditions.
Nota Keluaran
指標概要 / OverviewATR Percentage (MTF):把 ATR 轉為百分比(ATR%)或保留為絕對值,並在該「波動序列」上套用布林帶。支援多週期(MTF)計算:例如在 5 分圖顯示 4H / D1 的 ATR%。內建白色點狀水平線作為固定門檻(預設 1%)。
ATR Percentage (MTF): Converts ATR to a percentage of price (ATR%) or keeps it as absolute ATR, then applies Bollinger Bands on this volatility series. Supports multi-timeframe (MTF) calculation (e.g., show 4H/D1 ATR% on a 5-min chart). Includes a configurable white dotted horizontal threshold line (default 1%).
⸻
設計目的 / Purpose
• 以 ATR% 衡量相對波動,利於跨品種比較。
Use ATR% for relative volatility to compare across markets.
• 以 布林帶 標示「高/低波動區」,觀察擴張與壓縮。
Use Bollinger Bands on volatility to highlight expansion/squeeze.
• 提供 固定閾值(1%) 作為策略濾網或告警門檻。
Provide a fixed threshold (1%) for filters/alerts.
• 以 MTF 方式,讓低週期策略用高週期波動做濾網。
MTF lets lower-TF strategies filter by higher-TF volatility.
⸻
參數說明 / Inputs
• Use ATR as % of Close:切換 ATR(絕對值)/ ATR%(建議)。
Toggle between absolute ATR and ATR% (recommended).
• ATR Periods:ATR 計算長度(預設 22)。
ATR lookback (default 22).
• Show Bollinger Bands / BB Periods / StdDev:布林帶開關、長度與倍數(預設 20 / 2)。
Bollinger Bands on/off, length, and deviation (default 20 / 2).
• Source Timeframe:計算用週期(如 60、240、D、W;留空/Chart = 跟隨圖表)。
Timeframe used for calculations (e.g., 60, 240, D, W; empty/“Chart” = current).
• Threshold Line (%):白色點線門檻,預設 1.0(即 1%)。
White dotted threshold line, default 1.0 (1%).
提醒:當 非 ATR% 模式時,Threshold 值代表「價格單位」而非百分比。
Note: In non-ATR% mode, the threshold is in price units, not percent.
⸻
訊號解讀 / How to Read
• ATR% > 上軌:波動顯著擴張(趨勢啟動或加速常見)。
ATR% above upper band: significant expansion; often trend ignition/acceleration.
• ATR% < 下軌:波動明顯壓縮(常見於突破前)。
ATR% below lower band: volatility squeeze; often precedes breakouts.
• ATR% 穿越 Threshold(1%):達到固定波動標準,可作策略開關或風控分水嶺。
ATR% crossing the 1% threshold: fixed volatility bar for filters/risk gates.
⸻
內建告警 / Built-in Alerts
• Volatility Breakout (MTF):ATR/ATR% 向上穿越上軌。
Triggers when ATR/ATR% crosses above the upper band.
• Volatility Squeeze (MTF):ATR/ATR% 向下穿越下軌。
Triggers when ATR/ATR% crosses below the lower band.
⸻
數值顯示(狀態列與表格)/ Value Display (Status Line & Table)
• 狀態列顯示:開啟 Show ATR values in status line 後,狀態列會同時顯示 ATR (Abs) 與 ATR (%),兩者皆以 Source Timeframe 計算。
Status line: Enabling Show ATR values in status line displays ATR (Abs) and ATR (%) in the status line, both computed on the Source Timeframe.
• 右上角數值表格:開啟 Show values table (top-right) 後,右上角會出現 2×3 表格,欄位:TF、ATR、ATR%。
Top-right table: Enabling Show values table (top-right) creates a 2×3 table showing TF, ATR, ATR%.
• 格式化:ATR 依商品最小跳動量顯示(mintick);ATR% 以兩位小數顯示(#.##)。
Formatting: ATR uses instrument mintick; ATR% prints two decimals (#.##).
• 更新時機:表格僅在最新K棒更新(barstate.islast),歷史回補後於最後一根同步刷新。
Update timing: Table updates on the last bar (barstate.islast); after historical backfill it refreshes on the final bar.
• 模式說明:非 ATR% 模式下,Threshold 線以價格單位計;表格仍同時顯示 ATR%(百分比)與 ATR(絕對值)。
Mode note: In non-ATR% mode, the Threshold is in price units; the table still shows both ATR% and ATR.
• 多週期一致性:所有數值一律以 Source Timeframe 計算,不受當前圖表週期影響。
MTF consistency: All values are computed on the Source Timeframe, independent of the chart timeframe.
⸻
使用建議 / Suggested Uses
• 當沖濾網:於 1–5 分圖選擇 4H / D1 作為 Source Timeframe;僅在 ATR% > 1% 且位於中線以上時允許趨勢進場。
Intraday filter: On 1–5m charts, set 4H/D1 as source TF; allow trend entries only when ATR% > 1% and above the midline.
• 突破前偵測:ATR% 長時間貼近下軌 → 留意可能的波動擴張。
Pre-breakout scan: Prolonged ATR% near lower band can foreshadow expansion.
• 跨品種比較:用 ATR% 統一指數、外匯、商品的波動刻度。
Cross-asset comparison: ATR% normalizes volatility across indices/FX/commodities.
⸻
已知限制 / Notes
• MTF 對齊:使用 request.security() 對映高週期資料到當前圖表;在歷史回補與即時邊界棒可能略有差異。
MTF alignment: request.security() maps higher-TF data; boundary bars may differ slightly between historical and realtime.
• 百分比分母:ATR% 的分母為同一週期的 close;若需更平滑可改 ATR / SMA(close, N) × 100。
Denominator: ATR% uses same-TF close; for smoother values consider ATR / SMA(close, N) × 100.
• 風險聲明:僅供研究/教育用途,非投資建議,請自行控管風險。
Disclaimer: For research/education only. Not investment advice.
⸻
版本與更新 / Version & Updates
• v1.0:ATR/ATR% + BB(MTF)、1% 白色點線、兩組告警。
v1.0: ATR/ATR% + BB (MTF), 1% white dotted line, two alert conditions.
Nota Keluaran
指標概要 / OverviewATR Percentage (MTF):把 ATR 轉為百分比(ATR%)或保留為絕對值,並在該「波動序列」上套用布林帶。支援多週期(MTF)計算:例如在 5 分圖顯示 4H / D1 的 ATR%。內建白色點狀水平線作為固定門檻(預設 1%)。
ATR Percentage (MTF): Converts ATR to a percentage of price (ATR%) or keeps it as absolute ATR, then applies Bollinger Bands on this volatility series. Supports multi-timeframe (MTF) calculation (e.g., show 4H/D1 ATR% on a 5-min chart). Includes a configurable white dotted horizontal threshold line (default 1%).
⸻
設計目的 / Purpose
• 以 ATR% 衡量相對波動,利於跨品種比較。
Use ATR% for relative volatility to compare across markets.
• 以 布林帶 標示「高/低波動區」,觀察擴張與壓縮。
Use Bollinger Bands on volatility to highlight expansion/squeeze.
• 提供 固定閾值(1%) 作為策略濾網或告警門檻。
Provide a fixed threshold (1%) for filters/alerts.
• 以 MTF 方式,讓低週期策略用高週期波動做濾網。
MTF lets lower-TF strategies filter by higher-TF volatility.
⸻
參數說明 / Inputs
• Use ATR as % of Close:切換 ATR(絕對值)/ ATR%(建議)。
Toggle between absolute ATR and ATR% (recommended).
• ATR Periods:ATR 計算長度(預設 22)。
ATR lookback (default 22).
• Show Bollinger Bands / BB Periods / StdDev:布林帶開關、長度與倍數(預設 20 / 2)。
Bollinger Bands on/off, length, and deviation (default 20 / 2).
• Source Timeframe:計算用週期(如 60、240、D、W;留空/Chart = 跟隨圖表)。
Timeframe used for calculations (e.g., 60, 240, D, W; empty/“Chart” = current).
• Threshold Line (%):白色點線門檻,預設 1.0(即 1%)。
White dotted threshold line, default 1.0 (1%).
提醒:當 非 ATR% 模式時,Threshold 值代表「價格單位」而非百分比。
Note: In non-ATR% mode, the threshold is in price units, not percent.
⸻
訊號解讀 / How to Read
• ATR% > 上軌:波動顯著擴張(趨勢啟動或加速常見)。
ATR% above upper band: significant expansion; often trend ignition/acceleration.
• ATR% < 下軌:波動明顯壓縮(常見於突破前)。
ATR% below lower band: volatility squeeze; often precedes breakouts.
• ATR% 穿越 Threshold(1%):達到固定波動標準,可作策略開關或風控分水嶺。
ATR% crossing the 1% threshold: fixed volatility bar for filters/risk gates.
⸻
內建告警 / Built-in Alerts
• Volatility Breakout (MTF):ATR/ATR% 向上穿越上軌。
Triggers when ATR/ATR% crosses above the upper band.
• Volatility Squeeze (MTF):ATR/ATR% 向下穿越下軌。
Triggers when ATR/ATR% crosses below the lower band.
⸻
數值顯示(狀態列與表格)/ Value Display (Status Line & Table)
• 狀態列顯示:開啟 Show ATR values in status line 後,狀態列會同時顯示 ATR (Abs) 與 ATR (%),兩者皆以 Source Timeframe 計算。
Status line: Enabling Show ATR values in status line displays ATR (Abs) and ATR (%) in the status line, both computed on the Source Timeframe.
• 右上角數值表格:開啟 Show values table (top-right) 後,右上角會出現 2×3 表格,欄位:TF、ATR、ATR%。
Top-right table: Enabling Show values table (top-right) creates a 2×3 table showing TF, ATR, ATR%.
• 格式化:ATR 依商品最小跳動量顯示(mintick);ATR% 以兩位小數顯示(#.##)。
Formatting: ATR uses instrument mintick; ATR% prints two decimals (#.##).
• 更新時機:表格僅在最新K棒更新(barstate.islast),歷史回補後於最後一根同步刷新。
Update timing: Table updates on the last bar (barstate.islast); after historical backfill it refreshes on the final bar.
• 模式說明:非 ATR% 模式下,Threshold 線以價格單位計;表格仍同時顯示 ATR%(百分比)與 ATR(絕對值)。
Mode note: In non-ATR% mode, the Threshold is in price units; the table still shows both ATR% and ATR.
• 多週期一致性:所有數值一律以 Source Timeframe 計算,不受當前圖表週期影響。
MTF consistency: All values are computed on the Source Timeframe, independent of the chart timeframe.
⸻
使用建議 / Suggested Uses
• 當沖濾網:於 1–5 分圖選擇 4H / D1 作為 Source Timeframe;僅在 ATR% > 1% 且位於中線以上時允許趨勢進場。
Intraday filter: On 1–5m charts, set 4H/D1 as source TF; allow trend entries only when ATR% > 1% and above the midline.
• 突破前偵測:ATR% 長時間貼近下軌 → 留意可能的波動擴張。
Pre-breakout scan: Prolonged ATR% near lower band can foreshadow expansion.
• 跨品種比較:用 ATR% 統一指數、外匯、商品的波動刻度。
Cross-asset comparison: ATR% normalizes volatility across indices/FX/commodities.
⸻
已知限制 / Notes
• MTF 對齊:使用 request.security() 對映高週期資料到當前圖表;在歷史回補與即時邊界棒可能略有差異。
MTF alignment: request.security() maps higher-TF data; boundary bars may differ slightly between historical and realtime.
• 百分比分母:ATR% 的分母為同一週期的 close;若需更平滑可改 ATR / SMA(close, N) × 100。
Denominator: ATR% uses same-TF close; for smoother values consider ATR / SMA(close, N) × 100.
• 風險聲明:僅供研究/教育用途,非投資建議,請自行控管風險。
Disclaimer: For research/education only. Not investment advice.
⸻
版本與更新 / Version & Updates
• v1.0:ATR/ATR% + BB(MTF)、1% 白色點線、兩組告警。
v1.0: ATR/ATR% + BB (MTF), 1% white dotted line, two alert conditions.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
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.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
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.