Indicator Library
39 original TradingView indicators, written by us and free to copy. Open one, copy the source, and paste it into TradingView's Pine Editor.
Trend
Direction and the averages people use to define it.
- indicator
ADX Trend Strength
ADX in its own pane with a threshold line, the directional indicators behind it, and the background shaded for as long as trend strength stays above the threshold.
- indicator
Distance From Moving Average
How far price has stretched from a moving average, expressed as a percentage oscillator with symmetric bands so the reading is comparable across instruments and prices.
- indicator
Donchian Channel
The highest high and the lowest low of the last N bars drawn as a shaded channel with its midline, which is the simplest honest picture of the range price has actually traded in.
- indicator
EMA Pullback Marker
Marks the bars that trade down into a rising exponential moving average and close back above it, and separately the bars that touch it and close below instead.
- indicator
EMA Trend Ribbon
Three exponential moving averages with the gap between the fastest and slowest shaded, so the direction and the strength of a trend read at a glance.
- indicator
Higher Timeframe Trend
A higher timeframe exponential moving average drawn on the current chart with the background tinted by its direction, so an intraday chart is read in the context of the daily one.
- indicator
SMA Golden Cross
The 50 and 200 period simple moving averages with the crossover and the crossunder marked on the chart, which is the plainest definition of a long term trend change.
- indicator
Three MA Stack
Three moving averages whose type is chosen from a dropdown, coloured by whether they are stacked upwards, downwards or neither, with the bar a full stack forms marked.
- indicator
Trend Quality Score
A score from zero to three counting how many trend conditions hold right now, drawn as a stepped line so the states are countable instead of eyeballed across three panes.
Momentum
Speed of a move, and where it is stretched.
- indicator
MACD Histogram
The MACD line, its signal line and the histogram of the gap between them, coloured by side so the widening and narrowing of momentum reads before the crossover arrives.
- indicator
Momentum Divergence Hint
Marks the bars where price takes out its highest high of the lookback while RSI fails to take out its own highest reading, and the mirror case at lows. A hint to go and look, not a signal.
- indicator
Rate of Change
The percentage change in price over a chosen number of bars, drawn as columns around a zero line so the sign and the size of momentum are readable without reference to the price scale.
- indicator
RSI with Shaded Zones
Relative strength index in its own pane with the overbought and oversold bands shaded, and alerts for the moment price leaves either zone rather than the moment it enters.
- indicator
Stochastic Crossover
Smoothed stochastic with the overbought and oversold bands drawn and shaded, marking only the crossovers that happen inside an extreme rather than every crossover in the middle of the range.
Volatility
How far price is travelling, and stops sized from it.
- indicator
ATR Trailing Stop
A stop that trails a multiple of average true range behind price and flips side when it is breached, so the stop distance widens in fast conditions and tightens in quiet ones.
- indicator
Bollinger Bands
A 20 period basis with bands a number of standard deviations either side, the envelope shaded, and the band width as a percentage of the basis carried in the data window so the squeeze and expansion are measurable.
- indicator
Bollinger Squeeze
Shades the chart while both Bollinger bands sit inside an ATR channel drawn from the same basis, which is the state people call a squeeze, and marks the bar the bands push back outside it.
- indicator
Historical Volatility
The standard deviation of log returns over a lookback, annualised and shown as a percentage, plotted against its own longer average so periods of expansion and compression separate clearly.
- indicator
Keltner Channel
An exponential moving average with bands set a multiple of average true range either side, so the channel reacts to the range of recent bars rather than to the dispersion of their closes.
Volume
Participation behind a move.
- indicator
On Balance Volume with Average
The running total that adds a bar's volume on an up close and subtracts it on a down close, drawn against a moving average of itself so the direction of accumulation is read rather than guessed.
- indicator
Relative Volume
Volume as a multiple of its own recent average, which makes participation comparable across instruments and across times of day instead of an unreadable raw number.
- indicator
Up and Down Volume Split
Volume separated into the bars that closed up and the bars that closed down and drawn either side of zero, with a smoothed net line so one-sided participation is visible instead of inferred.
- indicator
Volume Weighted Moving Average
A volume weighted moving average drawn against a simple average of the same length, which exposes the bars where heavy volume pulls the average away from where price alone would put it.
- indicator
VWAP with Standard Deviation Bands
Session anchored VWAP with bands at one and two standard deviations, which turns the day's volume weighted average price into a measure of how far the session has stretched away from it.
Sessions and time
Time of day, sessions and the levels they leave behind.
- indicator
Day Separator
A dotted vertical line at the start of each new trading day with alternate days faintly shaded, which keeps a long intraday chart readable when the chart's own session breaks are turned off.
- indicator
Opening Range
The high and low of the first minutes of a session, held across the rest of the day, which is the reference most intraday traders are using whether or not they draw it on the chart.
- indicator
Session High and Low
The running high and low of the current session as two lines that reset when the next one opens, so the day's extremes sit on the chart without being measured by hand.
- indicator
Session Highlighter
Shades two configurable trading sessions on an intraday chart, so the hours that actually matter for an instrument are visible instead of remembered.
- indicator
Time Left on Bar
A corner table counting down the time until the current bar closes, which takes the guesswork out of waiting for a candle to finish instead of acting halfway through it.
Market structure
Swings, levels and the shape of the auction.
- indicator
Gap Marker
Shades the gap between one bar's close and the next bar's open for as long as it stays untraded, and stops shading the moment price trades back through it, so an open gap stays visible without being redrawn by hand.
- indicator
Inside and Outside Bars
Labels each bar whose range sits inside the previous bar's range, and each bar whose range swallows it, which is the smallest readable statement about whether the last two bars agreed or argued.
- indicator
Classic Floor Trader Pivots
The classic floor pivot with R1, R2, S1 and S2 derived from yesterday's high, low and close, which is the oldest published level set in the business and therefore one a great many people are watching.
- indicator
Prior Day High, Low and Close
Yesterday's high, low, close and midpoint drawn across today, which are among the few levels every participant can see and therefore among the few that reliably attract activity.
- indicator
Swing Points
Confirmed swing highs and lows marked with the pivot lookback made explicit, so the turning points you trade from are the ones the chart can actually prove rather than the ones hindsight picks out.
- indicator
Previous Week High, Low and Close
Last week's high, low and close carried onto a daily or intraday chart, with the week's range shaded, so the wider frame stays on the screen while you work inside a much smaller one.
Risk and sizing
What a trade costs you if it goes wrong.
- indicator
ATR Risk Guide
A small panel showing current ATR, the stop distance a chosen multiple implies, and how many units that buys for a fixed dollar risk, so sizing is read off the chart rather than guessed.
- indicator
Daily Loss Limit
A corner panel measuring how far the session has moved against the side you are on, next to the maximum daily loss you set in price terms, and turning red once that number is passed.
- indicator
Position Heat
For an account size and a risk percentage, the panel shows the cash at stake, the current ATR stop distance, the units that combination buys and the resulting exposure, flagging the risk figure when it climbs past a threshold you set.
- indicator
Risk and Reward Preview
Give it an entry and a stop and it draws the one, two and three R levels with labels, so the reward a trade needs is a line on the chart rather than a number you talked yourself into.
Every script here is ours and is checked by the same linter we hold our own generated code to. None of them is a recommendation to trade, and none has been tested for profitability.
Educational only, not financial advice. The maths is simple arithmetic on the numbers you enter; it knows nothing about your broker, fees, slippage or the market. Questions about the maths? Ask in the forums.