OPEN-SOURCE SCRIPT
Aggiornato

Multi-Timeframe Stochastic RSI Arrows

2 455
Multi-Timeframe Stochastic RSI Arrows Indicator by The Venetian

Dear Moderators before you torch me alive theres nothing groundbreaking just very handy indicator for some users.
This indicator provides traders with a jet fighter-style heads-up display for market momentum across multiple timeframes. By displaying Stochastic RSI directional arrows for 12 different timeframes simultaneously, it offers a comprehensive view of market conditions without requiring multiple chart windows.

How It Works

The indicator calculates the Stochastic RSI for each of 12 common timeframes (1m to 3M) and represents directional movements with intuitive arrows:
- ▲ Green up arrow = Rising momentum
- ▼ Red down arrow = Falling momentum
- ◄► Yellow horizontal arrows = Flat/sideways momentum
- ► Gray right arrow = Just peaked (crossed above overbought)
- ◄ Gray left arrow = Just bottomed (crossed below oversold)

Each timeframe's status appears with its label (e.g., "1m ▲") in a clean, vertically-stacked display using ATR-based spacing to maintain consistent visual appearance regardless of price scale.

Key Features

- ATR-Based Spacing : Uses Average True Range to maintain consistent distances between labels even as chart scale changes
- Multi-Timeframe Analysis: Easily spot divergences and confluences across timeframes (1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 1D, 1W, 1M, 3M)
- Sensitivity Control: Adjust flat detection sensitivity to filter out noise
- Customisable Appearance: Modify arrow size, vertical spacing, and show/hide timeframe labels
- Overbought/Oversold Detection: Highlights when momentum has peaked or bottomed at extreme levels

- Trading Applications

- Trend Alignment: Quickly identify when multiple timeframes align in the same direction
- Divergence Detection: Spot when shorter timeframes begin to shift against longer ones
- Entry/Exit Timing: Use crossovers of significant timeframes as potential signals
- Market Context: Maintain awareness of the bigger picture while trading shorter timeframes

This indicator doesn't break new ground technically but excels in presenting complex multi-timeframe information in a clean, actionable format — much like a pilot's heads-up display provides critical information at a glance. The ATR-based positioning ensures consistent visibility across different instruments and market conditions.

Great effort has been made for this script to adhere to TradingView's Pine Script house rules and focuses on trader usability rather than introducing novel technical concepts.
Note di rilascio
This advanced indicator provides a comprehensive multi-timeframe analysis of Stochastic RSI momentum across 12 different timeframes simultaneously. It displays real-time directional signals using intuitive visual arrows and letters, allowing traders to quickly identify momentum alignment or divergence across multiple timeframes from a single view.
Key Features

12 Timeframe Analysis: Monitors Stochastic RSI across 1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 1D, 1W, 1M, and 3M timeframes
Visual Signal System: Uses color-coded arrows and letters for instant momentum recognition
Auto-Positioning: Intelligently positions labels to avoid overlapping with price action.

Original vs. Updated Version
Major Improvements Added:
1. Fixed Label Overlapping Issue - CRITICAL FIX
Original Problem: Labels were too close together and overlapping, especially on certain timeframes

Old positioning: bar_index - 11 + i + horizontalShift (fixed spacing of 1 bar)
New positioning: bar_index + horizontalShift + (i * horizontalSpacing) (customizable spacing)
Added: horizontalSpacing parameter (default: 3 bars) - fully adjustable from 1-20 bars
Result: Labels now maintain consistent, readable spacing regardless of timeframe

2. Enhanced Visual Contrast
Original: Dark labels (black background at 60% transparency) - hard to see on dark charts

Old: color.new(color.black, 60) - dark grey background
New: color.new(color.white, 85) - very light, semi-transparent white background
Result: Much better visibility and contrast against both light and dark chart themes

3. Improved Label Positioning
Original: Labels positioned at fixed offset from price

Old: Default horizontal shift was -12 bars
New: Default horizontal shift is -50 bars (much further left)
Benefit: Labels stay out of the active trading zone and don't interfere with current price action

4. Replaced Confusing Arrow Symbols
Original: Used sideways arrows ► and ◄ for peaked/bottomed conditions

Old Peaked: ► (grey arrow right)
Old Bottomed: ◄ (grey arrow left)
New Peaked: P (orange letter)
New Bottomed: B (blue letter)
Benefit: Clearer, more intuitive representation of extreme conditions
Bonus: Added distinct colors (orange for overbought, blue for oversold)

5. Automatic Smart Positioning - NEW FEATURE
Original: Manual vertical positioning only - required constant adjustment

Added: autoPosition parameter (enabled by default)
How it works:

Analyzes last 50 bars of price action
Calculates if price is in upper or lower half of range
Automatically positions labels on opposite side
Price high → labels go below
Price low → labels go above

Added: labelDistance parameter (1.0-10.0) to control distance from price
Benefit: Labels automatically avoid candles as timeframes change - no manual adjustment needed!

Customizable Parameters: Fully adjustable Stochastic RSI settings, sensitivity, and visual preferences
Overbought/Oversold Detection: Identifies extreme conditions with special markers

Technical Improvements:
Code Quality:

More organized parameter grouping
Better variable naming for clarity
Enhanced logic for position calculation
Added intelligent price range analysis

User Experience:

Less manual adjustment required
Works consistently across all timeframes
More intuitive visual signals
Professional presentation

Performance:

Same computational efficiency maintained
No additional lag or processing overhead
Clean label management (proper deletion/recreation)

What Problems Were Solved:

Overlapping labels - Now properly spaced
Poor visibility - Much lighter, clearer labels
Labels covering candles - Auto-positioning avoids price action
Confusing symbols - Clear P/B letters with distinct colors
Constant manual adjustment - Auto-positioning eliminates this hassle
No attribution - Professional watermark added

Backwards Compatibility:
The final version is fully backwards compatible - users can:

Disable auto-positioning to use manual mode (original behavior)
Adjust all original parameters
Hide watermark if desired
Use any combination of old/new features

Why These Changes Matter:
For New Users:

Easier to use out-of-the-box
Less configuration needed
More professional appearance

For Experienced Users:

More control and customization options
Better performance across different market conditions
Cleaner chart presentation

For All Users:

Clearer signals with P/B markers
No more label overlap issues
Works seamlessly across timeframes without adjustment


Summary:
The final version transforms a functional indicator into a professional, user-friendly tool that adapts to any chart configuration automatically while providing clearer signals and better visual presentation. The improvements focus on usability, clarity, and professionalism without sacrificing any of the original functionality.

Note di rilascio
This update focuses on accuracy and reliability and the addition of a legend. The core Stochastic RSI calculation has been corrected to match the standard formula, the reversal signals (Peaked and Bottomed) now trigger at the right moment, and the multi-timeframe data no longer changes after the fact. These aren't new features — they're fixes to make sure the indicator does what it's supposed to do and gives you signals you can trust.

Declinazione di responsabilità

Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.