PROTECTED SOURCE SCRIPT

EMMTECH Doji Pullback Strategy

32
This is a trend-following pullback trading strategy for TradingView that identifies high-probability entry points when price temporarily moves against the main trend, then shows signs of reversal.
Core Concept
The indicator waits for the market to establish a trend (using the 100 EMA as a reference), then looks for a brief counter-trend pullback followed by a doji candle (indecision candle), which signals potential trend resumption.
Key Components
1. Trend Filter - 100 EMA

The orange line on your chart representing the 100-period Exponential Moving Average
Price above EMA = uptrend (look for buy setups)
Price below EMA = downtrend (look for sell setups)

2. Pullback Detection
The strategy counts consecutive candles moving against the trend:

In an uptrend: waits for 2+ consecutive red (bearish) candles
In a downtrend: waits for 2+ consecutive green (bullish) candles

3. Clean Candle Filter (Optional)
Filters out candles with large wicks to ensure strong directional moves:

Measures wick size relative to body
Default: wicks can't exceed 30% of body size
Ensures the pullback candles show genuine selling/buying pressure

4. Doji Confirmation
After the pullback, the strategy looks for a doji candle:

Small body relative to total range (default: ≤10% of candle range)
Represents indecision and potential exhaustion of the pullback
Often signals the trend is about to resume

Trade Signals
BUY Signal (Green triangle below bar):

Price is above 100 EMA ✓
2+ consecutive clean red candles ✓
Current candle is a doji ✓

SELL Signal (Red triangle above bar):

Price is below 100 EMA ✓
2+ consecutive clean green candles ✓
Current candle is a doji ✓

Risk Management Visualization
When a signal triggers, the indicator automatically draws:

Red line: Stop loss (placed at the low of the setup for buys, high for sells)
Green line: Target (1:1 risk-reward ratio) (Preferably set SL at recent low)
Teal box: Visual representation of the trade's risk-reward zone

Customizable Parameters

EMA Length: Default 100, adjust for faster/slower trend identification
Consecutive Candles: Minimum pullback candles required (default 2)
Wick Filter: Toggle clean candle requirement on/off
Wick Threshold: How much wick is acceptable (0.3 = 30%)
Doji Filter: Toggle doji requirement on/off
Doji Threshold: How small the body must be (0.1 = 10% of range)

Trading Logic
This strategy aims to catch the "sweet spot" where:

The main trend is still intact (EMA filter)
Weak hands have been shaken out (pullback)
Momentum is exhausting (doji appears)
Strong hands are likely to resume the trend

The background color (light green/red) helps you quickly identify which side of the trend you're on.

Wyłączenie odpowiedzialności

Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.