This intraday strategy calculates fast, mid, and slow Simple Moving Averages to confirm alignment alongside steady bar accumulation on short timeframes.
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 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.
Triple SMA alignment stack with spike rejection filter
Morning trading session filter for US market hours
Six-level partial take profit scaling framework
Breakeven stop adjustment and maximum bar holding time exit
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.15
max_bar_size
Morning session 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
TP1 %
float
0.08
tp1_pct
Show all 27 settings
Setting
Type
Default
Variable
TP1 close %
float
25
tp1_qty
TP2 %
float
0.15
tp2_pct
TP2 close %
float
20
tp2_qty
TP3 %
float
0.25
tp3_pct
TP3 close %
float
20
tp3_qty
TP4 %
float
0.35
tp4_pct
TP4 close %
float
15
tp4_qty
TP5 %
float
0.50
tp5_pct
TP5 close %
float
10
tp5_qty
TP6 % (runner)
float
0.70
tp6_pct
Stop Loss %
float
0.20
sl_pct
Breakeven offset % (after TP1)
float
0.02
be_offset_pct
Max hold bars (minutes)
int
30
max_hold_bars
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