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
305 lines of Pine Script v4 from [Order] Remaster Fractal strategy.txt, published under MIT. Keep the author's credit and licence lines when you reuse it.
Fractals strategy remaster tracks recent fractal levels, draws optional retest lines, and marks a retest signal when price returns a set percentage of the distance after a break. Settings change fractal periods, source type, how many past fractals are watched, and the retest and post-break range percentages. Display toggles control fractal marks, range lines, and alerts. Entry, exit, and stop rules are not visible in the provided excerpt.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Период крупных фракталов
int
2
n
Период меньших фракталов
int
2
n_additional
Тип верхнего фрактала
string
high
upFractalType
Тип нижнего фрактала
string
low
downFractalType
Количество отслеживаемых фракталов назад
int
1
numberFs
Процент дистанции ретеста(%)
float
30
levelRetestPercent
Верхний уровень после пробития(%)
float
15
afterBeaking_bottomRangePercent
Нижний уровень после пробития(%)
float
15
afterBeaking_topRangePercent
Показать крупные фракталы
bool
true
showMainFractals
Показать меньшие фракталы
bool
false
showAdditionalFractals
Показать линии дипозона фракталов после пробития
bool
true
showRangeAfterBreaking
Показать уровень для ретеста
bool
true
showRetestLine
Show all 14 settings
Setting
Type
Default
Variable
Показать сигнал ретеста
bool
true
showRetestSignal
Ретест
bool
true
showRetestAlert
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 plots running pivot highs as red R circles and pivot lows as blue S circles directly on the price chart. It computes an EMA 3 and a Cto trend line from close prices, then generates long signals on upward EMA-Cto crossovers combined with price pos
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
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 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
This trend breakout strategy plots Donchian Channels consisting of upper, lower, and middle bands directly on the main price chart. Long positions enter when price touches the upper channel and pulls back to or below the middle band, placing a stop loss at the