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
QQQ 1min Pure Runner filters entries by requiring an accumulation or distribution sequence of consecutive rising or falling bars while rejecting bars exceeding a maximum percentage size to prevent spike chasing. Trade execution is bounded by a daily session window and post-exit cooldown bars. Positions are managed with an initial stop loss, a break-even trigger, a trailing stop, and an end-of-session forced close.
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
0.10
max_bar_size
Use session filter
bool
true
use_session
Session start hour (ET)
int
4
session_start_h
Session start minute
int
0
session_start_m
Session end hour (ET)
int
20
session_end_h
Session end minute
int
0
session_end_m
BE trigger % (activates trail)
float
0.10
be_trigger_pct
Show all 16 settings
Setting
Type
Default
Variable
Initial Stop Loss %
float
0.20
sl_pct
Trailing Stop %
float
0.15
trail_pct
Allow shorts
bool
true
allow_short
Bars between trades (1-min bars)
int
15
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 overlay strategy marks short-term turning points on the price chart and enters SPY option-style trades from them. It plots simple moving averages of highs and lows, draws up and down reversal arrows, and colors bars when a short-term extreme coincides wit
This strategy generates trading signals on the 5-minute price chart using Williams Fractals for trend reversals, combined with EMA fast and slow trend filters and optional RSI confirmation. Long entries trigger on bullish fractals aligned with rising EMA and R
This strategy trades EUR/USD on the price chart using a fast and slow exponential moving average crossover filtered by RSI. It enters long when the fast EMA crosses above the slow EMA while RSI is above 50 and below the overbought level, and enters short on th
Gold Scalping BOS & CHoCH with MA Filter is a strategy that identifies market structure shifts using Break of Structure (BOS) and Change of Character (CHoCH) signals alongside exponential moving average trend filters. Long trades enter when bullish BOS, bullis
This strategy plots on the price chart and enters from a moving-average filter, ADX and Gann colours. Price above a 200-period EMA allows only longs; price below allows only shorts. A Gann aqua colour with ADX above a key level opens a long, and a Gann brown c
This long-only strategy calculates three exponential moving averages with lengths of 50, 100, and 150 periods, plotting them directly on the price chart. It also calculates a 14-period RSI and MACD. The strategy opens long positions when the moving averages al