MTF Confluence Strategy is a Pine Script strategy that generates long and short signals based on Supertrend flips on the chart timeframe confirmed by Supertrend on a higher timeframe.
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
Signals require ADX above a threshold for trending conditions and optional volume expansion. Position size is calculated from risk percentage divided by ATR-based stop distance, capped at a percentage of equity. An ATR-based stop loss and optional target are set on entries. Trades close if the higher timeframe direction reverses. Supertrend line is plotted on the chart for trend visualization. Settings allow customization of ATR parameters, higher timeframe, filter requirements, risk levels, and session restrictions.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
ATR length
int
10
atrLen
ATR mult
float
2.0
atrMult
HTF confirmation
timeframe
240
htf
Require ADX trend
bool
true
useAdx
ADX length
int
14
adxLen
ADX min
float
22
adxMin
Require volume expansion
bool
false
useVol
Volume SMA length
int
20
volLen
Risk per trade %
float
1.0
riskPct
Stop ATR x
float
2.0
slMult
Target ATR x
float
0.0
tpMult
Max position % of equity
float
90
maxExpo
Show all 14 settings
Setting
Type
Default
Variable
Restrict hours
bool
false
useSess
Session
session
0800-2000
sess
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 enters long positions during a specified trading session when multiple technical indicators align. It executes a buy order when the low drops below the lower Bollinger Band while RSI and ADX exceed configurable threshold values, price closes abov
This strategy calculates the cross-market ratio between gold and EURUSD alongside an ATR volatility percentage and a higher-timeframe daily SMA trend filter. It executes session-tailored entries across the Asian, London, and New York sessions using RSI, ADX, a
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 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
This strategy enters long or short on the price chart when price is on the correct side of a 200-period EMA, MACD agrees, RSI is not at the opposing extreme, ADX exceeds a threshold, volume beats a 20-bar average, and close breaks the recent high or low. A tim