This indicator plots an extended Parabolic SAR on the price chart. It tracks a stop-and-reverse level with separate acceleration-factor start, step, and maximum settings for long and short modes. The start value can force an initial long or short direction, or
The strategy enters a long position of two lots at 1:15 on the hour when no position is open. It then places a take-profit order for half the position at 0.3 percent above the average entry price and a stop-loss order for the remaining half at 0.6 percent belo
This indicator calculates the partial autocorrelation of a chosen price source at a user-selected lag and plots the coefficient in a separate pane. It estimates autocorrelation for lags up to the target lag, then applies Durbin-Levinson recursion so the result
A test strategy from a reference corpus that compares a normal market close with an immediate close. It buys one unit at 02:15 and closes at 03:15 in the normal way, then buys again at 10:15 and closes at 11:15 with the immediate option. Entries depend only on
This indicator calculates the percentage change of a chosen price source over a specified historical lookback period. It measures momentum by comparing current price values directly against historical values using direct history referencing. The output is plot
This strategy isolates global pending-order cancellation and a full position close on the price chart. At 04:15 it places a long limit at 80 percent of close and a short limit at 120 percent of close so they are unlikely to fill. At 04:30 it cancels every pend
This indicator plots a Percentage Price Oscillator in a separate pane. It computes fast and slow compensated exponential moving averages of the chosen source, then expresses their difference as a percentage of the slow average. An EMA of that line forms the si
This overlay strategy is a clock-timed validation probe for shared OCA reduce orders. When flat at 07:15 it enters one long contract. While long it places a short limit exit at 1.004 times average entry and a short stop at 0.996 times average entry, both using
The Percentile indicator calculates and plots a custom percentile rank for a chosen price source over a historical lookback window. It gathers valid price points into an array, sorts the dataset, and applies linear interpolation to compute the target percentil
This strategy is a validation probe that enters one long position and later closes it. It buys when the chart time is 08:15 and the position is flat, then closes that long at 12:15. Order size is twenty-five percent of equity, and each order pays a fixed cash
The PFE indicator calculates Polarized Fractal Efficiency using fractal geometry. It compares the straight-line price distance over the period to the total fractal path length of bar-to-bar movements, producing a signed efficiency ratio smoothed by EMA. The re
This strategy probes TradingView risk gates on a 15-minute crypto chart. It allows only long entries, caps position size at two contracts, and limits filled orders to three per day. It submits fixed one-unit longs at 00:15, 00:30 and 00:45 UTC, a short at 01:0
The Pivot Points (Camarilla) indicator calculates eight pivot levels based on the previous bar's high, low, and close. It derives the central pivot point PP and resistance (R1-R4) and support (S1-S4) levels using the Camarilla equation. Users select a pivot ca
This strategy isolates request.security with gaps on and lookahead off. On a 15-minute chart it requests the 60-minute close and stores the last non-empty higher-timeframe close. A roll up is a newly returned close above that stored value, and a roll down is o
This indicator calculates classic floor trader pivot points using high, low, and close prices from a higher timeframe. It determines the central pivot point along with three resistance levels (R1, R2, R3) and three support levels (S1, S2, S3). Calculated value
This validation strategy executes trades based strictly on specific hour and minute timestamps rather than price indicators. It triggers a fixed long entry when the bar time hits 00:15 and closes the open long position at 00:45. Overlaying directly on the pric
This indicator plots Tom DeMark pivot levels on the price chart. It reads the prior completed bar of a selected daily, weekly, or monthly timeframe and applies a conditional formula that weights the high, low, and close according to whether that bar closed bel
This validation strategy evaluates warmup behavior and historical references using missing value functions like nz() and fixnan(). It calculates raw price changes, substitutes missing values, and computes an eight-period simple moving average score. The strate
This indicator plots extended traditional floor-trader pivot levels on the price chart. It takes the prior high, low, and close of a selected daily, weekly, or monthly timeframe and calculates the central pivot plus five resistance levels and five support leve
A test strategy from a reference corpus that exercises typed boolean matrices. It keeps a 24 by 7 grid of hour and weekday cells, marks a cell when RSI is above 60, and transposes the grid twice to check the matrix functions. It goes long when at least six cel
This indicator plots Fibonacci pivot levels on the price chart. It takes the previous completed bar's high, low, and close from a daily, weekly, or monthly timeframe and sets the pivot as their average. Resistance and support sit at 38.2 percent, 61.8 percent,
This strategy builds a 3x3 covariance matrix from three collinear price series (close, close*2, close*3) and evaluates its eigenvalues to detect rank deficiency via NaN propagation. It generates long entries and exits using a 9/21 EMA crossover on the price ch
This indicator calculates and plots Woodie's pivot points using a weighted closing price formula across daily, weekly, or monthly periods. It computes the central pivot point along with three resistance levels (R1, R2, R3) and three support levels (S1, S2, S3)
This Pine Script strategy implements a custom long-only EMA crossover on the price chart. It defines a UDT struct Cfg with a threshold method that accepts default parameter values. The strategy computes RSI and ATR indicators then uses three call styles to the
This indicator calculates J. Welles Wilder's Plus Directional Indicator (+DI) to measure upward price momentum. It computes Positive Directional Movement (+DM) and True Range (TR), smoothing them using a compensated Running Moving Average (RMA) technique for a
This strategy serves as a Pine Script v6 validation probe testing User-Defined Type (UDT) methods as conditional triggers for strategy entries. It calculates 9-period and 21-period Exponential Moving Averages to detect crossover and crossunder signals. Custom
This indicator calculates Wilder's plus directional movement and plots the smoothed value in a separate pane. On each bar it compares the upward and downward price moves, keeps only a positive up move that exceeds the down move, then applies a compensated RMA
This Pine Script v6 strategy is a validation probe for nested method calls on a user-defined type. Each bar it feeds close, a simple moving average, and standard deviation through a method chain that returns a z-score. It enters long only when that z-score is
This indicator plots the Poisson cumulative distribution function of a price series in a separate pane. It min-max normalizes the selected source over a lookback window, scales that value into a Poisson rate lambda, and returns the probability that a Poisson c
This strategy uses two exponential moving averages (fast period 5, slow period 13) to detect trend changes via crossover signals on the price chart. It enters long on fast EMA crossing above slow EMA and short on the reverse crossover. The script includes expl
This indicator plots a rolling polynomial regression fitted to a chosen price source over a lookback window. It builds the normal equations, solves them with Gauss-Jordan elimination and partial pivoting, and returns the polynomial value at the current bar. Pe
This trend-following strategy calculates a primary filter using an EMA, SMA, or a blended average of both with scaled lengths, plotting it alongside a confirmation EMA on the price chart. Long positions are triggered when the primary filter crosses above the c
This indicator plots the Pretty Good Oscillator in a separate pane. It subtracts a simple moving average of the selected source from the source and divides the difference by an exponential average of true range. A period input sets both the moving-average leng
PineForge - Pendulum SAR Rotation calculates Parabolic SAR and Exponential Moving Average (EMA) values to identify trend-filtered long entries. The strategy enters a long position when price crosses above the Parabolic SAR while remaining above the trend EMA.
This indicator plots a price channel on the price chart. It finds the highest high and lowest low over a chosen lookback, then draws the upper band, the lower band, and a middle line at their midpoint, with a translucent fill between the outer bands. The lengt
This strategy executes trades based on one of two selectable regimes: trend-following or mean reversion. In trend mode, it enters long positions on a bullish EMA crossover and exits on a bearish crossover. In reversion mode, it buys when the RSI dips below an
This indicator plots the Price Momentum Oscillator in a separate pane. It measures one-bar rate of change of the chosen source, then applies two custom exponential smoothings: the first EMA of the percentage ROC is scaled by ten, and a second EMA produces the
This Pine Script v6 strategy calculates two simple moving averages, one fast and one slow. It enters long positions when the fast SMA crosses above the slow SMA and closes long positions when the fast SMA crosses below the slow SMA. The strategy uses percent-o
Price Relative Strength (RS) compares base asset prices to a compare symbol like SPY to measure relative performance. It calculates raw ratio and smoothed ratio with EMA-like smoothing over a configurable period. Optional normalization scales values to 100 and
This strategy generates trading signals on the price chart using a regime-based RSI indicator. It selects an RSI threshold from an internal map based on the chosen regime or falls back to a configurable value. Long entries occur on RSI crossover above the thre
This indicator computes the rolling mean of the Pseudo-Huber Loss, a smooth approximation of absolute error between the actual close prices and predicted open prices. The loss function transitions between quadratic and linear behavior controlled by the delta p
This strategy computes a rolling mean return over the last sampleCount bars and a price percent rank over rankLength bars. It also calculates RSI and ATR values. Long entries trigger when the price rank crosses above the entry rank threshold while the rolling
This indicator calculates the Psychological Line as the percentage of up-bars over a lookback window. It counts bars where the selected source is higher than the previous bar and divides that count by the period, scaled to 0–100. A circular buffer keeps a runn
The strategy builds a custom ThresholdLadder from RSI levels and counts how many levels the RSI value exceeds. When the required passes are reached it enters long when price crosses above the EMA trend line. It exits the position if the ladder condition breaks
Ehlers Precision Trend Analysis extracts trend direction using a dual high-pass filter bandpass approach. It calculates two 2-pole Butterworth high-pass filters on close prices using configurable long and short periods, subtracting the shorter filter from the
PineForge Cascade MTF Tuple is a multi-timeframe trend-following strategy designed for price charts. It uses a single security request to retrieve an Exponential Moving Average and Average True Range from a higher timeframe. The strategy plots an entry thresho
This indicator calculates the Qstick value as a simple or exponential moving average of the difference between a chosen close source and open source. It plots that oscillator in a separate pane as a yellow line, draws a dashed zero line, and shades the backgro
A long-only session strategy that trades inside a configurable time window, 08:00 to 16:00 UTC by default. It enters long at the start of the window or when a 16-period EMA crosses above a 44-period EMA inside it, and closes the position when the window ends.
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.