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
TOTAL MTPI STRAT M_K combines custom weighted moving averages, dynamic EMA ribbons, RMTA, and Kijun Sen baselines to evaluate overall market momentum. The strategy enters long or short positions based on composite directional thresholds, offering options for long-only or bi-directional trading. Inputs allow customization of moving average lengths, smoothing parameters, visual overlays, and backtest windows. By default, the strategy includes no stop loss mechanism.
Composite multi-indicator trend evaluation
Custom weighted moving average with extra smoothing
Kijun Sen baseline and EMA ribbon filters
Long-only and bi-directional strategy options
Customizable backtest date ranges and visual ribbons
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 Only
tradeMode
MA source
source
close
ma_source
MA length
int
90
ma_length
Use extra smoothing
bool
true
use_smoothed_line
MA extra smoothing length
int
5
smoothing_length
Change candle colors
bool
true
change_bar_color
Display buy/sell signals
bool
false
buysell_signals
Display weakening signals
bool
false
weakening_signals
EMA Small - Value
int
12
emaS_value
EMA Big - Value
int
21
emaB_value
Arrow Up Color
color
color.green
arrowColorUp
Show all 40 settings
Setting
Type
Default
Variable
Arrow Down Color
color
color.red
arrowColorDown
Arrow Size
int
50
arrowSize
Fast Limit
float
0.5
fastLimit
Slow Limit
float
0.05
slowLimit
Apply Ribbon Filling ?
bool
true
applyFilling
Source
source
hl2
src
RMTA Length
int
99
rmta_length
Highlight Movements ?
bool
true
rmta_highlight
RMTA Source
source
close
rmta_src
Color Code Candles? (Kijun Sen)
bool
false
color_code_candles
Plot Kijun Base Line?
bool
true
plot_kijun_line
Color Code Kijun Line?
bool
true
color_code_kijun_line
Kijun Line Width
int
1
line_width_kijun
Track Price for Kijun?
bool
true
track_price
Show Kijun MA on Chart?
bool
false
showma
Kijun MA Length
int
50
kijun_ma_length
Kijun MA Source
source
close
kijun_ma_src
Kijun MA Offset
int
0
kijun_offset
Smooth Length
int
22
SHA_ha_smooth_length
MA Type
string
EMA
SHA_ha_smooth_ma_type
After Smooth Length
int
15
SHA_ha_after_smooth_length
After MA Type
string
EMA
SHA_ha_after_smooth_ma_type
Heiken-Ashi Better Smoothing
string
Kaufman
smthtype
Source
string
Close
srcoption
Period
int
40
per
Signal Period
int
7
signal_length
Signal/DSL Smoothing
string
Exponential Moving Average - EMA
sigmatype
Signal type
string
SM04
sigtype
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.
Omar Edited WF is a trading strategy overlay built around Williams Fractals and multiple Exponential Moving Averages. It detects high and low fractal pivot points over configurable lookback periods alongside three adjustable EMA trendlines. Long entries are ma
This strategy calculates dynamic support and resistance levels using pivot highs and lows alongside a custom smoothed trend filter and a 3-period EMA. It identifies entry opportunities when price breaks out relative to the trend filter and short-term EMA cross
This strategy overlays the price chart and looks for VWAP pullbacks. It goes long when a short SMA crosses above VWAP after RSI has been oversold within ten bars, and short on the opposite cross after RSI has been overbought. Optional Minervini-style moving-av
This strategy combines three Exponential Moving Averages with Williams Fractals to execute trend-following or mean-reverting trades. It analyzes price structure using short, medium, and long-term EMAs along with fractal highs and lows. Entries trigger when fra
This strategy executes trades based on pivot levels, an exponential moving average, and a multi-stage smoothing trend line. It identifies support and resistance points from pivot highs and lows, combining them with price relationship rules against a custom smo
This strategy generates entry signals using pivot points and uses custom Curie moving average closing lines for exiting positions. It features risk management components including percentage-based stop loss, take profit, trailing stops, and break-even levels,