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
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.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Setting chain
string
As-seen (aggressive)
preset
Limit backtest to date range
bool
false
useRange
Start
time
timestamp("1 Jan 2026 00:00 +0000")
rangeStart
End
time
timestamp("1 Jan 2027 00:00 +0000")
rangeEnd
Fast line (EMA)
int
9
fastLenIn
Slow line (EMA)
int
21
slowLenIn
Volume surge (x 20-bar avg)
float
1.5
volMultIn
Momentum lookback (bars)
int
5
momoLenIn
Min momentum over lookback (%)
float
0.5
momoMinIn
Require price above VWAP
bool
true
useVwapIn
Allow pullback-to-fast-line re-entries
bool
true
usePullbackIn
Max trades per day
int
6
maxTradesIn
Show all 21 settings
Setting
Type
Default
Variable
Stop: ATR multiple
float
1.5
atrMultIn
Take-profit at R multiple
float
2.0
rrIn
% banked at take-profit
int
50
partialPctIn
Runner trail: ATR multiple
float
2.0
trailMultIn
Max bars in trade
int
120
maxBarsIn
Exit if close breaks below slow line
bool
true
slowExitIn
Flatten at 15:55 ET (no overnight)
bool
false
eodFlatIn
Min price $
float
1.0
minPrice
Max price $
float
100.0
maxPrice
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 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
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
This strategy combines Smart Money Concepts (BOS and CHoCH) with moving average trend filtering and volume spikes to generate trade signals. It checks for 20 EMA and 50 EMA alignment, along with volume 20% above its 20-period SMA. Long entries require a bullis
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
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
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