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 5min Pure Runner enters long or short positions based on an aligned moving average stack, rising or falling price grinds within a lookback period, and a maximum bar size threshold to avoid volatility spikes. Entries are restricted to an optional morning session window with trade cooldown periods. Exits are managed via an initial stop loss, a break-even trigger that initiates a trailing stop, and a mandatory end-of-day exit at 16:00 ET. All plots overlay 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
0.35
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 % (activates trail)
float
0.20
be_trigger_pct
Show all 16 settings
Setting
Type
Default
Variable
Initial Stop Loss %
float
0.50
sl_pct
Trailing Stop %
float
0.50
trail_pct
Allow shorts
bool
true
allow_short
Bars between trades
int
5
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.
Andean Scalping is a Pine Script v5 strategy template designed for backtesting trading signals. It features session and date-range filtering, directional trade toggles for long and short entries, and optional trend filtering tools including higher-timeframe EM
This strategy identifies long and short positions using a dual moving average crossover on the price chart. The fast and slow simple moving averages generate crossover signals that trigger market entries. The script caps the number of intraday filled orders to
Donald - Test Logic Futures is an overlay strategy designed for intraday futures trading. It combines kernel regression functions with exponential moving averages to evaluate price retracements and entry timing. Trades are filtered by session execution windows
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 overlay strategy targets one-minute ATOM scalps. It tracks pivot highs and lows as resistance and support, compares a three-period EMA with a multi-stage smoothed close, and flags long or short when price crosses that curve in the matching direction. Dail