A strategy that marks confirmed 4H and daily pivot highs and lows, draws Fibonacci levels with an optional golden zone shading, and plots EMA 50 and EMA 200.
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
A Hardened MTF mode adds RSI confirmation, EMA alignment and candle checks, allowing one trade per confirmed swing, while a baseline mode keeps simpler marker logic. Exits use ATR-based stop and target distances plus a maximum hold in bars. Quantity is fixed, and it draws on the price chart.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Logic Mode
string
Hardened MTF
logicMode
Order Quantity
float
3.0
orderQuantity
ATR Length
int
14
atrLength
Target ATR
float
1.5
targetAtr
Stop ATR
float
1.5
stopAtr
Maximum Hold Bars
int
32
maxHoldBars
Enable Strategy Orders
bool
true
enableOrders
EMA 50 Length
int
50
ema50Length
EMA 200 Length
int
200
ema200Length
Show EMAs
bool
true
showEmas
4H Left Bars
int
5
left4h
4H Right Bars
int
5
right4h
Show all 36 settings
Setting
Type
Default
Variable
Show 4H Lines
bool
true
show4hLines
Show Latest 4H Labels
bool
false
show4hLabels
4H High
color
color.new(color.red, 10)
color4hHigh
4H Low
color
color.new(color.green, 10)
color4hLow
Daily Left Bars
int
5
leftDaily
Daily Right Bars
int
5
rightDaily
Show Daily Lines
bool
true
showDailyLines
Show Latest Daily Labels
bool
false
showDailyLabels
Daily High
color
color.new(color.maroon, 0)
colorDailyHigh
Daily Low
color
color.new(color.lime, 0)
colorDailyLow
Source Timeframe
string
4H
fibSource
Show Fib
bool
true
showFib
23.6%
bool
false
showFib236
38.2%
bool
false
showFib382
50.0%
bool
true
showFib500
61.8%
bool
true
showFib618
78.6%
bool
true
showFib786
Shade 61.8%-78.6% Zone
bool
true
showGoldenZone
Start Fib at Swing Endpoint (backpainted)
bool
false
backpaintFib
Show Entry Markers
bool
true
showMarkers
RSI Length
int
14
rsiLength
Baseline Long RSI Maximum
int
35
baselineLongRsi
Baseline Short RSI Minimum
int
65
baselineShortRsi
Show Values Table
bool
false
showTable
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
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
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
This overlay strategy plots a two-timeframe Ichimoku setup on the price chart, with Tenkan, Kijun, Chikou, and Kumo from a base higher timeframe and an optional highest-timeframe cloud. It allows two entries in the same direction and uses ATR-based trailing st
This strategy combines three Exponential Moving Averages with Williams Fractals to execute trend-following or mean-reverting trades. It analyzes price structure using short, medium, and long-term EMAs along with fractal highs and lows. Entries trigger when fra