A strategy file on the price chart that detects pivot highs and pivot lows over a settable fractal length, marks them with triangles and debug labels, and plots the highest and lowest prices over the same length as step lines.
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
119 lines of Pine Script v6 from vstrategy/price_step_strategy.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
PriceStep Pivot Strategy also rounds highs and lows to price steps of one percent-scale and ten percent-scale sizes. The visible code shows no entry or exit orders, so it works as a pivot and price level study. Settings are fractal bars, the two step sizes and background fill.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
fractal bars
int
100
fractal
step x1 %
float
0.5
step1p
step x10 %
float
5
step10p
Backgroung Fill
bool
true
bgfill
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.
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
This strategy divides a fixed price range between an upper and a lower limit into equally spaced grid levels and plots them on the price chart. It marks a buy when price crosses down through a grid and a sell when price crosses up through a grid, using either
This strategy calculates dynamic support and resistance levels using pivot highs and lows alongside a custom smoothed trend filter and a 3-period EMA. It identifies entry opportunities when price breaks out relative to the trend filter and short-term EMA cross
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
STRG-HOLP is a trading strategy that identifies High of Low Period (HOLP) and Low of High Period (LOHP) breakout setups. It tracks the lowest low or highest high over a user-defined lookback window. A long trade opens when the close breaks above the high of th
This script monitors opening gap conditions and breakout behavior relative to the first candle's range across up to twenty configurable stock tickers. It detects whether following bars remain inside the opening range before breaking out, displaying the status