OPEN-SOURCE SCRIPT
HAN

. Trend Filter (Fast Response)
Replace SMA20 with SMA9 for quicker trend responsiveness.
Long bias: Close price > SMA9
Short bias: Close price < SMA9
2. Key Price Zone Identification
Support/Resistance levels are defined as the lowest low and highest high of the most recent 6 candles (approximately a 30-minute window).
Price must touch and reverse from these zones—mere proximity is insufficient.
3. High-Probability Candlestick Patterns Only
Bullish Signals:
✅ Bullish Engulfing
✅ Bullish Pin Bar (lower wick ≥ 2× body length, upper wick ≤ 0.3× body length)
Bearish Signals:
✅ Bearish Engulfing
✅ Bearish Pin Bar (upper wick ≥ 2× body length, lower wick ≤ 0.3× body length)
❌ Excluded patterns: Piercing Line and Dark Cloud Cover (low reliability on 5-minute charts)
4. Dual Confirmation Mechanism
After a valid pattern forms, the next candle must close beyond the pattern’s high (for longs) or low (for shorts).
Additionally, volume must be at least 1.2× the 5-candle average volume (optional; applicable only if volume data is available).
5. Dynamic Risk Management
Stop Loss: Set at the pattern’s extreme point ± 1.8 × ATR(7)
Take Profit: Fixed 1:1.5 risk-reward ratio (due to limited continuation potential on 5-minute timeframes)
Cooldown Period: 3 candles (15 minutes) after each trade to prevent emotional overtrading
Replace SMA20 with SMA9 for quicker trend responsiveness.
Long bias: Close price > SMA9
Short bias: Close price < SMA9
2. Key Price Zone Identification
Support/Resistance levels are defined as the lowest low and highest high of the most recent 6 candles (approximately a 30-minute window).
Price must touch and reverse from these zones—mere proximity is insufficient.
3. High-Probability Candlestick Patterns Only
Bullish Signals:
✅ Bullish Engulfing
✅ Bullish Pin Bar (lower wick ≥ 2× body length, upper wick ≤ 0.3× body length)
Bearish Signals:
✅ Bearish Engulfing
✅ Bearish Pin Bar (upper wick ≥ 2× body length, lower wick ≤ 0.3× body length)
❌ Excluded patterns: Piercing Line and Dark Cloud Cover (low reliability on 5-minute charts)
4. Dual Confirmation Mechanism
After a valid pattern forms, the next candle must close beyond the pattern’s high (for longs) or low (for shorts).
Additionally, volume must be at least 1.2× the 5-candle average volume (optional; applicable only if volume data is available).
5. Dynamic Risk Management
Stop Loss: Set at the pattern’s extreme point ± 1.8 × ATR(7)
Take Profit: Fixed 1:1.5 risk-reward ratio (due to limited continuation potential on 5-minute timeframes)
Cooldown Period: 3 candles (15 minutes) after each trade to prevent emotional overtrading
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.