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
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.