Custom indicator

Trade Trend Compass

Multi-factor trend state using EMAs, VWAP and ADX. Learn the professional context, limitations, settings and a Pine Script v6 implementation.

Indicator context
Structure firstIndicator secondRisk always
Professional reference

What it measures

Trade Trend Compass is most useful when its signal answers a specific question: multi-factor trend state using emas, vwap and adx. Start with the default settings, then evaluate whether the lookback matches the instrument and timeframe.

CategoryCustom
Primary useMulti-factor trend state using EMAs, VWAP and ADX
Typical settingLite v1.0
DifficultyIntermediate

How professionals use it

Professional traders use this tool as one layer of evidence. The strongest interpretation comes from aligning the indicator with market structure, location, volatility and volume rather than reacting to a single crossover.

1. Establish context

Map trend, range boundaries and major levels before reading the indicator.

2. Define confirmation

State exactly what the indicator must show to support the price thesis.

3. Define invalidation

Use price structure—not the indicator alone—to decide when the idea is wrong.

Settings by trading style

StyleStarting approachTrade-off
IntradayUse a shorter lookback only after testing.More responsive, more noise.
SwingBegin near standard defaults.Balanced responsiveness and stability.
PositionUse longer lookbacks and higher-timeframe confirmation.Smoother but later signals.

Signal framework

Bullish evidence

Price structure is constructive and the indicator confirms improving trend, momentum, participation or volatility.

Bearish evidence

Price structure is weakening and the indicator confirms deterioration rather than creating the thesis by itself.

Neutral evidence

Conflicting readings usually mean wait, reduce size or use a different tool suited to the regime.

Common mistakes

  • Treating one threshold or crossover as an automatic trade.
  • Ignoring higher-timeframe structure and nearby liquidity.
  • Optimizing settings until they fit historical data perfectly.
  • Using multiple indicators that measure the same underlying variable.
  • Confusing a useful alert with a complete trading system.
TradingView

Use the Pine Script

Open TradingView → Pine Editor → create a new indicator → paste the code → Save → Add to chart. Review the inputs and test it on replay or paper trading before relying on it.

Pine Script v6 · Trade Trend Compass
//@version=6
indicator("VG Trade Trend Compass", shorttitle="VG TRADE-TREN", overlay=true)

fast=input.int(20,"Fast EMA")
slow=input.int(50,"Slow EMA")
trend=input.int(200,"Trend EMA")
e1=ta.ema(close,fast)
e2=ta.ema(close,slow)
e3=ta.ema(close,trend)
v=ta.vwap(hlc3)
[plus,minus,adx]=ta.dmi(14,14)
bull=close>e1 and e1>e2 and e2>e3 and close>v and adx>20
bear=close<e1 and e1<e2 and e2<e3 and close<v and adx>20
bgcolor(bull?color.new(color.green,88):bear?color.new(color.red,88):color.new(color.gray,94))
plot(e1,"Fast",color=color.teal)
plot(e2,"Slow",color=color.orange)
plot(e3,"Trend",color=color.gray)
plot(v,"VWAP",color=color.purple)
alertcondition(bull and not bull[1],"Bullish trend state","VG Trend Compass turned bullish")
alertcondition(bear and not bear[1],"Bearish trend state","VG Trend Compass turned bearish")
Important

This educational implementation is not a recommendation and may behave differently across symbols, sessions and timeframes. It does not promise profitability.