Skip to main content

Trend Indicators

Trend indicators identify the direction and strength of a price trend. Each section below covers what the indicator does, its parameters, and an example strategy you can build (or paste into the AI Agent).

For Candle Type, Source, Period, Timeframe, and Offset - common to all indicators - see Indicator Parameters Explained.

1. EMA (Exponential Moving Average)​

A moving average that weights recent prices more heavily, making it more responsive to current market changes than an SMA.

  • Identifies short term trends and momentum
  • Acts as dynamic support and resistance
  • The classic crossover pair (fast EMA Γ— slow EMA) is one of the most used entry signals

Parameters: Candle Type, Source, Period, Timeframe, Offset - all standard.

EMA parameter settings

Example strategy - EMA 20/50 crossover:

Condition
EntryEMA(20) crosses above EMA(50), 5m timeframe
ExitEMA(20) crosses below EMA(50)

Completed EMA 20/50 crossover strategy

For the click-by-click build, see the Canvas worked example or the Quickstart.

2. SMA (Simple Moving Average)​

The average price over a period, with all candles weighted equally. Smoother and slower than EMA - better for trend confirmation, support/resistance, and longer term direction.

Parameters: standard set.

SMA parameter settings

Example strategy - SMA 9/21 crossover (NIFTY, 5m):

Condition
EntrySMA(9) crosses above SMA(21)
ExitSMA(9) crosses below SMA(21)

SMA 9/21 crossover strategy

3. WMA (Weighted Moving Average)​

Like SMA, but weights recent prices more heavily (linearly), making it more responsive to new information.

Parameters: standard set.

WMA parameter settings

Example strategy - Dual WMA crossover (NIFTY spot, 5m):

Condition
EntryWMA(9) crosses above WMA(21)
ExitWMA(9) crosses below WMA(21)

Dual WMA crossover strategy

4. VWMA (Volume Weighted Moving Average)​

A moving average that weights price by trading volume - price moves on high volume count for more. Often more reliable for trend confirmation than a plain SMA, because volume backed moves are more significant.

Parameters: standard set.

VWMA parameter settings

Example strategy - price crossover:

Condition
EntryClose crosses above VWMA(20) - upward momentum confirmed by volume
ExitClose crosses below VWMA(20)

5. Supertrend​

A trend-following indicator built on ATR (volatility). The line flips sides when the trend changes: below price = uptrend (typically green), above price = downtrend (typically red).

Parameters:

ParameterDefaultDescription
Period10ATR lookback period
Multiplier3Distance of the line from price. Higher = fewer, more reliable signals; lower = more, noisier signals
Candle Type, Timeframe, Offsetβ€”Standard

Supertrend parameter settings

Example strategy - Supertrend flip (NIFTY spot, 5m):

Condition
EntryClose crosses above Supertrend(10, 3)
ExitClose crosses below Supertrend(10, 3)

Supertrend crossover strategy

note

Supertrend shines in trending markets but produces false flips in sideways markets. Pair it with a trend strength filter like ADX for confirmation.

6. ADX (Average Directional Index)​

Measures the strength of a trend, not its direction. Three lines:

  • ADX - trend strength. Above 25 = strong trend; below 20 = weak/ranging market.
  • +DI - strength of upward movement
  • -DI - strength of downward movement

Use ADX to filter out trades in choppy markets, and the DI crossover for direction.

Parameters:

ParameterDefaultDescription
period14Lookback period
adx_componentADXWhich line the condition uses: ADX, PLUS_DI, or MINUS_DI

Example strategy - ADX filtered DI crossover (NIFTY, 5m):

Condition
EntryADX(14) > 25 AND +DI(14) crosses above -DI(14)
Exit+DI(14) crosses below -DI(14)

ADX crossover strategy

7. VWAP (Volume Weighted Average Price)​

The day's average price weighted by volume; resets each trading day. Institutional traders use it as a fair value benchmark: price above VWAP = bullish for the session, below = bearish. Intraday only.

Parameters: Source (the standard formula uses HLC3; other sources selectable). Optional standard deviation bands can be added around the line.

Example strategy - VWAP crossover (intraday):

Condition
EntryClose crosses above VWAP
ExitClose crosses below VWAP

VWAP crossover strategy

warning

VWAP or VWMA doesn't work with Spot chart for indexes as no volume is available in spot charts.

8. DEMA (Double Exponential Moving Average)​

