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
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。