This strategy plots a custom SuperTrend Polyfactor Oscillator in a separate pane using ATR, adjustable factors, and normalization options on the chosen indicator source.
1Copy the scriptPress Copy script above, or the copy button on the code below.
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
246 lines of Pine Script v5 from 策略/Multi-Step FlexiSuperTrend - Strategy.txt, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
Multi-Step FlexiSuperTrend - Strategy generates long, short, or both direction signals based on the oscillator values with multi-step take profit levels and percentages for position sizing. Main settings control the oscillator length, factor increments, take profit tiers, and normalization method. It draws exclusively in a separate pane without overlay on price.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Trading Direction
string
Both
tradeDirectionChoice
Indicator Source
source
hlc3
indicatorSource
Indicator Length
int
10
indicatorLength
Starting Factor
float
0.618
startingFactor
Increment Factor
float
.382
incrementFactor_1
Normalization Method
string
None
normalizeMethod
Take Profit Level 1 (%)
float
2.0
tp_level1
Take Profit Level 2 (%)
float
8.0
tp_level2
Take Profit Level 3 (%)
float
18.0
tp_level3
Take Profit Percent 1 (%)
float
30.0
tp_percent1
Take Profit Percent 2 (%)
float
20.0
tp_percent2
Take Profit Percent 3 (%)
float
15.0
tp_percent3
Show all 20 settings
Setting
Type
Default
Variable
mesh
bool
true
mesh
upCss
color
color.new(#089981, 90)
upCss
dnCss
color
color.new(#f23645, 90)
dnCss
Length
int
10
len
Factor
float
15.
mlt
Contrarian Signals
bool
true
clbl
Bull Color
color
#008cff
colu
Bear Color
color
#ff4800
cold
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.
MACD + Divergences [Alorse] is a momentum strategy that calculates the MACD oscillator and identifies regular and hidden divergences using pivot high and low points. It filters trade signals with dual Exponential Moving Averages (EMA 150 and 600) to ensure tra
This strategy calculates the Moving Average Convergence Divergence indicator and plots the MACD line, signal line, and histogram in a separate pane. It enters long positions when the MACD line crosses above the signal line and enters short positions when it cr
An ADX-based trend-following strategy that enters long positions when the positive directional indicator (DI+) crosses above the Average Directional Index (ADX) while ADX remains below a preset threshold and a fast EMA is above a slow EMA. It allows adding to
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
This strategy evaluates the dynamic relationship between price and a chosen moving average across six diagnostic dimensions: trend, respect, extension, compression, acceleration, and exhaustion. It plots a normalized relationship oscillator bounded between -10
This strategy combines the Moving Average Convergence Divergence oscillator with an Exponential Moving Average trend filter. It enters long positions when the MACD histogram crosses above zero while price stays above the long-term EMA filter. Long trades close