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 15m uses RSI zones and two rolling highest and lowest ranges to open longs and optionally shorts, and can add to a position on lows or highs when RSI reaches set levels. Exits use RSI close zones, minimum percentage moves, separate trailing stops and fixed take profit percentages for each side. A days-back window restricts testing, and position size is a fixed cash amount.
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
120
daysBackMax
Hi Low Slow
int
45
hiLowSlow
Hi Low Super Slow
int
68
hiLowSuperSlow
Buy Long Zone RSI
int
50
buyLongZoneRsi
Close Long Zone RSI
int
64
rsiCloseLongZone
Short Short Zone RSI
int
48
shortShortZoneRsi
Close Short Zone RSI
int
33
rsiCloseShortZone
Close Short Min (%)
float
0.4
closeShortPerc
Close Long Min (%)
float
2.3
closeLongPerc
Long Trail Stop (%)
float
7.8
longTrailPerc
Short Trail Stop (%)
float
2.8
shortTrailPerc
Allow Shorts
bool
true
allowShorts
Show all 26 settings
Setting
Type
Default
Variable
Fast Open Long
bool
true
fastOpenLong
Fast Open Short
bool
true
fastOpenShort
Fast Open Short RSI
int
70
fastOpenLongRsi
Fast Open Short RSI
int
28
fastOpenShortRsi
Add On Lows
bool
true
addOnLows
Add Low RSI
int
43
addLowRsi
Add On Highs
bool
false
addOnHighs
Add High RSI
int
60
addHighRsi
Show Slow
bool
true
showSlow
Long Short Closes
bool
true
longShortCloses
Long Short Stops
bool
true
longShortStops
Buy Short Zone RSI
int
39
buyShortZoneRsi
Long Take Profit (%)
float
17.7
longProfitPerc
Short Take Profit (%)
float
9.3
shortProfitPerc
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 plots on the price chart and enters when three smoothed moving averages are aligned, RSI is on the matching side of 50, and a Williams fractal appears. An upward stack with RSI above 50 and a down fractal opens a long; the opposite setup opens a
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 1-minute futures contracts on Binance. It plots pivot high and low resistance and support levels on the price chart, along with an EMA and a custom Cto indicator. Long and short entries trigger on EMA and Cto crossovers combined with price
KC15 is a price-chart strategy that configures two moving averages, a Bollinger Band Width Percentile filter, and PMARP entry and exit thresholds for long and short trades. Users can switch each average between SMA and EMA, set lengths and colors, and toggle l
This strategy identifies reversal opportunities based on liquidity sweeps and multi-gate confluence scoring. It evaluates setups using mandatory conditions such as swing sweeps, body and ATR filters, and dual EMA higher-timeframe trend alignment, alongside opt
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.