OPEN-SOURCE SCRIPT
HA Reversal + Doji

🔥 Heikin Ashi Reversal + Stochastic Filter (Precision Entry System)
This indicator is designed to detect high–quality reversal entries using a Heikin Ashi candle pattern (Doji + 2 no–wick confirmation) combined with a strict Stochastic filter that uses memory of extreme touches to control trade direction.
✅ Entry Logic
🔹 Bullish BUY Signal
A BUY is triggered only when:
A valid reversal pattern is detected:
Doji candle (pivot) 3 bars back
Followed by 2 bullish candles with no lower wicks
Stochastic touched Oversold (≤ 20) at least once before the signal
Pattern + Stoch alignment = BUY
🔹 Bearish SELL Signal
A SELL is triggered only when:
Valid bearish reversal pattern:
Doji candle (pivot) 3 bars back
Followed by 2 bearish candles with no upper wicks
Stochastic touched Overbought (≥ 80) before the signal
Pattern + Stoch alignment = SELL
🧠 Stochastic “Memory” Filter
This is not a basic OB/OS filter — it uses event memory:
If Stochastic touches Oversold, the system becomes ready for BUY
If it touches Overbought, it becomes ready for SELL
Both directions can be armed at once
Once a BUY or SELL actually triggers, memory resets to neutral
Prevents “signal spam” during chop and keeps direction meaningful
🎯 Why This Works
✔ Filters out random countertrend noise
✔ Only trades after momentum exhaustion
✔ Uses strict Heikin Ashi reversal structure
✔ Works great across crypto, forex, indices, metals
✔ Designed for precision entries and swing continuation traps
⚙️ Customizable Options
Doji detection mode (body % / ticks / hybrid)
Wick tolerance
Heikin Ashi source (chart or calculated)
Stochastic source (raw or smoothed)
Option to avoid duplicate same-direction signals
Visual aids: pattern markers, blocked signals, doji debugging
📌 Best Use Cases
Reversal scalping on 5m/15m
Swing entries on 1H/4H
Trend exhaustion confirmation
Smart Money Concepts entry refinement
Entry timing after liquidity sweeps
🚨 Important
This is not a repainting system. Signals are generated at bar close only. Always combine with proper risk management and market context.
Let me know if you want:
✅ A shorter description
✅ An SEO optimized TradingView title
✅ A strategy version with backtesting
✅ Alerts version for automation
This indicator is designed to detect high–quality reversal entries using a Heikin Ashi candle pattern (Doji + 2 no–wick confirmation) combined with a strict Stochastic filter that uses memory of extreme touches to control trade direction.
✅ Entry Logic
🔹 Bullish BUY Signal
A BUY is triggered only when:
A valid reversal pattern is detected:
Doji candle (pivot) 3 bars back
Followed by 2 bullish candles with no lower wicks
Stochastic touched Oversold (≤ 20) at least once before the signal
Pattern + Stoch alignment = BUY
🔹 Bearish SELL Signal
A SELL is triggered only when:
Valid bearish reversal pattern:
Doji candle (pivot) 3 bars back
Followed by 2 bearish candles with no upper wicks
Stochastic touched Overbought (≥ 80) before the signal
Pattern + Stoch alignment = SELL
🧠 Stochastic “Memory” Filter
This is not a basic OB/OS filter — it uses event memory:
If Stochastic touches Oversold, the system becomes ready for BUY
If it touches Overbought, it becomes ready for SELL
Both directions can be armed at once
Once a BUY or SELL actually triggers, memory resets to neutral
Prevents “signal spam” during chop and keeps direction meaningful
🎯 Why This Works
✔ Filters out random countertrend noise
✔ Only trades after momentum exhaustion
✔ Uses strict Heikin Ashi reversal structure
✔ Works great across crypto, forex, indices, metals
✔ Designed for precision entries and swing continuation traps
⚙️ Customizable Options
Doji detection mode (body % / ticks / hybrid)
Wick tolerance
Heikin Ashi source (chart or calculated)
Stochastic source (raw or smoothed)
Option to avoid duplicate same-direction signals
Visual aids: pattern markers, blocked signals, doji debugging
📌 Best Use Cases
Reversal scalping on 5m/15m
Swing entries on 1H/4H
Trend exhaustion confirmation
Smart Money Concepts entry refinement
Entry timing after liquidity sweeps
🚨 Important
This is not a repainting system. Signals are generated at bar close only. Always combine with proper risk management and market context.
Let me know if you want:
✅ A shorter description
✅ An SEO optimized TradingView title
✅ A strategy version with backtesting
✅ Alerts version for automation
오픈 소스 스크립트
진정한 트레이딩뷰 정신에 따라 이 스크립트 작성자는 트레이더가 기능을 검토하고 검증할 수 있도록 오픈소스로 공개했습니다. 작성자에게 찬사를 보냅니다! 무료로 사용할 수 있지만 코드를 다시 게시할 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.
오픈 소스 스크립트
진정한 트레이딩뷰 정신에 따라 이 스크립트 작성자는 트레이더가 기능을 검토하고 검증할 수 있도록 오픈소스로 공개했습니다. 작성자에게 찬사를 보냅니다! 무료로 사용할 수 있지만 코드를 다시 게시할 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.