A Pine Script v5 library of helper functions for strategy scripts. It converts a percentage of the average entry price into ticks, price levels or currency amounts, which helps when placing percentage-based stop loss and limit exits. Inputs set a percent stop
This indicator plots a normalized candle dynamic visualization inside a custom 500x500 Gann square grid within a separate pane. It normalizes each bar's open and close prices relative to its high-low range, storing the resulting coordinate pairs in fixed-size
A strategy based on Bollinger Bands that enters long positions when price crosses above the lower band and short positions when price crosses below the upper band. Take-profit, stop-loss, and scale-in price levels are dynamically calculated from the position a
The Mass Index is a volatility indicator that measures price range fluctuations. It calculates the ratio of the 9-period exponential moving average of the high-low span to the 9-period exponential moving average of that span, then sums the result over the inpu
A trend-following strategy that combines the Noro TrendRibbon direction filter with high and low moving average corridors. It determines the dominant market direction from the trend ribbon and opens positions when price moves outside the corridor, taking long
This indicator draws high and low levels from a chosen one-hour or four-hour candle that starts at a selected New York hour. It stores those prices once each New York day, plots them as lines on the price chart, and extends the lines for a user-set number of s
Hercules Rewrite is a signal and visual trade management indicator that overlays entry setups directly on the price chart. It detects candle setups based on minimum tick movement and engulfing patterns, filtering entries through parameters like moving averages
This indicator plots harmonic ratio levels from three user-selected points on the price chart. It reads the high, low and close at points A, B and C, then classifies the range and projects a last ratio chosen from 2.24, 2.618, 3.14 or 3.618. Labels can show AB
This indicator uses the SuperTrend to generate direction changes that calculate segment returns and update a cumulative equity curve. It starts with a balance of 100 and compounds returns for each signal segment until the next direction change, then plots the
This indicator draws Fibonacci-based time projections as horizontal lines and price projections as vertical lines on the price chart. Users select a start time and candle, then set the number of bars for time steps and initial price gap. The script calculates
A bearish mirror of a signal hub indicator that bundles many detection groups into plots on the price chart. Groups include White Flag momentum, overlap and super patterns, fauna clusters, relative volume windows, first two bars, a swing top and a pullback-and
This indicator draws a Gann box on the price chart between the latest swing high and swing low found within a lookback window, with Fibonacci-style percentage levels, labels and optional grid lines. Gann fans, angles and curves can be turned on, and the box ca
A Pine Script v5 library of helper functions for strategy scripts. It converts a percentage of the entry price into ticks, a price level or a currency amount, converts between prices and ticks, and reports the profit of the open position as a percentage if it
This indicator plots Minkowski distance values in a separate pane. A function measures distance between two points using exponent p, matching Manhattan distance when p is 1 and Euclidean distance when p is 2. It plots fixed sample distances for those cases and
This strategy combines Bollinger %B settings with belthold and inner-candle color toggles and sizes orders as a percentage of equity. The user sets band length, source, and deviation, plus buy, sell, overbought, and oversold levels. Exits use either a modified
This indicator plots the McGinley Dynamic as a single line on the price chart. It seeds the line with an exponential moving average of the close, then updates each bar by adding a fraction of the gap between price and the previous value. That fraction depends
This strategy detects long and short signals from the Noro TrendRibbon ribbon side change. It draws a corridor from recent high and low prices on the chart. When price falls below the corridor on long signals it opens long positions sized to a percentage of co
Calculates and plots key high and low reference levels based on a selected candle timeframe (1-hour or 4-hour) starting at a specific New York session hour (1 AM, 5 AM, or 9 AM). The indicator tracks the high and low prices of the specified candle, resetting d
Hercules Strategy 1.7 is a price-chart strategy that gates trades with an engulfing-candle option, a lightning tick threshold, and a choice of long, short, or both directions. It can invert signals and stop the next trade from repeating the same side. Sydney,
This indicator adapts the built-in TradingView volume tool by adding extended visualization options in a separate pane. It plots volume columns colored by price direction relative to the open or previous close, alongside a simple moving average of volume. An o
This indicator splits price into SuperTrend segments and accumulates the percentage of up and down closes inside the active segment. It compares the live net move with the mean and standard deviation of earlier closed segments in the same direction, then plots
This indicator plots a ribbon of seven exponential moving averages based on Fibonacci lengths (8, 13, 21, 34, 55, 89, and 144) directly on the price chart. It calculates volume-weighted distance gaps between consecutive moving averages normalized against a 50-
A signal hub indicator that bundles many detection groups into plots on the price chart, in a tick-chart-safe build. Groups include White Flag momentum, overlap and super patterns, fauna clusters, relative volume windows, first two bars, a swing bottom and a p
This indicator draws a Gann box on the price chart between the latest swing high and swing low found within a lookback window, with Fibonacci-style percentage levels, labels and optional grid lines. Gann fans, angles and curves can be turned on, and the box ca
A Pine Script v5 library of string helpers that add to the built-in string functions. It extracts the text to the left or right of the nth occurrence of a separator, with versions for simple and series strings. The file includes example code that shows the cod
This strategy plots a 20-period Bollinger Band and a 9-period EMA on the price chart. It opens a long when the prior close is below the lower band and the current candle is bullish, and a short when the prior close is above the upper band and the current candl
The Median indicator calculates the median of a selected source series such as the high-low average over a user-defined length and plots it as a red line on the price chart. It draws an EMA of the median as a blue line and fills the space between them, changin
This strategy uses Noro TrendRibbon direction to set a long or short bias, then opens a trade when price leaves a high-low corridor built from recent candles. A long opens below the corridor in a long bias, and a short opens above it in a short bias, sized fro
Forex Majors 4H Rejection Scanner tracks seven customizable currency pairs on a four-hour timeframe and displays their bias in a table overlay on the main price chart. It checks the last two closed four-hour candles for high or low price rejections, labeling a
Hercules Strategy Rewrite is an automated backtesting strategy that generates entry signals using engulfing candlestick patterns, tick thresholds, and support or resistance level breakouts. It offers multi-layer filtering including moving average trend checks,
This indicator tracks the all-time high and all-time low of the current symbol from daily data. It draws optional green and red horizontal lines across the price chart and can show a table with each extreme’s date, days elapsed, price, percent distance from th
This indicator plots the SuperTrend line directly on the price chart and evaluates historical trend segments. Whenever the SuperTrend flips direction, it records simulated long or short returns from flip to flip, plotting percentage return labels above or belo
Flat Multiplier is a Fibonacci flat indicator that plots stepped price lines on the chart. It sets a range using start and end timestamps, then extends the price with time and height multipliers based on Fibonacci ratios to calculate new levels. The red line s
A non-repainting high-volume marker indicator that flags bars whose volume is the highest over lookbacks from 50 to 1000 bars in steps of 50, plus an all-time high volume level and hot spot signals. Every comparison uses the prior confirmed bar, so signals do
This indicator draws a Gann box on the price chart between the latest swing high and swing low found within a lookback window, with Fibonacci-style percentage levels, labels and optional grid lines. Gann fans, angles and curves can be turned on, and the box ca
Provides a collection of technical analysis calculation functions for use across Pine scripts. It exports implementations for various indicators and mathematical formulas, including oscillators like the Awesome Oscillator, Aroon, and Schaff Trend Cycle, moving
This strategy trades breakouts beyond Bollinger Bands on the main price chart. It features optional trend filters using various moving average types, a volatility filter based on standard deviation relative to its moving average, and a daily rate-of-change fil
This indicator calculates momentum as the difference between the selected source and its value a chosen number of bars earlier. It plots that difference as a single line in a separate pane. The Length input sets the lookback, and the Source input selects which
This strategy connects TradingView signals to Zignaly crypto trading platform with risk management. It plots a Noro TrendRibbon on the price chart to generate trend signals for entries. Long and short positions open based on ribbon conditions using specified M
This indicator plots horizontal dotted lines at evenly spaced key prices and a translucent rectangle centered on each line. The user sets the first and last level, the spacing between them, and how far each zone extends above and below its line. Drawing runs o
Highlight Month is a simple chart overlay indicator that shades the chart background during the first five weeks of the calendar year. It checks whether the current bar falls within week numbers one through five, highlighting the period corresponding to Januar
Calculates and plots Anchored VWAP curves on the price chart based on specific user-selected event timestamps or standard periodic intervals such as daily, weekly, and monthly levels. It features customizable bands around the VWAP lines, configurable using per
Calculates the standard SuperTrend indicator and tracks the percentage return of each completed trend segment. Once a user-defined minimum number of segments is gathered, the indicator computes the historical mean return and standard deviation. When the active
Footprint Pro Morindok by BITMOON618 estimates order flow footprint metrics without requiring tick-level data. It divides candle price ranges into configurable price bins and calculates buying and selling volume delta based on cumulative volume distribution. T
A rolling high-volume event counter that marks clusters of rare volume peaks on the price chart. It tracks five rare tiers, from all-time high volume to 4000, 3000, 2000 and 1000 bar highs, across three lanes each, and signals when a set number of events occur
This indicator compares the colour pattern of the latest bars, green or red by close, with up to a thousand bars of history. It looks for earlier matches and shows what followed them in a dashboard table on the chart, listing the matched dates and bars. Lookba
A Pine Script v5 library of time helper functions. It formats a timestamp into time, date and weekday strings, and measures how many seconds a condition has stayed true, with an optional reset on each new bar. Settings in the demo code cover tick counts, hold
This strategy executes short trades based on Bollinger Bands and the Relative Strength Index (RSI). It plots the Bollinger Bands on the price chart and enters a short position when the closing price crosses above the upper band while RSI remains below 70. An e
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.