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
TQQQ TSI Divergence incorporates an Exponential Moving Average (EMA) trend filter and a customizable trading session time window. Long positions enter on hidden bullish divergences during uptrends, while short positions enter on hidden bearish divergences during downtrends. Trade management includes initial percentage stop losses, break-even trailing triggers, cooldown periods, and an end-of-session forced exit.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
TSI Long Length
int
13
tsi_long_len
TSI Short Length
int
7
tsi_short_len
TSI Signal Length
int
7
tsi_sig_len
Pivot Lookback/Forward
int
5
pivot_len
Max bars between pivots
int
50
max_pivot_dist
Use EMA trend filter
bool
true
use_trend
Trend EMA length
int
50
ema_len
Session filter
bool
true
use_session
Session start hour (ET)
int
9
sess_start_h
Session start minute
int
30
sess_start_m
Session end hour (ET)
int
15
sess_end_h
Session end minute
int
30
sess_end_m
Show all 17 settings
Setting
Type
Default
Variable
Initial Stop Loss %
float
0.50
sl_pct
BE trigger % (activates trail)
float
0.20
be_trigger_pct
Trailing Stop %
float
0.40
trail_pct
Allow shorts
bool
true
allow_short
Bars between trades
int
10
cooldown_bars
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 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
This strategy combines higher-timeframe market bias filtering with an oscillator and ADX trend detection to generate trading signals. It calculates market bias using Heikin-Ashi values across custom timeframes and filters entries using dynamic or static ADX th
This strategy executes long positions by combining a 200-period EMA trend filter, Stochastic RSI oversold crosses, and Williams Alligator retracements, supplemented by RSI divergence detection. It triggers long entries when the price trades above the 200 EMA w
Lucid 100K v5 is a Pine Script strategy for trading MES futures on 5-minute charts. It overlays buy and sell signals directly on the price chart. The strategy runs two phases based on equity and recent profit factor. Phase 1 uses trend pullback entries with EM
This strategy calculates fast and slow exponential moving averages, the Relative Strength Index, and the Average True Range directly on the price chart. It enters long positions when the fast EMA crosses above the slow EMA with RSI above the minimum threshold