OPEN-SOURCE SCRIPT

Trend Band Oscillator

134
๐Ÿ“Œ Trend Band Oscillator
๐Ÿ“„ Description
Trend Band Oscillator is a momentum-based trend indicator that calculates the spread between two EMAs and overlays it with a volatility filter using a standard deviation band. It helps traders visualize not only the trend direction but also the strength and stability of the trend.

๐Ÿ“Œ Features
๐Ÿ”น EMA Spread Calculation: Measures the difference between a fast and slow EMA to quantify short-term vs mid-term trend dynamics.

๐Ÿ”น Volatility Band Overlay: Applies an EMA of standard deviation to the spread to filter noise and highlight valid momentum shifts.

๐Ÿ”น Color-Based Visualization: Positive spread values are shown in lime (bullish), negative values in fuchsia (bearish) for quick directional insight.

๐Ÿ”น Upper/Lower Bands: Help detect potential overbought/oversold conditions or strong trend continuation.

๐Ÿ”น Zero Line Reference: A horizontal baseline at zero helps identify trend reversals and neutral zones.

๐Ÿ› ๏ธ How to Use
โœ… Spread > 0: Indicates a bullish trend. Consider maintaining or entering long positions.

โœ… Spread < 0: Indicates a bearish trend. Consider maintaining or entering short positions.

โš ๏ธ Spread exceeds bands: May signal overextension or strong momentum; consider using with additional confirmation indicators.

๐Ÿ”„ Band convergence: Suggests weakening trend and potential transition to a ranging market.

Recommended timeframes: 1H, 4H, Daily
Suggested complementary indicators: RSI, MACD, OBV, SuperTrend

โœ… TradingView House Rules Compliance
This script is open-source and published under Pine Script v5.

It does not repaint, spam alerts, or cause performance issues.

It is designed as an analytical aid only and should not be considered financial advice.

All calculations are transparent, and no external data sources or insecure functions are used.

====================================================================

๐Ÿ“Œ Trend Band Oscillator
๐Ÿ“„ ์„ค๋ช… (Description)
Trend Band Oscillator๋Š” ๋‘ ๊ฐœ์˜ EMA ๊ฐ„ ์Šคํ”„๋ ˆ๋“œ(์ฐจ์ด)๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœ ํ•œ ๋ชจ๋ฉ˜ํ…€ ์ค‘์‹ฌ์˜ ์ถ”์„ธ ์˜ค์‹ค๋ ˆ์ดํ„ฐ์ž…๋‹ˆ๋‹ค. ์—ฌ๊ธฐ์— ํ‘œ์ค€ํŽธ์ฐจ ๊ธฐ๋ฐ˜์˜ ๋ณ€๋™์„ฑ ๋ฐด๋“œ๋ฅผ ์ ์šฉํ•˜์—ฌ, ์ถ”์„ธ์˜ ๋ฐฉํ–ฅ๋ฟ ์•„๋‹ˆ๋ผ ๊ฐ•๋„์™€ ์•ˆ์ •์„ฑ๊นŒ์ง€ ์‹œ๊ฐ์ ์œผ๋กœ ๋ถ„์„ํ•  ์ˆ˜ ์žˆ๋„๋ก ์„ค๊ณ„๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

๐Ÿ“Œ ์ฃผ์š” ํŠน์ง• (Features)
๐Ÿ”น EMA ๊ธฐ๋ฐ˜ ์Šคํ”„๋ ˆ๋“œ ๊ณ„์‚ฐ: Fast EMA์™€ Slow EMA์˜ ์ฐจ์ด๋ฅผ ํ™œ์šฉํ•ด ์‹œ์žฅ ์ถ”์„ธ๋ฅผ ์ •๋Ÿ‰์ ์œผ๋กœ ํ‘œํ˜„ํ•ฉ๋‹ˆ๋‹ค.

๐Ÿ”น ํ‘œ์ค€ํŽธ์ฐจ ํ•„ํ„ฐ๋ง: Spread์— ๋Œ€ํ•ด EMA ๋ฐ ํ‘œ์ค€ํŽธ์ฐจ ๊ธฐ๋ฐ˜์˜ ๋ฐด๋“œ๋ฅผ ์ ์šฉํ•ด ๋…ธ์ด์ฆˆ๋ฅผ ์ค„์ด๊ณ  ์œ ํšจํ•œ ์ถ”์„ธ๋ฅผ ๊ฐ•์กฐํ•ฉ๋‹ˆ๋‹ค.

๐Ÿ”น ์ปฌ๋Ÿฌ ๊ธฐ๋ฐ˜ ์‹œ๊ฐํ™”: ์˜ค์‹ค๋ ˆ์ดํ„ฐ ๊ฐ’์ด ์–‘์ˆ˜์ผ ๊ฒฝ์šฐ ์ดˆ๋ก์ƒ‰, ์Œ์ˆ˜์ผ ๊ฒฝ์šฐ ๋งˆ์  ํƒ€ ์ƒ‰์œผ๋กœ ์ถ”์„ธ ๋ฐฉํ–ฅ์„ ์ง๊ด€์ ์œผ๋กœ ํŒŒ์•…ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

๐Ÿ”น ๋ฐด๋“œ ๋ฒ”์œ„ ์‹œ๊ฐํ™”: ์ƒยทํ•˜์œ„ ๋ฐด๋“œ๋ฅผ ํ†ตํ•ด ์Šคํ”„๋ ˆ๋“œ์˜ ํ‰๊ท  ํŽธ์ฐจ ๋ฒ”์œ„๋ฅผ ๋ณด์—ฌ์ฃผ๋ฉฐ, ์ถ”์„ธ์˜ ๊ฐ•์•ฝ๊ณผ ํฌํ™” ์—ฌ๋ถ€๋ฅผ ์ง„๋‹จํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

