This Pine Script v5 library exports basic element-wise operations on float arrays and draws nothing. Add, subtract, and multiply each return a new array the length of the first input, wrapping the second array by index when it is shorter. A divide function is
This strategy calculates dynamic support and resistance levels using pivot highs and lows alongside a custom smoothed trend filter and a 3-period EMA. It identifies entry opportunities when price breaks out relative to the trend filter and short-term EMA cross
This indicator plots Ichimoku Cloud elements on the price chart, including Tenkan-sen, Kijun-sen, Senkou Span A and B lines with optional Chikou Span. It signals trend changes via Tenkan-sen and Kijun-sen crosses and places arrows at Kijun-sen direction shifts
This indicator serves as a test script for verifying multi-timeframe and multi-symbol data requests using the request.security function. It fetches the one-hour closing price for the BINANCE:BTCUSDT trading pair and compares it alongside the current chart's cl
This indicator trains a single-neuron artificial neural network (perceptron) on each bar to classify price movement and plot an adaptive moving average on the main chart. It evaluates historical sample data to iteratively adjust weights using a step activation
This strategy overlays moving averages on the price chart to generate long and short trade signals compatible with 3Commas bot automation. It sets stop losses relative to recent swing pivots buffered by an ATR multiplier, while exits are handled by a risk-to-r
This overlay strategy combines a machine-learning distance model with a MACD oscillator to open trades on the price chart. It compares recent history using cosine similarity or Euclidean and Lorentzian distance, then filters direction with selectable moving-av
Calculates a 20-period Commodity Channel Index (CCI) and evaluates its percentile rank over the last 100 bars. It plots the CCI oscillator line in a separate pane alongside a zero level reference. The background dynamically changes using color gradients based
This strategy evaluates simple moving averages and the Relative Strength Index to generate trading signals. It calculates a 10-period SMA, a 30-period SMA, and a 14-period RSI. Long positions are entered when the fast SMA crosses above the slow SMA while RSI i
Day Trading Booster plots session highlights for Sydney, Tokyo, Frankfurt, London and New York sessions on the price chart. It shows opening ranges for selected sessions and day open reference levels derived from ATR. A tabular view displays global forex marke
The VWAP Cumulative indicator calculates and plots a continuous Volume Weighted Average Price directly on the main price chart. Instead of resetting at session or daily boundaries, it computes a running cumulative VWAP using typical price and volume across all
This indicator plots the percentage difference between a fast exponential moving average and a slow one, scaled by the close, in a separate pane. It treats that gap as a standardized measure of trend strength and draws a zero line. Users set both EMA lengths a
This strategy calculates support and resistance pivot levels based on short-term open price extremes and combines them with multi-timeframe open prices and MACD indicators. It executes trades with user-defined percentage-based stop-loss and take-profit targets
This indicator detects and labels multiple classic candlestick formations directly on the price chart. It calculates candle body and shadow dimensions relative to exponential moving averages and confirms prevailing trends with simple moving averages. When matc
This indicator calculates an adaptive Schaff Trend Cycle in a separate pane. It builds a recursive MACD whose coefficient blends fast and slow smoothing factors using the squared correlation between close and bar index. That MACD is range-normalized twice over
This indicator plots market structure elements directly on the price chart, identifying internal and swing break of structure and change of character. It calculates bullish and bearish order blocks, equal highs and lows, and swing points while highlighting tre
This indicator plots an RSI and a PMARP line in a separate pane. It calculates RSI from a chosen source and length, then overlays an SMA or EMA signal. Horizontal bull and bear control and critical levels scale the oscillator. Optional arrows mark regular and
This indicator plots John Ehlers's predictive moving average on the price chart. It builds a weighted average of the selected source, applies a second weighted average, and projects a prediction with a slower trigger. It draws the higher of those two series an
This indicator calculates and plots standard pivot points along with multiple support (S1-S5) and resistance (R1-R5) levels directly on the price chart. Users can select from several calculation methods, including Traditional, Fibonacci, Woodie, Classic, DeMar
Crossing EMAs C is an overlay strategy designed to demonstrate moving average crossover signals integrated with Zignaly alert triggers. Despite its name, the script calculates 14-period and 28-period simple moving averages. It enters a long position when the f
This indicator calculates a Fear & Greed Index sentiment oscillator and formats its values according to the PineCoders external signal protocol for strategy integration. It outputs protocol-compliant numerical values (+1/-1 for filters, +2/-2 for entries, +3/-
EMA Ribbon (9/21/55) is a TradingView strategy that calculates three exponential moving averages with periods 9, 21 and 55. It plots the EMAs on the price chart and colors the background ribbon according to bullish or bearish alignment. The strategy enters lon
This strategy identifies trend retracements and breakout entries using an adjustable moving average ribbon alongside higher-timeframe anchored moving averages, fractal pivots, and support and resistance level extensions. Bar colors can be customized using a 3-
This strategy identifies Smart Money Concepts (SMC) liquidity sweeps around recent pivot highs and lows. It monitors recent candles for false breakouts where price wicks beyond a swing level but closes back within the range. When confirmed by a strong directio
This indicator tracks and displays Bitcoin price premiums across different exchanges in a dashboard table on the price chart. It calculates the spread and percentage difference between CME Bitcoin futures and Binance BTCUSDT, as well as the Korean kimchi premi
This indicator plots standard Bollinger Bands alongside scaled Average True Range (ATR) bands directly on the price chart. It is designed to assist traders in identifying price consolidation zones, potential breakout levels, dynamic stops, and take-profit targ
This strategy overlays a 90-period simple moving average from the one-hour and four-hour charts with a daily session VWAP on the price chart. It buys when VWAP is at or above the four-hour average and crosses above the one-hour average, and sells short in the
This overlay indicator draws up to four Forex trading sessions on the price chart, defaulting to London, New York, Tokyo, and Sydney. Each session uses a chosen timezone and clock range and can show a colored session range, an optional extension, Fibonacci lev
Standard Moving Average Convergence Divergence (MACD) indicator implementation. It calculates the difference between a fast exponential moving average and a slow exponential moving average to form the MACD line. It then smooths the MACD line with a third movin
This indicator calculates 8-period and 21-period Exponential Moving Averages to identify trend direction and momentum crossovers on the price chart. When the 8-period EMA crosses above the 21-period EMA, a buy signal triangle is plotted below the bar. A cross
This strategy plots a fast and a slow simple moving average on the price chart. It enters long when the fast average crosses above the slow average and closes any open short at the same time. It closes the long and enters short when the fast average crosses be
This strategy calculates a short-term Relative Strength Index (RSI) oscillator to identify mean-reverting conditions. It triggers a long entry when the RSI drops below a customizable oversold threshold and a short entry when it rises above an overbought level.
This indicator overlays a visual order-flow dashboard on the price chart using left-aligned labels. It shows a buyer-versus-seller percentage gauge, a signed delta reading, a cumulative volume delta value, and an eight-direction momentum compass colored by bul
This indicator identifies liquidity sweeps and stop hunts on price charts by detecting candles that breach recent high or low levels before closing back inside the previous range. Users can filter signals using lookback windows, minimum wick size relative to c
The Linear Regression Channel indicator calculates the slope, average and intercept of a linear regression line over the specified length using the chosen source. It plots the base regression line and upper and lower channels on the price chart. The channels a
This indicator plots custom upper and lower bands on the price chart based on a weighted moving average using hlc3 source, length of 50, and a standard deviation multiplier of 2. It also includes Arnaud Legoux Moving Average with adjustable length, offset, and
Calculates Kaufman's Adaptive Moving Average (KAMA) based on Kaufman's Efficiency Ratio to adjust smoothing dynamically according to market volatility and efficiency. Plotted directly on the price chart, it adapts faster during trending markets and slows down
The Inside Candle Detector identifies inside bar candlestick patterns where the current bar's high is lower than the previous bar's high and its low is higher than the previous bar's low. It categorizes inside candles as bullish or bearish based on the bar's o
Snagprofit WMA is a multi-timeframe trend indicator that calculates a 125-period Weighted Moving Average across the 1-minute, 5-minute, 15-minute, and 1-hour timeframes alongside a local 50-period Simple Moving Average. It identifies momentum signals when pric
Calculates Darvas Box upper and lower channel boundaries based on configurable period length to identify trend breakouts. It plots top and bottom box levels directly on the price chart and plots buy (AL) and sell (SAT) signal labels when price crosses outside
This indicator overlays five Exponential Moving Averages (3, 13, 34, 55, 144) on the main price chart and looks for confluence with a custom MACD oscillator. Entry signals trigger when an EMA 3 and 13 cross aligned with the full EMA hierarchy occurs within two
This indicator computes the Average Daily Range over the last specified number of days and plots the full ADR level along with one-third of the ADR and an anchor line on the price chart. It displays historical ADR levels from prior sessions and a table showing
This indicator collects test data for debugging Pine Script scripts. It gathers input values, output values, conditions, function calls, and edge cases into arrays. Users enable test generation and select types of tests to produce, including unit tests, integr
BTMM Foundation is a Pine Script library providing core utility functions for Beat The Market Maker methodology scripts. It includes exportable functions for session detection across Asian, London, and New York sessions, tracking a three-day market cycle, time
This indicator marks bullish and bearish harami candlestick patterns on the price chart. The prior candle must have a long body, and the current candle must be a doji or a weak, small candle. A bullish signal also requires a lookback downtrend, while a bearish
The Directional Flow Oscillator combines momentum, cumulative volume delta, price range position, trend ratio, and relative volatility into a single bounded composite indicator. It fetches lower-timeframe volume data to calculate cumulative volume delta and no
This indicator measures and compares the relative strength of major forex currencies including EUR, USD, JPY, GBP, CHF, AUD, CAD, and NZD in a separate pane. It plots individual currency strength as lines or histograms alongside a currency pair strength table.
This indicator detects trend-following pullback entries using the Rank Correlation Index (RCI) and a triple Exponential Moving Average (EMA) ribbon. It identifies bullish setups when price maintains an upward EMA alignment while RCI reverses from oversold leve
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.