OPEN-SOURCE SCRIPT
Price Action Patterns + Style Filter by dany

Price Action Patterns + Style Filter by dany
✅ Purpose
This indicator is designed to identify high-probability price action patterns and trend structure across different trading styles.
It displays clear labels attached directly to candles, allowing traders to:
Detect reversal patterns
Confirm pullbacks within strong trends
Avoid false signals from indecision candles
Trade using a structured style (Scalping, Intraday, Swing)
🔥 Key Features
1️⃣ Multi-Style Trading Structure
The indicator supports three trading styles:
Style Structure Timeframe Description
Scalping 5m / 15m structure Uses higher timeframe structure to confirm trend while trading 1m
Intraday 1H / 2H / 4H structure Best for day traders who trade in short swings
Swing Daily / Weekly / Monthly structure Best for longer-term swing trading
This helps the indicator understand trend direction and avoid trading against market structure.
🧠 How Trend is Detected
The indicator determines the trend using higher timeframe structure:
🔺 Uptrend
When the higher timeframe shows:
Higher Highs
Higher Lows
🔻 Downtrend
When the higher timeframe shows:
Lower Highs
Lower Lows
➖ Flat
If neither condition is true.
🕯️ Candlestick Patterns Detected
This indicator identifies the following patterns:
✅ 1. Dragonfly Doji
📌 Bullish Reversal Pattern
A candle with:
Long lower wick
Small body at top
Minimal upper wick
📌 Meaning: Buyers step in after sellers push price down.
❌ 2. Gravestone Doji
📌 Bearish Reversal Pattern
A candle with:
Long upper wick
Small body at bottom
Minimal lower wick
📌 Meaning: Sellers take control after buyers push price up.
🔥 3. Morning Star
📌 Bullish 3-candle reversal pattern
Sequence:
Big red candle
Small indecision candle (Doji)
Big green candle
📌 Meaning: Buyers overpower sellers.
🔥 4. Evening Star
📌 Bearish 3-candle reversal pattern
Sequence:
Big green candle
Small indecision candle (Doji)
Big red candle
📌 Meaning: Sellers overpower buyers.
🔁 5. Harami (Mother & Baby)
📌 Reversal pattern
A large candle followed by a smaller candle contained within its range.
Bullish Harami: Red candle followed by small green candle
Bearish Harami: Green candle followed by small red candle
🔁 6. Tweezers
📌 Double top / double bottom pattern
Tweezer Top: Green candle followed by equal-sized red candle
Tweezer Bottom: Red candle followed by equal-sized green candle
🧠 Psychology-Based Filtering
This indicator filters signals using price psychology:
🚫 Ignored Signals
It ignores standard indecision dojis because they often lead to false signals in sideways markets.
🔁 Pullback Confirmation
During strong trends, the indicator does not signal reversal unless a pullback happens.
✅ Bullish pullback entry
Uptrend structure
Price pulls back below EMA(50)
Dragonfly Doji or Tweezer Bottom appears
✅ Bearish pullback entry
Downtrend structure
Price pulls back above EMA(50)
Gravestone Doji appears
✅ Purpose
This indicator is designed to identify high-probability price action patterns and trend structure across different trading styles.
It displays clear labels attached directly to candles, allowing traders to:
Detect reversal patterns
Confirm pullbacks within strong trends
Avoid false signals from indecision candles
Trade using a structured style (Scalping, Intraday, Swing)
🔥 Key Features
1️⃣ Multi-Style Trading Structure
The indicator supports three trading styles:
Style Structure Timeframe Description
Scalping 5m / 15m structure Uses higher timeframe structure to confirm trend while trading 1m
Intraday 1H / 2H / 4H structure Best for day traders who trade in short swings
Swing Daily / Weekly / Monthly structure Best for longer-term swing trading
This helps the indicator understand trend direction and avoid trading against market structure.
🧠 How Trend is Detected
The indicator determines the trend using higher timeframe structure:
🔺 Uptrend
When the higher timeframe shows:
Higher Highs
Higher Lows
🔻 Downtrend
When the higher timeframe shows:
Lower Highs
Lower Lows
➖ Flat
If neither condition is true.
🕯️ Candlestick Patterns Detected
This indicator identifies the following patterns:
✅ 1. Dragonfly Doji
📌 Bullish Reversal Pattern
A candle with:
Long lower wick
Small body at top
Minimal upper wick
📌 Meaning: Buyers step in after sellers push price down.
❌ 2. Gravestone Doji
📌 Bearish Reversal Pattern
A candle with:
Long upper wick
Small body at bottom
Minimal lower wick
📌 Meaning: Sellers take control after buyers push price up.
🔥 3. Morning Star
📌 Bullish 3-candle reversal pattern
Sequence:
Big red candle
Small indecision candle (Doji)
Big green candle
📌 Meaning: Buyers overpower sellers.
🔥 4. Evening Star
📌 Bearish 3-candle reversal pattern
Sequence:
Big green candle
Small indecision candle (Doji)
Big red candle
📌 Meaning: Sellers overpower buyers.
🔁 5. Harami (Mother & Baby)
📌 Reversal pattern
A large candle followed by a smaller candle contained within its range.
Bullish Harami: Red candle followed by small green candle
Bearish Harami: Green candle followed by small red candle
🔁 6. Tweezers
📌 Double top / double bottom pattern
Tweezer Top: Green candle followed by equal-sized red candle
Tweezer Bottom: Red candle followed by equal-sized green candle
🧠 Psychology-Based Filtering
This indicator filters signals using price psychology:
🚫 Ignored Signals
It ignores standard indecision dojis because they often lead to false signals in sideways markets.
🔁 Pullback Confirmation
During strong trends, the indicator does not signal reversal unless a pullback happens.
✅ Bullish pullback entry
Uptrend structure
Price pulls back below EMA(50)
Dragonfly Doji or Tweezer Bottom appears
✅ Bearish pullback entry
Downtrend structure
Price pulls back above EMA(50)
Gravestone Doji appears
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
dany
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
dany
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.