OPEN-SOURCE SCRIPT
Updated Buy Sell Badge with DMI & ADX by Bybllo

Buy Sell Badge with DMI & ADX generates Buy/Sell badges from a Fast/Slow EMA crossover, then automatically manages an ATR-based stop loss and risk:reward take profit for every signal.
On top of the base EMA signal, you can layer in two independent trend-strength filters:
- DMI filter: confirms the signal with a DI+/DI- crossover near the same bars (with an optional "ADX Rising" requirement)
- ADX filter: confirms the signal with an upper or lower ADX threshold zone (each zone with its own optional "ADX Rising" requirement)
Enable either filter alone, both together for the strictest "DUAL BUY/SELL" confirmation, or neither for the raw EMA signal.
INTENDED USE
Built for short-term futures scalping - Nasdaq futures, KOSPI200 futures, and similar instruments. Primarily designed and tested on the 1-minute chart, but the EMA/ATR/DMI/ADX logic is timeframe-agnostic and works well on 2, 3, and 5-minute charts and other intraday timeframes too. When switching timeframe or instrument, re-check the SL Multiplier, Risk:Reward, and Alert Sensitivity (Points) inputs, since typical point moves and ATR scale with the timeframe.
FEATURES
- Fast/Slow EMA crossover base signal with optional candle confirmation
- ATR-based stop loss and R:R-based take profit with intermediate TP levels
- Independent DMI and ADX confirmation filters, each with its own length and thresholds
- "ADX Rising" toggles on each filter zone (DMI, ADX upper, ADX lower) for extra momentum confirmation
- Automatic entry invalidation on opposite signals
- Live position table (entry / stop / take profit / current R:R)
- Full alert set: BSB, BSB+DMI, BSB+ADX, BSB+DMI+ADX, TP hit, SL hit, invalidated
- Works on any chart type (candlestick, Heikin Ashi, Renko, etc.) since prices are pulled via request.security() from the underlying ticker
This is a visual/alerting tool only - it does not place real orders. For educational and informational purposes only, not financial advice. Always backtest and forward-test before using with real capital.
On top of the base EMA signal, you can layer in two independent trend-strength filters:
- DMI filter: confirms the signal with a DI+/DI- crossover near the same bars (with an optional "ADX Rising" requirement)
- ADX filter: confirms the signal with an upper or lower ADX threshold zone (each zone with its own optional "ADX Rising" requirement)
Enable either filter alone, both together for the strictest "DUAL BUY/SELL" confirmation, or neither for the raw EMA signal.
INTENDED USE
Built for short-term futures scalping - Nasdaq futures, KOSPI200 futures, and similar instruments. Primarily designed and tested on the 1-minute chart, but the EMA/ATR/DMI/ADX logic is timeframe-agnostic and works well on 2, 3, and 5-minute charts and other intraday timeframes too. When switching timeframe or instrument, re-check the SL Multiplier, Risk:Reward, and Alert Sensitivity (Points) inputs, since typical point moves and ATR scale with the timeframe.
FEATURES
- Fast/Slow EMA crossover base signal with optional candle confirmation
- ATR-based stop loss and R:R-based take profit with intermediate TP levels
- Independent DMI and ADX confirmation filters, each with its own length and thresholds
- "ADX Rising" toggles on each filter zone (DMI, ADX upper, ADX lower) for extra momentum confirmation
- Automatic entry invalidation on opposite signals
- Live position table (entry / stop / take profit / current R:R)
- Full alert set: BSB, BSB+DMI, BSB+ADX, BSB+DMI+ADX, TP hit, SL hit, invalidated
- Works on any chart type (candlestick, Heikin Ashi, Renko, etc.) since prices are pulled via request.security() from the underlying ticker
This is a visual/alerting tool only - it does not place real orders. For educational and informational purposes only, not financial advice. Always backtest and forward-test before using with real capital.
Release Notes
Update: Added a note in the description clarifying that when both DMI and ADX filters are enabled together (dual confirmation mode), badges only appear when both conditions are satisfied simultaneously - this is intentionally a very strict filter, so badges (and their entry/SL/TP lines) will show up far less often than with either filter used alone. No changes to signal logic or position management.Open-source script
In true PulseWire 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 PulseWire. Read more in the Terms of Use.
Open-source script
In true PulseWire 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 PulseWire. Read more in the Terms of Use.
