This overlay strategy combines SuperTrend, ADX, OBV, MACD, directional movement, EMA, and a volatility filter to open long or short trades sized as a percent of equity.
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
Each filter and each side can be switched off. Users set EMA lengths, DI length, volatility lookback, and a minimum range percent. By default it exits when the combined signal reverses; optional exits follow SuperTrend, DI, or MACD flips. It draws SuperTrend, high-low, position, take-profit, stop, EMA, and VWAP lines when enabled. Orders fill on bar close after a chosen start date.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Start
time
timestamp("2025-01-01 00:00 +0900")
start_time
ActLong
bool
true
active_long
ActShort
bool
true
active_short
SuperTrend
bool
true
show_st_line
HL Line
bool
true
show_Volatility_HL_line
EMA
bool
false
show_ema_line
Position
bool
true
show_position_line
TP
bool
true
show_tp_line
SL
bool
false
show_sl_line
VWAP
bool
false
show_vwap_line
ST
bool
true
ST_on
ADX
bool
true
ADX_on
Show all 40 settings
Setting
Type
Default
Variable
OBV
bool
true
OBV_on
MACD
bool
true
MACD_on
DI 방향성
bool
true
DI_on
DI 이격도
bool
true
Limit_on
EMA
bool
true
EMA_on
Volatility
bool
true
Volatility_on
VWAP
bool
false
VWAP_on
체크된 신호반전 시 청산 ⇛
bool
true
exit_on_opposite
SuperTrend
bool
false
exit_on_st_flip
DI방향
bool
false
exit_on_di_flip
MACD
bool
false
exit_on_macd_flip
EMA Fast
int
8
emalen_fast
EMA Slow
int
13
emalen_slow
src_ema
source
close
src_ema
Volatility Length
int
35
rangeLookback
Volatility Limit(%)
float
3.3
minRangePercent
+DI/-DI방향|
bool
true
use_di_filter
DI 길이
int
33
length_di
DI Src
source
close
src_di
DMI DI
int
15
dmiLength
ADX평활
int
22
adxSmoothing
ADX임계
float
22.0
adxThreshold
OBV EMA
int
12
length_obv
기준선(롱)
int
0
Baseline_long
(숏)
int
2
Baseline_short
MACD Fast length
int
21
fastLen_macd
MACD Slow length
int
93
slowLen_macd
EMA Period
int
15
emaPeriod
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
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
This strategy calculates Bollinger Bands, a configurable moving average slope, Stochastic RSI, ATR, and ADX directly on the price chart. It evaluates trend bias and momentum conditions to generate long and short swing entries using percent-of-equity sizing. Th
This strategy trades long and short on the price chart using a multi-timeframe TradingLatino setup. It requires EMA 10 to cross or sit above or below EMA 55 on the one-hour, four-hour, and daily charts, together with a positive ADX slope, a directional monitor