PROTECTED SOURCE SCRIPT
caracalla ema long short signal v1.0

๐ Script Description
This script is a custom technical analysis indicator for TradingView that identifies potential long (buy) and short (sell) signals based on trend, momentum, and volume.
๐ Moving Averages (EMA)
It calculates four exponential moving averages (EMAs) with periods of 5, 20, 60, and 120. These are used to evaluate the overall market trend.
A bullish trend is identified when the EMAs are aligned in ascending order (short-term EMA above long-term EMA).
A bearish trend is identified when the EMAs are aligned in descending order (short-term EMA below long-term EMA).
๐ Golden Cross & Dead Cross
A golden cross occurs when the 5-period EMA crosses above the 20-period EMA.
A dead cross occurs when the 5-period EMA crosses below the 20-period EMA.
These crossover events are typical indicators of trend reversals.
๐ MACD (Moving Average Convergence Divergence)
The script uses the standard MACD (12, 26, 9):
A MACD bullish signal is triggered when the MACD line crosses above the signal line.
A MACD bearish signal is triggered when the MACD line crosses below the signal line.
๐ก RSI & Stochastic Oscillator
RSI is used to measure momentum; values above 50 suggest bullish momentum, below 50 suggest bearish.
Stochastic (%K and %D) is smoothed and used to identify overbought or oversold conditions.
A bullish momentum signal is triggered when RSI > 50 and the Stochastic %K line crosses above the %D line.
A bearish momentum signal is triggered when RSI < 50 and the %K line crosses below the %D line.
๐ Volume Conditions
The script calculates a 20-period average volume:
A volume spike (bullish) is when current volume is greater than 120% of the average.
A volume drop (bearish) is when current volume is less than 80% of the average.
โ Signal Conditions
A long (buy) signal is generated when 3 or more of the following are true:
Bullish EMA alignment
Golden cross
MACD bullish crossover
RSI > 50 and stochastic bullish crossover
Volume spike
A short (sell) signal is generated when 3 or more of the following are true:
Bearish EMA alignment
Dead cross
MACD bearish crossover
RSI < 50 and stochastic bearish crossover
Volume drop
๐ Visual Output
Long signals are shown as green labels with โLโ below the price bars.
Short signals are shown as red labels with โSโ above the price bars.
All four EMA lines are plotted in different colors for trend visualization.
๐ Alert Conditions
The script includes built-in alert triggers for both long and short signals. These allow users to be notified when trading conditions are met, without needing to monitor charts constantly.
๐ ์คํฌ๋ฆฝํธ ๊ฐ์
์ด ์ธ๋์ผ์ดํฐ๋ ์ด๋ํ๊ท ์ , MACD, RSI, ์คํ ์บ์คํฑ, ๊ฑฐ๋๋์ ์ข ํฉ์ ์ผ๋ก ๋ถ์ํ์ฌ ๋กฑ(๋งค์) ๋๋ ์(๋งค๋) ์ง์ ์์ ์ ํฌ์ฐฉํ๋ ์๋ ์๊ทธ๋ ๋๊ตฌ์ ๋๋ค.
๐ ์ด๋ํ๊ท ์ (EMA)
์ด 4๊ฐ์ EMA(5, 20, 60, 120)๋ฅผ ๊ณ์ฐํ์ฌ ์์ฅ์ ์ถ์ธ ๋ฐฉํฅ์ ํ์ ํฉ๋๋ค.
์ ๋ฐฐ์ด: ๋จ๊ธฐ EMA๊ฐ ์ฅ๊ธฐ EMA๋ณด๋ค ๋ชจ๋ ์์ ์๋ ๊ฒฝ์ฐ๋ก, ์์น ์ถ์ธ๋ก ๊ฐ์ฃผํฉ๋๋ค.
์ญ๋ฐฐ์ด: ๋จ๊ธฐ EMA๊ฐ ์ฅ๊ธฐ EMA๋ณด๋ค ๋ชจ๋ ์๋์ ์๋ ๊ฒฝ์ฐ๋ก, ํ๋ฝ ์ถ์ธ๋ก ํ๋จํฉ๋๋ค.
๐ ๊ณจ๋ ํฌ๋ก์ค / ๋ฐ๋ํฌ๋ก์ค
๊ณจ๋ ํฌ๋ก์ค: EMA5๊ฐ EMA20์ ์๋ก ๋ํํ ๋ ๋ฐ์ โ ์์น ์ ํธ
๋ฐ๋ํฌ๋ก์ค: EMA5๊ฐ EMA20์ ์๋๋ก ์ดํํ ๋ ๋ฐ์ โ ํ๋ฝ ์ ํธ
๐ MACD ๋ถ์
๊ธฐ๋ณธ๊ฐ(12, 26, 9)์ MACD๋ฅผ ์ฌ์ฉํฉ๋๋ค.
MACD ๋งค์ ์ ํธ: MACD์ ์ด ์๊ทธ๋์ ์๋ก ๊ต์ฐจํ ๋
MACD ๋งค๋ ์ ํธ: MACD์ ์ด ์๊ทธ๋์ ์๋๋ก ๊ต์ฐจํ ๋
๐ก RSI & ์คํ ์บ์คํฑ
RSI(14): 50 ์ด์์ด๋ฉด ๋งค์ ์ฐ์, 50 ๋ฏธ๋ง์ด๋ฉด ๋งค๋ ์ฐ์๋ก ํ๋จ
์คํ ์บ์คํฑ: %K์ %D์ ๊ณจ๋ /๋ฐ๋ ํฌ๋ก์ค๋ฅผ ํ์ฉํด ์ถ๊ฐ ๋ชจ๋ฉํ ๋ถ์
๋งค์ ๋ชจ๋ฉํ : RSI > 50 ์ด๋ฉด์, %K๊ฐ %D๋ฅผ ์ํฅ ๋ํ
๋งค๋ ๋ชจ๋ฉํ : RSI < 50 ์ด๋ฉด์, %K๊ฐ %D๋ฅผ ํํฅ ์ดํ
๐ ๊ฑฐ๋๋ ์กฐ๊ฑด
20์ผ ํ๊ท ๊ฑฐ๋๋์ ๊ธฐ์ค์ผ๋ก ๋ถ์
๋งค์ ์ ๋ฆฌ: ํ์ฌ ๊ฑฐ๋๋์ด ํ๊ท ๋ณด๋ค 1.2๋ฐฐ ์ด์์ธ ๊ฒฝ์ฐ
๋งค๋ ์ ๋ฆฌ: ํ์ฌ ๊ฑฐ๋๋์ด ํ๊ท ๋ณด๋ค 0.8๋ฐฐ ์ดํ์ธ ๊ฒฝ์ฐ
โ ๋งค์/๋งค๋ ์๊ทธ๋ ์กฐ๊ฑด
๐ ๋กฑ ์๊ทธ๋ (๋งค์) ๋ฐ์ ์กฐ๊ฑด
๋ค์ 5๊ฐ์ง ์กฐ๊ฑด ์ค 3๊ฐ ์ด์ ์ถฉ์กฑ ์ ๋ฐ์:
EMA ์ ๋ฐฐ์ด
๊ณจ๋ ํฌ๋ก์ค ๋ฐ์
MACD ๊ณจ๋ ํฌ๋ก์ค
RSI > 50 + ์คํ ์บ์คํฑ ๊ณจ๋ ํฌ๋ก์ค
๊ฑฐ๋๋ ์ฆ๊ฐ
๐ ์ ์๊ทธ๋ (๋งค๋) ๋ฐ์ ์กฐ๊ฑด
๋ค์ 5๊ฐ์ง ์กฐ๊ฑด ์ค 3๊ฐ ์ด์ ์ถฉ์กฑ ์ ๋ฐ์:
EMA ์ญ๋ฐฐ์ด
๋ฐ๋ํฌ๋ก์ค ๋ฐ์
MACD ๋ฐ๋ํฌ๋ก์ค
RSI < 50 + ์คํ ์บ์คํฑ ๋ฐ๋ํฌ๋ก์ค
๊ฑฐ๋๋ ๊ฐ์
๐ ์ฐจํธ ์๊ฐํ
๋กฑ ์๊ทธ๋: ์ด๋ก์ L ๋ผ๋ฒจ์ด ์บ๋ค ์๋ ํ์
์ ์๊ทธ๋: ๋นจ๊ฐ์ S ๋ผ๋ฒจ์ด ์บ๋ค ์์ ํ์
EMA 4๊ฐ๋ ๊ฐ๊ธฐ ๋ค๋ฅธ ์์์ผ๋ก ์ฐจํธ์ ํ์๋์ด ์ถ์ธ ํ์ธ ๊ฐ๋ฅ
๐ ์๋ฆผ ๊ธฐ๋ฅ
์๊ทธ๋ ๋ฐ์ ์ ์๋ ์๋ฆผ ์ค์ ์ด ๊ฐ๋ฅํฉ๋๋ค.
๋กฑ ์๊ทธ๋: "๐ ์นด๋ผ์นผ๋ผ ๋งค๋งค: ๋กฑ ์ง์ ์กฐ๊ฑด ์ถฉ์กฑ!"
์ ์๊ทธ๋: "๐ ์นด๋ผ์นผ๋ผ ๋งค๋งค: ์ ์ง์ ์กฐ๊ฑด ์ถฉ์กฑ!"
This script is a custom technical analysis indicator for TradingView that identifies potential long (buy) and short (sell) signals based on trend, momentum, and volume.
๐ Moving Averages (EMA)
It calculates four exponential moving averages (EMAs) with periods of 5, 20, 60, and 120. These are used to evaluate the overall market trend.
A bullish trend is identified when the EMAs are aligned in ascending order (short-term EMA above long-term EMA).
A bearish trend is identified when the EMAs are aligned in descending order (short-term EMA below long-term EMA).
๐ Golden Cross & Dead Cross
A golden cross occurs when the 5-period EMA crosses above the 20-period EMA.
A dead cross occurs when the 5-period EMA crosses below the 20-period EMA.
These crossover events are typical indicators of trend reversals.
๐ MACD (Moving Average Convergence Divergence)
The script uses the standard MACD (12, 26, 9):
A MACD bullish signal is triggered when the MACD line crosses above the signal line.
A MACD bearish signal is triggered when the MACD line crosses below the signal line.
๐ก RSI & Stochastic Oscillator
RSI is used to measure momentum; values above 50 suggest bullish momentum, below 50 suggest bearish.
Stochastic (%K and %D) is smoothed and used to identify overbought or oversold conditions.
A bullish momentum signal is triggered when RSI > 50 and the Stochastic %K line crosses above the %D line.
A bearish momentum signal is triggered when RSI < 50 and the %K line crosses below the %D line.
๐ Volume Conditions
The script calculates a 20-period average volume:
A volume spike (bullish) is when current volume is greater than 120% of the average.
A volume drop (bearish) is when current volume is less than 80% of the average.
โ Signal Conditions
A long (buy) signal is generated when 3 or more of the following are true:
Bullish EMA alignment
Golden cross
MACD bullish crossover
RSI > 50 and stochastic bullish crossover
Volume spike
A short (sell) signal is generated when 3 or more of the following are true:
Bearish EMA alignment
Dead cross
MACD bearish crossover
RSI < 50 and stochastic bearish crossover
Volume drop
๐ Visual Output
Long signals are shown as green labels with โLโ below the price bars.
Short signals are shown as red labels with โSโ above the price bars.
All four EMA lines are plotted in different colors for trend visualization.
๐ Alert Conditions
The script includes built-in alert triggers for both long and short signals. These allow users to be notified when trading conditions are met, without needing to monitor charts constantly.
๐ ์คํฌ๋ฆฝํธ ๊ฐ์
์ด ์ธ๋์ผ์ดํฐ๋ ์ด๋ํ๊ท ์ , MACD, RSI, ์คํ ์บ์คํฑ, ๊ฑฐ๋๋์ ์ข ํฉ์ ์ผ๋ก ๋ถ์ํ์ฌ ๋กฑ(๋งค์) ๋๋ ์(๋งค๋) ์ง์ ์์ ์ ํฌ์ฐฉํ๋ ์๋ ์๊ทธ๋ ๋๊ตฌ์ ๋๋ค.
๐ ์ด๋ํ๊ท ์ (EMA)
์ด 4๊ฐ์ EMA(5, 20, 60, 120)๋ฅผ ๊ณ์ฐํ์ฌ ์์ฅ์ ์ถ์ธ ๋ฐฉํฅ์ ํ์ ํฉ๋๋ค.
์ ๋ฐฐ์ด: ๋จ๊ธฐ EMA๊ฐ ์ฅ๊ธฐ EMA๋ณด๋ค ๋ชจ๋ ์์ ์๋ ๊ฒฝ์ฐ๋ก, ์์น ์ถ์ธ๋ก ๊ฐ์ฃผํฉ๋๋ค.
์ญ๋ฐฐ์ด: ๋จ๊ธฐ EMA๊ฐ ์ฅ๊ธฐ EMA๋ณด๋ค ๋ชจ๋ ์๋์ ์๋ ๊ฒฝ์ฐ๋ก, ํ๋ฝ ์ถ์ธ๋ก ํ๋จํฉ๋๋ค.
๐ ๊ณจ๋ ํฌ๋ก์ค / ๋ฐ๋ํฌ๋ก์ค
๊ณจ๋ ํฌ๋ก์ค: EMA5๊ฐ EMA20์ ์๋ก ๋ํํ ๋ ๋ฐ์ โ ์์น ์ ํธ
๋ฐ๋ํฌ๋ก์ค: EMA5๊ฐ EMA20์ ์๋๋ก ์ดํํ ๋ ๋ฐ์ โ ํ๋ฝ ์ ํธ
๐ MACD ๋ถ์
๊ธฐ๋ณธ๊ฐ(12, 26, 9)์ MACD๋ฅผ ์ฌ์ฉํฉ๋๋ค.
MACD ๋งค์ ์ ํธ: MACD์ ์ด ์๊ทธ๋์ ์๋ก ๊ต์ฐจํ ๋
MACD ๋งค๋ ์ ํธ: MACD์ ์ด ์๊ทธ๋์ ์๋๋ก ๊ต์ฐจํ ๋
๐ก RSI & ์คํ ์บ์คํฑ
RSI(14): 50 ์ด์์ด๋ฉด ๋งค์ ์ฐ์, 50 ๋ฏธ๋ง์ด๋ฉด ๋งค๋ ์ฐ์๋ก ํ๋จ
์คํ ์บ์คํฑ: %K์ %D์ ๊ณจ๋ /๋ฐ๋ ํฌ๋ก์ค๋ฅผ ํ์ฉํด ์ถ๊ฐ ๋ชจ๋ฉํ ๋ถ์
๋งค์ ๋ชจ๋ฉํ : RSI > 50 ์ด๋ฉด์, %K๊ฐ %D๋ฅผ ์ํฅ ๋ํ
๋งค๋ ๋ชจ๋ฉํ : RSI < 50 ์ด๋ฉด์, %K๊ฐ %D๋ฅผ ํํฅ ์ดํ
๐ ๊ฑฐ๋๋ ์กฐ๊ฑด
20์ผ ํ๊ท ๊ฑฐ๋๋์ ๊ธฐ์ค์ผ๋ก ๋ถ์
๋งค์ ์ ๋ฆฌ: ํ์ฌ ๊ฑฐ๋๋์ด ํ๊ท ๋ณด๋ค 1.2๋ฐฐ ์ด์์ธ ๊ฒฝ์ฐ
๋งค๋ ์ ๋ฆฌ: ํ์ฌ ๊ฑฐ๋๋์ด ํ๊ท ๋ณด๋ค 0.8๋ฐฐ ์ดํ์ธ ๊ฒฝ์ฐ
โ ๋งค์/๋งค๋ ์๊ทธ๋ ์กฐ๊ฑด
๐ ๋กฑ ์๊ทธ๋ (๋งค์) ๋ฐ์ ์กฐ๊ฑด
๋ค์ 5๊ฐ์ง ์กฐ๊ฑด ์ค 3๊ฐ ์ด์ ์ถฉ์กฑ ์ ๋ฐ์:
EMA ์ ๋ฐฐ์ด
๊ณจ๋ ํฌ๋ก์ค ๋ฐ์
MACD ๊ณจ๋ ํฌ๋ก์ค
RSI > 50 + ์คํ ์บ์คํฑ ๊ณจ๋ ํฌ๋ก์ค
๊ฑฐ๋๋ ์ฆ๊ฐ
๐ ์ ์๊ทธ๋ (๋งค๋) ๋ฐ์ ์กฐ๊ฑด
๋ค์ 5๊ฐ์ง ์กฐ๊ฑด ์ค 3๊ฐ ์ด์ ์ถฉ์กฑ ์ ๋ฐ์:
EMA ์ญ๋ฐฐ์ด
๋ฐ๋ํฌ๋ก์ค ๋ฐ์
MACD ๋ฐ๋ํฌ๋ก์ค
RSI < 50 + ์คํ ์บ์คํฑ ๋ฐ๋ํฌ๋ก์ค
๊ฑฐ๋๋ ๊ฐ์
๐ ์ฐจํธ ์๊ฐํ
๋กฑ ์๊ทธ๋: ์ด๋ก์ L ๋ผ๋ฒจ์ด ์บ๋ค ์๋ ํ์
์ ์๊ทธ๋: ๋นจ๊ฐ์ S ๋ผ๋ฒจ์ด ์บ๋ค ์์ ํ์
EMA 4๊ฐ๋ ๊ฐ๊ธฐ ๋ค๋ฅธ ์์์ผ๋ก ์ฐจํธ์ ํ์๋์ด ์ถ์ธ ํ์ธ ๊ฐ๋ฅ
๐ ์๋ฆผ ๊ธฐ๋ฅ
์๊ทธ๋ ๋ฐ์ ์ ์๋ ์๋ฆผ ์ค์ ์ด ๊ฐ๋ฅํฉ๋๋ค.
๋กฑ ์๊ทธ๋: "๐ ์นด๋ผ์นผ๋ผ ๋งค๋งค: ๋กฑ ์ง์ ์กฐ๊ฑด ์ถฉ์กฑ!"
์ ์๊ทธ๋: "๐ ์นด๋ผ์นผ๋ผ ๋งค๋งค: ์ ์ง์ ์กฐ๊ฑด ์ถฉ์กฑ!"
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had โ ketahui lebih lanjut di sini.
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 dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had โ ketahui lebih lanjut di sini.
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.