The TQQQ MA+TSI strategy executes trades based on triple simple moving average alignment combined with True Strength Index (TSI) divergence or momentum filters.
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
Designed primarily for intraday stock trading, it evaluates price accumulation across fast, mid, and slow moving averages within configurable New York session hours. Entries require confirmation from TSI momentum or hidden divergence within a set recency window. Exits are managed through percentage-based initial stop losses, trailing stops, break-even triggers, and session force-closes. It draws directly on the price chart.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Fast MA (5)
int
5
ma_fast_len
Mid MA (10)
int
10
ma_mid_len
Slow MA (20)
int
20
ma_slow_len
Accumulation lookback bars
int
10
acc_lookback
Min bars rising (of lookback)
int
6
acc_min_bars
Max single bar % (reject spikes)
float
1.05
max_bar_size
Morning entry only
bool
true
use_session
Session start hour (ET)
int
9
session_start
Session start minute
int
30
session_start_min
Session end hour (ET)
int
11
session_end
Session end minute
int
0
session_end_min
BE trigger %
float
1.50
be_trigger_pct
Show all 23 settings
Setting
Type
Default
Variable
Initial Stop Loss %
float
1.50
sl_pct
Trailing Stop %
float
0.75
trail_pct
Allow shorts
bool
true
allow_short
Bars between trades
int
8
cooldown_bars
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
TSI Filter Mode
string
Recent Divergence
tsi_mode
Divergence recency (bars)
int
15
tsi_recency
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 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
This strategy draws on the price chart and manages long and short entries around pivot trendlines. It filters signals with three configurable moving averages, Stochastic RSI, a higher-timeframe Stochastic RSI, and optional RSI divergence. A session window can
This strategy plots a range filter and high and low target bands on the price chart, and colors bars from filter direction. Inputs cover a backtest date window, WaveTrend Cipher B channel and average lengths, overbought and oversold levels, divergence threshol
The strategy calculates the Stochastic oscillator using specified K and D periods, then detects bullish and bearish divergences between price pivots and the D line. Bullish signals occur when price forms lower lows while Stochastic forms higher lows within the
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
A trading strategy that uses an RSI state machine tracking 50-level crossovers, pullbacks, and hidden divergences. Entries require confirmation from optional confluence filters, including an EMA touch, Fibonacci retracement zones, and Ichimoku cloud conditions