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
BTC RSI Momentum v20 enters long or short when RSI pushes through set levels plus a gap, with optional candle color, EMA 200 trend, ATR range and body-size filters, and a pullback re-entry option. Exits use a percent stop loss, a take profit that changes with volatility, an optional wider stop around major macro-event hours and an ATR trailing stop. A cooldown spaces trades. The code comments are in Indonesian and the README lists limitations.
RSI breakout entries with EMA 200, ATR and candle filters
Pullback continuation re-entry option
Percent stop loss with macro-event widening
Volatility-dependent take profit and ATR trailing stop
TP gentle (vol di atas wall1, 2-bucket) — v20 dd-preserving
float
2.15
tp_gentle
Wall-1 ATR% (low->mid)
float
0.40
wall1
Wall-2 ATR% (mid->high, 3-bucket)
float
0.58
wall2
Lebarkan SL saat jam FOMC/NFP (kurangi snapback-SL palsu)
bool
true
use_macro_sl
Pengali SL saat macro-event
float
1.3
macro_mult
Jam SEBELUM event (mulai window)
int
2
macro_before
Jam SESUDAH event (selesai window)
int
3
macro_after
Use trailing stop
bool
true
use_trail
Trail ATR multiplier
float
2.0
trail_mult
Trail min %
float
0.5
trail_min
Trail max %
float
2.0
trail_max
Trail activation %
float
2.5
trail_act
Garis & zona TP/SL
bool
true
show_zones
Panah masuk (base + pullback)
bool
true
show_arrows
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 enters long or short on the price chart when price is on the correct side of a 200-period EMA, MACD agrees, RSI is not at the opposing extreme, ADX exceeds a threshold, volume beats a 20-bar average, and close breaks the recent high or low. A tim
This strategy trades longs and shorts on the price chart. Long entries require a close above the prior Donchian high, a close above a long-term SMA, and RSI above a threshold, with size set as a percentage of equity. Long exits use a stop at the prior Donchian
This strategy trades Donchian channel breakouts on the price chart and exits on a shorter Donchian channel. It sizes each unit from a percentage of equity and an ATR-based initial stop, then adds units as price moves a set ATR distance, up to a maximum unit co
This strategy plots dynamic pivot-based support and resistance trendlines on the price chart and trades breakouts beyond those lines. By default it allows longs only when EMA 50 is above EMA 200 and an RSI-SMA momentum filter is met, with an ATR entry buffer.
Edge 59 is a price-chart strategy that combines an ADX directional filter, a weighted moving average, and a trend-follower channel. The channel uses an exponential moving average of close, optionally smoothed by linear regression, and a percentage of a fixed 2
AG Momentum Breakout is a strategy that identifies continuation signals after pullbacks in trending markets. It filters for uptrends using EMAs and detects recent pullbacks via RSI conditions before entering on RSI crossovers above 50 with ADX confirmation. Th