Strategy · Pine Script v6 · On the chart

Aggressive Scalper

by femibol

An open-source momentum scalping strategy for intraday charts of fast-moving stocks.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code282
Settings21inputs
LicenceNone stated
Last update6 weeks ago14 Sep 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

Aggressive Scalper trades fast and slow EMA lines with a volume surge, a minimum momentum over a lookback, an optional VWAP condition and optional pullback re-entries, capped at a set number of trades per day. Exits use an ATR stop, a take-profit at an R multiple that banks part of the position, an ATR-trailed remainder, a bar limit and an optional end-of-day flatten. Presets, a date range and a statistics panel are included.

Details

Published by

femibol on GitHub

Type

Strategy, Pine Script v6

Draws

On the price chart

Category

Scalping, Oscillators & momentum, Volume

Markets

Stocks

Timeframes

M1-M5

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
Setting chainstringAs-seen (aggressive)preset
Limit backtest to date rangeboolfalseuseRange
Starttimetimestamp("1 Jan 2026 00:00 +0000")rangeStart
Endtimetimestamp("1 Jan 2027 00:00 +0000")rangeEnd
Fast line (EMA)int9fastLenIn
Slow line (EMA)int21slowLenIn
Volume surge (x 20-bar avg)float1.5volMultIn
Momentum lookback (bars)int5momoLenIn
Min momentum over lookback (%)float0.5momoMinIn
Require price above VWAPbooltrueuseVwapIn
Allow pullback-to-fast-line re-entriesbooltrueusePullbackIn
Max trades per dayint6maxTradesIn
Show all 21 settings
SettingTypeDefaultVariable
Stop: ATR multiplefloat1.5atrMultIn
Take-profit at R multiplefloat2.0rrIn
% banked at take-profitint50partialPctIn
Runner trail: ATR multiplefloat2.0trailMultIn
Max bars in tradeint120maxBarsIn
Exit if close breaks below slow linebooltrueslowExitIn
Flatten at 15:55 ET (no overnight)boolfalseeodFlatIn
Min price $float1.0minPrice
Max price $float100.0maxPrice
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

BTC Futures MACD

by iamrichardD
57 stars

This strategy plots a MACD oscillator in a separate pane and trades Bitcoin futures from zero-line and signal-line crosses. Optional early momentum signals, a volume filter, and a trend moving-average filter can confirm entries. It sizes positions as fixed con

Strategy v6 Oscillators & momentumMoving averages Repaints
Updated 1 year ago · Apache-2.0 GitHub repository of BTC Futures MACD

5 Minute Scalp

by hasnocool
106 stars

This strategy overlays three exponential moving averages on the price chart, with periods of 9, 50, and 200. It calculates a MACD histogram from a 1-minute timeframe, applies Bollinger Bands to the histogram, and tracks two RSI oscillators of different lengths

Strategy v5 ScalpingMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of 5 Minute Scalp

This strategy plots the previous daily high and low on the price chart and calculates the Andean oscillator bull and bear components with an exponential moving average signal. It looks for a bull or bear cross of that signal, then confirms the setup against re

Strategy v5 Oscillators & momentumSupport & resistance Repaints
Updated 3 years ago · MIT GitHub repository of Daily High/Low and Andean Oscillator Strategy
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

CombinedBinHAndClucV8

by viktors1982
36 stars

This strategy trades on the price chart using multiple indicators. It enters long positions when price dips meet conditions on Bollinger Bands 40 and 20, RSI, MFI, volume and other thresholds. It exits at custom ROI profit levels based on RSI or after timeout

Strategy v4 Oscillators & momentumMoving averages Repaints
Updated 2 years ago · None stated GitHub repository of CombinedBinHAndClucV8

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