1Copy the scriptPress Copy script above, or the copy button on the code below.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new strategy, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart. The trades and results appear in the Strategy Tester tab; adjust the settings with the gear icon.
Source Code
97 lines of Pine Script v5 from 11_Pivot_Points/11_Pivot_Points.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
The strategy offers two execution modes: Bounce mode trades reversals within a customizable percentage buffer of support and resistance levels, while Breakout mode trades level crossovers. Risk is managed using an ATR-based dynamic stop loss and a fixed risk-to-reward take profit target. Plotted directly as an overlay on the main price chart.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Pivot Type
string
Traditional
pivotType
Pivot Timeframe
timeframe
D
pivotTF
Entry Mode
string
Bounce
entryMode
Bounce Buffer (%)
float
0.15
bounceBuffer
ATR Length
int
14
atrLength
ATR Multiplier for SL
float
1.5
atrMult
Risk:Reward Ratio
float
2.0
rrRatio
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.
The Chained Linear Regression Reversal Strategy plots linear regression channels with upper and lower standard deviation bands directly on the price chart across a user-defined time window. When price breaks out of the static channel for a confirmed number of
This price-chart strategy marks a base when enough recent bar bottoms cluster within a set deviation of the current bottom, then ignores new bases that sit too close to existing ones. A buy is considered when price falls a chosen percentage below a base inside
RG Structure v2.0 [Visual Edition] is a strategy that identifies pivot points over a lookback window to construct trendlines. It evaluates breaks and retests of these trendlines using scoring weights, violation penalties, and regime detection to generate entry
The strategy detects range expansion by comparing the previous bar's range to its ATR multiple. It places pending stop entries above highs of up bars or below lows of down bars. On trigger it enters positions with take profit and stop loss in ticks using OCA g
This strategy identifies pivot-based Darvas Box levels on the price chart and trades re-entries following box sweeps. A long position arms when the price dips below the lower boundary and triggers when it closes back inside, provided the price is above a highe
This trend-following strategy executes a classic Donchian channel breakout system designed to cross-validate backtest results against external framework benchmarks. It triggers a long entry when the closing price breaks above the highest high of the prior entr