Strategy · Pine Script v6 · Own pane

Sentiment 2

by ggamer5555

Sentiment 2 is a trend-following strategy that calculates a normalized composite market sentiment score ranging between 0 and 1.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code708
Settings40inputs
LicenceNone stated
Last update5 months ago25 May 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new strategy, select all of the template text and paste. Press Save and give it a name.
  4. 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.

Details

Published by

ggamer5555 on GitHub

Type

Strategy, Pine Script v6

Draws

Separate pane below the chart

Category

Trend, Moving averages, Volatility & bands, Oscillators & momentum

Markets

Any symbol

Timeframes

M15-H1, H4 and above

Risk Notes

  • The strategy enters trades without a stop loss

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
EMA Slope Array Sizeint2000array_size_ema
shorts_enabledboolfalseshorts_enabled
longs_enabledbooltruelongs_enabled
trading_enabledbooltruetrading_enabled
long_thresh_entryfloat0.8long_thresh_entry
short_thresh_entryfloat0.1short_thresh_entry
long_thresh_exitfloat0.7long_thresh_exit
short_thresh_exitfloat0.2short_thresh_exit
trading_mode entryint2trading_mode
ema_enabledbooltrueema_enabled
EMA Length Slowint200average_periods
EMA Length Mediumint150average_periods1
Show all 40 settings
SettingTypeDefaultVariable
EMA Length Fastint100average_periods2
EMA Length Ultra-Fastint50average_periods3
hma_enabledbooltruehma_enabled
hl_enabledbooltruehl_enabled
hl_sma_lengthint1hl_sma_length
hl legth 1int125hl_length1
hl legth 2int100hl_length2
hl legth 3int75hl_length3
hl legth 4int50hl_length4
super_enabledbooltruesuper_enabled
ATR Length 1int10atrPeriod_S1
Factor 1float3.0factor_S1
ATR Length 2int10atrPeriod_S2
Factor 2float4.0factor_S2
ATR Length 3int10atrPeriod_S3
Factor 3float6.0factor_S3
ATR Length 4int10atrPeriod_S4
Factor 4float8.0factor_S4
sar_enabledbooltruesar_enabled
start_SAR_1float0.001start_SAR_1
increment_SAR_1float0.001increment_SAR_1
Max Valuefloat0.1maximum_SAR_1
start_SAR_2float0.0008start_SAR_2
increment_SAR_2float0.0008increment_SAR_2
Max Valuefloat0.008maximum_SAR_2
start_SAR_3float0.0005start_SAR_3
increment_SAR_3float0.0005increment_SAR_3
Max Valuefloat0.005maximum_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.

Similar Pine Scripts

106 stars

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,

Strategy v4 TrendOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of ADX_TSI_Bol Band Trend Chaser

EMA Ribbon MACD

by iamrichardD
57 stars

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

Strategy v6 TrendMoving averages
Updated 1 year ago · Apache-2.0 GitHub repository of EMA Ribbon MACD

SOLETH MTPI

by Mikelkulla
1 stars

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

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of SOLETH MTPI

Momentum Rider DAILY FINAL

by greenpeas007
58 stars

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

Strategy v6 TrendOscillators & momentum Repaints
Updated 4 months ago · Custom licence GitHub repository of Momentum Rider DAILY FINAL

CombinedBinHAndClucV6

by viktors1982
36 stars

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

Strategy v4 Volatility & bandsOscillators & momentum Repaints
Updated 2 years ago · None stated GitHub repository of CombinedBinHAndClucV6

More strategys

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers