Trading indicators with Pine Script v6 code
What each indicator measures, the formula in plain words, how traders read it and where it misleads, with a complete script you can paste into TradingView.
Trend
Is price trending, which way, and how strongly? Moving averages, channels and trend-following lines.
EMA crossover
How the EMA is calculated, why fast/slow EMA crosses are popular, which lengths traders use, and a free EMA crossover script with a trend filter.
Supertrend
How Supertrend builds an ATR trailing line that flips with the trend, how traders use it for direction and stops, settings to try, and a free script.
Ichimoku Cloud
Tenkan-sen, Kijun-sen, the Senkou spans and the Chikou span in plain words, how traders read the cloud, default settings, and a free Ichimoku script.
Donchian channel
How the Donchian channel tracks the highest high and lowest low, how breakout traders use it for entries and exits, common lengths, and a free Donchian script.
Average Directional Index (ADX)
How ADX and the +DI/-DI lines measure trend strength and direction, how traders use a 20-25 threshold as a filter, settings, and a free ADX script.
Parabolic SAR
How the Parabolic SAR trails price with an accelerating stop, how traders read its flips, which acceleration settings to use, and a free Pine Script.
Aroon indicator
How Aroon Up and Aroon Down time the latest high and low, how traders read crosses and 70/30 readings to spot trends, settings, and a free Aroon script.
Hull Moving Average (HMA)
How the Hull Moving Average cuts lag with weighted averages and square-root smoothing, how traders read its slope, settings, and a free HMA script.
Heikin Ashi trend
How Heikin Ashi candles average price to smooth trends, how traders read candle colour and wicks, the backtesting trap, and a free Heikin Ashi trend script.
Order blocks
An objective order block definition tied to breaks of structure, how traders read blocks and mitigation, where definitions differ, and a free script.
Market structure: BOS and CHoCH
How swing highs and lows define market structure, what break of structure (BOS) and change of character (CHoCH) mean as rules, and a free script.
Momentum
How fast price is moving relative to its recent past. Oscillators with fixed ranges and signal lines.
Relative Strength Index (RSI)
How the Relative Strength Index works, how traders read overbought, oversold and divergence, which settings to use, and a free RSI script for TradingView.
Moving Average Convergence Divergence (MACD)
The MACD line, signal line and histogram in plain words, how traders read crosses and divergence, sensible settings, and a free MACD script for TradingView.
Stochastic oscillator
How the stochastic oscillator compares the close with the recent range, how traders read %K/%D crosses and 80/20 zones, settings, and a free script.
Williams %R
How Williams %R places the close within the recent high-low range, how traders read the -20 and -80 levels, settings, and a free %R script for TradingView.
Commodity Channel Index (CCI)
How the Commodity Channel Index measures distance from an average in mean-deviation units, how traders read ±100, settings, and a free CCI script.
Rate of Change (ROC)
How the Rate of Change measures the percentage move over N bars, how traders read zero-line crosses and extremes, settings, and a free ROC script.
Awesome Oscillator (AO)
How Bill Williams' Awesome Oscillator compares 5- and 34-bar averages of the midpoint, how traders read zero crosses and saucers, and a free AO script.
Volatility
How far price typically travels. The basis for stop distances, position size and band breakouts.
Bollinger Bands
How Bollinger Bands are built, how traders read band touches, %B and squeezes, common settings, and a free Bollinger Bands script for TradingView.
Average True Range (ATR)
What the Average True Range measures, how traders use ATR for stops and position sizing, common settings, and a free ATR stop-lines script for TradingView.
Keltner Channels
How Keltner Channels wrap an EMA in ATR-based bands, how traders read breakouts and pullbacks, how they differ from Bollinger Bands, and a free script.
Pivot points
How daily, weekly and monthly pivot points are built from the previous high, low and close, the four common formulas, and a free pivot points script.
Fair value gap (FVG)
What a fair value gap is in the three-candle pattern, how traders read gaps and fills, the settings that change the result, and a free FVG script.
Opening range breakout (ORB)
How the opening range breakout uses the first minutes of the session, how traders set ranges, targets and stops, the pitfalls, and a free ORB script.
Squeeze momentum (Bollinger inside Keltner)
How the squeeze flags low volatility when Bollinger Bands move inside Keltner Channels, how traders read the release and momentum, and a free script.
Chandelier Exit
How the Chandelier Exit hangs an ATR-based stop from the highest high, how traders use it to trail trends, settings, and a free Chandelier Exit script.
Session highs and lows (Asia, London, New York)
How traders use the Asia, London and New York session highs and lows as levels, how session times and time zones work, and a free session range script.
Volume
Where the traded volume sits and whether it confirms the move: volume-weighted prices and money-flow oscillators.
Volume-Weighted Average Price (VWAP)
What VWAP measures, how intraday traders use it and its deviation bands, when it resets, common pitfalls, and a free anchored VWAP script for TradingView.
On-Balance Volume (OBV)
How On-Balance Volume adds and subtracts volume by close direction, how traders read OBV trends, breakouts and divergence, and a free OBV script.
Money Flow Index (MFI)
How the Money Flow Index weights an RSI-style ratio by volume, how traders read 80/20 and divergence, settings, and a free MFI script for TradingView.
Anchored VWAP
How anchored VWAP measures the average price paid since an event you choose, where traders anchor it, how to read it, and a free anchored VWAP script.
Every script is an educational example in Pine Script v6. Test it on your own markets before relying on it; indicators describe the past and don't predict the future.
Need an indicator that isn't here?
Describe it in plain English and Edgoro writes the Pine Script v6 code, ready to paste into TradingView.
Build your indicator