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 5m Longs Only draws rolling highest and lowest levels over two lookbacks and uses RSI zones, with MACD and RSI history, to decide when to buy and when to close. Inputs set the RSI open and close zones, a minimum percentage gain for closing, a long trailing stop percentage, a fast-open option and a days-back window. The long stop value is computed from the average entry price. 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
60
daysBackMax
Hi Low Slow
int
65
hiLowSlow
Hi Low Super Slow
int
196
hiLowSuperSlow
Buy Long Zone RSI
int
50
buyLongZoneRsi
Close Long Zone RSI
int
65
rsiCloseLongZone
Buy Short Zone RSI
int
32
buyShortZoneRsi
Buy Short Zone RSI
int
72
rsiCloseShortZone
Close Long Zone Min (%)
float
1.4
closeLongZonePerc
Close Short Zone Min (%)
float
1
closeShortZonePerc
Long Trail Stop (%)
float
3.6
longTrailPerc
Fast Open Long
bool
true
fastOpenLong
Show Slow
bool
true
showSlow
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.