This strategy identifies trend retracements and breakout entries using an adjustable moving average ribbon alongside higher-timeframe anchored moving averages, fractal pivots, and support and resistance level extensions.
1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
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
The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.
Overview
Bar colors can be customized using a 3-tone or 6-tone scheme relative to the signal moving average. Signals trigger on pullback fractal breaks or trend line crosses. Position risk is managed through a percentage-based stop loss and an optional Hull Moving Average stop rule. All components and trade orders plot directly on the price chart.
Dual moving average ribbon with multi-timeframe anchoring
Fractal pivot detection with support and resistance extensions
Multi-tone candle coloring relative to signal moving average
Configurable pullback and trend break entry rules
Percentage-based and Hull moving average stop loss options
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Trading Amount
float
10000.0
tradeMaxAmount
Stop Loss Precentage %
float
5
stopLossPrecent
Stop Below HMA55
bool
true
stopBelowHMA55
Source for All Moving Averages
source
close
ma_src
Show MA Ribbon
bool
true
showMAs
Anchor MA Ribbon
bool
true
anchorRibbon
Fast Ribbon MA Type:
string
EMA
fastType
Fast Ribbon MA Length:
int
5
fastLen_
Slow Ribbon MA Type:
string
EMA
slowType
Slow Ribbon MA Length:
int
12
slowLen_
Anchor TimeFrame in Mins (0=none, 1D=1440, 1W=7200)
int
0
anchor
Fast Anchored MA Type:
string
EMA
fastAnchorType
Show all 40 settings
Setting
Type
Default
Variable
Fast Anchored MA Length:
int
35
fastAnchorLen_
Medium Anchored MA Type:
string
EMA
mediumAnchorType
Medium Anchored MA Length:
int
65
mediumAnchorLen_
Show Slow Anchored MA
bool
false
useSlowMA
Slow Anchored MA Type:
string
EMA
slowAnchorType
Slow Anchored MA Length:
int
200
slowAnchorLen_
Signal Anchored MA Type:
string
EMA
signalType
Signal Anchored MA Length:
int
50
signalLen_
Show Entrys for Trend Breaks
bool
false
ShowBreak
Show Entrys for PB Fractal Breaks
bool
false
ShowPB
Use Close Break instead Touch Fractal Break
bool
true
closeBr
Pull Back Lookback Length
int
6
Lookback
Show coloured Bars close relative to Signal MA
bool
true
ShowBarColor
Use Grab Candle (6-tone) Colouring, instead of Standard (3-tone)
bool
true
useGrabClr
Show Pivot Points
bool
true
ShowPivots
Pivot Length Left Hand Side
int
2
pvtLenL
Pivot Length Right Hand Side
int
2
pvtLenR
Show S/R Level Extensions
bool
true
ShowSRLevels
Show Levels as a Fractal Chaos Channel
bool
false
ShowChannel
Maximum S/R Level Extension Length
int
0
maxLvlLen
Use Renko Style Pivots (open/close for high/low)
bool
false
uRenko
ShowHHLL
bool
false
ShowHHLL
VWAP Anchor Lookback (days)
int
55
vwapLookbackDays
SMA #E
int
200
lenE
SMA Source #E
source
close
srcE
Show Trading Table
bool
true
ShowTradingTable
Trading Account Total
float
10000.0
TradingAccountTotal
Trading Stop Loss Allowance(%)
float
3
TradingStopLossAllow
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 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
Breakout Trend Follower is a price-chart strategy that enters long when price breaks a recent swing high. It places the stop at the recent swing low and trails that stop upward as higher lows form, exiting when a higher low is breached. A pivot lookback sets h
This strategy executes trades on short-term cryptocurrency charts using a combination of pivot support and resistance levels and a multi-pole smoothed trend filter. Entries trigger when price crosses the smoothed trend line and confirms above or below a short-
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
Omar Edited WF is a trading strategy overlay built around Williams Fractals and multiple Exponential Moving Averages. It detects high and low fractal pivot points over configurable lookback periods alongside three adjustable EMA trendlines. Long entries are ma
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