Strategy · Pine Script v6 · On the chart

QQQ 5min Pure Runner

by yalili8521

This strategy identifies trend continuation and accumulation setups on 5-minute charts.

View on GitHub

GitHub stars2on the repository
Pine versionv6current
Lines of code261
Settings16inputs
LicenceNone stated
Last update7 days ago21 Oct 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new strategy, select all of the template text and paste. Press Save and give it a name.
  4. 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.

Details

Published by

yalili8521 on GitHub

Type

Strategy, Pine Script v6

Draws

On the price chart

Category

Trend, Moving averages, Sessions & time, Scalping

Markets

Stocks, Indices

Timeframes

M1-M5, M15-H1

Risk Notes

  • The strategy enters trades without a stop loss

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Fast MA (5)int5ma_fast_len
Mid MA (10)int10ma_mid_len
Slow MA (20)int20ma_slow_len
Accumulation lookback barsint10acc_lookback
Min bars rising (of lookback)int6acc_min_bars
Max single bar % (reject spikes)float0.35max_bar_size
Morning entry onlybooltrueuse_session
Session start hour (ET)int9session_start
Session start minuteint30session_start_min
Session end hour (ET)int11session_end
Session end minuteint0session_end_min
BE trigger % (activates trail)float0.20be_trigger_pct
Show all 16 settings
SettingTypeDefaultVariable
Initial Stop Loss %float0.50sl_pct
Trailing Stop %float0.50trail_pct
Allow shortsbooltrueallow_short
Bars between tradesint5cooldown_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.

Similar Pine Scripts

Andean Scalping

by hasnocool
106 stars

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

Strategy v5 TrendMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of Andean Scalping
1 stars

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

Strategy v6 Moving averagesTrend
Updated 5 days ago · Apache-2.0 GitHub repository of PF probe 97b - intraday cap isolate
257 stars

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

Strategy v5 TrendMoving averages Repaints
Updated 6 weeks ago · None stated GitHub repository of Donald - Test Logic Futures
53 stars

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

Strategy v6 TrendMoving averages
Updated 2 months ago · MPL-2.0 GitHub repository of EUR/USD EMA9-21 + RSI Scalping Strategy

ATOM 1m scalp HK

by dearvn
43 stars

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

Strategy v5 ScalpingSupport & resistance Repaints
Updated 2 years ago · None stated GitHub repository of ATOM 1m scalp HK

More strategys

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers