This strategy is designed to capture breakout movements aligned with the prevailing trend, using a combination of Exponential Moving Averages (EMAs), Relative Strength Index (RSI), and Average True Range (ATR) for entry signals and risk management. It includes clear long/short entry conditions, dynamic stop-losses.
1. Trend Identification Uses two EMAs: • Fast EMA (default 20 periods) • Slow EMA (default 50 periods) The trend is considered bullish if EMA Fast > EMA Slow, and bearish if EMA Fast < EMA Slow.
2. Momentum Filter (RSI) Applies a 14-period RSI to avoid entries during overbought/oversold conditions: • Avoids long entries when RSI > 70 (overbought) • Avoids short entries when RSI < 30 (oversold)
3. Breakout Logic Detects breakouts over a configurable period (default: 5 candles): • Resistance: Highest high over the last N periods (excluding the current one) • Support: Lowest low over the last N periods (excluding the current one)
4. Entry Conditions Long Entry: • Price breaks above recent resistance • Uptrend confirmed (EMA Fast > EMA Slow) • RSI not overbought Short Entry: • Price breaks below recent support • Downtrend confirmed (EMA Fast < EMA Slow) • RSI not oversold
5. Position Management Stop-Loss and Trailing Stop based on ATR: Stop-Loss: • For long: entry price - (ATR * SL multiplier) • For short: entry price + (ATR * SL multiplier) Trailing Stop: • Uses same ATR * trailing multiplier for both trail_points and trail_offset • Defaults for both SL and trailing multiplier: 1.5x ATR
6. Alerts (Webhook) JSON-formatted webhook alerts: • Long entry: Market buy order • Short entry: Market sell order
7. Visual Cues • Green triangle below bar for Long entries • Red triangle above bar for Short entries
오픈 소스 스크립트
진정한 트레이딩뷰 정신에 따라 이 스크립트 작성자는 트레이더가 기능을 검토하고 검증할 수 있도록 오픈소스로 공개했습니다. 작성자에게 찬사를 보냅니다! 무료로 사용할 수 있지만 코드를 다시 게시할 경우 하우스 룰이 적용된다는 점을 기억하세요.
차트에서 빠르게 액세스하려면 이 스크립트를 즐겨찾기에 추가하세요 — 여기에서 자세히 알아보기.