This strategy calculates a StockCharts Technical Rank metric alongside an O'Neil-style relative strength rating, plotting both curves in a separate pane.
1Copy the scriptPress Copy script above, or the copy button on the code below.
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
278 lines of Pine Script v5 from TradingView/SCTR_ONeilRS.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
SCTR & ONeil + RSI strategy evaluates long-term, medium-term, and short-term exponential moving average deviations, rate-of-change measurements, and relative strength index values. User settings configure lookback periods, component weightings, order types, maximum trade amount, and a visual dashboard table. The script does not define any stop loss or take profit orders, and the visible source code contains no active entry or exit execution rules.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Trading Amount
int
10000
tradeMaxAmount
Strategy Order Type
string
ST+RSI
strategyOrderType
value
source
close
value
Multiplier
int
3
Fc
LT_% Rate
int
60
LT_Rate
MT_% Rate
int
30
MT_Rate
ST_% Rate
int
10
ST_Rate
LT_EMA
int
200
LT_EMA
LT_ROC
int
125
LT_ROC
MT_EMA
int
50
MT_EMA
MT_ROC
int
20
MT_ROC
ST_EMA
int
9
ST_EMA
Show all 22 settings
Setting
Type
Default
Variable
ST_RSI
int
14
ST_RSI
RSI Length
int
14
rsiLengthInput
Source
source
close
rsiSourceInput
MA Type
string
SMA
maTypeInput
MA Length
int
14
maLengthInput
BB StdDev
float
2.0
bbMultInput
Show Trading Table
bool
true
showTradingTable
Trading Table Layout
string
1x6
TradingTableLayout
Trading Table Position
string
position.top_center
TradingTablePosition
Trading Table Size
string
size.normal
TradingTableSize
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 overlay strategy combines a machine-learning distance model with a MACD oscillator to open trades on the price chart. It compares recent history using cosine similarity or Euclidean and Lorentzian distance, then filters direction with selectable moving-av
This long-only trend-following strategy combines Ichimoku Kinko Hyo components with higher timeframe moving average filters. It triggers long entries when price trades above a higher timeframe EMA and a bullish Tenkan-Sen cross above Kijun-Sen occurs under fav
MACD + Divergences [Alorse] is a momentum strategy that calculates the MACD oscillator and identifies regular and hidden divergences using pivot high and low points. It filters trade signals with dual Exponential Moving Averages (EMA 150 and 600) to ensure tra
This strategy calculates the Moving Average Convergence Divergence indicator and plots the MACD line, signal line, and histogram in a separate pane. It enters long positions when the MACD line crosses above the signal line and enters short positions when it cr
8D Run is a Pine Script momentum strategy inspired by Linda Bradford Raschke. It tracks consecutive price closes relative to a 5-period Simple Moving Average (SMA). When price remains above the SMA for 8 or more bars and then dips below it, the strategy enters
This strategy plots a MACD oscillator in a separate pane and trades Bitcoin futures from zero-line and signal-line crosses. Optional early momentum signals, a volume filter, and a trend moving-average filter can confirm entries. It sizes positions as fixed con