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
ETHBTC MTPI combines up to five toggleable components: Liquidity-Weighted Supertrend, dual exponential moving averages, DEMA Supertrend, DEMA AFR, and Non-Linear Regression. The strategy generates long or short entries based on the combined directional bias and plots in a separate pane. Users can customize indicator parameters, toggle individual sub-indicators, and select trade modes. By default, the strategy operates without hard stop-loss or take-profit exits.
Liquidity-Weighted Moving Average and Supertrend
Toggleable DEMA Supertrend and DEMA AFR
Non-Linear Regression signal smoothing
Configurable trade modes for Long Only or Long and Short
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 LWST
bool
true
lwst_enabled
Enable Michael's EMA
bool
true
ema_enabled
Enable DEMA Supertrend
bool
true
dema_enabled
Enable Dema AFR
bool
true
afr_enabled
Enable Non-Linear Regression
bool
true
nlr_enabled
Supertrend Type
string
Smoothed
supertrendType
Factor
float
1.49
Factor2
Supertrend Length
int
33
Pd2
Fast MA Length
int
19
fast
Slow MA Length
int
42
slow
Show all 33 settings
Setting
Type
Default
Variable
EMA Small - Value
int
24
emaS_value
EMA Big - Value
int
42
emaB_value
Arrow Up Color
color
color.green
arrowColorUp
Arrow Down Color
color
color.red
arrowColorDown
Arrow Size
int
50
arrowSize
Supertrend Len
int
4
dema_subject
Supertrend Multiple
float
4.05
dema_mul
DEMA Length
int
9
dema_demalen
DEMA Source
source
hlc3
dema_src
Dema Len
int
8
afr_dema_len
Dema Source
source
close
afr_src
Period
int
14
afr_p
Factor
float
1.7
afr_atr_factor
Normalization Data Length
int
50
nlr_len
Learning Rate
float
0.1
nlr_learningRate
Smooth?
bool
true
nlr_smooth
Smooth Length
int
5
nlr_smooth_len
Coefficient b1 (close)
float
0.5
nlr_b1
Coefficient b2 (open)
float
0.4
nlr_b2
Coefficient b3 (high)
float
0.35
nlr_b3
Coefficient b4 (low)
float
0.25
nlr_b4
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 captures strong bullish momentum by combining a 200-period SMA baseline, a custom Bollinger Band, the True Strength Index (TSI) smoothed with WMAs, and the ADX trend strength indicator. It initiates long positions when price is above the 200 SMA,
This strategy combines an EMA ribbon with MACD confirmation and plots in a separate pane. It enters when ribbon alignment, optional MACD zero or signal crosses, volume, smart-money, and multi-timeframe filters agree, then exits with percentage stop loss and ta
Kenny's Strategy combines multiple exponential moving averages to identify trend changes and generate entry signals. It calculates short, medium, and long EMAs from a user-selected source and checks for alignment within specific zones. A long-term EMA filter r
This strategy combines multiple technical indicator systems into a composite trading setup. It computes an Ichimoku Cloud, an ATR-based trailing stop system (nKRAL) with optional Heikin Ashi smoothing, Bollinger Bands, Parabolic SAR, and higher-timeframe Super
Sentiment 2 is a trend-following strategy that calculates a normalized composite market sentiment score ranging between 0 and 1. It combines exponential and Hull moving average slopes, high/low midpoints, Supertrend distances, and Parabolic SAR metrics. Plotte
This strategy template provides a modular foundation for building TradingView v6 backtests. It uses a placeholder Exponential Moving Average crossover signal combined with customizable filters for higher-timeframe trend alignment, volatility regime thresholds,