Retail Herd Index (RSI + MACD + Stoch) [mqsxn]The Retail Herd Index is a sentiment-style indicator that tracks how many of the “classic retail indicators”: RSI, MACD, and Stochastic are screaming the same thing at once.
Instead of following each tool separately, this script unifies them into a single index score ranging from strongly bearish to strongly bullish. The more they agree, the stronger the signal.
This gives you an immediate snapshot of when retail-favorite signals are aligned (high probability of “herd” behavior), versus when they’re mixed and uncertain.
-----
🔎 How It Works
RSI contributes bullish when it’s oversold (and optionally rising), bearish when it’s overbought (and optionally falling).
MACD contributes bullish when MACD is above Signal (and optionally histogram > 0), bearish when MACD is below Signal (and optionally histogram < 0).
Stochastic contributes bullish on a %K > %D cross in the oversold zone, bearish on a %K < %D cross in the overbought zone.
Each module can be weighted individually, disabled, or tuned with custom thresholds. The total is combined into the Herd Index, plotted as columns above/below zero. Extreme zones can trigger bar coloring, labels, and alerts.
-----
⚙️ Inputs & Settings
Modules
Use RSI / Use MACD / Use Stochastic → Toggle each component on or off.
RSI
RSI Length → Period length for RSI calculation.
RSI Overbought / Oversold → Thresholds that trigger bearish/bullish conditions.
RSI Slope Confirmation → Requires RSI to be rising when oversold or falling when overbought.
RSI Source → Input price source for RSI.
MACD
MACD Fast / Slow / Signal → Standard MACD settings.
Require MACD hist above/below zero → Adds an extra filter: bullish only if histogram > 0, bearish only if histogram < 0.
Stochastic
%K Length / Smoothing / %D Length → Standard stochastic parameters.
Overbought / Oversold → Band levels for extreme signals.
Only count crosses inside bands → Restricts signals to crosses that occur fully inside the OB/OS zones.
Weights
Weight: RSI / MACD / Stoch → Adjust each module’s importance. Setting a weight to 0 disables its contribution.
Display
Color Bars By Herd Index → Colors candles when index is extreme.
Show Extremes Labels → Labels bars when the Herd Index reaches extreme bullish or bearish.
Extreme Threshold → Absolute value at which the index is considered “extreme” (default = 2).
Retail
COT-Index-NocTradingCOT Index Indicator
The COT Index Indicator is a powerful tool designed to visualize the Commitment of Traders (COT) data and offer insights into market sentiment. The COT Index is a measurement of the relative positioning of commercial traders versus non-commercial and retail traders in the futures market. It is widely used to identify potential market reversals by observing the extremes in trader positioning.
Customizable Timeframe: The indicator allows you to choose a custom time interval (in months) to visualize the COT data, making it flexible to fit different trading styles and strategies.
How to Use:
Visualize Market Sentiment: A COT Index near extremes (close to 0 or 100) can indicate potential turning points in the market, as it reflects extreme positioning of different market participant groups.
Adjust the Time Interval: The ability to adjust the time interval (in months) gives traders the flexibility to analyze the market over different periods, which can be useful in detecting longer-term trends or short-term shifts in sentiment.
Combine with Other Indicators: To enhance your analysis, combine the COT Index with your technical analysis.
This tool can serve as an invaluable addition to your trading strategy, providing a deeper understanding of the market dynamics and the positioning of major market participants.
Retail PositioningThis script tries to estimate how inclined may retail traders be to open a position based on popular indicators RSI, Stochastic, Ichimoku, Bollinger Bands, MACD, and 200 EMA. Conditions are:
Plus values
• RSI above 70
• %K above 70 or even
• Conversion line above baseline and price above the cloud
• High above the upper band
• MACD above the signal line
Each condition gives 1 point if true or 2 points if it is also above 200 EMA
Minus values
• RSI below 30
• %K below 30 or even
• Conversion line below baseline and price below the cloud
• Low below the upper band
• MACD below the signal line
Each condition gives -1 point if true or -2 points if it is also below 200 EMA
I still consider the script as in development, so if you have some ideas on how it could be improved or traded, let me know.