Strategy · Pine Script v6 · On the chart

SuperTrend Regime Confluence

by ZhijuCen· code credited to DefinedEdge

The SuperTrend Regime Confluence strategy combines an adaptive SuperTrend indicator with market regime detection to generate trading signals.

View on GitHub

GitHub stars2on the repository
Pine versionv6current
Lines of code371
Settings36inputs
LicenceMIT
Last update2 weeks ago12 Oct 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above, or the copy button on the code below.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new strategy, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart. The trades and results appear in the Strategy Tester tab; adjust the settings with the gear icon.

Source Code

371 lines of Pine Script v6 from skills/mql5-from-pinescript/assets/pine-scripts/supertrend-regime-confluence.pine, published under MIT. Keep the author's credit and licence lines when you reuse it.

supertrend-regime-confluence.pine
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © DefinedEdge

//@version=6
strategy("SuperTrend Regime Confluence", "ST Regime Conf",
     overlay            = true,
     initial_capital    = 10000,
     default_qty_type   = strategy.percent_of_equity,
     default_qty_value  = 5,
     commission_type    = strategy.commission.percent,
     commission_value   = 0.06,
     slippage           = 2,
     pyramiding         = 0,
     calc_on_every_tick = false,
     max_labels_count   = 500)

// ============================================================================
// INPUTS
// ============================================================================

// --- SuperTrend Core ---
GRP_ST  = "SuperTrend"
i_atLen = input.int(10,    "ATR Length",      minval=1, maxval=50, group=GRP_ST)
i_bMult = input.float(3.0, "Base Multiplier", minval=0.5, maxval=10.0, step=0.1, group=GRP_ST)
i_src   = input.source(hl2, "Source",         group=GRP_ST)

// --- Regime Detection ---
GRP_REG  = "Regime Detection"
i_regLen = input.int(40,    "Regime Lookback",     minval=10, maxval=100, group=GRP_REG)
i_adxLen = input.int(14,    "ADX Length",          minval=5,  maxval=50,  group=GRP_REG)
i_adxThr = input.float(20,  "ADX Trend Threshold", minval=10, maxval=40, step=1, group=GRP_REG)
i_adapt  = input.bool(true, "Adaptive Multiplier", group=GRP_REG)

// --- Composite Signal Scoring ---
GRP_SC     = "Signal Engine"
i_trendLen = input.int(50,  "Trend EMA Length", minval=10, maxval=200, group=GRP_SC)
i_volLen   = input.int(20,  "Volume MA Length", minval=5,  maxval=50,  group=GRP_SC)
i_minSc    = input.int(65,  "Min Signal Score", minval=0,  maxval=90,  group=GRP_SC, tooltip="Only enter when the composite score meets this threshold. Higher = fewer, higher-conviction entries.")

// --- Position Sizing ---
GRP_SZ     = "Position Sizing"
i_sizeMode = input.string("Risk %", "Sizing Mode", options=["Risk %", "Equity %", "Fixed Units"], group=GRP_SZ, tooltip="Risk %: size the position so the stop-loss risks a fixed % of equity (recommended). Equity %: fixed % of equity as notional. Fixed Units: constant coin/contract size.")
i_riskPct  = input.float(5.0,  "Risk % per Trade",    minval=0.1, maxval=10.0, step=0.1, group=GRP_SZ, tooltip="Percent of current equity risked from entry to stop. 5% sits at the conservative end of TradingView's 5-10% guidance. Lower to 3-4% if you see any margin calls across the full history.")
i_eqPct    = input.float(15.0, "Equity % (notional)", minval=1.0, maxval=100.0, step=1.0, group=GRP_SZ)
i_fixedQty = input.float(1.0,  "Fixed Units",         minval=0.0, step=0.1, group=GRP_SZ)
i_noLev    = input.bool(true,  "Cap at No Leverage",  group=GRP_SZ, tooltip="Cap the position at 90% of equity. Leaves a margin buffer so a reversal bar cannot trigger a broker liquidation (margin call). Spot-realistic.")