An EMA with most of its lag removed. DEMA subtracts a smoothed copy of the EMA from itself, so it turns faster than an EMA of the same period while staying smooth.

  • Use it where an EMA reacts too late, such as fast crossovers on lower timeframes
  • Faster turns also mean more false signals in sideways markets

Parameters: Candle Type, Source, Period (default 20), Timeframe, Offset - all standard.

How DEMA is calculated
EMA1 = EMA(Source, Period)
EMA2 = EMA(EMA1, Period)
DEMA = 2 Γ— EMA1 βˆ’ EMA2

Example strategy - DEMA 9/21 crossover:

Condition
EntryDEMA(9) crosses above DEMA(21)
ExitDEMA(9) crosses below DEMA(21)

9. TEMA (Triple Exponential Moving Average)​

Takes the DEMA idea one step further, with three layers of EMA smoothing. TEMA hugs price even more closely than DEMA and reacts fastest of the three.

Parameters: Candle Type, Source, Period (default 20), Timeframe, Offset - all standard.

How TEMA is calculated
EMA1 = EMA(Source, Period)
EMA2 = EMA(EMA1, Period)
EMA3 = EMA(EMA2, Period)
TEMA = 3 Γ— EMA1 βˆ’ 3 Γ— EMA2 + EMA3

Example strategy - price crossover:

Condition
EntryClose crosses above TEMA(20)
ExitClose crosses below TEMA(20)

10. HMA (Hull Moving Average)​

A moving average built from weighted averages to be both fast and smooth, which usually trade off against each other. HMA turns close to price turning points without the jagged look of a short EMA.

  • Its slope is the most common signal: HMA turning up = bullish, turning down = bearish
  • Read the slope by comparing HMA with its own previous value (Offset 1)

Parameters: Candle Type, Source, Period (default 20), Timeframe, Offset - all standard.

How HMA is calculated
halfLength = round(Period / 2)
sqrtLength = round(√Period)
raw = 2 Γ— WMA(Source, halfLength) βˆ’ WMA(Source, Period)
HMA = WMA(raw, sqrtLength)

Example strategy - HMA slope turn:

Condition
EntryHMA(20) crosses above HMA(20) with Offset 1 - the HMA turns up
ExitHMA(20) crosses below HMA(20) with Offset 1 - the HMA turns down
Which fast moving average?

From slowest to fastest at the same period: SMA β†’ EMA β†’ DEMA β†’ TEMA. HMA is about as fast as TEMA but smoother. Faster averages catch moves earlier and give more false signals, so test a couple in the Chart Preview before choosing one.

11. Parabolic SAR​

SAR stands for "Stop And Reverse". Parabolic SAR plots a trailing level that sits below price in an uptrend and above price in a downtrend. When price crosses it, the trend flips and the level jumps to the other side.

  • Each time the trend makes a new extreme, the level moves closer to price, faster and faster - hence "parabolic"
  • Popular as a trailing stop and as a trend-flip entry
  • Works best in trending markets; in sideways markets it flips often

Parameters:

ParameterDefaultDescription
Start0.02The starting acceleration factor - how fast the level moves toward price at the start of a trend
Increment0.02How much the acceleration factor increases each time the trend makes a new high (or low)
Maximum0.20The cap on the acceleration factor
Timeframe, Offsetβ€”Standard

Parabolic SAR has no Source parameter, because it always uses each candle's High and Low. Candle Type is fixed to OHLC.

How Parabolic SAR is calculated

AF is the acceleration factor; EP is the extreme point (the highest High in an uptrend, or the lowest Low in a downtrend).

SAR(t) = SAR(tβˆ’1) + AF Γ— (EP βˆ’ SAR(tβˆ’1))
  • Uptrend: when a candle makes a new high, EP updates and AF rises by Increment, up to Maximum. SAR never goes above the Low of the last two candles.
  • Downtrend: when a candle makes a new low, EP updates and AF rises by Increment, up to Maximum. SAR never goes below the High of the last two candles.
  • Reversal: in an uptrend, if the Low touches or crosses SAR, the trend flips to down (and the reverse in a downtrend). On a flip, SAR resets to the previous trend's EP, EP becomes the current extreme, and AF resets to Start.

Example strategy - SAR flip (NIFTY spot, 5m):

Condition
EntryClose crosses above Parabolic SAR(0.02, 0.02, 0.20)
ExitClose crosses below Parabolic SAR(0.02, 0.02, 0.20)
note

A higher Start or Increment makes SAR hug price more tightly, giving earlier exits but more whipsaws. The defaults (0.02 / 0.02 / 0.20) are the standard settings used on most charting platforms.