OPEN-SOURCE SCRIPT

Spike Detector (Ticks/Points)

524
Spike Detector (Ticks / Points)
What This Indicator Does

Spike Detector (Ticks / Points) helps you easily spot large, high-volatility candles on your chart. These “spike” candles often happen during strong momentum, breakouts, stop runs, or sudden reversals.

Instead of guessing whether a candle is “big enough,” this indicator automatically measures each candle’s size and highlights it when it exceeds a threshold you choose.

How It Works (Simple Explanation)

The indicator measures the high-to-low range of every candle

It converts that range into ticks using the instrument’s minimum tick size

If the candle size is equal to or greater than your selected threshold, it is marked as a spike

Spike candles are:

Colored green for bullish candles

Colored red for bearish candles

A label is placed on the chart showing the candle size in ticks or points

This logic is non-repainting and works on all timeframes.

Inputs Explained

Spike Size Threshold
The minimum candle size required to be considered a spike (measured in ticks)

Display Unit (Ticks / Points)
Choose whether the label shows the candle size in:

Ticks (recommended for futures)

Points (useful for stocks and indices)

Label Offset
Adjusts how far above or below the candle the label appears

How to Use This Indicator

This indicator is meant to be used as a visual tool, not a standalone trading system.

Common ways traders use it:

Identify momentum ignition candles

Spot stop runs or liquidity grabs

Confirm breakouts with strong candle expansion

Avoid entering trades during abnormally volatile bars

Study volatility behavior during specific sessions

Many traders combine this with:

Market structure

Support & resistance

Trend direction

Volume or session context

Tips for Best Results

Start with a moderate threshold and adjust based on the market you trade

Higher timeframes usually need larger thresholds

Futures traders may prefer tick mode, while stock traders may prefer points

Use spike candles as context, not signals by themselves

Notes

Works on all symbols that support tick size data

Does not repaint

Designed to be lightweight and easy to read

Disclaimer

This indicator is for educational and informational purposes only. It does not provide trade signals or financial advice. Always manage risk appropriately.

Declinazione di responsabilità

Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.