// --- Risk Management ---
GRP_RISK = "Risk Management"
i_slMode = input.string("ATR", "Stop Loss Mode", options=["ATR", "Percent", "SuperTrend"], group=GRP_RISK, tooltip="ATR: dynamic stop from volatility. Percent: fixed %. SuperTrend: exit on trend flip.")
i_slAtr  = input.float(6.0,  "SL ATR Multiplier", minval=0.5, maxval=10.0, step=0.1, group=GRP_RISK)
i_slPct  = input.float(3.0,  "SL Percent",        minval=0.5, maxval=15.0, step=0.1, group=GRP_RISK)
i_tpMode = input.string("RR", "Take Profit Mode", options=["RR", "Percent", "None"], group=GRP_RISK, tooltip="RR: reward as a multiple of stop distance. Percent: fixed %. None: hold until SL or flip.")
i_tpRR   = input.float(2.5,  "TP Risk:Reward",    minval=0.5, maxval=10.0, step=0.1, group=GRP_RISK)
i_tpPct  = input.float(6.0,  "TP Percent",        minval=0.5, maxval=25.0, step=0.1, group=GRP_RISK)
i_trail  = input.bool(false, "Trailing Stop",     group=GRP_RISK, tooltip="Trail the stop in the trade's direction after entry.")
i_trailAtr = input.float(2.5,"Trail ATR Mult",    minval=0.5, maxval=8.0, step=0.1, group=GRP_RISK)

// --- Filters ---
GRP_FLT  = "Trade Filters"
i_trendF = input.bool(true,  "EMA Trend Filter", group=GRP_FLT, tooltip="Longs only above EMA, shorts only below.")
i_regF   = input.bool(true,  "Skip Ranging",     group=GRP_FLT, tooltip="Skip entries during the ranging regime. Reduces whipsaws.")
i_volF   = input.bool(true,  "Volume Filter",    group=GRP_FLT, tooltip="Only enter if volume is above its average.")
i_sigCD  = input.int(5,      "Cooldown (bars)",  minval=0, maxval=50, group=GRP_FLT)
i_longs  = input.bool(true,  "Allow Longs",  inline="dir", group=GRP_FLT)
i_shorts = input.bool(true,  "Allow Shorts", inline="dir", group=GRP_FLT)

// --- Backtest Window ---
GRP_BT   = "Backtest"
i_btFrom = input.time(timestamp("2015-01-01"), "From", group=GRP_BT)
i_btTo   = input.time(timestamp("2035-01-01"), "To",   group=GRP_BT)
bool inWindow = time >= i_btFrom and time <= i_btTo

// --- Visuals ---
GRP_VIS   = "Visuals"
i_sGlow    = input.bool(true, "Band Glow Effect",  group=GRP_VIS)
i_sRegBg   = input.bool(true, "Regime Background",  group=GRP_VIS)
i_showLbl  = input.bool(true, "Show score labels",  group=GRP_VIS, tooltip="The per-signal score boxes on the chart. Turn OFF to de-clutter. (The Long/Short/Margin-call ARROWS are TradingView's, not the script's — hide those via Settings -> Properties -> uncheck Signal labels.)")

