This strategy overlays the price chart and switches among RSI-2 mean reversion, SuperTrend, MACD crossover, triple EMA, Bollinger Bands, or a combined multi-indicator mode.
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
Simpleton v0.01 KIMI - Enhanced enters from the selected signals and exits with percentage take-profit and stop-loss, or optional ATR multiples, plus an optional ATR trailing stop. Position size defaults to a share of equity and can scale with ATR. Optional daily EMA-200 and ADX filters, plus a post-exit cooldown, restrict new trades. A repaint toggle exists but is off by default.
Selectable single-indicator or multi-indicator modes
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Strategy Mode
string
Multi-Indicator
strategyMode
Use Take-Profit / Stop-Loss
bool
true
useTPSL
Take-Profit % (fallback if ATR-TP off)
float
3.0
tpPercent
Stop-Loss % (fallback if ATR-SL off)
float
2.0
slPercent
Position Size (% of Equity)
float
10.0
positionSizePct
Scale size with ATR
bool
false
useATRSize
Use trailing stop (ATR-based)
bool
false
useTrailing
Trailing-stop ATR multiplier
float
0.5
trailATRMult
Enable HTF trend filter (EMA-200)
bool
false
useHTF
HTF for EMA-200
timeframe
D
higherTF
Enable ADX trend filter
bool
false
useADX
ADX Length
int
14
adxLength
Show all 38 settings
Setting
Type
Default
Variable
ADX minimum for trend
float
20.0
adxThresh
Use ATR-based TP/SL
bool
false
useATRTP
ATR TP multiplier
float
1.5
atrTPMultiplier
ATR SL multiplier
float
1.0
atrSLMultiplier
Bars to wait after exit before new entry
int
0
coolDownBars
Allow repainting (NOT RECOMMENDED)
bool
false
repaintMode
RSI-2 Mode
string
Classic
rsiMode
RSI Length
int
2
rsiLength
RSI Oversold (Classic)
int
30
rsiOversoldCls
RSI Overbought (Classic)
int
70
rsiOverboughtCls
RSI Oversold (Tight)
int
10
rsiOversoldTight
RSI Overbought (Tight)
int
90
rsiOverboughtTight
Use 200-EMA trend filter (RSI-2)
bool
true
useTrendFilter
SuperTrend Factor
float
3.0
stFactor
SuperTrend ATR Period
int
10
stPeriod
MACD Fast
int
12
macdFast
MACD Slow
int
26
macdSlow
MACD Signal
int
9
macdSignal
Fast EMA
int
9
emaFastLen
Medium EMA
int
21
emaMedLen
Slow EMA
int
50
emaSlowLen
BB Length
int
20
bbLength
BB Multiplier
float
2.0
bbMult
Base min confirmations
int
2
minConfInput
Enable volume filter
bool
false
useVolFilter
Auto-raise min confirmations on low TF
bool
false
useAutoMinConf
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 mean-reversion strategy combines multi-timeframe exponential moving averages, Bollinger Bands, and the Relative Strength Index. It generates long and optional short trade signals when price interacts with the Bollinger Bands alongside RSI threshold confir
This strategy plots a simple moving average basis and upper and lower Bollinger bands on the price chart, with a fill between the bands. It also calculates RSI. It opens one long trade when RSI is above 25, price is at or below the lower band, and no position
BB RSI Strategy combines Bollinger Bands, RSI, and multiple simple moving averages directly on the main price chart. It enters long positions when price drops below the lower Bollinger Band while RSI is below a set limit, and enters short positions when price
This strategy executes mean-reversion trades by combining RSI momentum, Bollinger Bands volatility, dynamic ATR stops, and Exponential Moving Averages for trend filtering. It seeks entry opportunities when price reaches extreme Bollinger Band boundaries alongs
Calculates a reversal confidence score combining Bollinger Band overextension, RSI exhaustion, and price distance from a exponential moving average. The strategy overlays VWAP, EMA, and Bollinger Bands directly on the price chart. Long signals trigger when pri
This strategy plots an anchored volume-weighted average price and two standard-deviation bands on the price chart. It buys dips below the inner band when a short RSI is oversold and an optional EMA trend filter agrees, and it can sell rallies above the inner b