This overlay indicator scores stock swing setups from fast and slow EMAs, a weekly EMA, RSI and MACD momentum, relative strength versus a benchmark, OBV volume flow, and ATR volatility.
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 indicator, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.
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
2 Week Swing Stock Advisor - Position Mode suggests probe, starter, add-on, and full buys plus partial and full exits, then simulates cash, position size, equity, and a buy-and-hold comparison on the price chart. Settings change score thresholds, holding time, staged allocations, stop, breakeven, and profit-giveback rules. It is an indicator, so it does not place live orders.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Fast EMA
int
20
fastLen
Slow EMA
int
60
slowLen
Higher Timeframe
timeframe
W
weeklyTf
Weekly EMA
int
20
weeklyEmaLen
Exit Confirmation Bars
int
3
exitConfirmBars
Minimum Buy Score
int
4
minBuyScore
Minimum Add Score
int
4
minAddScore
Minimum Exit Score
int
4
minExitScore
Signal Cooldown Bars
int
5
cooldownBars
Minimum Holding Bars
int
15
minHoldBars
Full Buy Score
int
5
bigBuyScore
Partial Exit Minimum Profit %
float
8.0
smallExitProfitPct
Show all 40 settings
Setting
Type
Default
Variable
Partial Exit Profit Giveback %
float
35.0
smallExitGivebackPct
Full Exit Maximum Loss %
float
18.0
fullExitLossPct
Initial Cash $
float
1000.0
initialCapital
Simulation Start Date: 2026-01-01
time
1767225600000
simulationStart
History Start Grace Days
int
7
historyGraceDays
Starter Buy Target Position %
float
25.0
smallBuyTargetPct
Turnaround Probe Target Position %
float
8.0
turnProbeTargetPct
Add-on Buy Target Position %
float
50.0
addBuyTargetPct
Full Buy Target Position %
float
100.0
bigBuyTargetPct
Partial Exit Sell Percentage %
float
50.0
smallExitSellPct
Allow Partial Exit
bool
true
allowSmallExit
Allow Direct Full Buy From Cash
bool
false
directBigBuyAllowed
Simulation Rule: One Trade Per Day
bool
true
oneTradePerDay
Minimum Valid Trade Value $
float
1.0
minTradeValue
Initial Maximum Loss %
float
15.0
initialStopPct
Profit Protection Activation %
float
30.0
profitProtectStartPct
Maximum Profit Giveback %
float
70.0
profitGivebackPct
Breakeven Buffer %
float
1.0
breakevenBufferPct
Major Drawdown %
float
35.0
majorDrawdownPct
Profit Lock Activation %
float
10.0
profitLockStartPct
Profit Lock Giveback %
float
28.0
profitLockGivebackPct
Climax Run Threshold %
float
20.0
climaxRunPct
Climax Drawdown Full Exit %
float
8.0
climaxDrawdownPct
Show Watch Warning
bool
true
showSoftWarning
Strong Hold Minimum Score
int
6
strongHoldScoreNeeded
Strong Hold Allowed Drawdown %
float
18.0
strongHoldDrawdownPct
Strong Hold Activation Profit %
float
8.0
strongHoldMinProfitPct
Market Benchmark
symbol
NASDAQ:QQQ
marketSymbol
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.
ADX Strategy (original) is an overlay indicator that identifies trend-following trade signals using the Average Directional Index (ADX) combined with a Simple Moving Average filter. A long signal is generated when the ADX rises above a user-defined trend level
Double Screened Decision is a multi-timeframe trend and momentum indicator overlaid directly on the price chart. It dynamically selects a higher timeframe based on the active chart resolution to evaluate higher-timeframe MACD, Bollinger Bands, RSI, and Stochas
This indicator plots Bollinger Bands on the price chart alongside a baseline moving average to identify trend-aligned swing setups. It calculates trend bias by comparing the Bollinger Bands basis to a customizable moving average, such as a 200 EMA. Trade signa
Index Intraday Analyst overlays CBOE cash indices such as SPX, NDX, RUT, and DJX. It plots a multi-EMA ribbon, a session-anchored TWAP with standard-deviation bands, and session levels such as prior-day high, low, and close, the opening range, and the high and
RePaNoCHa V4 is an overlay alert indicator that plots a Tillson T3 moving average on the price chart and colors it by whether the line is rising or falling. It combines that slope with a range filter, ADX, parabolic SAR, RSI, and MACD to mark long and short si
This indicator plots an exponential moving average and marks momentum-based trade sessions on the price chart. It treats RSI between 45 and 55 as chop and shades the background when momentum is present. Long and short labels appear when MACD crosses its signal