OPEN-SOURCE SCRIPT
Trend Strength Oscillator

๐ Trend Strength Oscillator
๐ Description
Trend Strength Oscillator measures the directional strength of price relative to an adaptive dynamic trend band. It evaluates how far the current price is from the midpoint of a trend channel and normalizes this value by recent volatility range, allowing traders to detect trend strength, direction, and potential exhaustion in any market condition.
๐ Features
๐น Adaptive Trend Band Logic: Uses a modified ATR and time-dependent spread formula to dynamically adjust upper and lower trend bands.
๐น Trendline Midpoint Calculation: The central trendline is defined as the average between upper and lower bands.
๐น Relative Positioning: Measures how far the close is from the center of the band as a percentage.
๐น Range Normalization: Uses a normalized range to account for recent volatility, reducing noise in the oscillator reading.
๐น Oscillator Output (ยฑ100 scale):
+100 indicates strong bullish momentum
-100 indicates strong bearish momentum
0 is the neutral centerline
๐ ๏ธ How to Use
โ Trend Strength > +50: Indicates a strong bullish phase.
โ Trend Strength < -50: Indicates a strong bearish phase.
โ ๏ธ Crossing above 0: Potential bullish trend initiation.
โ ๏ธ Crossing below 0: Potential bearish trend initiation.
๐ Values near 0: Suggest trend weakness or ranging conditions.
Best suited timeframes: 1H, 4H, Daily
Ideal combination with: RSI, MACD, volume-based oscillators, moving average crosses
โ TradingView House Rules Compliance
This indicator is written in Pine Script v5 and fully open-source.
The script does not repaint, does not generate false alerts, and does not access external or private data.
It is intended strictly as a technical analysis tool, and not a buy/sell signal generator.
Users are encouraged to combine this tool with other confirmations and independent judgment in trading decisions.
=========================================================
๐ Trend Strength Oscillator
๐ ์ค๋ช (Description)
Trend Strength Oscillator๋ ๊ฐ๊ฒฉ์ด ๋์ ์ถ์ธ ๋ฐด๋ ๋ด ์ด๋์ ์์นํด ์๋์ง๋ฅผ ์ ๋์ ์ผ๋ก ๋ถ์ํ์ฌ, ์ถ์ธ์ ๋ฐฉํฅ์ฑ๊ณผ ๊ฐ๋๋ฅผ ์๊ฐ์ ์ผ๋ก ๋ณด์ฌ์ฃผ๋ ์ค์ค๋ ์ดํฐ ์งํ์ ๋๋ค. ์ต๊ทผ ๋ณ๋์ฑ์ ๋ฐ์ํ ๋ฐด๋๋ฅผ ๊ธฐ๋ฐ์ผ๋ก ๊ฐ๊ฒฉ ์์น๋ฅผ ์ ๊ทํํ์ฌ, ๊ณผ๋งค์ยท๊ณผ๋งค๋ ์ํ๋ ์ถ์ธ์ ์๋ฉธ ๊ฐ๋ฅ์ฑ๊น์ง ํ์งํ ์ ์๋๋ก ์ค๊ณ๋์์ต๋๋ค.
๐ ์ฃผ์ ํน์ง (Features)
๐น ์ ์ํ ์ถ์ธ ๋ฐด๋ ๊ณ์ฐ: ATR๊ณผ ์๊ฐ ๊ฒฝ๊ณผ๋ฅผ ๊ธฐ๋ฐ์ผ๋ก ์๋จ/ํ๋จ ๋ฐด๋๋ฅผ ๋์ ์ผ๋ก ์กฐ์
๐น ์ค์ฌ ์ถ์ธ์ ์ฐ์ถ: ์๋จ๊ณผ ํ๋จ ๋ฐด๋์ ํ๊ท ๊ฐ์ ์ค์ฌ์ ์ผ๋ก ํ์ฉํ์ฌ ๊ธฐ์ค ์ถ ์ ๊ณต
๐น ์๋ ์์น ๊ณ์ฐ: ํ์ฌ ์ข ๊ฐ๊ฐ ์ค์ฌ์ ์์ ์ผ๋ง๋ ๋จ์ด์ ธ ์๋์ง๋ฅผ ์ ๊ทํํ์ฌ ์ถ์ธ ๊ฐ๋ ๊ณ์ฐ
๐น ๋ณ๋์ฑ ๊ธฐ๋ฐ ์ ๊ทํ: ์ต๊ทผ ๋ฐด๋ ๋ฒ์๋ฅผ ๊ธฐ์ค์ผ๋ก ์๋ ๊ฑฐ๋ฆฌ๋ฅผ 0~100 ์ฌ์ด ๊ฐ์ผ๋ก ๋ณํ
๐น ์ค์ค๋ ์ดํฐ ์ถ๋ ฅ (๋ฒ์: ยฑ100):
+100์ ๊ฐ๊น์ธ์๋ก ๊ฐํ ์์น ์ถ์ธ
-100์ ๊ฐ๊น์ธ์๋ก ๊ฐํ ํ๋ฝ ์ถ์ธ
0์ ๊ฐ๊น์ธ์๋ก ํก๋ณด ๊ตฌ๊ฐ ๊ฐ๋ฅ์ฑ
๐ ๏ธ ์ฌ์ฉ๋ฒ (How to Use)
โ +50 ์ด์: ๊ฐํ ์์น ์ถ์ธ ์ง์ ์ค
โ -50 ์ดํ: ๊ฐํ ํ๋ฝ ์ถ์ธ ์ง์ ์ค
โ ๏ธ 0์ ๋ํ ์ํฅ: ์์น ์ถ์ธ ์์ ๊ฐ๋ฅ์ฑ
โ ๏ธ 0์ ๋ํ ํํฅ: ํ๋ฝ ์ถ์ธ ์์ ๊ฐ๋ฅ์ฑ
๐ก 0 ๊ทผ์ฒ ์ ์ง: ์ถ์ธ ์ฝํ ๋๋ ํก๋ณด์ฅ ๊ฐ๋ฅ์ฑ
์ถ์ฒ ์๊ฐ๋: 1์๊ฐ๋ด, 4์๊ฐ๋ด, ์ผ๋ด
๋ณด์กฐ ์งํ๋ก ์ถ์ฒ: RSI, MACD, OBV, ์ด๋ํ๊ท ํฌ๋ก์ค ๋ฑ๊ณผ ํจ๊ป ํ์ฉ ์ ํจ๊ณผ์
โ ํธ๋ ์ด๋ฉ๋ทฐ ํ์ฐ์ค๋ฃฐ ์ค์์ฌํญ (TradingView House Rules Compliance)
๋ณธ ์งํ๋ Pine Script v5๋ก ์์ฑ๋ ์คํ์์ค ๊ณต๊ฐ์ฉ ์คํฌ๋ฆฝํธ์ ๋๋ค.
๋ฆฌํ์ธํธ(Repaint) ํ์์ด ์์ผ๋ฉฐ, **ํ์ ๊ฒฝ๊ณ (Spam Alerts)**๋ ์ฑ๋ฅ ์ ํ ์์๋ ์์ต๋๋ค.
์ธ๋ถ ๋ฐ์ดํฐ ์ ๊ทผ ์์ด ์์ ํ ์์ฒด ๊ณ์ฐ์ผ๋ก ๋์ํฉ๋๋ค.
์ด ์งํ๋ ํฌ์ ํ๋จ์ ๋๊ธฐ ์ํ ๋ถ์์ฉ ๋๊ตฌ์ด๋ฉฐ, ์ง์ ์ ์ธ ๋งค์ยท๋งค๋ ์ ํธ๋ก ์ฌ์ฉํด์๋ ์ ๋ฉ๋๋ค.
๋ชจ๋ ํธ๋ ์ด๋ฉ์ ์ฌ์ฉ์์ ๋ ๋ฆฝ์ ์ธ ํ๋จ๊ณผ ์ฑ ์ ํ์ ์ด๋ฃจ์ด์ ธ์ผ ํฉ๋๋ค.
๐ Description
Trend Strength Oscillator measures the directional strength of price relative to an adaptive dynamic trend band. It evaluates how far the current price is from the midpoint of a trend channel and normalizes this value by recent volatility range, allowing traders to detect trend strength, direction, and potential exhaustion in any market condition.
๐ Features
๐น Adaptive Trend Band Logic: Uses a modified ATR and time-dependent spread formula to dynamically adjust upper and lower trend bands.
๐น Trendline Midpoint Calculation: The central trendline is defined as the average between upper and lower bands.
๐น Relative Positioning: Measures how far the close is from the center of the band as a percentage.
๐น Range Normalization: Uses a normalized range to account for recent volatility, reducing noise in the oscillator reading.
๐น Oscillator Output (ยฑ100 scale):
+100 indicates strong bullish momentum
-100 indicates strong bearish momentum
0 is the neutral centerline
๐ ๏ธ How to Use
โ Trend Strength > +50: Indicates a strong bullish phase.
โ Trend Strength < -50: Indicates a strong bearish phase.
โ ๏ธ Crossing above 0: Potential bullish trend initiation.
โ ๏ธ Crossing below 0: Potential bearish trend initiation.
๐ Values near 0: Suggest trend weakness or ranging conditions.
Best suited timeframes: 1H, 4H, Daily
Ideal combination with: RSI, MACD, volume-based oscillators, moving average crosses
โ TradingView House Rules Compliance
This indicator is written in Pine Script v5 and fully open-source.
The script does not repaint, does not generate false alerts, and does not access external or private data.
It is intended strictly as a technical analysis tool, and not a buy/sell signal generator.
Users are encouraged to combine this tool with other confirmations and independent judgment in trading decisions.
=========================================================
๐ Trend Strength Oscillator
๐ ์ค๋ช (Description)
Trend Strength Oscillator๋ ๊ฐ๊ฒฉ์ด ๋์ ์ถ์ธ ๋ฐด๋ ๋ด ์ด๋์ ์์นํด ์๋์ง๋ฅผ ์ ๋์ ์ผ๋ก ๋ถ์ํ์ฌ, ์ถ์ธ์ ๋ฐฉํฅ์ฑ๊ณผ ๊ฐ๋๋ฅผ ์๊ฐ์ ์ผ๋ก ๋ณด์ฌ์ฃผ๋ ์ค์ค๋ ์ดํฐ ์งํ์ ๋๋ค. ์ต๊ทผ ๋ณ๋์ฑ์ ๋ฐ์ํ ๋ฐด๋๋ฅผ ๊ธฐ๋ฐ์ผ๋ก ๊ฐ๊ฒฉ ์์น๋ฅผ ์ ๊ทํํ์ฌ, ๊ณผ๋งค์ยท๊ณผ๋งค๋ ์ํ๋ ์ถ์ธ์ ์๋ฉธ ๊ฐ๋ฅ์ฑ๊น์ง ํ์งํ ์ ์๋๋ก ์ค๊ณ๋์์ต๋๋ค.
๐ ์ฃผ์ ํน์ง (Features)
๐น ์ ์ํ ์ถ์ธ ๋ฐด๋ ๊ณ์ฐ: ATR๊ณผ ์๊ฐ ๊ฒฝ๊ณผ๋ฅผ ๊ธฐ๋ฐ์ผ๋ก ์๋จ/ํ๋จ ๋ฐด๋๋ฅผ ๋์ ์ผ๋ก ์กฐ์
๐น ์ค์ฌ ์ถ์ธ์ ์ฐ์ถ: ์๋จ๊ณผ ํ๋จ ๋ฐด๋์ ํ๊ท ๊ฐ์ ์ค์ฌ์ ์ผ๋ก ํ์ฉํ์ฌ ๊ธฐ์ค ์ถ ์ ๊ณต
๐น ์๋ ์์น ๊ณ์ฐ: ํ์ฌ ์ข ๊ฐ๊ฐ ์ค์ฌ์ ์์ ์ผ๋ง๋ ๋จ์ด์ ธ ์๋์ง๋ฅผ ์ ๊ทํํ์ฌ ์ถ์ธ ๊ฐ๋ ๊ณ์ฐ
๐น ๋ณ๋์ฑ ๊ธฐ๋ฐ ์ ๊ทํ: ์ต๊ทผ ๋ฐด๋ ๋ฒ์๋ฅผ ๊ธฐ์ค์ผ๋ก ์๋ ๊ฑฐ๋ฆฌ๋ฅผ 0~100 ์ฌ์ด ๊ฐ์ผ๋ก ๋ณํ
๐น ์ค์ค๋ ์ดํฐ ์ถ๋ ฅ (๋ฒ์: ยฑ100):
+100์ ๊ฐ๊น์ธ์๋ก ๊ฐํ ์์น ์ถ์ธ
-100์ ๊ฐ๊น์ธ์๋ก ๊ฐํ ํ๋ฝ ์ถ์ธ
0์ ๊ฐ๊น์ธ์๋ก ํก๋ณด ๊ตฌ๊ฐ ๊ฐ๋ฅ์ฑ
๐ ๏ธ ์ฌ์ฉ๋ฒ (How to Use)
โ +50 ์ด์: ๊ฐํ ์์น ์ถ์ธ ์ง์ ์ค
โ -50 ์ดํ: ๊ฐํ ํ๋ฝ ์ถ์ธ ์ง์ ์ค
โ ๏ธ 0์ ๋ํ ์ํฅ: ์์น ์ถ์ธ ์์ ๊ฐ๋ฅ์ฑ
โ ๏ธ 0์ ๋ํ ํํฅ: ํ๋ฝ ์ถ์ธ ์์ ๊ฐ๋ฅ์ฑ
๐ก 0 ๊ทผ์ฒ ์ ์ง: ์ถ์ธ ์ฝํ ๋๋ ํก๋ณด์ฅ ๊ฐ๋ฅ์ฑ
์ถ์ฒ ์๊ฐ๋: 1์๊ฐ๋ด, 4์๊ฐ๋ด, ์ผ๋ด
๋ณด์กฐ ์งํ๋ก ์ถ์ฒ: RSI, MACD, OBV, ์ด๋ํ๊ท ํฌ๋ก์ค ๋ฑ๊ณผ ํจ๊ป ํ์ฉ ์ ํจ๊ณผ์
โ ํธ๋ ์ด๋ฉ๋ทฐ ํ์ฐ์ค๋ฃฐ ์ค์์ฌํญ (TradingView House Rules Compliance)
๋ณธ ์งํ๋ Pine Script v5๋ก ์์ฑ๋ ์คํ์์ค ๊ณต๊ฐ์ฉ ์คํฌ๋ฆฝํธ์ ๋๋ค.
๋ฆฌํ์ธํธ(Repaint) ํ์์ด ์์ผ๋ฉฐ, **ํ์ ๊ฒฝ๊ณ (Spam Alerts)**๋ ์ฑ๋ฅ ์ ํ ์์๋ ์์ต๋๋ค.
์ธ๋ถ ๋ฐ์ดํฐ ์ ๊ทผ ์์ด ์์ ํ ์์ฒด ๊ณ์ฐ์ผ๋ก ๋์ํฉ๋๋ค.
์ด ์งํ๋ ํฌ์ ํ๋จ์ ๋๊ธฐ ์ํ ๋ถ์์ฉ ๋๊ตฌ์ด๋ฉฐ, ์ง์ ์ ์ธ ๋งค์ยท๋งค๋ ์ ํธ๋ก ์ฌ์ฉํด์๋ ์ ๋ฉ๋๋ค.
๋ชจ๋ ํธ๋ ์ด๋ฉ์ ์ฌ์ฉ์์ ๋ ๋ฆฝ์ ์ธ ํ๋จ๊ณผ ์ฑ ์ ํ์ ์ด๋ฃจ์ด์ ธ์ผ ํฉ๋๋ค.
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.