MG Universal model🚀 Summary🚀
The MG univerasal model is a composite of various items such as RSI, price Z-Score, Sharpe Ratio, Sortino Ratio, Omega Ratio, etc
Each component is normalized and then equally wheighted out to perform a global metric.
At the end, an Exponential Moving Average is added on the global metric.
You can easily find a description of each component on the internet, for the Crosby Ratio, it's a metric that comes from bitcoinmagazinepro.com.
✨ Key Features ✨
🗡 Smoothed Global Metric
Using a Moving average to smooth out the whole aggregated metric.
🗡 Bands Zone at extreme levels
Automatically displaying bands at top and bottom levels of the oscillator.
🗡 Normalizing components
Each component is normalized.
🗡 DataTable
Optional DataTable is available to check the score for each components and their related Z-Score.
📊 How I use it 📊
When catching up with 0 line (midline), crossing it :
if it goes above 0.2:
get out when it crosses 0.2 again
else:
get out when it crosses 0 again
That's the way I use it, may be there is a better way, FAFO :)
❓ Seeing a bug or an issue ❓
Feel free to DM me if you see a component that seems badly calculated.
I will be happy to fix it.
❗❗ Disclaimer ❗❗
This is a single indicator, even though it's aggregating many, do not use it as a standalone.
Past performance is not indicative of future results.
Always backtest, check, and align parameters before live trading.
Indicators and strategies
Open - CSC Bars - 33 CSC Bars – Early Session Price Action Filter
This script detects when the first three bars of the RTH (Regular Trading Hours) session all move in the same direction — either all bullish or all bearish.
It’s a tool for price action traders who want to develop structured opening strategies by observing clean directional agreement at the session start. The indicator highlights the third bar when the sequence confirms directional bias.
🔍 How It Works:
Monitors the first three bars after the RTH session begins.
If all three bars are bullish, it highlights the third bar (same for bearish sequences).
No projections, signals, or entries—purely a visual tool to observe and study opening behavior.
🎯 Use Case:
This script is designed to help traders build and test opening-based frameworks by identifying potential trend bias early in the day.
Note: This is an open-source utility script with a simple function. It does not generate signals or predictions and is intended to assist with observation and discretionary strategy building.
Chandelier Exit with ZLSMA SwiftEdgeChandelier Exit with ZLSMA
Overview
The "Chandelier Exit with ZLSMA" indicator is a powerful trading tool designed to identify trend reversals and high-probability entry points in financial markets. By combining the volatility-based Chandelier Exit with the low-lag Zero Lag Least Squares Moving Average (ZLSMA), this indicator provides clear Buy and Sell signals, enhanced with a unique signal strength score to help traders prioritize high-quality opportunities. Visual enhancements, including dynamic color coding, background highlights, and trend arrows, make it intuitive and visually appealing for both novice and experienced traders.
What It Does
This indicator generates Buy and Sell signals when a trend reversal is detected by the Chandelier Exit, but only if the price crosses the ZLSMA for the first time in the direction of the trend. Each signal is accompanied by a percentage score (0-100%) that measures its strength based on price movement and momentum. The indicator overlays directly on the price chart, displaying:
Buy/Sell labels with signal strength (e.g., "Buy (85%)").
A ZLSMA line that changes color (green for bullish, red for bearish) to indicate trend direction.
Background highlights to mark signal candles.
Trend arrows to visually confirm signal points.
How It Works
The indicator combines two complementary components:
Chandelier Exit:
Uses the Average True Range (ATR) to create dynamic trailing stop levels (long_stop and short_stop) that adapt to market volatility.
Signals a Buy when the price crosses above the short stop (indicating a potential uptrend) and a Sell when it crosses below the long stop (indicating a potential downtrend).
Default settings use an ATR period of 1 and a multiplier of 2.0 for high sensitivity to short-term price movements.
Zero Lag LSMA (ZLSMA):
A low-lag moving average based on linear regression, designed to reduce delay compared to traditional moving averages.
Acts as a trend filter: Buy signals are only generated when the price closes above ZLSMA for the first time, and Sell signals when it closes below for the first time.
Default length of 50 balances smoothness with responsiveness.
Signal Strength Score:
Each signal is assigned a score (0-100%) based on:
Distance to ZLSMA (60% weight): How far the price is from ZLSMA, normalized by ATR. Larger distances indicate stronger breakouts.
Candlestick size (40% weight): The size of the signal candle, normalized by ATR. Larger candles suggest stronger momentum.
A high score (e.g., >80%) indicates a robust signal, while a low score (e.g., <50%) suggests caution.
Visual Features:
The ZLSMA line changes color (green for bullish, red for bearish) to reflect the trend.
Signal candles are highlighted with a subtle green (Buy) or red (Sell) background.
Tiny triangular arrows appear below Buy signals and above Sell signals for clear visual confirmation.
Why Combine Chandelier Exit and ZLSMA?
The Chandelier Exit excels at identifying trend reversals through volatility-based stops, but it can generate false signals in choppy markets due to its sensitivity (especially with a short ATR period of 1). The ZLSMA addresses this by acting as a trend filter, ensuring signals are only triggered when the price confirms a trend by crossing the ZLSMA for the first time. This combination reduces noise and focuses on high-probability setups. The signal strength score further enhances decision-making by quantifying the conviction behind each signal, making the indicator feel intuitive and "smart."
How to Use
Setup:
Add the indicator to your chart in TradingView.
Adjust inputs in the settings panel:
ATR Period (default: 1): Controls the sensitivity of Chandelier Exit. Increase for smoother signals.
ATR Multiplier (default: 2.0): Sets the distance of stop levels from price extremes.
ZLSMA Length (default: 50): Adjusts the smoothness of the ZLSMA line. Shorter lengths (e.g., 20-30) are more responsive; longer lengths (e.g., 50-100) are smoother.
Use Close Price for Extremums (default: true): Determines whether Chandelier Exit uses closing prices or high/low prices for calculations.
Interpreting Signals:
Buy Signal: A green "Buy (X%)" label appears below a candle when the price crosses above the Chandelier Exit short stop and closes above ZLSMA for the first time. The percentage indicates signal strength (higher = stronger).
Sell Signal: A red "Sell (X%)" label appears above a candle when the price crosses below the Chandelier Exit long stop and closes below ZLSMA for the first time.
Use the ZLSMA line’s color (green for bullish, red for bearish) to confirm the overall trend.
Prioritize signals with high strength scores (e.g., >70%) for better reliability.
Trading Considerations:
Combine signals with other analysis (e.g., support/resistance, volume) for confirmation.
Test the indicator on a demo account or use TradingView’s Strategy Tester to evaluate performance.
Be cautious with the default ATR period of 1, as it is highly sensitive and may generate frequent signals in volatile markets.
What Makes It Unique
This indicator stands out due to its thoughtful integration of Chandelier Exit and ZLSMA, creating a synergy that balances sensitivity with reliability. The first-cross filter ensures signals are triggered only at the start of potential trends, reducing false positives. The signal strength score adds a layer of intelligence, helping traders assess the quality of each signal without needing external tools. Visual enhancements, such as dynamic ZLSMA coloring, background highlights, and trend arrows, make the indicator user-friendly and visually engaging, appealing to traders seeking a modern, intuitive tool.
Limitations and Notes
The short ATR period (1) makes the indicator highly sensitive, which suits short-term traders but may produce noise in sideways markets. Increase the ATR period for smoother signals.
The signal strength score is a heuristic based on price movement and momentum, not a predictive model. Use it as a guide, not a definitive predictor.
Always backtest the indicator on your preferred market and timeframe to ensure it aligns with your trading strategy.
SwiftEdge NW EnvelopeSwiftEdge NW Envelope
Overview
The SwiftEdge NW Envelope is a visually striking technical indicator designed for traders seeking to identify high-probability buy and sell opportunities in volatile markets. By combining the Relative Strength Index (RSI), Average True Range (ATR), and Nadaraya-Watson Envelope, this indicator provides a unique blend of momentum, volatility, and non-linear trend analysis. Its futuristic, AI-inspired aesthetic—featuring neon gradients and dynamic colors—enhances chart readability while delivering actionable trading signals.
What It Does
The SwiftEdge NW Envelope generates buy and sell signals based on price interactions with dynamically calculated support and resistance bands, confirmed by RSI conditions. The indicator:
Plots a Nadaraya-Watson Envelope to identify smooth, non-linear price trends and dynamic support/resistance zones.
Uses ATR to scale the envelope’s bands, adapting to market volatility.
Employs RSI to confirm overbought/oversold conditions, ensuring signals align with momentum.
Visualizes signals with neon-colored markers, background zones, and labels for intuitive decision-making.
How It Works
The indicator integrates three key components:
Nadaraya-Watson Envelope:
A kernel-based regression technique that smooths price data to create a central trend line (mean) and dynamic upper/lower bands.
Unlike traditional moving averages, it provides a non-linear, adaptive view of price trends, making it ideal for capturing complex market movements.
The band width is determined by ATR, ensuring responsiveness to volatility.
Average True Range (ATR):
Measures market volatility to scale the envelope’s bands.
A multiplier (default: 0.5) adjusts the sensitivity of the bands, allowing traders to fine-tune the indicator for different assets or market conditions.
Relative Strength Index (RSI):
A momentum oscillator with a shortened period (default: 5) for increased sensitivity.
Confirms buy signals when RSI is oversold (default: <30) and sell signals when RSI is overbought (default: >70).
Signal Logic
Buy Signal: Triggered when the price crosses above the lower band of the Nadaraya-Watson Envelope and RSI is below the oversold threshold. Marked by a green circle and a "BUY" label below the candle.
Sell Signal: Triggered when the price crosses below the upper band and RSI is above the overbought threshold. Marked by a magenta circle and a "SELL" label above the candle.
Background Zones: Green (buy) or red (sell) translucent zones highlight signal areas for quick recognition.
Visual Features
Dynamic Colors: The central trend line shifts between cyan (uptrend), purple (downtrend), or gray (neutral) based on price position relative to the mean.
Neon Gradient Fill: A translucent blue fill between the upper (green) and lower (red) bands creates a glowing, futuristic effect.
Modern Signal Markers: Small, vibrant circles (green for buy, magenta for sell) and clear labels enhance visual clarity.
Why This Combination?
The SwiftEdge NW Envelope combines RSI, ATR, and Nadaraya-Watson Envelope to create a robust trading tool:
RSI provides momentum confirmation, filtering out false signals in choppy markets.
ATR ensures the envelope adapts to changing volatility, making it suitable for both trending and ranging markets.
Nadaraya-Watson Envelope offers a sophisticated, non-linear alternative to traditional bands (e.g., Bollinger Bands), capturing subtle price dynamics. Together, these components deliver a balanced approach to trend-following and mean-reversion strategies, with RSI acting as a gatekeeper to improve signal reliability.
Customize Settings:
RSI Period (5): Adjust for more/less sensitivity to momentum.
RSI Overbought/Oversold (70/30): Modify thresholds to tighten or loosen signal conditions.
ATR Period (14) and Multiplier (0.5): Tune volatility sensitivity.
NW Length (25), Bandwidth (8.0), Multiplier (3.0): Adjust the smoothness and width of the envelope.
Interpret Signals:
Buy: Look for green circles and "BUY" labels when price crosses above the lower band, confirmed by low RSI.
Sell: Look for magenta circles and "SELL" labels when price crosses below the upper band, confirmed by high RSI.
Use background zones to quickly spot active signal areas.
Combine with Other Tools:
Pair with support/resistance levels or volume analysis for additional confirmation.
Test signals on a demo account before live trading.
Originality
The SwiftEdge NW Envelope stands out due to:
Its innovative use of Nadaraya-Watson regression, a less common but powerful tool for non-linear trend analysis.
A unique visual design with neon gradients and dynamic colors, inspired by AI and futuristic interfaces, making it both functional and visually engaging.
A streamlined signal system that balances momentum (RSI), volatility (ATR), and trend (Nadaraya-Watson), reducing noise and enhancing trade precision.
Notes
Best suited for volatile markets (e.g., forex, crypto, stocks) where price swings create clear envelope breakouts.
Adjust input parameters to match your trading style (e.g., shorter RSI period for scalping, wider bands for swing trading).
Always backtest and validate signals in your specific market and timeframe before trading.
Akshay - TheOne, TheMostWanted, TheUnbeatable, TheEnd➤ All-in-One Solution (❌ No repaint):
This Technical Chart contains, MA24 Condition, Supertrend Indicator, HalfTrend Signal, Ichimoku Cloud Status, Parabolic SAR (P_SAR), First 5-Minute Candle Analysis (ORB5min), Volume-Weighted Moving Average (VWMA), Price-Volume Trend (PVT), Oscillator Composite, RSI Condition, ADX & Trend Strength.
Technicals don't lie.
🚀 Overview and Key Features
Comprehensive Multi-Indicator Approach:
The script is built to be an all-in-one technical indicator on TradingView. It integrates several well-known indicators and overlays—including Supertrend, HalfTrend, Ichimoku Cloud, various moving averages (EMA, SMA, VWMA), oscillators (Klinger, Price Oscillator, Awesome Oscillator, Chaikin Oscillator, Ultimate Oscillator, SMI Ergodic Oscillator, Chande Momentum Oscillator, Detrended Price Oscillator, Money Flow Index), ADX, and Donchian Channels—to create a composite picture of market sentiment.
Signal Generation and Alerts:
It not only calculates these indicators but also aggregates their output into “Master Candle” signals. Vertical lines are drawn on the chart with corresponding alerts to indicate potential buy or sell opportunities based on robust, combined conditions.
Visual Layering:
Through the use of colored histograms, custom candle plots, trend lines, and background color changes, the script offers a multi-layered visual representation of data, providing clarity about both short-term signals and overall market trends.
⚙️ How It Works and Functionality
MA24 Condition:
Uses the 24-period moving average as a proxy; if the price is above it, the bar is colored green, and red if below, with neutrality when conditions aren’t met.
Supertrend Indicator:
Evaluates price relative to the Supertrend level (calculated via ATR), coloring green when price is above it and red when below.
HalfTrend Signal:
Determines trend shifts by comparing the current close to a calculated trend level; green indicates an upward trend, while red suggests a downtrend.
Ichimoku Cloud Status:
Analyzes the relationship between the Conversion and Base lines; a bullish (green) signal is given when price is above both or the Conversion line is higher than the Base line.
Parabolic SAR (P_SAR):
Colors the signal based on whether the current price is above (green) or below (red) the Parabolic SAR marker, indicating stop and reverse conditions.
First 5-Minute Candle Analysis (ORB5min):
Uses key levels from the first 5-minute candle; if price exceeds the candle’s low, VWAP, and MA, it’s bullish (green), otherwise bearish (red).
Volume-Weighted Moving Average (VWMA):
Compares the current price to volume-weighted averages; a price above these levels is shown in green, below in red.
Price-Volume Trend (PVT):
Determines bullish or bearish momentum by comparing PVT to its VWAP—green when above and red when below.
Oscillator Composite:
Aggregates signals from multiple oscillators; a majority of positive results turn it green, while negative dominance results in red.
RSI Condition:
Uses a simple RSI threshold of 50, with values above signifying bullish (green) momentum and below marking bearish (red) conditions.
ADX & Trend Strength:
Reflects overall trend strength through ADX and directional movements; a combination favoring bullish conditions colors it green, with red signaling bearish pressure.
Master Candle Overall Signal:
Combines multiple indicator outputs into one “Master” signal—green for a consensus bullish trend and red for a bearish outlook.
Scalp Signal Variation:
Focused on short-term price changes, this signal adjusts quickly; green indicates improving short-term conditions, while red signals a downturn.
📊 Visualizations and 🎨 User Experience (❌ no repaint)
Dynamic Histograms & Bar Plots:
Each indicator is represented as a colored bar (with added vertical offsets) to facilitate easy comparison of their respective bullish or bearish contributions.
Clear Color-Coding & Labels:
Green (e.g., GreenFluorescent) indicates bullish sentiment.
Red (e.g., RedFluorescent) indicates bearish sentiment.
Custom labels and descriptive text accompany each bar for clarity.
Interactive Charting:
The overall background color adapts based on the “Master Candle” condition, offering an instant read on market sentiment.
The current candlestick is overlaid with color cues to reinforce the indicator’s signal, enhancing the trading experience.
Real-Time Alerts:
Vertical lines appear on signal events (buy/sell triggers), complemented by alerts that help traders stay on top of actionable market moves.
Sharp lines:
The Sharp lines are plotted based upon the EMA5 cross over with the same market trend, marks this as good time to reentry.
🔧 Settings and Customization
Flexible Timeframe Input:
Users can select their preferred timeframe for analysis, making the indicator adaptable to intraday or longer-term trading styles.
Customizable Indicator Parameters:
➤ Supertrend: Adjust ATR length and multiplier factors.
➤ HalfTrend: Tweak amplitude and channel deviation settings.
➤ Ichimoku Cloud & Oscillators: Fine-tune the conversion/base lines and oscillator lengths to match individual trading strategies.
Visual Customization:
The script’s color schemes and plotting styles can be altered as needed, giving users the freedom to tailor the interface to their taste or existing chart setups.
🌟 Uniqueness of the Concept
Integrated Multi-Indicator Synergy:
Combines a diverse range of trend, momentum, and volume-based indicators into a single cohesive system for a holistic market view.
Master Candle Aggregation:
Consolidates numerous individual signals into a "Master Candle" that filters out noise and provides a clear, consensus-based trading signal.
Layered Visual Feedback:
Uses color-coded histograms, adaptive background cues, and dynamic overlays to deliver a visually intuitive guide to market sentiment at a glance.
Customization and Flexibility:
Offers adjustable parameters for each indicator, allowing users to tailor the system to fit diverse trading styles and market conditions.
✅ Conclusion:
Robust Trading Tool & Non-Repainting Reliability:
This versatile technical analysis tool computes an extensive range of indicators, aggregates them into a stable, non-repainting “Master Candle” signal, and maintains consistent, verifiable outputs on historical data.
Holistic Market Insight & Consistent Signal Generation:
By combining trend detection, momentum oscillators, and volume analysis, the indicator delivers a comprehensive snapshot of market conditions and generates dependable signals across varying timeframes.
User-Centric Design with Rich Visual Feedback:
Customizable settings, clear color-coded outputs, adaptive backgrounds, and real-time alerts work together to provide actionable, transparent feedback—enhancing the overall trading experience.
A Unique All-in-One Solution:
The integrated approach not only simplifies complex market dynamics into an easy-to-read visual guide but also empowers systematic traders with a powerful, adaptable asset for accurate decision-making.
❤️ Credits:
Pine Script™ User Manual
Supertrend
Ichimoku Cloud
Parabolic SAR
Price Volume Trend (PVT)
Average Directional Index (ADX)
Volume Oscillator
HalfTrend
Donchian Trend
Compare Strength with SLOPE Description
This indicator compares the relative strength between the current asset and a benchmark (e.g., BTC vs. ETH or AAPL vs. SPY) using a linear regression slope of their ratio over time.
The ratio is calculated as: close / benchmark
A linear regression slope is computed over a user-defined window
The slope represents trend strength: if it’s rising, the current asset is outperforming the benchmark
Plots
Gray Line: The raw ratio between the asset and benchmark
Orange Line: The slope of the ratio (shows momentum)
Background Color :
Green: The asset is significantly stronger than the benchmark
Red: The asset is significantly weaker than the benchmark
No color: No clear trend
Settings
Slope Window Length: Number of candles used in the regression (default = 10)
Slope Threshold: Sensitivity of trend detection. Smaller values detect weaker trends.
Example Use Cases
Style Rotation Strategy: Use the slope to determine whether "Growth" or "Value" style is leading.
Pair Trading / Relative Performance: Track which asset is leading in a pair (e.g., BTC vs ETH).
Factor Timing: Serve as a timing model to allocate between different sectors or factors.
Happy trading!
Day of Week and HTF Period SeparatorThis indicator displays vertical lines to separate each day of the week, along with optional 1H and 4H period separators. It also shows day-of-week labels (MON, TUE, etc.) at a specified hour for quick visual reference. Useful for intraday traders who want a clear view of daily and higher timeframe transitions.
Renko Compression Index (RCI)Renko Compression Index
The Renko Compression Index (RCI) is a unique market structure indicator designed to detect price compression zones on Renko-based charts. It measures the frequency of directional changes in Renko bricks over a specific period, identifying moments of trend indecision or consolidation that may precede major breakouts.
Renko Momentum Wave (RMW)Renko Momentum Wave
The Renko Momentum Wave (RMW) is a custom momentum oscillator specifically designed for Renko-based price action analysis. Unlike traditional oscillators that rely on time-based data, the RMW focuses on the directional consistency of Renko bricks, measuring the strength of trend momentum purely based on price movement.
Multi-Element CFD Indicator ]Multi-Element CFD Indicator
Simple but very effective script that finds areas of support and resistance through ticks exchange. Only works with CFDs
(You must enter in the settings the value corresponding to the CFD, example: US500 = 500, DAX30 = 30, FRANCE40 = 40 etc ...)
MaterialPaletteMaterialPalette Library
█ OVERVIEW
This Pine Script® library provides a convenient way to access and utilize colors based on the popular Material Design color system directly within your TradingView scripts. It offers a comprehensive set of functions to retrieve specific shades of various base colors, allowing developers to create visually consistent and aesthetically pleasing indicators and strategies.
By importing this library, you gain access to functions that generate colors based on saturation, darkness level, and opacity, simplifying the process of managing color palettes in your projects.
█ FEATURES
Provides exported functions for 18 base Material Design colors (e.g., `red()`, `blue()`, `green()`, `amber()`, etc.).
Each color function allows selection from multiple shades based on `saturationLevel` (int) and `darkLevel` (int).
All color functions accept an `opacity` parameter (integer, 0-100).
Includes a `tone()` function for quick access to predefined base tones (e.g., `tone("red")`).
Offers a consistent and organized approach to using Material Design colors in Pine Script®.
Includes detailed `@function`, `@param`, and `@returns` annotations within the code for comprehensive documentation.
█ HOW TO USE
To use this library in your own Pine Script® indicator or strategy, you first need to import it using the `import` statement.
1. Import the Library:
Add the following line at the beginning of your script. Remember to replace `mastertop_astray` with the actual TradingView username the library is published under, and `VERSION` with the specific version number of the library you wish to use (you can find this on the library's script page).
import mastertop_astray/MaterialPalette/VERSION as mp
// Example: import mastertop_astray/MaterialPalette/1 as mp
*(We use `mp` as a short alias for `MaterialPalette` for convenience)*
2. Call Exported Functions:
Once imported, you can call the exported functions using the alias (`mp.` prefix).
//@version=6
indicator("My Indicator Using MaterialPalette")
import mastertop_astray/MaterialPalette/VERSION as mp // Replace VERSION
// --- Get Colors ---
// Get a specific shade: Dark Red (darkLevel=3), highest saturation (13), fully opaque (0)
darkRed = mp.red(13, 3, 0)
// Get another shade: Light Blue (lightLevel=1), medium saturation (e.g., 7), 50% opacity
lightBlueTransparent = mp.lightBlue(7, 1, 50)
// Get a base tone color: Green, fully opaque
baseGreen = mp.tone("green", 0)
// Get another base tone: Amber, 80% opacity
amberToneTransparent = mp.tone("amber", 80)
// --- Use Colors in Plotting ---
plot(close, color = darkRed, title = "Close Line")
plot(sma(close, 20), color = lightBlueTransparent, title = "SMA 20")
bgcolor(close > open ? mp.green(1, 2, 90) : mp.red(1, 2, 90)) // Use light shades for background
// Use a base tone
hline(100, "Upper Band", color = amberToneTransparent)
█ EXPORTED FUNCTIONS
This library provides two main categories of functions:
1. Color Shade Generators (`red()` to `blueGrey()`):
Includes: 18 functions for base colors (`red()`, `pink()`, ..., `blueGrey()`).
Purpose: Generate specific shades of the base color according to Material Design palettes.
Parameter `saturationLevel` (int): Controls color intensity/saturation. The valid range and default value vary depending on the specific color function (typically 1-13 or 1-9). Please check the `@param` annotation in the code for each function.
Parameter `darkLevel` (int): Sets the lightness/darkness of the shade (1: Light, 2: Medium/Base, 3: Dark). Default is 2.
Parameter `opacity` (int): Sets the color's transparency (0 = Opaque, 100 = Invisible). Default is 0.
Returns: The calculated `color` value.
Note: For exact default values and valid saturation ranges for each specific color function, refer to the detailed `@param` annotations within the library's source code.
2. Base Tone Function (`tone()`):
Purpose: Retrieve a single, predefined base color tone from the palette.
Parameter `colorName` (simple string): The text name identifying the desired base color (e.g., 'red', 'blue', 'green', 'light_blue').
Parameter `opacity` (int): Sets the color's transparency (0 = Opaque, 100 = Invisible). Default is 0.
Returns: The corresponding base tone `color`.
Note: Please consult the function's implementation in the source code for the complete list of valid `colorName` strings.
█ VISUALIZATION TABLE (For Demonstration)
The library's source code includes logic (within an `if barstate.islast` block) that generates a large table displaying all available color shades.
Important: This table will only appear on your chart if you add the entire library code itself directly as an indicator. This is primarily intended for demonstration, reference, and development purposes to visualize the palette. When using the library normally via the `import` statement in your own scripts, this table code is not executed or needed.
█ SUMMARY
The `MaterialPalette` library offers a structured and easy way for Pine Script® developers to incorporate Material Design colors into their TradingView scripts, enhancing visual appeal and consistency. Please refer to the detailed comments within the code for specifics on parameter ranges and available tones.
This source code is subject to the terms of the Mozilla Public License 2.0.
© mastertop_astray
Umesh BC IST 3:30 AM Session Tracker + 4H Candles📌 IST 3:30 AM Session Tracker + 4H Candle Marker
This indicator is designed for traders who follow Indian Standard Time (IST) and want precise session tracking and 4H candle insights.
🔧 Features:
🕒 Daily Session Start at 3:30 AM IST
Automatically detects and marks the beginning of each new trading day based on 3:30 AM IST, not midnight.
Displays session Open, High, and Low lines.
Background shading for each session.
Customizable alert when a new day starts.
🟧 4H Candle Start Markers (IST Time)
Identifies every new 4-hour candle that starts at:
3:30, 7:30, 11:30, 3:30 PM, 7:30 PM, 11:30 PM IST
Adds a vertical line and label ("🟧 4H") above the candle.
Plots a dynamic line for the 4H candle's opening price.
Includes optional alert for new 4H candles.
🔔 Alerts Included:
"🕒 New IST Day Start": Triggers at 3:30 AM IST.
"🟧 New 4H Candle": Triggers at each 4H candle start (IST).
✅ Best for:
Intraday, swing, and institutional traders using IST-based analysis.
Those wanting more accurate daily sessions and clear candle structuring.
[Kpt-Ahab] Moving Average Alarm OutputVarious Moving Average with Signal Outputs
Compatible with various backtesting-systems or risk management-systems for generating alarms and trading signals.
Also compatible with the djmad Multibit ecosystem, allowing for signal filtering or combining indicators.
Standard signal output Long/Short +1/-1
Filter, for suppressing signals
Various color variations.
[blackcat] L3 Dark Horse OscillatorOVERVIEW
The L3 Dark Horse Oscillator is a sophisticated technical indicator meticulously crafted to offer traders deep insights into market momentum. By leveraging advanced calculations involving Relative Strength Value (RSV) and proprietary oscillatory techniques, this script provides clear and actionable signals for identifying potential buying and selling opportunities. Its distinctive feature—a vibrant gradient color scheme—enhances readability and makes it easier to visualize trends and reversals on the chart 📈↗️.
FEATURES
Advanced Calculation Methods: Utilizes complex algorithms to compute the Relative Strength Value (RSV) over specific periods, providing a nuanced view of price movements.
Default Period: 27 bars for initial RSV calculation.
Additional Period: 36 bars for extended RSV analysis.
Dual-Oscillator Components:
Component A: Derived using multiple layers of Simple Moving Averages (SMAs) applied to the RSV, offering a smoothed representation of short-term momentum.
Component B: Employs a unique averaging method tailored to capture medium-term trends effectively.
Dynamic Gradient Color Scheme: Enhances visualization through a spectrum of colors that change dynamically based on the calculated values, making trend identification intuitive and engaging 🌈.
Customizable Horizontal Reference Lines: Key levels are marked at 0, 10, 50, and 90 to serve as benchmarks for assessing the oscillator's readings, helping traders make informed decisions quickly.
Comprehensive Visual Representation: Combines the strengths of both components into a single, gradient-colored candlestick plot, providing a holistic view of market sentiment and momentum shifts 📊.
HOW TO USE
Adding the Indicator: Start by adding the L3 Dark Horse Oscillator to your TradingView chart via the indicators menu. This will overlay the necessary plots directly onto your price chart.
Interpreting the Components: Familiarize yourself with the two primary components represented by yellow and fuchsia lines. These lines indicate the underlying momentum derived from the RSV calculations.
Monitoring Momentum Shifts: Pay close attention to the gradient-colored candlesticks, which reflect the combined strength of both components. Notice how these candles transition through various shades, signaling changes in market dynamics.
Utilizing Reference Levels: Leverage the horizontal lines at 0, 10, 50, and 90 as critical thresholds. For instance, values above 50 might suggest bullish conditions, while those below could hint at bearish tendencies.
Combining with Other Tools: To enhance reliability, integrate this indicator with complementary technical analyses such as moving averages, volume profiles, or other oscillators like RSI or MACD.
LIMITATIONS
Market Volatility: In extremely volatile or sideways-trending markets, the indicator might produce false signals due to erratic price movements. Always cross-reference with broader market contexts.
Testing Required: Before deploying the indicator in real-time trading, conduct thorough backtesting across diverse assets and timeframes to understand its performance characteristics fully.
Asset-Specific Performance: The efficacy of the L3 Dark Horse Oscillator can differ significantly across various financial instruments and market conditions. Tailor your strategies accordingly.
NOTES
Historical Data: Ensure ample historical data availability to facilitate precise calculations and avoid inaccuracies stemming from insufficient data points.
Parameter Adjustments: Experiment with adjusting the default periods (27 and 36 bars) if you find them unsuitable for your specific trading style or market conditions.
Visual Customization: Modify the appearance settings, including line styles and gradient colors, to better suit personal preferences without compromising functionality.
Risk Management: While the indicator offers valuable insights, always adhere to robust risk management practices to safeguard against unexpected market fluctuations.
EXAMPLE STRATEGIES
Trend Following: Use the oscillator to confirm existing trends. When Component A crosses above Component B, consider entering long positions; conversely, look for short entries during downward crossovers.
Mean Reversion: Identify extreme readings near the upper (90) or lower (10) bands where prices might revert to mean levels, presenting potential reversal opportunities.
Divergence Analysis: Compare the oscillator's behavior with price action to spot divergences, which often precede trend reversals. Bullish divergence occurs when prices make lower lows but the oscillator shows higher lows, suggesting upward momentum.
SPY Trend-Based Buy Signals🔹 Overview
This indicator identifies potential buy signals on any asset by combining MACD and Stochastic Oscillator crossovers, while using the SPY’s trend (via exponential moving averages) as a broader market filter.
It helps traders stay aligned with macro momentum and avoid counter-trend entries.
🔍 How it works
SPY Trend Filter (Daily Timeframe):
Pulls SPY (S&P 500 ETF) data using EMAs (5, 20, 80)
Categorizes SPY market trend with color codes:
🟢 Green: Strong uptrend (EMA5 > EMA20 > EMA80)
🟡 Yellow: Potential uptrend / early momentum (EMA5 < EMA20 > EMA80)
🔴 Red: Downtrend (EMA5 < EMA20 < EMA80)
🔵 Blue: Possible trend reversal or mixed trend (EMA5 > EMA20 < EMA80)
Buy Signal Conditions (Combined Logic):
A signal is only triggered when:
- SPY trend is either yellow or blue (indicating a neutral-to-bullish or early recovery environment)
-The Stochastic Oscillator's %D line is below 50, showing possible upside
- A bullish MACD crossover occurs on the current symbol
🟢 Green signal: MACD crossover occurs below 0 (early reversal)
🟠 Orange signal: MACD crossover occurs above 0 (momentum continuation)
📈 Visual Output
🟢 Green label below the bar when an early reversal setup occurs
🟠 Orange label above the bar when a trend continuation signal appears
✅ Best Use Case
Ideal for:
Swing traders and position traders
LEAPS (long-term options) traders aligning entries with SPY trend
Anyone seeking clean, contextual entries filtered by market momentum
⚠️ Note: This indicator is most effective when used on fundamentally strong stocks that are sector leaders with solid earnings growth and market presence. Use technical signals as a complement to quality fundamentals.
ℹ️ Clarification: The moving averages displayed on the chart (e.g., on QQQ) are for visual reference only, to help users understand the color logic of the SPY trend filter. The actual logic and signals are based on SPY’s moving averages, regardless of the charted symbol.
[blackcat] L3 Projected Magic-9 SequenceOVERVIEW
The L3 Projected Magic-9 Sequence indicator is a sophisticated tool designed to help traders identify potential trend reversals through a unique sequence of price movements. By calculating projected highs and lows based on previous bar conditions, this script provides valuable insights into possible future market directions. It plots these key levels on the chart and highlights specific sequential patterns that often precede significant reversals, offering traders a visual advantage in their decision-making process 📈💡.
FEATURES
Projections: Calculates and plots projected highs and lows based on intricate conditions derived from previous bars' open, close, high, and low prices. These projections serve as dynamic support and resistance levels, helping traders anticipate potential turning points in the market 📊.
Sequential Patterns:
Identifies various sequential patterns known as "Magic" sequences, such as Magic-9 and Magic-13.
Labels these sequences directly on the chart for easy identification: 5, 6, 7, 8, 9, 12, 13 for both bullish and bearish trends.
Provides additional labels when these sequences align with projected highs or lows, enhancing the reliability of the signal 🏷️.
Differentiates between trend and sideways phases using the Magic-9 Project Range. Traditional sequences generating buy and sell signals of 9 and 13 during sideways swings are displayed indistinguishably from other numbers. However, the 9 and 13 generated by breakouts are highlighted with red and green labels for better visibility 🚦.
Project Range Adjustment:
The Project Range is automatically adjusted by Multiple Time Frame (MTF).
A higher cycle is selected as the baseline of the Project Range based on the current operating cycle, ensuring adaptability to varying market conditions ⏳.
Customization:
Offers customizable colors for plotted lines and labels, allowing users to tailor the appearance to their preferences 🎨.
Adjustable settings for lookback periods and other parameters to fine-tune the indicator according to individual trading styles.
Automatic Timeframe Selection:
Automatically selects the most suitable timeframe for data fetching, ensuring optimal performance across different chart intervals ⏳.
Ensures compatibility with various trading strategies, whether short-term intraday or long-term positional trading.
HOW TO USE
Adding the Indicator:
Open your TradingView platform and navigate to the chart where you want to apply the indicator.
Click on the "Indicators" button at the top of the screen and search for L3 Projected Magic-9 Sequence.
Select the indicator from the list and add it to your chart.
Understanding Projections:
Once added, observe the plotted projected highs and lows on your chart.
These lines represent anticipated support and resistance levels based on complex calculations involving previous bar data.
Identifying Sequential Patterns:
Look for labels such as 5, 6, 7, 8, 9, 12, and 13 appearing on the chart.
These labels signify specific sequential patterns that often precede market reversals.
Pay special attention to labels that include arrows (e.g., 9▼, 13▲), indicating alignment with projected highs or lows.
Note the differentiation between trend and sideways phases:
During sideways swings, traditional sequences generating buy and sell signals of 9 and 13 are displayed indistinguishably from other numbers.
Breakout-generated 9 and 13 are highlighted with red and green labels for clear identification.
Combining with Other Tools:
While the L3 Projected Magic-9 Sequence offers powerful insights, it is essential to combine its signals with other technical analysis tools.
Use moving averages, volume indicators, or candlestick patterns to confirm the validity of the identified sequences before executing trades.
LIMITATIONS
Market Conditions: The indicator performs best in trending markets but may generate false signals during periods of consolidation or range-bound movement 🌐.
Complexity: Due to its reliance on specific sequential patterns, some traders might find the concept challenging to grasp initially. Thorough testing and understanding are crucial before deploying it in live trading environments.
Data Dependency: Accurate projections depend on having sufficient historical data. Insufficient data may lead to less reliable results.
NOTES
Backtesting: Before implementing the indicator in real-time trading, conduct extensive backtesting to evaluate its effectiveness under various market conditions.
Risk Management: Always adhere to proper risk management principles, even when relying on robust indicators like this one. Set stop-loss orders and position sizes accordingly to protect your capital 🛡️.
Continuous Learning: Stay updated with the latest developments and adjustments made to the indicator by following community discussions and official updates from the author.