Noon Barbari
Sign up

Back to strategy library

Trend followingLong & short1h4h1d

SuperTrend + VFI confluence strategy

SuperTrend regime flip filtered by Volume Flow direction — only trade flips backed by volume.

Thesis

SuperTrend regime flip filtered by Volume Flow direction — only trade flips backed by volume.

Fits Trend following setups — works best when the underlying market behavior matches the thesis, and breaks down when it doesn't. Pair with the backtester's walk-forward mode before committing real capital.

Cleaner than vanilla SuperTrend — the volume filter cuts the low-conviction flips that fire in chop. Fewer trades, smoother equity curve, occasional missed early-trend entries when volume lags price.

YAML rule-set

Paste this into the Strategy Designer's Text tab, or use the dashboard button above to load it as a template.

_template:
  title: SuperTrend + VFI confluence
  category: trend_following
  skill: intermediate
name: supertrend_vfi_confluence
weight: 1.0
long_only: false
indicators:
  st:
    kind: super_trend
    atr_period: 10
    factor: 3.0
  vf:
    kind: vfi
  c:
    kind: sma
    period: 1
entry:
  combine: OR
  rules:
    - combine: AND
      direction: long
      rules:
        - {lhs: {indicator: st, field: state}, op: crosses_up, rhs: {value: 0}}
        - {lhs: {indicator: vf, field: vfi}, op: gt, rhs: {value: 0}}
    - combine: AND
      direction: short
      rules:
        - {lhs: {indicator: st, field: state}, op: crosses_down, rhs: {value: 0}}
        - {lhs: {indicator: vf, field: vfi}, op: lt, rhs: {value: 0}}
exit:
  combine: OR
  rules:
    - {lhs: {indicator: st, field: state}, op: crosses_down, rhs: {value: 0}}
    - {lhs: {indicator: st, field: state}, op: crosses_up, rhs: {value: 0}}
risk:
  trailing_stop_pct: 0.04
  cooldown_bars: 3

Indicators

  • stSuperTrend (ATR 10, factor 3.0)

    TradingView-style SuperTrend supplying the trigger — state flips through zero are the entry signals.

  • vfVFI

    Volume Flow Indicator providing the filter — VFI > 0 confirms accumulation for longs, VFI < 0 confirms distribution for shorts.

Entry conditions

The bot opens a position the bar after every condition below has fired.

  • Long when SuperTrend flips bullish AND VFI is positive.
  • Short when SuperTrend flips bearish AND VFI is negative.

Exit conditions

Any of the conditions below will close the position.

  • Any SuperTrend flip closes the trade.
  • 4% trailing stop, 3-bar cooldown.

Expected behavior

Cleaner than vanilla SuperTrend — the volume filter cuts the low-conviction flips that fire in chop. Fewer trades, smoother equity curve, occasional missed early-trend entries when volume lags price.

Equity-curve character, not a return forecast. Backtests are not promises about live performance.

Try it on your own data

Open the template in the dashboard to backtest it on BTC, ETH, or any CCXT symbol — or copy the YAML into the Strategy Designer to edit it first.

Past behavior on backtests is not a guarantee of future performance. Markets change; rule sets need re-validation. Trade at your own risk.