This indicator serves as a syntax test file demonstrating Pine Script language features and editor highlighting. It showcases compiler annotations, control flow keywords, user-defined types, exported enums, and various data structure declarations including arr
BigBeluga Smart Money Concepts identifies and overlays market structure and volumetric order blocks directly on the price chart. It analyzes market swings, trend sweeps, and mapping structure using customizable pivot lengths and calculation modes. The indicato
Exhaustion Reversal identifies potential market exhaustion and reversal points on the price chart by detecting strong force bars followed by price give-back patterns. A force bar is defined by an above-average body reaching recent extreme highs or lows. The sc
This indicator plots the percentile rank of a short ATR divided by a longer ATR in a separate pane. It calculates two average true ranges, forms their ratio, ranks that ratio over a lookback window, and smooths the rank with an exponential moving average. User
Binance USDT 2H is a trading strategy designed for Binance futures contracts. It calculates custom smoothed price averages and evaluates Stochastic oscillator lines fetched across multiple timeframes using security requests. Signals generate long and short ent
Calculates MACD line and signal line differences, passing current and previous deltas through a two-layer neural network model with ReLU activation functions. User-configurable weights, biases, and threshold values determine output classification signals. The
This indicator calculates the classic Accumulation/Distribution line and plots it in a separate pane. On each bar it multiplies volume by the close location inside the high-low range, then adds that value to a running total. Bars where the high equals the low,
This overlay indicator estimates price with a Nadaraya-Watson rational quadratic kernel and draws an envelope around that estimate. It regresses close, high, and low, then builds a kernel ATR from those estimates. Near and far upper and lower bounds, plus thei
This overlay indicator maps smart money structure on the price chart. It marks internal and swing break of structure and change of character, bullish and bearish order blocks, equal highs and lows, fair value gaps, premium and discount zones, and strong or wea
This strategy calculates Bollinger Bands, a configurable moving average slope, Stochastic RSI, ATR, and ADX directly on the price chart. It evaluates trend bias and momentum conditions to generate long and short swing entries using percent-of-equity sizing. Th
The Connors Relative Strength Index (CRSI) measures short-term momentum by averaging three components: a standard Relative Strength Index (RSI), an Up/Down streak RSI, and the Percent Rank of a 1-period Rate of Change (ROC). It plots as a single line in a sepa
This indicator estimates an adaptive stochastic in the style of John Ehlers and is titled as an inverse Fisher transform. It high-pass filters the selected source, smooths the result, measures Pearson correlation across lags, and derives a dominant cycle from
2XTMA Centered Bands Indicator plots two centered triangular moving averages with ATR-scaled upper and lower bands on the price chart. It colors each average bull or bear and can show an angle caution label. Optional alerts fire on band crosses, a return towar
This overlay indicator builds a money-management table on the price chart. It takes a deposit, a maximum risk percentage per trade, and a commission percentage, then sizes risk against up to ten user-defined stop-loss percentages and an optional ATR stop. The
This strategy trades Nikkei 225 futures during a configurable overnight session, defaulting to 19:00–03:00 ET. It builds long and short trend conditions from an 8/21 EMA pair and a 200-period SMA, with RSI, momentum, an ATR-scaled breakout range, and a volume
BodyOutlier A003 is a mean-reversion trading strategy designed for automated execution via Zignaly alerts. It identifies candlestick body outliers to place limit orders, buying at the low of unusually large bullish candles or selling at the high of large beari
Identifies three-candle Fair Value Gaps (FVG) and trades their initial retests in the direction of an exponential moving average trend filter. Long positions trigger when price enters a recent bullish imbalance from above while trading above the EMA; short pos
This indicator plots a seven-period simple moving average of the close on the price chart. It colors the line green when the average is higher than its value one bar earlier and red when it is lower or equal. There are no user inputs, so the length, source, an
This script provides an indicator-based backtesting engine framework that simulates trade entries, exits, and filtering directly on the price chart. It evaluates selected entry rules and multi-layered filters, including moving average trends, volume increases,
This strategy calculates the Chaikin Oscillator by taking the difference between fast and slow exponential moving averages of the Accumulation/Distribution line. It generates long and short entries when the oscillator crosses the signal threshold with directio
This strategy calculates dual Average True Range (ATR) trailing stops using two distinct multiplier levels alongside an optional Hull Moving Average (HMA) channel. It identifies market structure shifts and triggers positions when price crosses the primary ATR
This strategy detects equal highs and equal lows from swing pivots when two pivots sit within an ATR tolerance. A long entry follows a wick below an equal low that closes back above it on a bullish bar; a short entry follows a wick above an equal high that clo
This indicator identifies single-candle breakout patterns where the current bar closes beyond the open of the preceding opposite-direction bar. It calculates potential long and short breakout targets using a 0.618 Fibonacci projection from the prior candle ran
This strategy calculates trade signals by evaluating a daily session Volume Weighted Average Price relative to 90-period Exponential Moving Averages requested from 1-day and 4-hour higher timeframes. Long and short entries occur when VWAP crosses over or under
FX Market Sessions highlights distinct trading sessions, such as London, New York, and Tokyo, directly on the main price chart. It draws background boxes for each active session and optionally plots opening ranges, Fibonacci retracement levels, and session ext
This indicator plots a weekly moving-average band on the price chart. It calculates a simple moving average and an exponential moving average of the close, requests both series on the weekly timeframe, and draws the SMA in red and the EMA in green. An orange f
This strategy identifies high-volatility expansion bars by comparing the high-low range to a moving average plus standard deviation threshold. When range expansion occurs, it checks momentum over a specified lookback period. It opens a long position if the cur
This Pine Script v5 library walks historical price, volume, time and amount series until a requested number of hours is covered, stopping at 4999 bars. TimeAligned returns the bar count, net and absolute price changes, net and absolute log-price changes, volum
Edge 60 is a breakout indicator that identifies new extremes over a configurable lookback period. It calculates and plots the highest high and lowest low of the preceding bars on the price chart. When the current bar makes a new high above the lookback channel
This strategy implements a classic trend-following moving average crossover system on the price chart. It calculates a fast simple moving average (default 50) and a slow SMA (default 200). It enters long when the fast SMA crosses above the slow SMA and enters
Xsodus RSI Strategy is a long-only trading script that generates entry signals when the Relative Strength Index (RSI) crosses above a configurable oversold threshold. Traders can enable an optional trend filter requiring price to remain above an Exponential Mo
This strategy enters long positions when price tests and bounces off the prior week's low level within an allowed point tolerance during designated UTC trading hours. It requires the bar low to approach the prior week low and the close to rebound above it whil
This indicator plots a moving average and ATR-based stop loss and take profit levels on the price chart. It calculates ATR, NATR, and surge detection using lookback periods and crossover logic. Settings control ATR lookback, length, profit and loss multipliers
The S/D Breakout script is a technical indicator that identifies and plots supply and demand zones as well as order blocks on the price chart. It calculates reversals and zones based on configurable inputs such as pivot lookback periods and distance multiplier
Xiaotang System V5.0 is a price-chart overlay indicator that identifies momentum breakouts across moving averages and session VWAP. It computes Heikin-Ashi price data, 50-period and 200-period SMAs, and intraday VWAP while monitoring 5-minute higher-timeframe
This overlay strategy calculates a fast and a slow simple moving average of close and trades their crossovers. A cross of the fast average above the slow average opens a long; a cross below opens a short. Position size is fixed at one unit. After each entry it
This strategy executes mean-reversion trades when the Relative Strength Index rebounds from overbought or oversold zones in the direction of a higher-period trend EMA. It calculates indicators using confirmed bar closes to prevent live-bar recalculation. Entri
This overlay indicator combines several time filters so later logic can keep only bars that pass them. It checks an exchange session window, optional weekday presets or custom days, and an optional calendar date range. Separate switches skip a chosen number of
This strategy combines candlestick price action with Exponential Moving Average, RSI, and MACD filters to identify short-term trend trades. A long signal occurs when a bullish candle engulfs the previous open while price remains above the EMA, RSI stays below
Calculates three exponential moving averages and compares them against a faster 13-period baseline exponential moving average. It displays three horizontal rows of circular plots in a separate pane to represent each moving average length comparison. A circle t
The Dereköy-Darvas indicator combines Darvas Box boundary levels with dual Bollinger Bands plotted directly on the main price chart. It calculates top and bottom box lines based on recent high and low extremes to outline price consolidation zones. Simultaneous
This indicator plots scheduled macroeconomic calendar events directly onto the price chart using vertical lines. It categorizes events into five user-defined groups, such as central bank meetings, PMI releases, retail sales, inflation data, and other announcem
Dead Cross Over is a trend-following strategy that calculates a 10-period fast EMA and a 100-period slow EMA directly on the price chart. It enters a long position when the fast EMA crosses above the slow EMA while price sits above the slow EMA. The position i
This indicator identifies long-term trend directions and momentum shifts using weighted moving averages. It plots 13, 48, and 200-period WMAs directly on the price chart. The script evaluates price crossovers relative to each average as well as moving average
This indicator classifies a market regime by comparing a Heikin Ashi close with an exponential moving average of that close. It requests Heikin Ashi open, high, low, and close from a user-selected timeframe, then plots no lines and colors the pane background g
Calculates 50-period and 200-period Exponential Moving Averages alongside standard and wide Bollinger Bands. It generates buy and sell signal labels on the chart when the Bollinger Band basis crosses above or below the 50 EMA. The script also includes volume-w
This indicator plots a stop-loss price on the main chart as green crosses. It compares the previous bar's high-low range with a 13-period ATR and offsets the current open by one, two, or three ATR multiples, or by the previous low plus ATR. Length variables na
This indicator tracks consecutive closing price movements to identify trend changes. It maintains separate counters for periods where close is higher than close[4] (buy direction) and lower than close[4] (sell direction). Counters reset when the condition no l
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.