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
OTHERS.D MTPI merges outputs from Median Supertrend, FDI-Adaptive Supertrend, Hyperbolic Tangent Volatility Stop, Dema AFR, and Normalized KAMA Oscillator to generate long or short signals. TradeMode input selects Long Only or Long and Short. Position size is set to 99 percent of equity. All indicators run on the price chart with overlay true. Inputs control toggle states, lengths, multiples, and sources for each component. Backtest period starts from user date.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Start Date
time
timestamp("2020-01-01")
startDate
Trade Mode
string
Long and Short
tradeMode
Enable FDI-Adaptive Supertrend
bool
true
fdi_enabled
Enable Median Supertrend
bool
true
med_st_enabled
Enable Hyperbolic Tangent Volatility Stop
bool
true
htvs_enabled
Enable Dema AFR
bool
true
dema_afr_enabled
Enable Normalized KAMA Oscillator
bool
true
nkama_enabled
Enable DEMA Adjusted Average True Range
bool
true
datr_enabled
Supertrend Len
int
10
med_st_subject
Supertrend Multiple
float
2.15
med_st_mul
Median Length
int
14
med_st_slen
Median Source
source
close
med_st_src_me
Show all 40 settings
Setting
Type
Default
Variable
Source
source
ohlc4
fdi_src
Fractal Period Ingest
int
8
fdi_per
Speed
int
30
fdi_speed
Multiplier
float
3.25
fdi_mult
Make it adaptive?
bool
true
fdi_adapt
Allow Intra-day Updating
bool
false
intraday
HTMA Length
int
3
htvs_htma_len
Source
string
ohlc4
htvs_htma_src
Hyperbolic Tangent Multiplier
float
0.3
htvs_htma_mult
ATR Length
int
30
htvs_atr_len
ATR Multiplier
float
3.0
htvs_atr_mult
DEMA Length
int
7
dema_afr_len
DEMA Source
source
close
dema_afr_src
ATR Period
int
14
dema_afr_period
ATR Factor
float
1.7
dema_afr_factor
Fast Period
int
8
nkama_fast_period
Slow Period
int
31
nkama_slow_period
Efficiency Ratio Period
int
22
nkama_er_period
Normalization Lookback
int
70
nkama_norm_period
Use Normalization
bool
true
nkama_norm
Plot Dema Atr on Chart?
bool
true
datr_showAtr
Use HA Candles?
bool
false
datr_haCandles
Dema Period
int
5
datr_periodDema
Calculation Source
source
close
datr_sourceDema
Period
int
14
datr_periodAtr
Factor
float
1.6
datr_factorAtr
Paint Candles According to trend?
bool
false
datr_paintCandles
Show Atr Moving Average as Confluence?
bool
false
datr_showMA
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