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
Sentiment 2 combines exponential and Hull moving average slopes, high/low midpoints, Supertrend distances, and Parabolic SAR metrics. Plotted in a separate pane with entry and exit threshold lines, the strategy generates long or short trade signals when sentiment crosses predefined values. Users can toggle individual technical components and adjust threshold levels or trading modes. A key limit is that the strategy operates without a hard stop loss by default.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
EMA Slope Array Size
int
2000
array_size_ema
shorts_enabled
bool
false
shorts_enabled
longs_enabled
bool
true
longs_enabled
trading_enabled
bool
true
trading_enabled
long_thresh_entry
float
0.8
long_thresh_entry
short_thresh_entry
float
0.1
short_thresh_entry
long_thresh_exit
float
0.7
long_thresh_exit
short_thresh_exit
float
0.2
short_thresh_exit
trading_mode entry
int
2
trading_mode
ema_enabled
bool
true
ema_enabled
EMA Length Slow
int
200
average_periods
EMA Length Medium
int
150
average_periods1
Show all 40 settings
Setting
Type
Default
Variable
EMA Length Fast
int
100
average_periods2
EMA Length Ultra-Fast
int
50
average_periods3
hma_enabled
bool
true
hma_enabled
hl_enabled
bool
true
hl_enabled
hl_sma_length
int
1
hl_sma_length
hl legth 1
int
125
hl_length1
hl legth 2
int
100
hl_length2
hl legth 3
int
75
hl_length3
hl legth 4
int
50
hl_length4
super_enabled
bool
true
super_enabled
ATR Length 1
int
10
atrPeriod_S1
Factor 1
float
3.0
factor_S1
ATR Length 2
int
10
atrPeriod_S2
Factor 2
float
4.0
factor_S2
ATR Length 3
int
10
atrPeriod_S3
Factor 3
float
6.0
factor_S3
ATR Length 4
int
10
atrPeriod_S4
Factor 4
float
8.0
factor_S4
sar_enabled
bool
true
sar_enabled
start_SAR_1
float
0.001
start_SAR_1
increment_SAR_1
float
0.001
increment_SAR_1
Max Value
float
0.1
maximum_SAR_1
start_SAR_2
float
0.0008
start_SAR_2
increment_SAR_2
float
0.0008
increment_SAR_2
Max Value
float
0.008
maximum_SAR_2
start_SAR_3
float
0.0005
start_SAR_3
increment_SAR_3
float
0.0005
increment_SAR_3
Max Value
float
0.005
maximum_SAR_3
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 captures strong bullish momentum by combining a 200-period SMA baseline, a custom Bollinger Band, the True Strength Index (TSI) smoothed with WMAs, and the ADX trend strength indicator. It initiates long positions when price is above the 200 SMA,
This strategy combines an EMA ribbon with MACD confirmation and plots in a separate pane. It enters when ribbon alignment, optional MACD zero or signal crosses, volume, smart-money, and multi-timeframe filters agree, then exits with percentage stop loss and ta
This strategy detects relative performance between Solana and Ethereum using a liquidity-weighted supertrend (LWST) derived from fast and slow weighted moving averages of liquidity times close. It plots the Tsl2 trend line in a separate pane and issues buy sig
This strategy overlays a trend moving average and Supertrend bands directly on the price chart while calculating Stochastic RSI values internally. Long positions trigger when price exceeds the moving average, Supertrend signals bullish momentum, and the StochR
This strategy combines exponential moving averages (EMA 9, 21, 50), RSI, MACD, and Supertrend indicators to enter long positions. It triggers trades using six dynamic setups based on momentum breakouts, EMA crossovers, and pullbacks. Position sizing is compute
CombinedBinHAndClucV6 is a trading strategy based on the popular BinHV45 and ClucMay72018 algorithms. It calculates dual Bollinger Bands, Exponential Moving Averages, Relative Strength Index, Average True Range, and volume metrics across primary and one-hour h