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
LuxAlgo Hybrid Gold Scalper 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. Settings size the ATR stop, two profit targets, a trailing stop and an optional move to breakeven after the first target. A UTC session window, daily trade limit and post-entry cooldown restrict new orders. The excerpt ends before the order calls, so exact entry conditions are not shown.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Swing Length
int
10
swingLen
Fast EMA
int
9
emaFast
Slow EMA
int
21
emaSlow
Trend EMA (Filter)
int
50
emaTrend
Bias EMA
int
200
ema200
RSI Length
int
14
rsiLen
ADX Length
int
14
adxLen
ADX Threshold (min trend strength)
int
25
adxThresh
ATR Length
int
14
atrLen
SL ATR Multiplier
float
2.5
atrSlMult
TP1 ATR Multiplier
float
1.5
atrTp1Mult
TP2 ATR Multiplier
float
3.5
atrTp2Mult
Show all 19 settings
Setting
Type
Default
Variable
Trailing Stop ATR Mult
float
2.0
trailMult
Session Filter
bool
true
useSession
Session Start Hour (UTC)
int
7
sessionStart
Session End Hour (UTC)
int
17
sessionEnd
Max Trades Per Day
int
4
maxTradesDay
Cooldown After Entry (bars)
int
10
cooldownBars
Move SL to Breakeven after TP1
bool
true
useBreakeven
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 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 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
This strategy combines exponential moving averages (EMA 9, 21, 50), RSI, MACD, and Supertrend indicators to enter long positions. It triggers trades using six dynamic setups based on momentum breakouts, EMA crossovers, and pullbacks. Position sizing is compute
This strategy identifies trend reversals through market structure changes (CHoCH) filtered by MACD momentum. It initiates long positions on bullish structure breaks when MACD is positive and above its signal line, and short positions on bearish breaks when MAC
This strategy trades EUR/USD on the price chart using a fast and slow exponential moving average crossover filtered by RSI. It enters long when the fast EMA crosses above the slow EMA while RSI is above 50 and below the overbought level, and enters short on th