//@version=5
strategy("Supertrend DMI Filter", overlay=true)
[supertrendLine, supertrendDirection] = ta.supertrend(3.0, 10)
[plusDI, minusDI, adxValue] = ta.dmi(14, 14)
plot(supertrendLine, color=supertrendDirection > 0 ? color.green : color.red)
longCondition = ta.crossover(close, supertrendLine) and plusDI > minusDI and adxValue > 18
shortCondition = ta.crossunder(close, supertrendLine) and minusDI > plusDI and adxValue > 18
if (longCondition)
strategy.entry("Long", strategy.long)
if (shortCondition)
strategy.entry("Short", strategy.short)
Overview
Supertrend DMI Filter enters long when the closing price crosses above the Supertrend line while +DI exceeds -DI and the ADX value is above 18. Conversely, it enters short when price crosses below the Supertrend line with -DI greater than +DI and ADX above 18. The Supertrend line is plotted directly on the price chart, colored green or red based on trend direction. The script lacks defined stop loss and take profit parameters, relying solely on opposing reversal signals to exit.
Supertrend line overlay with dynamic trend coloring
DMI trend filter using +DI, -DI, and ADX threshold
Long and short entry conditions based on price breakouts
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.
This strategy overlays a trend moving average and Supertrend bands directly on the price chart while calculating Stochastic RSI values internally. Long positions trigger when price exceeds the moving average, Supertrend signals bullish momentum, and the StochR
This trading strategy combines three Exponential Moving Averages (8, 14, and 50 periods by default) with Stochastic RSI and Average True Range (ATR). It enters a long position when EMA 1 is above EMA 2, EMA 2 is above EMA 3, and the Stochastic RSI %K line cros
This strategy combines exponential moving averages (EMA 9, 21, 50), RSI, MACD, and Supertrend indicators to enter long positions. It triggers trades using six dynamic setups based on momentum breakouts, EMA crossovers, and pullbacks. Position sizing is compute
This strategy identifies trend reversals through market structure changes (CHoCH) filtered by MACD momentum. It initiates long positions on bullish structure breaks when MACD is positive and above its signal line, and short positions on bearish breaks when MAC
CombinedBinHAndClucV6 is a trading strategy based on the popular BinHV45 and ClucMay72018 algorithms. It calculates dual Bollinger Bands, Exponential Moving Averages, Relative Strength Index, Average True Range, and volume metrics across primary and one-hour h
LuxAlgo Hybrid Gold Scalper is a price-chart strategy aimed at gold. It stacks a fast, slow, trend and 200-period bias EMA to mark trend direction, then filters strength with RSI, ADX and an intraday VWAP. Swing highs and lows are marked from pivot length. Set