// --- Colors ---
GRP_COL  = "Colors"
i_cBull  = input.color(color.new(#089981, 0), "Bull", inline="c1", group=GRP_COL)
i_cBear  = input.color(color.new(#f23645, 0), "Bear", inline="c1", group=GRP_COL)

// ============================================================================
// CORE CALCULATIONS
// ============================================================================

int n = bar_index
float atr = ta.atr(i_atLen)
float safeAtr = nz(atr, 0.001)

// -- Regime Detection --
float atrMa    = ta.sma(atr, i_regLen)
float atrRatio = atrMa > 0 ? atr / atrMa : 1.0

// ADX
float upMove   = high - high[1]
float dnMove   = low[1] - low
float plusDM   = upMove > dnMove and upMove > 0 ? upMove : 0
float minusDM  = dnMove > upMove and dnMove > 0 ? dnMove : 0
float smoothTR = ta.rma(ta.tr, i_adxLen)
float smoothPD = ta.rma(plusDM, i_adxLen)
float smoothND = ta.rma(minusDM, i_adxLen)
float plusDI   = smoothTR > 0 ? 100 * smoothPD / smoothTR : 0
float minusDI  = smoothTR > 0 ? 100 * smoothND / smoothTR : 0
float diSum    = plusDI + minusDI
float dx       = diSum > 0 ? 100 * math.abs(plusDI - minusDI) / diSum : 0
float adx      = ta.rma(dx, i_adxLen)

// regime: 0 = ranging, 1 = trending, 2 = volatile
var int regime = 1
if atrRatio > 1.4
    regime := 2
else if adx < i_adxThr and atrRatio < 0.9
    regime := 0
else
    regime := 1

// -- Adaptive Multiplier --
float adaptMult = i_bMult
if i_adapt
    if regime == 2
        adaptMult := i_bMult * (1.0 + (atrRatio - 1.0) * 0.4)
    else if regime == 0
        adaptMult := i_bMult * 0.85
adaptMult := math.max(math.min(adaptMult, i_bMult * 2.0), i_bMult * 0.5)

// -- SuperTrend --
var float stBand = na
var int   stDir  = 1

float upperBase = i_src + adaptMult * atr
float lowerBase = i_src - adaptMult * atr
float prevBand  = nz(stBand[1], stDir == 1 ? lowerBase : upperBase)

if stDir == 1
    stBand := math.max(lowerBase, prevBand)
    if close < stBand
        stDir  := -1
        stBand := upperBase
else
    stBand := math.min(upperBase, prevBand)
    if close > stBand
        stDir  := 1
        stBand := lowerBase

bool trendFlip = stDir != stDir[1]

// -- Trend EMA --
float trendMa = ta.ema(close, i_trendLen)
bool  trendUp = close > trendMa
bool  trendDn = close < trendMa

// -- Volume --
float volMa = ta.sma(volume, i_volLen)

// ============================================================================
// COMPOSITE SIGNAL SCORING
// ----------------------------------------------------------------------------
// The score is a transparent, weighted sum of five confluence factors (0-100).
// It is NOT a machine-learning model; it is a rules-based confluence filter.
// ============================================================================

scoreSignal(bool isBull) =>
    float score = 0

    // Factor 1: Volume surge vs average (0-20)
    float vRat = volMa > 0 ? volume / volMa : 1.0
    score += vRat >= 2.5 ? 20 : vRat >= 1.5 ? 14 : vRat >= 1.0 ? 8 : 3

    // Factor 2: Displacement beyond the band (0-25)
    float disp = isBull ? (close - stBand) : (stBand - close)
    float dispAtr = safeAtr > 0 ? disp / safeAtr : 0
    score += dispAtr >= 1.5 ? 25 : dispAtr >= 0.8 ? 18 : dispAtr >= 0.3 ? 12 : dispAtr > 0 ? 5 : 0

    // Factor 3: EMA trend alignment (0-20)
    bool aligned = (isBull and trendUp) or (not isBull and trendDn)
    float emaDist = math.abs(close - trendMa) / safeAtr
    score += aligned and emaDist > 0.5 ? 20 : aligned ? 14 : emaDist < 0.3 ? 8 : 2

    // Factor 4: Regime quality (0-15)
    score += regime == 1 ? 15 : regime == 2 ? 8 : 3

    // Factor 5: Band distance held before the flip (0-20)
    float prevDist = not na(stBand[1]) ? math.abs(close[1] - stBand[1]) / safeAtr : 0
    score += prevDist >= 2.0 ? 20 : prevDist >= 1.0 ? 14 : prevDist >= 0.5 ? 8 : 3

    int(math.min(math.round(score), 100))

// ============================================================================
// POSITION SIZING
// ----------------------------------------------------------------------------
// Risk %: units = (equity * risk%) / stopDistance, so a stop-out loses exactly
// risk% of equity. Capped at 90% of equity, leaving a margin buffer so a
// reversal bar cannot trigger a broker liquidation (no leverage, no margin calls).
// ============================================================================

f_posQty(float _stopDist) =>
    float q = i_fixedQty
    if i_sizeMode == "Risk %"
        float riskCap = strategy.equity * i_riskPct / 100.0
        q := _stopDist > 0 ? riskCap / _stopDist : na
    else if i_sizeMode == "Equity %"
        q := close > 0 ? (strategy.equity * i_eqPct / 100.0) / close : na
    if i_noLev and not na(q) and close > 0
        q := math.min(q, 0.90 * strategy.equity / close)
    na(q) or q <= 0 ? na : q

// ============================================================================
// TRADE LOGIC
// ============================================================================

var int   lastEntryBar = 0
var float entryPrice   = 0.0
var float slPrice      = 0.0
var float tpPrice      = 0.0
var int   lastSigScore = 0
var int   lastSigDir   = 0

bool longEntry  = false
bool shortEntry = false
int  sigScore   = 0

bool cdOk = (n - lastEntryBar) > i_sigCD

if trendFlip and inWindow and cdOk and barstate.isconfirmed
    if stDir == 1
        sigScore := scoreSignal(true)
        bool passScore = sigScore >= i_minSc
        bool passTrend = not i_trendF or trendUp
        bool passReg   = not i_regF or regime != 0
        bool passVol   = not i_volF or (volume > volMa)
        if passScore and passTrend and passReg and passVol and i_longs
            longEntry := true
    else
        sigScore := scoreSignal(false)
        bool passScore = sigScore >= i_minSc
        bool passTrend = not i_trendF or trendDn
        bool passReg   = not i_regF or regime != 0
        bool passVol   = not i_volF or (volume > volMa)
        if passScore and passTrend and passReg and passVol and i_shorts
            shortEntry := true

// -- Stop / target distances --
float slDist = 0.0
if i_slMode == "ATR"
    slDist := atr * i_slAtr
else if i_slMode == "Percent"
    slDist := close * i_slPct / 100
else
    slDist := math.abs(close - stBand)

float tpDist = 0.0
if i_tpMode == "RR"
    tpDist := slDist * i_tpRR
else if i_tpMode == "Percent"
    tpDist := close * i_tpPct / 100

// -- Execute Long --
if longEntry
    float q = f_posQty(slDist)
    if not na(q)
        if strategy.position_size < 0
            strategy.close("Short")
        entryPrice := close
        slPrice    := close - slDist
        tpPrice    := i_tpMode != "None" ? close + tpDist : na
        strategy.entry("Long", strategy.long, qty=q)
        if i_tpMode != "None"
            strategy.exit("Long Exit", "Long", stop=slPrice, limit=tpPrice,
                 trail_points = i_trail ? slDist / syminfo.mintick : na,
                 trail_offset = i_trail ? (atr * i_trailAtr) / syminfo.mintick : na)
        else
            strategy.exit("Long SL", "Long", stop=slPrice,
                 trail_points = i_trail ? slDist / syminfo.mintick : na,
                 trail_offset = i_trail ? (atr * i_trailAtr) / syminfo.mintick : na)
        lastEntryBar := n
        lastSigScore := sigScore
        lastSigDir   := 1

// -- Execute Short --
if shortEntry
    float q = f_posQty(slDist)
    if not na(q)
        if strategy.position_size > 0
            strategy.close("Long")
        entryPrice := close
        slPrice    := close + slDist
        tpPrice    := i_tpMode != "None" ? close - tpDist : na
        strategy.entry("Short", strategy.short, qty=q)
        if i_tpMode != "None"
            strategy.exit("Short Exit", "Short", stop=slPrice, limit=tpPrice,
                 trail_points = i_trail ? slDist / syminfo.mintick : na,
                 trail_offset = i_trail ? (atr * i_trailAtr) / syminfo.mintick : na)
        else
            strategy.exit("Short SL", "Short", stop=slPrice,
                 trail_points = i_trail ? slDist / syminfo.mintick : na,
                 trail_offset = i_trail ? (atr * i_trailAtr) / syminfo.mintick : na)
        lastEntryBar := n
        lastSigScore := sigScore
        lastSigDir   := -1

// -- SuperTrend flip exit (only when SL mode is SuperTrend) --
if i_slMode == "SuperTrend" and trendFlip
    if strategy.position_size > 0 and stDir == -1
        strategy.close("Long", comment="ST Flip")
    if strategy.position_size < 0 and stDir == 1
        strategy.close("Short", comment="ST Flip")

// ============================================================================
// ALERTS
// ============================================================================

alertcondition(longEntry,  "SRC - Long Entry",  "SuperTrend Regime Confluence: LONG entry signal")
alertcondition(shortEntry, "SRC - Short Entry", "SuperTrend Regime Confluence: SHORT entry signal")

// ============================================================================
// VISUALS
// ============================================================================

color bandCore  = stDir == 1 ? i_cBull : i_cBear
color bandColor = regime == 2 ? color.new(#ffab00, 0) : regime == 0 ? color.new(#78909c, 20) : bandCore

plot(i_sGlow ? stBand : na, "Glow Outer", color=color.new(bandColor, 85), linewidth=6, style=plot.style_linebr)
plot(i_sGlow ? stBand : na, "Glow Mid",   color=color.new(bandColor, 70), linewidth=4, style=plot.style_linebr)

plot(regime != 0 ? stBand : na, "Band (Solid)",   color=bandColor, linewidth=2, style=plot.style_linebr)
plot(regime == 0 ? stBand : na, "Band (Ranging)", color=bandColor, linewidth=2, style=plot.style_linebr, linestyle=plot.linestyle_dotted)

plot(trendFlip ? stBand : na, "Flip Dot", color=bandCore, style=plot.style_circles, linewidth=5, join=false)

bgcolor(i_sRegBg and regime == 2 ? color.new(#ffab00, 95) : na, title="Volatile BG")
bgcolor(i_sRegBg and regime == 0 ? color.new(#78909c, 96) : na, title="Ranging BG")

plot(trendMa, "Trend EMA", color=color.new(trendUp ? i_cBull : i_cBear, 65), linewidth=1)

// -- Entry Labels --
bool isBright = sigScore >= 70

if longEntry and i_showLbl
    string ico = isBright ? "*" : "o"
    color  css = isBright ? color.new(#00e676, 0) : color.new(#546e7a, 0)
    label.new(n, stBand, ico + " " + str.tostring(sigScore),
      color=color.new(css, isBright ? 0 : 50), textcolor=#ffffff,
      size=isBright ? size.small : size.tiny, style=label.style_label_up,
      tooltip="LONG | Score: " + str.tostring(sigScore) +
              "\nRegime: " + (regime == 1 ? "TRENDING" : regime == 2 ? "VOLATILE" : "RANGING") +
              "\nSL: " + str.tostring(math.round(slDist / close * 100, 2)) + "%" +
              "\nTP: " + (i_tpMode != "None" ? str.tostring(math.round(tpDist / close * 100, 2)) + "%" : "None"))

if shortEntry and i_showLbl
    string ico = isBright ? "*" : "o"
    color  css = isBright ? color.new(#ff5252, 0) : color.new(#546e7a, 0)
    label.new(n, stBand, ico + " " + str.tostring(sigScore),
      color=color.new(css, isBright ? 0 : 50), textcolor=#ffffff,
      size=isBright ? size.small : size.tiny, style=label.style_label_down,
      tooltip="SHORT | Score: " + str.tostring(sigScore) +
              "\nRegime: " + (regime == 1 ? "TRENDING" : regime == 2 ? "VOLATILE" : "RANGING") +
              "\nSL: " + str.tostring(math.round(slDist / close * 100, 2)) + "%" +
              "\nTP: " + (i_tpMode != "None" ? str.tostring(math.round(tpDist / close * 100, 2)) + "%" : "None"))

// ============================================================================
// HIDDEN PLOTS (for data window / debugging)
// ============================================================================

plot(sigScore > 0 ? sigScore : na, "Signal Score",    display=display.none)
plot(adaptMult,     "Adaptive Mult",   display=display.none)
plot(adx,           "ADX",             display=display.none)
plot(float(regime), "Regime",          display=display.none)
plot(float(stDir),  "Trend Direction", display=display.none)

Overview

SuperTrend Regime Confluence computes a composite conviction score using an ADX regime lookback, a trend EMA, and a volume moving average. Trades trigger only when the composite score satisfies a configurable threshold and passes optional trend, volume, and range filters. Overlaid directly on the price chart, position sizes can be dynamically calculated based on account risk percentage, equity percentage, or fixed contract units. Risk management includes customizable ATR-based, percentage-based, or SuperTrend trailing stops and profit targets.

Details

Published by

ZhijuCen on GitHub

Code credit

DefinedEdge, as written in the script's header

Type

Strategy, Pine Script v6

Draws

On the price chart

Category

Trend, Volatility & bands, Moving averages, Volume

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
ATR Lengthint10i_atLen
Base Multiplierfloat3.0i_bMult
Sourcesourcehl2i_src
Regime Lookbackint40i_regLen
ADX Lengthint14i_adxLen
ADX Trend Thresholdfloat20i_adxThr
Adaptive Multiplierbooltruei_adapt
Trend EMA Lengthint50i_trendLen
Volume MA Lengthint20i_volLen
Min Signal Scoreint65i_minSc
Sizing ModestringRisk %i_sizeMode
Risk % per Tradefloat5.0i_riskPct
Show all 36 settings
SettingTypeDefaultVariable
Equity % (notional)float15.0i_eqPct
Fixed Unitsfloat1.0i_fixedQty
Cap at No Leveragebooltruei_noLev
Stop Loss ModestringATRi_slMode
SL ATR Multiplierfloat6.0i_slAtr
SL Percentfloat3.0i_slPct
Take Profit ModestringRRi_tpMode
TP Risk:Rewardfloat2.5i_tpRR
TP Percentfloat6.0i_tpPct
Trailing Stopboolfalsei_trail
Trail ATR Multfloat2.5i_trailAtr
EMA Trend Filterbooltruei_trendF
Skip Rangingbooltruei_regF
Volume Filterbooltruei_volF
Cooldown (bars)int5i_sigCD
Allow Longsbooltruei_longs
Allow Shortsbooltruei_shorts
Fromtimetimestamp("2015-01-01")i_btFrom
Totimetimestamp("2035-01-01")i_btTo
Band Glow Effectbooltruei_sGlow
Regime Backgroundbooltruei_sRegBg
Show score labelsbooltruei_showLbl
Bullcolorcolor.new(#089981, 0)i_cBull
Bearcolorcolor.new(#f23645, 0)i_cBear
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.

Similar Pine Scripts

Prototype

by hasnocool
106 stars

This strategy overlays Supertrend-style ATR trailing stop levels on the price chart alongside multi-period moving averages, volume metrics, and Bollinger Bands. It flags trend direction changes using an ATR offset channel, plotting buy and sell signals directl

Strategy v4 TrendVolatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of Prototype

This strategy enters long or short when eight conditions align over the last two bars. It requires EMA 10 and EMA 55 alignment on the one-hour, four-hour and daily charts, a positive ADX slope, matching monitor direction, and price relative to a 400-bar point

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Ruckard ABCBitcoin TradingLatino B002
8 stars

This overlay strategy combines three distinct SuperTrend levels with multiple moving averages and volume profile analytics on the main price chart. It calculates trend directions using three configurable ATR periods and multipliers alongside SMA, EMA, and HMA

Strategy v5 TrendVolatility & bands
Updated 4 years ago · None stated GitHub repository of ATR 3Lvls VP Strategy
4 stars

This trend-following strategy generates long and short entries when a fast EMA crosses a slow EMA, overlaying directly on the price chart. To reduce false signals, it applies four configurable fakeout filters: volume moving average threshold, consecutive bar c

Strategy v6 TrendMoving averages
Updated 2 months ago · MIT GitHub repository of Fakeout-Confirmed Strategy
2 stars

This overlay strategy enters long when a fast EMA crosses above a slow EMA, the candle closes above the fast EMA and above its open, and volume is at least a set multiple of its SMA. Position size defaults to 95 percent of equity with no pyramiding. It exits w

Strategy v5 TrendMoving averages
Updated 8 weeks ago · None stated GitHub repository of EMA20/50 ATR Trail Spot

My First Indicator

by wynnforthework
2 stars

This strategy plots EMA 25 in yellow and EMA 100 in green on the price chart. It generates buy signals on EMA 25 crossing above EMA 100 when ATR length 14 rises over two prior bars and volume exceeds prior bar. It opens a long position of 1 unit on signal. It

Strategy v5 Moving averagesTrend
Updated 1 year ago · None stated GitHub repository of My First Indicator

More strategys

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers