OPEN-SOURCE SCRIPT
Trend with ADX, multiple EMAs - Buy & Sell

📊 Core Components
ADX Calculation
Computes DI+ and DI– manually using smoothed true range and directional movement.
Plots background color:
Green when DI+ > DI–
Red when DI– > DI+
Alerts: “ADX Trend Green” or “ADX Trend Red.”
Moving Averages
Fast EMA (5)
Slow EMA (8)
EMA 13
EMA 48
EMA 200
All plotted on the chart with different colors.
VWAP
Plotted as black circles.
📈 Signals & Conditions
Fast EMA vs Slow EMA
Buy Signal: 5 EMA crosses above 8 EMA.
Sell Signal: 5 EMA crosses below 8 EMA.
Avoids repeat signals using CondIni.
Labels: “Buy” (green) / “Sell” (red).
Alerts: “Buy Alert” / “Sell Alert.”
Trend Signals (EMA 13 vs EMA 48)
TBuy: 13 EMA crosses above 48 EMA.
TSell: 13 EMA crosses below 48 EMA.
Labels: “TBuy” (dark green) / “TSell” (dark red).
Alerts: “TBuy Alert” / “TSell Alert.”
🛠️ Overall Purpose
This script combines trend strength (ADX) with short-term EMA crossovers and medium-term EMA trend shifts (13 vs 48).
It provides visual signals, background trend coloring, VWAP reference, and alert triggers for both scalping (5 vs 8 EMA) and trend trading (13 vs 48 EMA).
ADX Calculation
Computes DI+ and DI– manually using smoothed true range and directional movement.
Plots background color:
Green when DI+ > DI–
Red when DI– > DI+
Alerts: “ADX Trend Green” or “ADX Trend Red.”
Moving Averages
Fast EMA (5)
Slow EMA (8)
EMA 13
EMA 48
EMA 200
All plotted on the chart with different colors.
VWAP
Plotted as black circles.
📈 Signals & Conditions
Fast EMA vs Slow EMA
Buy Signal: 5 EMA crosses above 8 EMA.
Sell Signal: 5 EMA crosses below 8 EMA.
Avoids repeat signals using CondIni.
Labels: “Buy” (green) / “Sell” (red).
Alerts: “Buy Alert” / “Sell Alert.”
Trend Signals (EMA 13 vs EMA 48)
TBuy: 13 EMA crosses above 48 EMA.
TSell: 13 EMA crosses below 48 EMA.
Labels: “TBuy” (dark green) / “TSell” (dark red).
Alerts: “TBuy Alert” / “TSell Alert.”
🛠️ Overall Purpose
This script combines trend strength (ADX) with short-term EMA crossovers and medium-term EMA trend shifts (13 vs 48).
It provides visual signals, background trend coloring, VWAP reference, and alert triggers for both scalping (5 vs 8 EMA) and trend trading (13 vs 48 EMA).
오픈 소스 스크립트
진정한 트레이딩뷰 정신에 따라 이 스크립트 작성자는 트레이더가 기능을 검토하고 검증할 수 있도록 오픈소스로 공개했습니다. 작성자에게 찬사를 보냅니다! 무료로 사용할 수 있지만 코드를 다시 게시할 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.
오픈 소스 스크립트
진정한 트레이딩뷰 정신에 따라 이 스크립트 작성자는 트레이더가 기능을 검토하고 검증할 수 있도록 오픈소스로 공개했습니다. 작성자에게 찬사를 보냅니다! 무료로 사용할 수 있지만 코드를 다시 게시할 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.