๐Ÿ”น ์ œ๋กœ ๋ผ์ธ ํ‘œ์‹œ: ์ถ”์„ธ ์ „ํ™˜ ๊ฐ€๋Šฅ ์ง€์ ์„ ์‹œ๊ฐ์ ์œผ๋กœ ํ™•์ธํ•  ์ˆ˜ ์žˆ๋„๋ก ์ค‘์‹ฌ์„ (0์„ )์„ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.

๐Ÿ› ๏ธ ์‚ฌ์šฉ๋ฒ• (How to Use)
โœ… ์˜ค์‹ค๋ ˆ์ดํ„ฐ๊ฐ€ 0 ์ด์ƒ ์œ ์ง€: ์ƒ์Šน ์ถ”์„ธ ๊ตฌ๊ฐ„์ด๋ฉฐ, ๋กฑ ํฌ์ง€์…˜ ์œ ์ง€ ๋˜๋Š” ์ง„์ž… ๊ฒ€ํ† 

โœ… ์˜ค์‹ค๋ ˆ์ดํ„ฐ๊ฐ€ 0 ์ดํ•˜ ์œ ์ง€: ํ•˜๋ฝ ์ถ”์„ธ ๊ตฌ๊ฐ„์ด๋ฉฐ, ์ˆ ํฌ์ง€์…˜ ์œ ์ง€ ๋˜๋Š” ์ง„์ž… ๊ฒ€ํ† 

โš ๏ธ ์ƒยทํ•˜์œ„ ๋ฐด๋“œ๋ฅผ ์ดํƒˆ: ์ผ์‹œ์ ์ธ ๊ณผ๋งค์ˆ˜/๊ณผ๋งค๋„ ํ˜น์€ ๊ฐ•ํ•œ ์ถ”์„ธ ๋ฐœํ˜„ ๊ฐ€๋Šฅ์„ฑ ์žˆ์Œ โ†’ ๋‹ค๋ฅธ ๋ณด์กฐ์ง€ํ‘œ์™€ ํ•จ๊ป˜ ํ•„ํ„ฐ๋ง ๊ถŒ์žฅ

๐Ÿ”„ ๋ฐด๋“œ ์ˆ˜๋ ด: ์ถ”์„ธ๊ฐ€ ์•ฝํ•ด์ง€๊ณ  ์žˆ์Œ์„ ๋‚˜ํƒ€๋ƒ„ โ†’ ๋ณ€๋™์„ฑ ํ•˜๋ฝ ๋˜๋Š” ๋ฐฉํ–ฅ์„ฑ ์ƒ์‹ค ๊ฐ€๋Šฅ์„ฑ ์žˆ์Œ

๊ถŒ์žฅ ์ ์šฉ ์‹œ๊ฐ„๋Œ€: 1์‹œ๊ฐ„๋ด‰, 4์‹œ๊ฐ„๋ด‰, ์ผ๋ด‰
๋ณด์กฐ ์ ์šฉ ์ง€ํ‘œ: RSI, MACD, OBV, SuperTrend ๋“ฑ๊ณผ ํ•จ๊ป˜ ์‚ฌ์šฉ ์‹œ ์‹ ํ˜ธ ํ•„ํ„ฐ๋ง์— ์œ ๋ฆฌ

โœ… ํŠธ๋ ˆ์ด๋”ฉ๋ทฐ ํ•˜์šฐ์Šค๋ฃฐ ์ค€์ˆ˜์‚ฌํ•ญ (TV House Rules Compliance)
์ด ์ง€ํ‘œ๋Š” **๋ฌด๋ฃŒ ๊ณต๊ฐœ์šฉ(Open-Source)**์ด๋ฉฐ, Pine Script Version 5๋กœ ์ž‘์„ฑ๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค.

๊ณผ๋„ํ•œ ๋ฆฌํŽ˜์ธํŠธ, ๋น„์ •์ƒ์  ๋ฐ˜๋ณต ๊ฒฝ๊ณ (alert spam), ์‹ค์‹œ๊ฐ„ ์„ฑ๋Šฅ ์ €ํ•˜ ๋“ฑ์˜ ์š”์†Œ๋Š” ํฌํ•จ๋˜์–ด ์žˆ์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

์‚ฌ์šฉ์ž๋Š” ๋ณธ ์ง€ํ‘œ๋ฅผ ํˆฌ์ž ๊ฒฐ์ •์˜ ์ฐธ๊ณ ์šฉ ๋ณด์กฐ ๋„๊ตฌ๋กœ ํ™œ์šฉํ•ด์•ผ ํ•˜๋ฉฐ, ๋…๋ฆฝ์ ์ธ ๋งค๋งค ํŒ๋‹จ์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.

๋ฐ์ดํ„ฐ ์†Œ์Šค ๋ฐ ๊ณ„์‚ฐ ๋ฐฉ์‹์€ ์™„์ „ํžˆ ๊ณต๊ฐœ๋˜์–ด ์žˆ์œผ๋ฉฐ, ์™ธ๋ถ€ API๋‚˜ ๋ณด์•ˆ ์ทจ์•ฝ์ ์„ ์œ ๋ฐœํ•˜๋Š” ๊ตฌ์„ฑ ์š”์†Œ๋Š” ์—†์Šต๋‹ˆ๋‹ค.

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.