PROTECTED SOURCE SCRIPT

Advanced Momentum Indicators Bias

74
This script is a versatile tool designed to analyze and display the directional bias of up to 25 technical momentum indicators on a trading chart. It does not overlay on the price chart, instead presenting its results in a separate, customizable table. The table shows whether each selected indicator signals an "up" or "down" trend, with some indicators further categorized by signal strength ("strong" or "weak"). This provides traders with a consolidated view of market momentum and trend direction.
Key Features
1. Indicator Selection and Customization
Supported Indicators: The script allows users to toggle the inclusion of 25 technical indicators:
RSI, MACD, Stochastic, MFI, Williams %R, CCI, ADX, ROC, Momentum, Ichimoku, Parabolic SAR, Aroon, OBV, Chaikin Oscillator, Ultimate Oscillator, Trix, Bull Bear Power, Elder Ray, Gator Oscillator, Keltner Channels, Schaff Trend Cycle, Zig Zag, Donchian Channels, Envelopes, and Fractals.

Customization Options:
Table Position: Choose from top-left, top-right, bottom-left, or bottom-right on the chart.

Colors: Set colors for "up" (e.g., green) and "down" (e.g., red) directions, as well as text color.

Display Toggles: Show/hide the table, individual indicator rows, or a total count row.

2. Advanced Direction Calculation
Oscillator Logic: For indicators like RSI, MACD, and Stochastic (oscillators), the script uses advanced logic to determine direction:
It checks the indicator’s level against a threshold (e.g., 50 for RSI) and its trend (rising or falling).

Possible outcomes:
Strong Up: Above threshold and rising.

Weak Up: Above threshold but falling.

Strong Down: Below threshold and falling.

Weak Down: Below threshold but rising.

Simple Logic: For trend-based indicators (e.g., ADX, Ichimoku, Parabolic SAR), a straightforward "up" or "down" is determined using indicator-specific criteria.

3. Table Display
Structure: The table has two columns:
Indicator Name: Lists the selected indicators.

Direction: Shows "Up" or "Down" with color coding.

Color Coding:
Strong Up: Solid "up" color (e.g., green).

Weak Up: Lighter "up" color.

Strong Down: Solid "down" color (e.g., red).

Weak Down: Lighter "down" color.

Simple indicators (without strength logic) use solid "up" or "down" colors.

Rows: Includes a header row, optional rows for each indicator (if enabled), and an optional total row.

4. Total Count Toggle
Toggle Option: "Use Advanced Counts" switches between two display modes for the total row:
Simple Mode (Off): Shows total "up" and "down" counts (e.g., "5 up, 3 down").

Advanced Mode (On): Breaks down counts into "Strong Up," "Weak Up," "Strong Down," and "Weak Down" (e.g., "Strong Up: 2, Weak Up: 3, Strong Down: 1, Weak Down: 2").

This flexibility caters to traders seeking either a quick summary or detailed insights.

5. Manual Calculations
For indicators not natively supported in Pine Script (e.g., TRIX, OBV, Chaikin Oscillator, Ultimate Oscillator), the script includes manual calculations to ensure full functionality.

How It Works
Direction Calculation:
Each indicator’s direction is computed based on its type (advanced for oscillators, simple for others).

Counters track "up," "down," "strong_up," "weak_up," "strong_down," and "weak_down."

Simple indicators contribute to "strong_up" (for "up") or "strong_down" (for "down") counts.

Table Generation:
The script calculates the number of rows based on included indicators and display options.

It builds the table in the user-specified position, populating it with indicator names and directions.

Colors reflect direction strength, enhancing visual interpretation.

Total Row:
If enabled, the total row reflects either simple or advanced counts, depending on the toggle setting.

Purpose
This script is ideal for traders who want a quick, customizable snapshot of momentum across multiple indicators. By distinguishing between strong and weak signals (for oscillators) and offering both simple and advanced summary options, it supports both high-level trend analysis and detailed market studies. Whether you’re a beginner looking for a basic "up/down" bias or an advanced trader analyzing signal strength, this tool adapts to your needs.

Haftungsausschluss

Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.