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
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
dany
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
dany
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.