This strategy template plots indicators directly on the price chart, including exponential moving averages, relative strength index, and average directional movement. It incorporates position management options such as account leverage, percentage-based positi
Commodity Channel Index plots the standard CCI in a separate pane. It measures how far the typical price (HLC3 by default) sits from its simple moving average, scaled by the mean deviation. Dashed lines at plus and minus 100 mark the usual upper and lower band
Combines a Supertrend line with a Stochastic RSI filter on the price chart. Supertrend uses an ATR period and multiplier on a chosen source and marks trend flips with buy and sell signals and highlighting. Separate long and short entry conditions require the S
An overlay that combines three studies into long and short signals: a Hull moving average in HMA, THMA or EHMA form shown as a trend-colored band, optionally from a higher timeframe, plus two QQE RSI-based momentum components and an oscillator with a short and
The script plots the Relative Strength Index and Stochastic oscillator indicators in separate panes. It calculates the RSI with customizable length, source, and MA type including Bollinger Bands, and the Stochastic oscillator with %K and %D periods. It draws o
A separate-pane indicator that plots a MACD with a simple-average signal line, colored by whether it is rising or falling around zero. On common timeframes it also plots a second MACD scaled up by a fixed multiplier toward a higher timeframe, drawn as circles.
Stoch Strat is an overlay trading strategy that combines Stochastic Oscillator crossovers, MACD histogram momentum, and 50/100 Exponential Moving Averages for trend filtering. It generates long signals when Stochastic crosses up in oversold conditions while pr
A standard Relative Strength Index drawn in a separate pane, calculated with Wilder smoothing over an adjustable length and source. It includes horizontal lines at 70, 30 and an added middle line at 50, with the area between 70 and 30 shaded. It is a plain osc
This indicator calculates and displays the Directional Movement Index (DMI) and Average Directional Index (ADX) in a separate pane below the price chart. It measures directional price movements by computing the positive directional indicator (+DI), negative di
This strategy calculates the MACD line and plots it as a colored histogram in a separate pane. Instead of traditional crossovers, it tracks consecutive rising or falling values on the MACD line. It enters long positions after a configurable number of consecuti
Kal's MTF OBV HAAR is an indicator that plots OBV EMAs with lengths 9 and 4 on a separate pane to highlight volume trends. It calculates CCI with length 10 and CMF with length 10, using crossovers and crossunders of the CCI line at zero for up and down signals
Mean Reversion Study is an indicator that identifies trade setups combining exponential moving averages, RSI extremes, and engulfing candlestick patterns. It highlights bullish setups when a bullish engulfing candle forms below the EMA while RSI is oversold, a
This strategy calculates a chart-timeframe MACD oscillator alongside a higher-timeframe Simple Moving Average (SMA) trend filter using security requests. It triggers long signals when the MACD line crosses above its signal line while the higher-timeframe price
Calculates market regime conditions by combining RSI, MACD, and ADX/DMI indicators. It evaluates whether the market is in a strong bullish, strong bearish, neutral, or non-trending regime. The script plots a colored line overlaying the close price to reflect t
This strategy combines Bollinger Bands with a short RSI to fade moves that leave the bands and then return. A long requires the prior bar below the lower band and oversold, then a close back inside the band while RSI is between 30 and 50. Shorts mirror that at
The Absolute Price Oscillator (APO) script calculates the difference between a fast exponential moving average (EMA) and a slow EMA for a specified source series. It uses explicit EMA calculations featuring warmup compensation to handle early bar initializatio
This indicator calculates the RSI with a 20-period length and plots it on the chart. It marks upward crossovers above 50 with green arrows and downward crossovers below 50 with red arrows. A horizontal line appears at the 50 level. The script sends alerts when
This strategy combines exponential moving averages (EMA 9, 21, 50), RSI, MACD, and Supertrend indicators to enter long positions. It triggers trades using six dynamic setups based on momentum breakouts, EMA crossovers, and pullbacks. Position sizing is compute
This strategy plots a MACD in a separate pane and enters on zero-line or signal-line crosses, with an optional early momentum trigger. Volume and a trend moving average can filter signals, and shorts can be disabled so only long trades are taken. It sizes posi
This strategy enters long or short on the price chart when price is on the correct side of a 200-period EMA, MACD agrees, RSI is not at the opposing extreme, ADX exceeds a threshold, volume beats a 20-bar average, and close breaks the recent high or low. A tim
This strategy combines multi-timeframe RSI analysis with exponential moving average filters to execute trades on price bounces. It evaluates daily and weekly RSI levels alongside pip-distance thresholds between fast, slow, and long-term EMAs. Position entries
Delta Histogram is a separate-pane indicator that plots per-bar volume delta as a histogram alongside a 20-period simple moving average. It visualizes net buying and selling pressure for each bar, helping traders track changes in order flow aggression relative
This indicator calculates the acceleration of price action by computing the slope of the linear regression slope over a rolling window. It utilizes two sequential rolling linear regression stages implemented with circular buffers to ensure deterministic comput
This indicator tracks and visualizes cryptocurrency net positioning across multiple derivative exchanges, including Binance, BitMEX, and Kraken. It calculates aggregated net longs, net shorts, net delta, and ratio metrics, or an optional Position RSI, renderin
This indicator calculates and plots two Relative Strength Index (RSI) lines in an oscillator pane alongside standard reference bands at 30, 50, and 70. By default, it plots a short-period RSI and a secondary RSI. On the 3-minute and 15-minute chart intervals,
This strategy plots on the price chart and trades fair value gaps filtered by RSI and two EMAs. It opens a long when a bullish gap, a rising candle, RSI below the oversold level, and price under both EMAs align, and a short on the opposite conditions. Each tra
This strategy trades on the price chart using multiple indicators. It enters long positions when price dips meet conditions on Bollinger Bands 40 and 20, RSI, MFI, volume and other thresholds. It exits at custom ROI profit levels based on RSI or after timeout
This indicator estimates Bitcoin energy value from joules of mining energy input, supply growth, and a fiat factor, then plots that value as an oscillator in a separate pane. A simple moving average of the energy value is drawn using a user-set length in days.
The Relative Volume Strength Index (MZ RVSI) is a separate-pane oscillator designed to measure volume momentum and trend strength. It allows users to choose between various volume oscillator types, including On Balance Volume, Klinger Volume Oscillator, and Vo
This indicator calculates directional probabilities based on price position relative to Bollinger Bands and a simple moving average over a rolling lookback window. It computes breakup, breakdown, and combined prime probability percentages, plotting up to three
ADX+ is an enhanced Average Directional Index (ADX) indicator that measures trend strength in a separate pane. It calculates directional movement and true range to produce the standard ADX line, with optional smoothing via a moving average (EMA or SMA). The li
The Stocks - Inside Day Strategy identifies inside day candlestick patterns on the main price chart. It enters a long position when a bar's high is below the previous high and its low is above the previous low. The strategy exits positions when a short-period
This overlay indicator marks buy and sell signals on the price chart from RSI, stochastic, and optional Awesome Oscillator filters. It compares recent price and RSI pivots for regular divergences and, when enabled, hidden divergences, then combines those check
This indicator implements John F. Ehlers' Adaptive Relative Strength Index in a separate chart pane. It filters price data using a high-pass filter and a SuperSmoother filter, then applies Pearson correlation across multiple lags to extract the dominant cycle
RSI Technique - V identifies rapid reversal pivot points based on the Relative Strength Index. It monitors an RSI oscillator, configurable via the lookback setting, looking for sharp V-shaped spikes around extreme zones. A bullish signal appears when the indic
This strategy fades Bollinger Band extremes using the close. It enters short when price crosses above the upper band and the 14-period RSI is above 70, and enters long when price crosses below the lower band and RSI is below 30. It closes half of an open short
This indicator scans a pasted list of symbols, up to the first forty, and shows long and short momentum setups in a configurable table in a separate pane. It compares RSI with an SMA of RSI using Break Flip or Break Continuous scanning. Optional filters cover
This strategy overlays the price chart to trade DAX futures during European market hours. It calculates exponential and simple moving averages, RSI, MACD, Bollinger Bands, ATR, and realized volatility to simulate VIX levels. Trades execute when session time fi
The Fullscope Index is a momentum oscillator that computes values from RMI, RSI or CCI as its core base strategy. It offers linear or logarithmic scalar gradation along with adjustable ratio and maximum scalar settings to control the output scale. The indicato
This strategy plots on the price chart and looks for three-candle fair value gaps and inverse gaps on Bitcoin. It enters long when a wide enough bullish gap appears in an uptrend with RSI above 30 and volume above its average, and short on the opposite bearish
Market Trend is an overlay indicator that identifies market direction and key price levels. It calculates a Relative Strength Index with Bollinger Bands to construct a 20-step color gradient reflecting momentum shifts. The script incorporates exponential movin
This indicator plots a smoothed Z-score of cumulative volume delta in a separate pane, showing whether buying or selling pressure is dominant and when the reading enters extreme zones. It marks spot accumulation, climax or exhaustion, and pivot-based price-vol
Bte Acc is a chart indicator form of the PineCoders Backtesting and Trading Engine. It seeks an entry trigger from a main or alternate entry method, then checks trade direction, filters, date range, ATR readiness, and remaining capital before filling on the ne
Calculates and plots a multi-component indicator in a separate pane, integrating Relative Strength Index (RSI), Average Directional Index (ADX), Directional Movement Index (DMI), and price Bollinger Bands. It detects institutional movement conditions by testin
The Adaptive Cycle Detector estimates the dominant market cycle from WaveTrend oscillator zero-crossing frequency and applies smoothing to recommend adaptive indicator lengths. Fast markets with frequent crossings receive shorter lengths while slow swing marke
This strategy implements Bill Williams' Awesome Oscillator (AO) calculated as the difference between two simple moving averages of the median price. It generates long and short entries using three classic signal triggers: zero-line crossovers, twin peaks diver
This indicator is an oscillator suite inspired by Market Cipher B and VuManChu Cipher B that plots in a separate pane. It combines a WaveTrend oscillator, a Money Flow Index (MFI) area, and an RSI indicator with automatic divergence detection. Visual signals h
Calculates the standard Stochastic Oscillator (%K and %D) based on price range over a user-defined period. The indicator plots the smoothed %K line and %D signal line in a separate pane along with upper and lower boundary levels set at 80 and 20. Users can adj
Third-party code. ForexR lists open-source Pine scripts from GitHub; it did not write, test or endorse them, and their summaries are generated automatically from each script's code and README. Indicators describe the past, and a strategy's backtest can look better than live trading. Check a script on a demo account before you rely on it. CFDs and leveraged forex are complex instruments with a high risk of losing money rapidly.
Learn to Use Pine Scripts
Free, plain-English guides: add a script to TradingView, read what it does, test it and avoid the common traps.