SynchroTrend Oscillator (STO) [PhenLabs]

Version: PineScript™ v5
📌 Description
The SynchroTrend Oscillator (STO) is a multi-timeframe synchronization tool that combines trend information from three distinct timeframes into a single, easy-to-interpret oscillator ranging from -100 to +100.
This indicator solves the common problem of having to analyze multiple timeframe charts separately by consolidating trend direction and strength across different time horizons. The STO helps traders identify when markets are truly synchronized across timeframes, potentially indicating stronger trend conditions and higher probability trading opportunities.
Using either Moving Average crossovers or RSI analysis as the trend definition metric, the STO provides a comprehensive view of market structure that adapts to various trading strategies and market conditions.
🚀 Points of Innovation
* Triple-timeframe synchronization in a single view eliminates chart switching
* Dual trend detection methods (MA vs Price or RSI) for flexibility across different markets
* Dynamic color intensity that automatically increases with signal strength
* Scaled oscillator format (-100 to +100) for intuitive trend strength interpretation
* Customizable signal thresholds to match your risk tolerance and trading style
* Visual alerts when markets reach full synchronization states
🔧 Core Components
Trend Scoring System: Calculates a binary score (+1, -1, or 0) for each timeframe based on selected metrics, providing clear trend direction
Multi-Timeframe Synchronization: Combines and scales trend scores from all three timeframes into a single oscillator
Dynamic Visualization: Adjusts color transparency based on signal strength, creating an intuitive visual guide
Threshold System: Provides customizable levels for identifying potentially significant trading opportunities
🔥 Key Features
* Triple Timeframe Analysis: Synchronizes three user-defined timeframes (default: 60min, 15min, 5min) into one view
* Dual Trend Detection Methods: Choose between Moving Average vs Price or RSI-based trend determination
* Adjustable Signal Smoothing: Apply EMA, SMA, or no smoothing to the oscillator output for your preferred signal responsiveness
* Dynamic Color Intensity: Colors become more vibrant as signal strength increases, helping identify strongest setups
* Customizable Thresholds: Set your own buy/sell threshold levels to match your trading strategy
* Comprehensive Alerts: Six different alert conditions for crossing thresholds, zero line, and full synchronization states
🎨 Visualization
Oscillator Line: The main line showing the synchronized trend value from -100 to +100
Dynamic Fill: Area between oscillator and zero line changes transparency based on signal strength
Threshold Lines: Optional dotted lines indicating buy/sell thresholds for visual reference
Color Coding: Green for bullish synchronization, red for bearish synchronization
📖 Usage Guidelines
Timeframe Settings
* Timeframe 1: Default: 60 (1 hour) - Primary higher timeframe for trend definition
* Timeframe 2: Default: 15 (15 minutes) - Intermediate timeframe for trend definition
* Timeframe 3: Default: 5 (5 minutes) - Lower timeframe for trend definition
Trend Calculation Settings
* Trend Definition Metric: Default: “MA vs Price” - Method used to determine trend on each timeframe
* MA Type: Default: EMA - Moving Average type when using MA vs Price method
* MA Length: Default: 21 - Moving Average period when using MA vs Price method
* RSI Length: Default: 14 - RSI period when using RSI method
* RSI Source: Default: close - Price data source for RSI calculation
Oscillator Settings
* Smoothing Type: Default: SMA - Applies smoothing to the final oscillator
* Smoothing Length: Default: 5 - Period for the smoothing function
Visual & Threshold Settings
* Up/Down Colors: Customize colors for bullish and bearish signals
* Transparency Range: Control how transparency changes with signal strength
* Line Width: Adjust oscillator line thickness
* Buy/Sell Thresholds: Set levels for potential entry/exit signals
✅ Best Use Cases
* Trend confirmation across multiple timeframes
* Finding high-probability entry points when all timeframes align
* Early detection of potential trend reversals
* Filtering trade signals from other indicators
* Market structure analysis
* Identifying potential divergences between timeframes
⚠️ Limitations
* Like all indicators, can produce false signals during choppy or ranging markets
* Works best in trending market conditions
* Should not be used in isolation for trading decisions
* Past performance is not indicative of future results
* May require different settings for different markets or instruments
💡 What Makes This Unique
* Combines three timeframes in a single visualization without requiring multiple chart windows
* Dynamic transparency feature that automatically emphasizes stronger signals
* Flexible trend definition methods suitable for different market conditions
* Visual system that makes multi-timeframe analysis intuitive and accessible
🔬 How It Works
1. Trend Evaluation:
For each timeframe, the indicator calculates a trend score (+1, -1, or 0) using either:
* MA vs Price: Comparing close price to a moving average
* RSI: Determining if RSI is above or below 50
2. Score Aggregation:
* The three trend scores are combined and then scaled to a range of -100 to +100
* A value of +100 indicates all timeframes show bullish conditions
* A value of -100 indicates all timeframes show bearish conditions
* Values in between indicate varying degrees of alignment
3. Signal Processing:
* The raw oscillator value can be smoothed using EMA, SMA, or left unsmoothed
* The final value determines line color, fill color, and transparency settings
* Threshold levels are applied to identify potential trading opportunities
💡 Note:
The SynchroTrend Oscillator is most effective when used as part of a comprehensive trading strategy that includes proper risk management techniques. For best results, consider using the oscillator in conjunction with support/resistance levels, price action analysis, and other complementary indicators that align with your trading style.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Untuk akses pantas pada carta, tambah skrip ini kepada kegemaran anda — ketahui lebih lanjut di sini.
Join our growing community: discord.gg/phen
All content provided by PhenLabs is for informational & educational purposes only. Past performance does not guarantee future results.
Penafian
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Untuk akses pantas pada carta, tambah skrip ini kepada kegemaran anda — ketahui lebih lanjut di sini.
Join our growing community: discord.gg/phen
All content provided by PhenLabs is for informational & educational purposes only. Past performance does not guarantee future results.