Strategy · Pine Script v6 · On the chart

QQQ MA Accumulation v2

by yalili8521

This intraday strategy calculates fast, mid, and slow Simple Moving Averages to confirm alignment alongside steady bar accumulation on short timeframes.

View on GitHub

GitHub stars2on the repository
Pine versionv6current
Lines of code333
Settings27inputs
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 MA Accumulation v2 filters entries by rejecting large candle spikes and restricting execution to a defined morning session window. The strategy enters long or short positions and manages risk using a six-level partial take profit system, a fixed percentage stop loss, automatic breakeven adjustment after the first target, and a maximum bar holding duration.

Details

Published by

yalili8521 on GitHub

Type

Strategy, Pine Script v6

Draws

On the price chart

Category

Trend, Moving averages, Scalping, Sessions & time

Markets

Stocks, Indices

Timeframes

M1-M5, M15-H1

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

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.15max_bar_size
Morning session onlybooltrueuse_session
Session start hour (ET)int9session_start
Session start minuteint30session_start_min
Session end hour (ET)int11session_end
Session end minuteint0session_end_min
TP1 %float0.08tp1_pct
Show all 27 settings
SettingTypeDefaultVariable
TP1 close %float25tp1_qty
TP2 %float0.15tp2_pct
TP2 close %float20tp2_qty
TP3 %float0.25tp3_pct
TP3 close %float20tp3_qty
TP4 %float0.35tp4_pct
TP4 close %float15tp4_qty
TP5 %float0.50tp5_pct
TP5 close %float10tp5_qty
TP6 % (runner)float0.70tp6_pct
Stop Loss %float0.20sl_pct
Breakeven offset % (after TP1)float0.02be_offset_pct
Max hold bars (minutes)int30max_hold_bars
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