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
Long and short setups expire after a set number of bars, and the first bar after a Supertrend flip is ignored. It enters with a fixed percent of equity, places percent stop loss and take profit, and can exit on a Supertrend flip or after a maximum hold. It draws bands, fractal levels, and setup labels on the price chart. The notes point to a 15-second chart.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Supertrend ATR Length
int
10
stAtrLen
Supertrend Factor
float
2.0
stFactor
BB Length
int
20
bbLen
BB StdDev
float
2.0
bbMult
Allow Midline Sweep
bool
true
useBBMid
Allow Outer Band Sweep
bool
true
useBBOuter
Fractal Strength
int
2
frLen
Require Fractal Sweep
bool
true
useFrSweep
Use MACD Filter
bool
true
useMACD
MACD Fast
int
12
macdFast
MACD Slow
int
26
macdSlow
MACD Signal
int
9
macdSignal
Show all 21 settings
Setting
Type
Default
Variable
Stop Loss %
float
0.35
slPct
Take Profit %
float
0.60
tpPct
Max Hold Bars (15s chart: 4 bars = 1 min)
int
4
maxHoldBars
Setup Expires After N Bars
int
2
setupExpires
Enable Shorts
bool
true
useShorts
Exit on Trend Flip (Supertrend)
bool
true
useTrendFlipExit
Show Setup / Entry Labels
bool
true
showLabels
Show Last Fractal Levels
bool
true
showFractals
Show Bollinger Bands
bool
true
showBB
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.
LuxAlgo Hybrid Gold Scalper is a price-chart strategy aimed at gold. It stacks a fast, slow, trend and 200-period bias EMA to mark trend direction, then filters strength with RSI, ADX and an intraday VWAP. Swing highs and lows are marked from pivot length. Set
This trend-following scalping strategy combines a moving average trend filter with the Absolute Strength Histogram indicator. It opens long positions when price is above a selectable baseline moving average and the histogram signals bullish momentum, and short
This strategy draws on the price chart and combines a momentum zigzag, a custom QQE built from RSI, ADX directional strength, an SSL filter, and a coefficient-of-variation weighted average. Box period, deviation, and threshold inputs set the box filter, while
This strategy plots on the gold price chart and combines stochastic, RSI, and three EMAs with ATR to confirm buy and sell entries. Confirm trades can require an M15 overbought or oversold rejection wick and a Fibonacci or EMA zone, while a no-chase filter limi
This strategy overlays a trend moving average and Supertrend bands directly on the price chart while calculating Stochastic RSI values internally. Long positions trigger when price exceeds the moving average, Supertrend signals bullish momentum, and the StochR
This trading strategy combines three Exponential Moving Averages (8, 14, and 50 periods by default) with Stochastic RSI and Average True Range (ATR). It enters a long position when EMA 1 is above EMA 2, EMA 2 is above EMA 3, and the Stochastic RSI %K line cros