This indicator plots 20-period and 200-period Simple Moving Averages on the main price chart while requesting multi-timeframe state data from a higher timeframe. It measures the percentage distance and slope between the two moving averages to detect narrow, pa
The Grid Bot Simulator strategy models automated grid trading directly on the price chart. It divides a user-specified price channel between upper and lower bounds into equal grid intervals. Depending on the chosen market direction filter, the strategy execute
The SGMA indicator calculates a smoothed value using the Savitzky-Golay filter with polynomial fitting. It plots the result as an overlay on the price chart. The main settings are the lookback period (window size) and polynomial degree. The filter applies weig
This Pine Script strategy overlays two exponential moving averages on the price chart. It generates buy signals when the fast EMA crosses above the slow EMA and the tick counter is divisible by the step value. It generates sell signals on the opposite cross un
This indicator implements a dynamic version of the Ichimoku Cloud system on the price chart. Pivot detection sets a variable length for the Kijun-sen line based on recent highs and lows, while Tenkan-sen uses a fixed input length. Senkou Span A and B form the
TN Sentiment Macro Sovereign is a trend-following strategy that combines technical moving average crossovers with external macro sentiment data. It calculates 12-period and 26-period Exponential Moving Averages alongside a smoothed sentiment metric fetched via
A Pine v4 strategy that plots a 41-period exponential moving average of the close in orange on the price chart. It goes long when a green candle opens above the average and short when a red candle opens below it, closing each position when the opposite signal
Moving Average Channel plots separate simple moving averages for upper and lower bands on the price chart. It fills the space between bands with semi-transparent color and colors bars green above the upper band, red below the lower band, or gray in between. Us
This strategy calculates two variations of the Hull Moving Average, optionally smoothed with a Kalman filter algorithm. It plots both lines directly on the price chart and fills the gap between them to visualize trend direction. Signals are triggered either by
This overlay strategy plots a short Bollinger Band and enters long when the close crosses above the lower band while a 14-period SMA is above a 42-period SMA. It enters short when the close crosses below that lower band while the faster SMA is below the slower
This overlay indicator shows how a value computed inside a function can be read outside it. A one-element float array stores the current average of high, low, close, and the previous average, falling back to close when that average is missing. The function the
This strategy plots a trend ribbon and colored background on the price chart using moving averages calculated across price highs and lows. It generates trade signals to automate orders through Zignaly webhooks or email alerts. Users can configure the moving av
Predictive Moving Average Convergence Divergence - Ryder calculates a classic MACD oscillator with customizable fast, slow, and signal lengths. In addition to plotting the standard MACD line, signal line, and histogram in a separate pane, it calculates forward
This indicator combines a standard relative strength index (RSI) with a Heikin Ashi moving average trend visualization in a separate pane. It calculates the RSI along with a customizable moving average overlay supporting SMA, EMA, SMMA, WMA, and VWMA types. Ad
This script calculates and plots a Simple Moving Average on the price chart. It uses a custom function with circular buffer and running sum for efficient computation of the SMA value from the chosen source, defaulting to close prices. The primary setting allow
This strategy uses lower-timeframe data to probe numeric array reductions in Pine Script. On a 15-minute chart it fetches 15 one-minute closes using request.security_lower_tf and sums them to create a synthetic intra-bar momentum. It plots EMAs on the price ch
This indicator plots an exponential moving average of the close price in a separate pane. The average length is not a user setting. On each bar it equals the bar index modulo ten, plus one, so the length cycles through the integers from one to ten. Because the
This indicator plots a dynamic base curve and its forward-shifted version on the price chart. The base curve is calculated as a moving average of close prices, or the highest high, or the lowest low over a shift length determined by the time intervals t1 and t
A trend indicator drawn on the price chart that plots EMA 9, 21, 50 and SMA 200 with shaded clouds between them. Buy and sell conditions are filtered by RSI thresholds, a minimum and rising ADX, relative volume, and a smart range filter that skips small or cho
A Pine v4 strategy that plots a 36-period exponential moving average of the close in orange on the price chart. It goes long when a green candle opens above the average and short when a red candle opens below it, closing each position when the opposite signal
This overlay indicator plots a simple moving average of close as a center line and two pairs of bands around it. Width equals the standard deviation of close times the base-ten log of the ratio of the powered signal to the powered deviation. A second pair keep
This indicator overlays two Hull Moving Average variations smoothed with an optional Kalman filter directly on the price chart. It fills the space between the two curves with dynamic trend colors and generates buy and sell signal labels when the curves cross.
This strategy builds upon the Big Snapper system by combining trend-following moving averages, Chaikin Volatility, and volume filtering to generate trade signals directly on the main chart. Long and short entries trigger when Snapper signals align with medium
This educational example script demonstrates how to debug custom Pine Script functions by returning intermediate internal variables alongside main outputs using tuple destructuring. It defines a custom function that calculates an instant average price from the
This strategy uses Noro TrendRibbon direction changes to decide long or short bias. It builds a corridor from recent high and low prices, opening a long below that corridor while longing and a short above it while shorting, with the entry tied to a percentage
SINEMA is a sine-weighted moving average indicator that plots on the price chart. It applies sine-wave weighted smoothing to the input source with a specified period. The period setting determines the lookback window size for the weighting function. SINEMA dra
A trend indicator drawn on the price chart that plots EMA 9, 21, 50 and SMA 200 with optional clouds. Buy and sell signals are filtered by RSI levels, minimum ADX, relative volume and a smart range filter that avoids small or ranging markets using ATR-scaled E
A Pine v4 strategy that plots a 22-period exponential moving average of the close in orange on the price chart. It goes long when a green candle opens above the average and short when a red candle opens below it, closing each position when the opposite signal
This indicator plots two Hull moving averages on the price chart, one of the selected price and one of close, and optionally smooths both with a Kahlman filter. It fills the space between them and marks buy and sell labels when they cross, provided scaled volu
Calculates John Ehlers' Detrended Synthetic Price by taking the difference between a quarter-cycle and a half-cycle exponential moving average of the input source. It includes initial warm-up coefficient adjustments to stabilize early values and plots the resu
Debugging from Inside Functions is an educational Pine Script demonstration script that illustrates how stateful calculations and custom functions operate. It defines a function that calculates an average combining the current bar high, low, close, and a persi
This strategy plots a Noro trend ribbon on the price chart and uses ribbon side changes to choose long or short bias. It builds a corridor from recent high and low prices. A long opens when price is below that corridor during a long bias, and a short opens whe
SuperTrend Toolkit plots ATR-based SuperTrend bands and direction on the price chart. It calculates upper and lower bands using a configurable source, length, and factor multiplier. Contrarian signals generate buy and sell labels with alerts when the trend rev
A test strategy from a reference corpus that checks how intrabar fills behave with the bar magnifier on. It goes long when a 9-period EMA crosses above a 21-period EMA, places a protective stop halfway between the bar open and high, and closes the long when th
Fibo Boxes projects price and time step zones directly on the chart starting from a designated target start time. It steps through historical data using an initial bar count and step multiplier, establishing high and low bounding boxes across calculated step r
A Pine v4 strategy that plots a 36-period exponential moving average of the close in orange on the price chart. It goes long when a green candle opens above the average and short when a red candle opens below it, closing each position when the opposite signal
This indicator combines Hull Moving Average variations with optional Kalman filter smoothing, difference-based activity filtering, and pivot trendlines on the price chart. It calculates standard and three-pole HMAs, smooths them with a Kalman algorithm, and pl
This indicator plots a least-squares moving average on the price chart. It fits a linear regression to the selected source over a chosen lookback and draws that value as a single line. The length setting changes how many bars enter the regression, the offset s
Ruckard Noro TrendRibbon A006 is a trend-following strategy based on Noro's trend ribbon concept using moving averages. It features customizable moving average types, lengths, and price sources to generate entry and exit signals, displayed directly on the pric
This indicator overlays moving average clouds, swing pivots, and trade signals directly on the price chart. It combines a fast and slow moving average cloud with a long-term trend filter moving average. Trade signals are triggered by moving average crossovers
This indicator plots the Tillson T3 moving average on the price chart. It calculates the line from six cascaded exponential moving averages whose coefficients depend on a volume factor. Users choose the source series, the smoothing period, and the volume facto
This indicator projects cycle paths and Fibonacci-scaled moving averages directly on the price chart based on two user-selected reference points in time and price. It computes a base moving average period from the elapsed bars between anchors and derives a sec
A strategy on the price chart that scores each setup from 0 to 4 using volume against its average, higher-timeframe EMA trend, bar movement against an ATR noise level and fast versus slow EMA alignment. Long entries are linked to a fast EMA crossing above the
This script demonstrates a custom Pine Script implementation of a fourth-order Infinite Impulse Response filter function based on AmiBroker AFL. It uses this mathematical framework to construct multiple smoothing calculations, including an IIR-calculated Expon
This overlay strategy enters a long position when the relative strength index rises by more than five points, stays below 70, and a 9-period exponential moving average crosses above a 50-period average, provided the bar is on or after 1 January 2020. It closes
The MA Cross indicator calculates and plots two Simple Moving Averages (SMA) directly on the main price chart. It tracks a short-term moving average and a long-term moving average to help identify trend directions and potential crossover points. When the short
Ruckard Noro TrendRibbon E003 is a trend-following strategy that combines Noro TrendRibbon directional bias with a high and low moving average price corridor. It enters long positions when the trend ribbon is bullish and price drops below the lower corridor th
This strategy plots dual moving average clouds and a long-term trend filter directly on the price chart alongside Heikin Ashi data. It triggers long and short entry signals using moving average alignments and pivot trendline levels, with optional filtering via
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.