Mirpapa Lib HTF is a Pine Script v6 utility library designed for higher timeframe (HTF) data processing and chart timeframe conversions. It exports a custom data structure for caching open, high, low, close, and time values across multiple bars, alongside util
This indicator calculates Stan Weinstein's Mansfield Relative Strength (MRS) comparing a security against a chosen benchmark index, such as the S&P 500. It measures outperformance and underperformance relative to a zero line using a moving average baseline. Th
Lakshmi Zones calculates and plots unmitigated daily order blocks, supply and demand zones, and key levels directly on the price chart. It processes historical daily candlestick bodies and wicks to generate zone boxes, tracking whether subsequent daily closes
This indicator builds a Supertrend-style channel from ATR and the median price, then tracks the highest and lowest prices between trend flips. It plots a grid high, grid low and midpoint, shifted by an offset, and can filter the channel by minimum and maximum
This indicator plots net positions for Commercial and Non-Commercial (Large Speculators) traders using Commitment of Traders (COT) legacy report data. It automatically converts root symbols to their corresponding CFTC codes to fetch daily long and short positi
This indicator calculates the range of each bar as high minus low and smooths those ranges into an average daily range. The user chooses a lookback length and a smoothing method: simple, exponential, or weighted moving average. It plots the resulting value as
Zebra Week paints alternating background stripes on the price chart so consecutive time periods are easier to see. On a daily chart it shades even weeks; on a 15-minute chart it shades every other trading day using the week number and weekday. A single toggle
Supertrend is a trend-following overlay indicator that computes dynamic trailing bands based on the Average True Range and price action. It calculates the standard Supertrend line using customizable ATR length and factor multiplier inputs. Green lines plot bel
A smart money style indicator that detects swing structure and breaks of structure with an ATR buffer, then marks order blocks found within a lookback, extends them forward and hides or removes them when mitigated by a wick or a close. Signals are graded in ti
Finds short-rate data for a US leg and a euro leg, trying a list of futures and yield symbols and using the first that returns bars, then plots the difference in a separate pane and optionally rescaled on the price chart. Futures prices are converted to rates.
An always-in-the-market strategy that goes long when the daily close is above a 50-bar SMA and short when below, with an optional hysteresis band and a switch to disable shorts. It simulates a perpetual futures position with a funding cost charged over the hol
A price-chart overlay that redraws each bar as a candle whose open equals its close, leaving only the high, low and close visible. Bars are coloured by comparing the close with the previous close, using one colour for a close at or above it and another for a l
The Engulfing Candles indicator automatically identifies and highlights bullish and bearish engulfing candlestick patterns directly on the price chart. It checks whether the current bar fully wraps around the body of the previous bar and exceeds a customizable
This library builds real-time Smart Money Concepts context frames on each bar. It derives StructureFrame using engine primitives for BOS, CHoCH, trend and S-R levels. ImbalanceFrame tracks FVG lifecycle, BPR overlap, liquidity void and zone-bias. ZoneFrame man
A long-only strategy that requires two volume flow measures to agree: On Balance Volume and Accumulation/Distribution, each compared with its own EMA. It enters long when both are above their signals for the first time and price is above a longer EMA filter. I
Plots a wide array of built-in Pine Script volatility calculations in a separate pane. It outputs true range variations, average true range across multiple periods, standard deviation, variance, mean absolute deviation, Bollinger Bands and Bollinger Bands Widt
A long and short strategy based on five moving averages of 10, 20, 50, 100 and 200 bars. It can require the averages to be in perfect order with aligned slopes, filter entries by ADX range, and optionally by RSI and a higher timeframe moving average. A strict
A strategy that detects classic chart patterns from pivot points on the price chart: double and triple tops and bottoms, head and shoulders, flags, pennants, wedges, triangles, rectangles and cup and handle shapes. Each can be switched on or off, with toleranc
This indicator implements a multi-metric confirmation engine that validates trading signals across four core dimensions: trend level scores based on an HLC3 SMA, momentum z-scores derived from rate of change, volatility expansion ratios comparing fast and slow
A long-only crypto spot strategy whose support and resistance section can be switched on or off and set as the main entry trigger or as a secondary filter. When enabled, it uses pivots on four timeframes, ATR-sized touch zones and a retest window. Trend filter
Calculates the WaveTrend oscillator using channel and average exponential moving averages alongside a simple moving average signal line in a separate pane. It plots the dual oscillator lines, their difference area, and configurable overbought and oversold thre
Synthetic test fixture for a strategy-description simulator, drawn in a separate pane. Instead of chart prices it uses a built-in array of four artificial candles, so it runs the same on any chart. The comments state the policy: signals at bar close, fills at
This Pine Script indicator detects pivot highs and lows on the price chart using the specified left and right pivot periods. It computes mirror levels based on two Fibonacci multiplier sets with an optional logarithmic scale for visualization. Auto-adjust scal
Higher Close Demo is a Pine Script v6 teaching indicator drawn on the price chart. It checks whether the current close is greater than the previous close. When that condition is true, it plots a green upward triangle below the bar. The script has no user input
An overlay indicator that computes a volume-weighted price average using SMA, RMA, HMA or ALMA, fits a linear regression to it as a fair value baseline, and draws bands at one, two and three standard deviations of price around it. The baseline and band fills t
Draws volume order blocks on the price chart and adds three tiers of asymmetric buy and sell volume signals: a percentage-threshold tier, a one-sided volume tier and a super volume tier. A cooldown spaces signals. High-volume proximity markers fire when a roll
A trend strategy on the price chart built on a double-smoothed Supertrend using WMA and EMA smoothing, with pivot rejection entries when price touches the baseline. Settings scale automatically by timeframe. Stop loss can use the flip candle, baseline or swing
This large indicator applies ICT-style smart money analysis to gold on the price chart, covering order blocks, breaker blocks, liquidity pools, premium and discount positioning and market structure. Buy and sell signals can be gated by a discount or premium fi
This strategy executes trades based on Triangular Moving Average (TMA) crossings, support and resistance structures, and breakout logic. It evaluates multiple confluence conditions including daily pivots, anchored VWAP, and multi-day moving averages alongside
This Smart Money Concepts (SMC) strategy identifies market structure, order blocks, imbalances, and premium or discount zones directly on the price chart. It executes long trades in discount zones and short trades in premium zones based on order block retests,
An overlay indicator that tracks the most recent confirmed swing high and swing low and prints a small label when the close crosses beyond them. A green B label appears below the bar when the close crosses above the last pivot high, and a red S label appears a
HA Moving Average calculates a moving average from Heikin Ashi prices fetched for the chart symbol, while the chart itself can stay on normal candles. Users choose the average type (EMA, SMA, RMA or WMA), the length and the Heikin Ashi source. The line changes
This strategy plots a 12-period and a 26-period exponential moving average on the price chart. It enters long when the fast average crosses above the slow average and enters short when the fast average crosses below the slow average. Opposite signals reverse t
Overlays higher-timeframe context on the price chart, using lower-timeframe data to find volume spikes inside each higher-timeframe bar. It combines RSI pivot divergence with a volume conviction check, and can show a ghost of the previous bar, stacked imbalanc
An overlay toolkit for crypto charts that combines a volume profile with value area, an anchored VWAP, EMA lines, a higher-timeframe EMA bias and an order flow proxy from lower-timeframe delta, relative volume and cumulative delta, plus swing and ATR-based pri
This strategy generates buy and sell signals on the SP500 4H chart using EMA crossovers confirmed by MACD, filtered by ADX trend strength, RSI levels, and active London or New York sessions. It plots EMA 9, EMA 21, and EMA 200 on the price chart. Buy signals e
Shows four tools in one separate pane: RSI with divergence detection, a squeeze momentum histogram from Bollinger and Keltner bands, an ADX and DMI block, and WaveTrend with overbought levels. Each can be switched on or off and has its own length inputs, with
This compact indicator labels Elliott Wave counts on the price chart. It runs a zig-zag at several depths, chooses the depth that gives the best fit, and applies Elliott Wave rules, with a strict mode that forces an A-B-C count when the rules break. A correcti
An indicator that shows an adaptive True Strength Index in a separate pane while projecting signals onto the price chart. It detects the instrument type, such as gold, silver or major indices, and the timeframe to pick parameters, adapts reactivity to ATR, and
A strategy that plots two MACD histograms in a separate pane, a slower trending pair (89 and 144) and a faster energy pair (13 and 21). Backtesting is switched on by a setting, with a long or short direction and a mode choice between trend following and diverg
This indicator identifies shooting star candlestick reversal patterns directly on the price chart. It checks for a small real body, an extended upper shadow, and a minimal lower shadow following an uptrend of user-defined length. The script also requires a pri
BTC ATH Scaling tracks the all-time high price and calculates the percentage drawdown from that peak. It displays a real-time label offset to the right of the latest price candle showing the ATH level, current price, and percentage drop. The label color dynami
A chart-overlay indicator that tracks a Hull moving average and issues buy and sell signals when price crosses it in the direction of the slope. Entries are filtered by a score built from momentum, RSI and volume, a price-volume-trend check, and an optional bl
An indicator on the price chart that finds flag and pennant chart patterns using up to four zigzag settings of different lengths and depths. Inputs limit pattern error, flatness, maximum retracement and optionally bar ratio, and an option avoids overlapping pa
A long-only accumulation strategy that buys near the lower edge of a smoothed channel, built from an EMA of the highest high and lowest low over an adjustable range. A buy needs price at the lower line while RSI turns up from an oversold reading, with at most
A Pine v6 strategy that follows the built-in Supertrend indicator on the price chart. The ATR length and the multiplier factor are inputs. When the Supertrend direction flips to bullish the strategy enters long, and when it flips to bearish it enters short, so
A Pine Script v6 library for comparing current volume or another series with its history over matching points in time. It collects values within a period that restarts on an anchor timeframe, then averages the values from past periods at the same time offset.
The Quick Moving Average calculates a triangular-weighted moving average on the price chart. It plots the average line and can color it green when rising or pink when falling. Price bars and chart background receive matching colors based on slope. Settings con
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.