OPEN-SOURCE SCRIPT

Evil's Two Legged Indicator

1 516
A pullback strategy indicator designed for scalping. This attempts to Identify classic 2-leg pullback patterns and filters out signals during choppy market conditions for better signals.


How It Works:
The indicator detects when price forms two pullback legs (swing lows in an uptrend or swing highs in a downtrend) near key support/resistance zones, then signals when reversal confirmation occurs. Equal-level pullbacks (double bottoms/tops) are marked as stronger signals.

Features:
Channel Options: Donchian (default), Linear Regression, or ATR Bands
Configurable EMA: For trend confirmation (default 21)
Adjustable Leg Detection: Swing lookback period for different timeframes
Equal Level Detection: Highlights stronger setups where both legs terminate at similar prices

Three Chop Filters (can be combined):
ADX Filter — suppresses signals when ADX is below threshold (default 25)
EMA Slope Filter — suppresses signals when EMA is flat
Chop Index Filter — suppresses signals when Chop Index indicates ranging conditions

Signal Types:
Standard signals: 2-leg pullback detected with trend confirmation
Strong signals (highlighted): 2-leg pullback with equal highs/lows — higher probability setup

Recommended Use:
Best suited for scalping on 1-5 minute chart. Designed for 1.5:1 risk/reward setups.

Settings Guide:
  • Increase "Swing Lookback" for fewer, higher-quality signals
  • Adjust "Equal Level Threshold" to fine-tune what counts as a double bottom/top
  • Enable/disable chop filters based on your market and timeframe
  • Use "Show Strong Signals Only" to filter for highest conviction setups

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.