OPEN-SOURCE SCRIPT
Trend Band Oscillator

๐ 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๋ ๋ณด์ ์ทจ์ฝ์ ์ ์ ๋ฐํ๋ ๊ตฌ์ฑ ์์๋ ์์ต๋๋ค.
๐ 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๋ ๋ณด์ ์ทจ์ฝ์ ์ ์ ๋ฐํ๋ ๊ตฌ์ฑ ์์๋ ์์ต๋๋ค.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, penulis skrip ini telah menjadikannya sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Hormat untuk penulisnya! Meskipun anda dapat menggunakannya secara gratis, ingatlah bahwa penerbitan ulang kode tersebut tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi tidak dimaksudkan untuk menjadi, dan bukan merupakan saran keuangan, investasi, perdagangan, atau rekomendasi lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Persyaratan Penggunaan.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, penulis skrip ini telah menjadikannya sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Hormat untuk penulisnya! Meskipun anda dapat menggunakannya secara gratis, ingatlah bahwa penerbitan ulang kode tersebut tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi tidak dimaksudkan untuk menjadi, dan bukan merupakan saran keuangan, investasi, perdagangan, atau rekomendasi lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Persyaratan Penggunaan.