This strategy combines a stack of exponential moving averages with RSI, MACD, stochastic and a volume spike check before entering long or short trades.
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
Stops and targets are set from ATR multiples, with an optional ATR trailing stop, and position size is derived from a percentage of equity at risk. Safety limits include a maximum drawdown halt, a daily trade cap, an optional session filter and a date range. 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
Fast EMA
int
9
ema_fast
Slow EMA
int
21
ema_slow
Trend EMA
int
50
ema_trend
HTF Trend EMA
int
200
ema_htf
RSI Length
int
14
rsi_len
RSI Overbought
int
65
rsi_ob
RSI Oversold
int
35
rsi_os
MACD Fast
int
12
macd_fast
MACD Slow
int
26
macd_slow
MACD Signal
int
9
macd_sig
Stochastic K
int
14
stoch_k
Stochastic D
int
3
stoch_d
Show all 28 settings
Setting
Type
Default
Variable
Volume MA Length
int
20
vol_ma_len
ATR Length
int
14
atr_len
ATR SL Multiplier
float
2.0
atr_mult_sl
ATR TP Multiplier
float
3.5
atr_mult_tp
ATR Trail Multiplier
float
1.5
atr_trail_mult
Require Volume Spike
bool
true
require_vol_confirm
Risk % per Trade
float
1.0
risk_pct
Max Drawdown % (Circuit Breaker)
float
15.0
max_drawdown_pct
Max Trades per Day
int
3
max_daily_trades
Use Trailing Stop
bool
true
use_trailing
Enable Long Trades
bool
true
trade_long
Enable Short Trades
bool
true
trade_short
Filter by Session
bool
false
use_session
Allowed Session
session
0915-1530
session_str
Start Date
time
timestamp("01 Jan 2023 00:00")
start_date
End Date
time
timestamp("31 Dec 2024 00:00")
end_date
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 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
CombinedBinHAndClucV6 is a trading strategy based on the popular BinHV45 and ClucMay72018 algorithms. It calculates dual Bollinger Bands, Exponential Moving Averages, Relative Strength Index, Average True Range, and volume metrics across primary and one-hour h
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