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
SlimTrades 2m uses RSI zones together with two rolling highest and lowest ranges to open longs and, if allowed, shorts. Exits come from RSI close zones, a minimum percentage move and separate trailing stop percentages for long and short sides. Optional switches control shorts, fast opens and long-short closes. Position size is a fixed cash amount, and the code limits testing to a recent days window.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Max Days Back to Test
int
30
daysBackMax
Hi Low Slow
int
173
hiLowSlow
Hi Low Super Slow
int
234
hiLowSuperSlow
Buy Long Zone RSI
int
49
buyLongZoneRsi
Close Long Zone RSI
int
71
rsiCloseLongZone
Short Short Zone RSI
int
52
shortShortZoneRsi
Close Short Zone RSI
int
36
rsiCloseShortZone
Close Short Min (%)
float
1
closeShortPerc
Close Long Min (%)
float
1
closeLongPerc
Long Trail Stop (%)
float
2.9
longTrailPerc
Short Trail Stop (%)
float
2.3
shortTrailPerc
Allow Shorts
bool
true
allowShorts
Show all 17 settings
Setting
Type
Default
Variable
Fast Open Long
bool
true
fastOpenLong
Fast Open Short
bool
false
fastOpenShort
Show Slow
bool
true
showSlow
Long Short Closes
bool
false
longShortCloses
Buy Short Zone RSI
int
39
buyShortZoneRsi
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 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 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
LuxAlgo Hybrid Gold Scalper is a price-chart strategy aimed at gold. It stacks a fast, slow, trend and 200-period bias EMA to mark trend direction, then filters strength with RSI, ADX and an intraday VWAP. Swing highs and lows are marked from pivot length. Set
This strategy tracks an opening session time range to establish directional bias and triggers pullback trades using Stochastic RSI. Once price breaks out of the initial range, it establishes a directional bias and enters when the Stochastic RSI crosses over in
This trend-following scalping strategy combines a moving average trend filter with the Absolute Strength Histogram indicator. It opens long positions when price is above a selectable baseline moving average and the histogram signals bullish momentum, and short