KEMAD | QuantumResearchQuantumResearch KEMAD Indicator
The QuantumResearch KEMAD Indicator is a sophisticated trend-following and volatility-based tool designed for traders who demand precision in detecting market trends and price reversals. By leveraging advanced techniques implemented in PineScript, this indicator integrates a Kalman filter, an Exponential Moving Average (EMA), and dynamic ATR-based deviation bands to produce clear, actionable trading signals.
1. Overview
The KEMAD Indicator aims to:
Reduce Market Noise: Employ a Kalman filter to smooth price data.
Identify Trends: Use an EMA of the filtered price to define the prevailing market direction.
Set Dynamic Thresholds: Adjust breakout levels with ATR-based deviation bands.
Generate Signals: Provide clear long and short trading signals along with intuitive visual cues.
2. How It Works
A. Kalman Filter Smoothing
Purpose: The Kalman filter refines the selected price source (e.g., close price) by reducing short-term fluctuations, thus offering a clearer view of the underlying price movement.
Customization: Users can adjust key parameters such as:
Process Noise: Controls the filter’s sensitivity to recent changes.
Measurement Noise: Determines how responsive the filter is to incoming price data.
Filter Order: Sets the number of data points considered in the smoothing process.
B. EMA-Based Trend Detection
Primary Trend EMA: A 25-period EMA is applied to the Kalman-filtered price, serving as the core trend indicator.
Signal Mechanism:
Long Signal: Triggered when the price exceeds the EMA plus an ATR-based upper deviation.
Short Signal: Triggered when the price falls below the EMA minus an ATR-based lower deviation.
C. ATR Deviation Bands
ATR Utilization: The Average True Range (ATR) is computed (default length of 21) to assess market volatility.
Dynamic Thresholds:
Upper Deviation: Calculated by adding 1.5× ATR to the EMA (for long signals).
Lower Deviation: Calculated by subtracting 1.1× ATR from the EMA (for short signals).
These bands adapt to current volatility, ensuring that signal thresholds are both dynamic and market-sensitive.
3. Visual Representation
The indicator’s design emphasizes clarity and ease of use:
Color-Coded Bar Signals:
Green Bars: Indicate bullish conditions when a long signal is active.
Red Bars: Indicate bearish conditions when a short signal is active.
Trend Confirmation Line: A 54-period EMA is plotted to further validate trend direction. Its color dynamically changes to reflect the active trend.
Background Fill: The space between a calculated price midpoint (typically the average of high and low) and the EMA is filled, visually emphasizing the prevailing market trend.
4. Customization & Parameters
The KEMAD Indicator is highly configurable, allowing traders to tailor the tool to their specific trading strategies and market conditions:
ATR Settings:
ATR Length: Default is 21; adjusts sensitivity to market volatility.
EMA Settings:
Trend EMA Length: Default is 25; smooths price action for trend detection.
Confirmation EMA Length: Default is 54; aids in confirming the trend.
Kalman Filter Parameters:
Process Noise: Default is 0.01.
Measurement Noise: Default is 3.0.
Filter Order: Default is 5.
Deviation Multipliers:
Long Signal Multiplier: Default is 1.5× ATR.
Short Signal Multiplier: Default is 1.1× ATR.
Appearance: Eight customizable color themes are available to suit individual visual preferences.
5. Trading Applications
The versatility of the KEMAD Indicator makes it suitable for various trading strategies:
Trend Following: It helps identify and ride sustained bullish or bearish trends by filtering out market noise.
Breakout Trading: Detects when prices move beyond the ATR-based deviation bands, signaling potential breakout opportunities.
Reversal Detection: Alerts traders to potential trend reversals when price crosses the dynamically smoothed EMA.
Risk Management: Offers clearly defined entry and exit points, based on volatility-adjusted thresholds, enhancing trade precision and risk control.
6. Final Thoughts
The QuantumResearch KEMAD Indicator represents a unique blend of advanced filtering (via the Kalman filter), robust trend analysis (using EMAs), and dynamic volatility assessment (through ATR deviation bands).
Its PineScript implementation allows for a high degree of customization, making it an invaluable tool for traders looking to reduce noise, accurately detect trends, and manage risk effectively.
Whether used for trend following, breakout strategies, or reversal detection, the KEMAD Indicator is designed to adapt to varying market conditions and trading styles.
Important Disclaimer: Past data does not predict future behavior. This indicator is provided for informational purposes only; no indicator or strategy can guarantee future results. Always perform thorough analysis and use proper risk management before trading.
Indicators and strategies
Volatility Arbitrage Spread Oscillator Model (VASOM)The Volatility Arbitrage Spread Oscillator Model (VASOM) is a systematic approach to capitalizing on price inefficiencies in the VIX futures term structure. By analyzing the differential between front-month and second-month VIX futures contracts, we employ a momentum-based oscillator (Relative Strength Index, RSI) to signal potential market reversion opportunities. Our research builds upon existing financial literature on volatility risk premia and contango/backwardation dynamics in the volatility markets (Zhang & Zhu, 2006; Alexander & Korovilas, 2012).
Volatility derivatives have become essential tools for managing risk and engaging in speculative trades (Whaley, 2009). The Chicago Board Options Exchange (CBOE) Volatility Index (VIX) measures the market’s expectation of 30-day forward-looking volatility derived from S&P 500 option prices (CBOE, 2018). Term structures in VIX futures often exhibit contango or backwardation, depending on macroeconomic and market conditions (Alexander & Korovilas, 2012).
This strategy seeks to exploit the spread between the front-month and second-month VIX futures as a proxy for term structure dynamics. The spread’s momentum, quantified by the RSI, serves as a signal for entry and exit points, aligning with empirical findings on mean reversion in volatility markets (Zhang & Zhu, 2006).
• Entry Signal: When RSI_t falls below the user-defined threshold (e.g., 30), indicating a potential undervaluation in the spread.
• Exit Signal: When RSI_t exceeds a threshold (e.g., 70), suggesting mean reversion has occurred.
Empirical Justification
The strategy aligns with findings that suggest predictable patterns in volatility futures spreads (Alexander & Korovilas, 2012). Furthermore, the use of RSI leverages insights from momentum-based trading models, which have demonstrated efficacy in various asset classes, including commodities and derivatives (Jegadeesh & Titman, 1993).
References
• Alexander, C., & Korovilas, D. (2012). The Hazards of Volatility Investing. Journal of Alternative Investments, 15(2), 92-104.
• CBOE. (2018). The VIX White Paper. Chicago Board Options Exchange.
• Jegadeesh, N., & Titman, S. (1993). Returns to Buying Winners and Selling Losers: Implications for Stock Market Efficiency. The Journal of Finance, 48(1), 65-91.
• Zhang, C., & Zhu, Y. (2006). Exploiting Predictability in Volatility Futures Spreads. Financial Analysts Journal, 62(6), 62-72.
• Whaley, R. E. (2009). Understanding the VIX. The Journal of Portfolio Management, 35(3), 98-105.
Candle Range TheoryCandle Range Analysis:
Calculates the true range of each candle
Shows a 14-period SMA of the range (adjustable)
Dynamic bands based on standard deviation
Visual Components:
Colored histogram showing range deviations from mean
Signal line for oscillator smoothing
Expansion/contraction zones marked with dotted lines
Arrow markers for extreme range conditions
Key Functionality:
Identifies range expansion/contraction relative to historical volatility
Shows normalized range oscillator (-100% to +100% scale)
Includes visual and audio alerts for extreme range conditions
Customizable parameters for sensitivity and smoothing
Interpretation:
Red zones indicate above-average volatility/expansion
Green zones indicate below-average volatility/contraction
Crossings above/below zero line show range expansion/contraction
Signal line crossover system potential
End-of-Session ProbabilityThis indicator estimates the probability that the market will finish the session above a specified target price. It blends a statistical probability model with directional bias and optional morning momentum weighting to help traders gauge end-of-day market expectations.
Key Features:
• Statistical Probability Model:
Uses a normal distribution (with a custom normal CDF approximation) scaled by the square-root-of-time rule. The indicator dynamically adjusts the standard deviation for the remaining session time to compute a z‑score and ultimately the probability that the session close exceeds the target.
• Directional Bias via Daily HullMA (Exponential):
A daily Hull Moving Average (calculated using an exponential method) is used as a big-picture trend indicator. The model allows you to select your bias method—either by comparing the current price to the daily HullMA (Price method) or by using the HullMA’s slope (Slope method). A drift multiplier scales this bias, which then shifts the mean used in the probability calculations.
• Optional Morning Momentum Weight:
For traders who believe that early session moves provide useful clues about the day’s momentum, you can enable an optional weighting. The indicator captures the percentage change from the morning open (within a user-defined time window) and adjusts the expected move accordingly. A multiplier lets you control the strength of this adjustment.
• Visual Outputs:
The indicator plots quantile lines (approximately the 25%, 50%, and 75% levels) for the expected price distribution at session end. An abbreviated on-chart label displays key information:
• Target: The target price (current price plus a user-defined offset)
• Prob Above: The probability (in percentage) that the session close will exceed the target price
• Time: The time remaining in the session (in minutes)
How to Use:
1. Set Your Parameters:
• Expected Session Move: Input your estimated standard deviation for the full-session move in price units.
• Daily Hull MA Settings: Adjust the period for the daily HullMA and choose the bias method (Price or Slope). Modify the drift multiplier to tune the strength of the directional bias.
• Target Offset: Specify an offset from the current price to set your target level.
• Morning Momentum (Optional): Enable the morning momentum weight if you want the indicator to adjust the expected move based on early session price changes. Define the morning session window and set the momentum multiplier.
2. Interpret the Output:
• Quantile Lines: These represent the range of possible end-of-session prices based on your model.
• Abbreviated Label: Provides a quick snapshot of the target price, probability of finishing above that target, and time remaining in the session.
3. Trading Application:
Use the probability output as a guide to assess if the market is likely to continue in the current direction or reverse by session close. The indicator can help you decide on trade entries, exits, or adjustments based on your overall strategy and risk management approach.
This tool is designed to offer a dynamic, statistically driven snapshot of the market’s expected end-of-day behavior, combining both longer-term trend bias and short-term momentum cues.
Bitcoin Liquidity Breakout with ICT StrategiesBitcoin Liquidity Breakout with ICT Strategies
a one of many scripts developed by our engineers .
Check the results for yourself
Market Sentiment - Historic Movement & Pending Orders The "Market Sentiment Osc" is a custom trading indicator designed to assess market sentiment based on bid-ask and tick-based data. This oscillator aggregates data from two key sources:
It measures the balance between market upticks, market downticks, cumulative bids and cumulative asks. By doing this we are attempting to guage sentiment by combining the actions that have happened in the past as well as the pending actions the market is willing to make.
The indicator combines these two components to form a composite oscillator that highlights shifts in market sentiment. When the composite value is positive, it suggests a bullish trend, while a negative value indicates bearish sentiment.
The Hoodie Market Trend is plotted as a histogram, with color coding:
Green: Bullish momentum (positive values).
Red: Bearish momentum (negative values).
Additionally, the user can toggle the histogram visibility with the provided input option.
This oscillator can be applied across various timeframes and stock symbols without allowing for symbol customization, making it a simple yet effective tool for market trend analysis. The zero line (purple) serves as a reference point to gauge whether the market is in a bullish or bearish phase.
OmniPulse (Fixed Version)OmniPulse (Fixed Version) – Description
OmniPulse is a multi-indicator framework designed to combine three core oscillators—RSI, Stochastic, and Momentum—at various lookback lengths, then refine their signals using placeholder features such as machine learning forecasting, adaptive cycle detection, and neural network filtering. While some of these advanced features are not natively supported in Pine Script, they are represented here in simplified forms to illustrate how a more sophisticated system could be structured.
Key Components:
Multi-Length Oscillator Arrays
RSI (calcrsi() function)
Stochastic (placeholder via ta.sma() on a typical price average)
Momentum (ta.roc())
These are calculated for multiple lengths defined by the rsiLengths, stochLengths, and momentumLengths arrays.
Dual-Threshold Convergence
Compares each oscillator’s value to user-defined upper/lower thresholds (threshold1, threshold2) to identify bullish or bearish conditions.
Summarizes results in a convergence score.
Placeholder Machine Learning Forecast
Demonstrates a simple averaging of oscillator values as a “forecast” when toggled on.
Adaptive Cycle Detection (Placeholder)
Introduces a static cycle period (e.g., 20.0) as a placeholder for more advanced transforms.
Neural Network Filter (Placeholder)
Averages convergence, forecast, and cyclePeriod into a single filteredSignal.
Signal Plotting
Plots the filtered signal on the chart.
Highlights potential bullish or bearish extremes with shape markers based on percentile thresholds.
Practical Use & Extension:
Real Multi-Timeframe Analysis: Replace placeholders with request.security() for each timeframe.
Advanced Forecasting: Incorporate custom or external machine learning models.
Genuine Cycle Detection: Implement more sophisticated logic or user-defined cycle detection tools.
Neural Network Heuristics: Expand the placeholder step into a deeper filtering or weighting system.
Overall, OmniPulse serves as an adaptable blueprint for traders and developers, showcasing how multiple indicators and advanced concepts might be combined into a cohesive, signal-generating framework.
Buyable Gap Ups (BGU) ScreenerBuyable Gap Ups (BGU) Screener
This custom indicator detects Buyable Gap Ups (BGU), designed to identify stocks with significant price movements driven by gap-ups, often signaling strong bullish momentum. It helps traders spot potential opportunities where a stock has gapped up above the previous day's high with increased volume, suggesting the possibility of continued price strength.
Key Features:
Gap Percentage Threshold: Set a minimum gap percentage required for a valid buyable gap-up.
Volume Change Threshold: Identifies gap-ups accompanied by a significant increase in volume compared to the 50-day average.
ATR-Based Gap Detection (Optional): Use Average True Range (ATR) to determine whether the gap is large enough, factoring in recent volatility.
Customizable Lookback Period: Adjust the number of recent bars to track the frequency of BGU occurrences.
Volume Confirmation: Only signals buyable gaps when volume surpasses a defined threshold above the 50-day average.
Input Parameters:
Gap Percentage Threshold: Adjusts the minimum percentage gap for a valid signal.
Volume Change Threshold: Determines the minimum percentage increase in volume compared to the 50-day moving average.
Use ATR Gap: Option to use ATR to determine the minimum gap size instead of the percentage gap.
ATR Multiplier for Gap: Customizes the gap size based on the ATR.
ATR Length: Adjusts the lookback period for calculating ATR.
Lookback Period for BGU: Set the number of bars over which to calculate the BGU count.
Alerts & Signals:
The script will plot signals below bars where a valid BGU condition is met.
Alerts can be set for when a BGU is detected, giving real-time notifications for potential trading opportunities.
This indicator is designed to help traders find stocks showing strong bullish momentum, especially after earnings or other market-moving events, with the potential for continued uptrend. It is ideal for those looking to incorporate gap-based strategies in their trading.
Fixed Gap Price LevelsIndicator Description:
The Fixed Gap Price Levels indicator draws horizontal price levels at user-defined intervals on the chart.
Users can select a starting price level (e.g., 71 or 2.1).
Lines are drawn at fixed gaps (e.g., if 71 is chosen, lines appear at 71, 142, 213, etc.).
An optional midpoint line can be enabled to appear halfway between the main levels.
Customizable colors for both main and midpoint lines.
Lines extend across the entire screen for easy visualization of price levels.
This tool helps traders quickly identify key price levels based on predefined spacing, aiding in technical analysis.
STDEV Multi TimeFrame [Snowdex]STDEV Multi TimeFrame
The STDEV Multi TimeFrame indicator plots standard deviation levels (+1SD, +2SD, +3SD, -1SD, -2SD, -3SD) based on a user-selected timeframe (1D, 1W, 1M, etc.). It helps identify volatility, trend strength, and potential reversal zones using Bollinger Bands-style deviation calculations.
Key Features:
✅ Multi-Timeframe Selection – Choose any timeframe for STDEV calculations.
✅ Customizable Bollinger Bands – Select SMA, EMA, RMA, or WMA as the baseline.
✅ Color-Coded STDEV Levels – Fast (Green), Medium (Orange), Slow (Red).
✅ Non-Repainting & Accurate – Uses request.security() for precise data retrieval.
✅ Extended Lines & Labels – Clear trend monitoring with formatted values.
Use Cases:
📌 Detect trend direction & volatility.
📌 Identify overbought/oversold zones.
📌 Use as dynamic support/resistance levels.
🚀 Ideal for stocks, forex, crypto, and options trading! 🚀
Price Level Multi Timeframe [Snowdex]Price Level Multi-Timeframe Indicator
This indicator visualizes important price levels from multiple timeframes (e.g., daily, weekly, monthly) directly on the chart. It helps traders identify significant support and resistance levels for better decision-making.
Features:
Displays price levels for multiple timeframes: daily (1D), weekly (1W), monthly (1M), quarterly (3M), semi-annual (6M), and yearly (12M).
Customizable options to show or hide levels and adjust their colors.
Highlights high, low, and close levels of each timeframe with labels and dotted lines.
Includes options to extend levels visually for better clarity.
Benefits:
Easily compare price levels across timeframes.
Enhance technical analysis with multi-timeframe insights.
Identify key areas of support and resistance dynamically.
Month of Year Performance█ OVERVIEW
The Month of Year Performance indicator is designed to visualize and compare the cumulative percentage change for each month of the year. By aggregating monthly returns, it helps uncover seasonal trends and potential anomalies in financial markets.
In financial analysis, a calendar based anomaly refers to recurring patterns or tendencies associated with specific time periods, such as days of the week. By calculating the cumulative percentage change for each month (January through December) and displaying the results both graphically and in a summary table, this indicator helps identify whether certain months
consistently outperform others.
█ FEATURES
Customisable time window via Time Settings.
Calculates cumulative percentage change for each month (January to December) separately.
Built-in error check to ensure the indicator is applied on a Monthly timeframe.
Distinct visual representation for each month using unique colours.
Customisable table settings including location and font size.
Displays a performance summary table with metrics such as performance, average return, % positive, and count.
█ HOW TO USE
Add the indicator to a chart set to a Monthly timeframe.
Select your desired Start Time and End Time in the Time Settings.
Toggle the performance table on or off in the Table Settings.
Adjust the table’s location and font size as needed.
View the cumulative monthly performance plotted in distinct colours.
Colour Scheme:
January: Blue
February: Red
March: Green
April: Orange
May: Purple
June: Fuchsia
July: Teal
August: Yellow
September: Navy
October: Lime
November: Maroon
December: Aqua
Schwarzman Custom ORB with Box DisplayIndicator Overview
The Schwarzman Custom ORB (Opening Range Breakout) Indicator is a fully self-developed script designed for traders who utilize opening range breakout strategies. This indicator allows users to customize their ORB settings, apply them to historical price data, and visually connect multiple ORBs to analyze past performance. The goal is to provide traders with a tool to backtest and refine their breakout strategies based on historical ORB data.
How the Indicator Works
1️⃣ User-Defined ORB Settings
• The user selects a custom start time (hour and minute) for the ORB.
• The user defines a duration (e.g., 15 minutes, 30 minutes, etc.) for the ORB period.
• A timezone offset is included to adjust for different market sessions.
2️⃣ ORB High and Low Calculation
• The script records the highest and lowest prices within the selected ORB time window.
• The recorded values remain static after the ORB period ends, ensuring accurate range plotting.
3️⃣ Historical ORB Visualization
• Instead of only showing a single ORB for the current session, this indicator connects multiple ORBs across past data.
• This allows traders to visually analyze previous breakout performance.
• The plotted ORBs remain fixed and do not repaint, ensuring an accurate backtesting experience.
4️⃣ Stepline Visualization & Range Filling
• The high and low ORB levels are displayed using stepline plots to maintain clear horizontal levels.
• A shaded box is applied between the ORB high and low for better visualization.
Use Cases & Strategy Application
📌 Backtesting Historical ORBs – See how past ORBs performed under different market conditions.
📌 Custom ORB Settings – Adjust the start time and duration for different trading sessions.
📌 Multi-ORB Analysis – Connect ORBs over multiple trading days to study trends and breakouts.
📌 Breakout Strategy Optimization – Use the historical ORB connections to refine entry and exit points.
This indicator is particularly useful for day traders, scalpers, and breakout traders looking for a data-driven approach to trading.
Indicator Development & Transparency Statement
As a trader, I have tested various ORB (Opening Range Breakout) indicators available in the TradingView community. Through these experiences, I aimed to develop a version that best fits my own trading needs and strategy.
This script is a self-developed ORB tool, created from scratch while drawing inspiration from the concept of opening range breakouts, which is widely used in trading. Since I initially coded in Pine Script v4, I used ChatGPT to help refine and migrate the script to Pine Script v6 to ensure compatibility with the latest TradingView features. However, the core logic, structure, and customization were entirely designed and implemented based on my own approach.
I am making this indicator public not to violate any TradingView guidelines but to share my work with the trading community and provide a tool that can help others analyze ORB-based strategies. If there are any compliance concerns, I am open to adjusting the script accordingly, but I want to clarify that this is not a copy of any existing ORB script—it is a custom-built indicator tailored to my own trading preferences.
I appreciate the opportunity to contribute to the community and would welcome any specific feedback from TradingView regarding rule compliance.
Best regards,
Janko S. (Schwarzman)
Appeal to TradingView
Dear TradingView Team,
This script is 100% self-developed and does not copy or replicate any third-party code. It is a customized ORB tool designed for traders who wish to backtest and analyze opening range breakout strategies over multiple sessions. We kindly request specific clarification regarding which exact line(s) of code violate TradingView’s guidelines. If there are any compliance concerns, we are happy to adjust the script accordingly.
Please let us know the precise rules or community guidelines that were violated so we can make the necessary modifications.
🚀 Summary
✔ Fully Custom & Self-Developed – No copied or third-party code.
✔ Innovative Feature – Connects past ORBs for strategy backtesting.
✔ Transparent & Compliant – Requesting exact details on any potential rule violations.
Moving Volume DensityMoving Volume Density (MVD) is a custom TradingView indicator written in Pine Script™ (version 6) that blends volume analysis with price range data to offer a unique perspective on market dynamics. By measuring the total volume over a specified period and relating it to the price range during the same interval, this indicator provides valuable insights into the concentration of trading activity relative to price movement.
Key Features:
User-Defined Period: The indicator uses an input period (default 20 bars) to calculate both the total volume and the price range. This flexibility allows you to tailor the analysis to your preferred timeframe.
Volume Calculation: It computes the sum of the volume over the defined period, capturing the cumulative trading activity.
Price Range Determination: The indicator identifies the highest high and the lowest low within the period, calculating the price range (difference between the two). This range serves as the denominator in the density calculation.
Volume Density Computation: Volume Density is derived by dividing the total volume by the price range. This metric reveals how concentrated the volume is within the observed price movement. To prevent division errors, the calculation returns 'NA' when the price range is zero.
Visual Representation: The resulting Volume Density is plotted as a line on a separate sub-window, making it easy to compare with other indicators or overlay your analysis.
「Moving Volume Density (MVD) インジケーター」は、Pine Script™(バージョン6)で作成されたカスタムインジケーターです。出来高の分析と、指定期間内の高値・安値による価格レンジの情報を組み合わせることで、市場のダイナミクスに対する独自の視点を提供します。指定された期間内の合計出来高とその期間内の価格レンジの比率から、価格変動に対する出来高の集中度を示す指標となります。
主な特徴:
ユーザー定義の期間: インジケーターは、入力された期間(デフォルトは20本のバー)を基に、合計出来高と価格レンジ(最高値と最安値の差)の両方を計算します。これにより、ご自身の分析に合わせた柔軟な設定が可能です。
出来高の計算: 指定期間内の全出来高を合計することで、累積的な取引活動を把握します。
価格レンジの算出: 期間内の最高値と最安値を取得し、その差を価格レンジとして算出。このレンジは、出来高密度の計算における分母として使用されます。
出来高密度の計算: 合計出来高を価格レンジで割ることで、出来高がどれだけ価格変動内に集中しているかを示す「出来高密度」を求めます。なお、価格レンジがゼロの場合はゼロ除算を避けるため「NA」を返す設計となっています。
視覚的な表現: 計算結果はサブウィンドウにラインとしてプロットされ、他のインジケーターとの併用や比較が容易に行えます。
ROBO STB Custom Weekly Candle (Fri-Thu)Description:
This indicator creates custom weekly candles that start on Friday and end on Thursday, instead of the standard Monday–Friday weekly structure in TradingView. It aggregates the open, high, low, and close (OHLC) values from Friday to Thursday and displays them as candlesticks on the chart.
Features:
✅ Custom weekly candles from Friday to Thursday
✅ Dynamic calculation of open, high, low, and close
✅ Works on any timeframe
✅ Helps traders analyze market structure differently
How It Works:
Identifies the custom weekly session based on Friday's start and Thursday's end.
Aggregates OHLC values within this time range.
Resets the values when a new custom week begins.
Plots the calculated weekly candles on the chart.
Use Case:
This indicator is useful for traders who prefer to analyze weekly price movements based on a non-standard start and end day, especially those focusing on forex, crypto, or commodities where trading hours differ.
Notes:
This script does not modify existing candles but overlays new custom weekly candles on the chart.
It does not repaint and updates in real-time.
If you find this useful, like and share! 🚀
Custom Length ATRThis Custom Length ATR Indicator allows traders to calculate the Average True Range (ATR) dynamically based on a selected timeframe and number of days. Unlike traditional ATR indicators that are tied to the chart’s timeframe, this script lets users choose a specific timeframe scale (e.g., Daily, Hourly, etc.), ensuring consistent volatility measurement across different trading views.
Precious Metals & GSR (Zeiierman)█ Overview
The Precious Metals & GSR (Zeiierman) is designed to provide traders and investors with a comprehensive view of the Gold-Silver Ratio (GSR) and other precious metal relationships. This tool helps evaluate the relative strength between different metals by analyzing their price ratios over historical periods, using quantile-based analysis and trend interpretation tables to highlight key insights.
The Gold-Silver Ratio (GSR) is a widely utilized metric in precious metals trading, representing the number of silver ounces required to purchase one ounce of gold. Historically, this ratio has fluctuated, providing traders with insights into the relative value of these two metals. By analyzing the GSR, traders can identify potential trading opportunities based on historical patterns and market dynamics.
By integrating customizable percentile bands, gradient coloring for performance visualization, and dynamic ratio analysis, this indicator assists in understanding how one metal is performing relative to another, making it useful for trend tracking, risk management, and portfolio allocation.
█ How It Works
The Precious Metals & GSR Indicator operates by fetching the latest prices of the selected precious metals in the user's chosen currency. It then calculates the ratio between two selected metals (Metal 1 and Metal 2) and analyzes this ratio over a specified period. By computing quantile bands and high/low bands, the indicator provides insights into the historical performance and current standing of the ratio.
⚪ Ratio Calculation
The core of this indicator is the metal ratio, calculated by dividing the price of Metal 1 by Metal 2.
A rising ratio means Metal 1 is outperforming Metal 2.
A falling ratio means Metal 2 is outperforming Metal 1.
The indicator automatically retrieves live market prices of Gold, Silver, Platinum, and Palladium to compute the ratio.
⚪ Quantile Ratio Bands
The indicator calculates the highest (max) and lowest (min) ratio levels over a user-defined period.
It also plots quantile bands at the 10th, 25th, 50th (median), 75th, and 90th percentiles, providing deeper statistical insights into how extreme or average the current ratio is.
The median (Q50) acts as a reference level, showing whether the ratio is above or below its historical midpoint.
⚪ Interpretation Table
The Ratio Interpretation Table provides a text-based summary of the ratio’s strength.
It detects whether Metal 1 is at a historical high, low, or within common ranges.
This helps traders and investors make informed decisions on whether the ratio is overextended, mean-reverting, or trending.
⚪ Precious Metals Table
Displays live market prices for Gold, Silver, Platinum, and Palladium.
Prices are shown in different units (oz, kg, grams, and troy ounces) based on user preferences.
A color-coded system highlights price changes, making it easier to track market movements.
⚪ Physical Holding Calculator
Users can enter their precious metal holdings to estimate their current value.
The system adjusts calculations based on weight, purity (24K, 22K, etc.), and unit of measurement.
The holding value is displayed in the selected currency (USD, EUR, GBP, etc.).
█ How to Use
⚪ Trend Identification
If the ratio is increasing, Metal 1 is gaining strength relative to Metal 2 → Possible Long Position on Metal 1 / Short on Metal 2
If the ratio is decreasing, Metal 2 is gaining strength relative to Metal 1 → Possible Short Position on Metal 1 / Long on Metal 2
⚪ Mean Reversion Strategy
When the ratio reaches the 90th percentile, Metal 1 is historically overextended (expensive) compared to Metal 2.
Traders may look to sell Metal 1 and buy Metal 2, expecting the ratio to decline back toward its historical average.
Example (Gold/Silver Ratio): If the GSR is above the 90th percentile, gold is very expensive relative to silver, suggesting a potential buying opportunity in silver and/or a selling opportunity in gold.
When the ratio reaches the 10th percentile, Metal 1 is historically undervalued (cheap) compared to Metal 2.
Traders may look to buy Metal 1 and sell Metal 2, expecting the ratio to rise back toward its historical average.
Example (Gold/Silver Ratio): If the GSR is below the 10th percentile, gold is very cheap relative to silver, suggesting a potential buying opportunity in gold and/or a selling opportunity in silver.
⚪ Common Strategy Based on GSR Insights
A common approach involves monitoring the ratio for extreme values based on historical data. When the ratio reaches historically high levels, it suggests that gold is expensive relative to silver, potentially indicating a buying opportunity for silver and/or a selling opportunity for gold. Conversely, when the ratio is at historically low levels, silver is expensive relative to gold, suggesting a potential buying opportunity for gold and/or selling opportunity for silver. This mean-reversion strategy relies on the tendency of the GSR to return to its historical average over time.
⚪ Hedging & Portfolio Diversification
If Gold is strongly outperforming Silver, investors may shift allocations to balance risk.
If Silver is rapidly gaining on Gold, it may indicate increased industrial demand or speculative interest.
⚪ Inflation & Economic Cycles
A rising Gold-Silver ratio often correlates with economic downturns and increased risk aversion.
A falling Gold-Silver ratio may signal stronger economic growth and higher inflation expectations.
█ Settings
Precious Metals Table
Select which metals to display (Gold, Silver, Platinum, Palladium)
Choose measurement units (oz, kg, grams, troy ounces)
Ratio Analysis
Select Metal 1 & Metal 2 for ratio calculation
Set historical length for quantile calculations
Interpretation Table
Enable automated insights based on ratio levels
Physical Holdings Calculator
Enter metal weight, purity, and unit
Select calculation currency
-----------------
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
Jerusalem Session Weekday MarkingJerusalem Session Weekday Marking
This indicator applies a background color to each trading day based on the Jerusalem time zone (Asia/Jerusalem). It's a simple, no-frills tool for traders operating in markets that follow a Sunday-Thursday business week.
How It Works:
Monday to Thursday → Red background (Regular trading days)
Friday to Sunday → Green background (Weekend/non-standard trading days)
Background coloring applies to the entire day (not just session hours).
Why Use This?
Designed for traders focusing on Middle Eastern, Israeli, and Forex markets.
Helps differentiate trading days at a glance in a market where Friday-Saturday weekends are standard.
Works automatically with Jerusalem timezone, no manual adjustments needed.
🚀 Simple, effective, and useful for traders who care about local trading schedules. 🚀
Ichimoku Score Indicator [tanayroy]The Ichimoku Cloud is a comprehensive indicator that provides a clear view of market states through five key components. By analyzing the interaction between these components and the asset's price, traders can gain insights into trend direction, momentum, and potential reversals.
Introducing the Ichimoku Score System
I have developed a scoring system that quantifies these interactions, offering an objective method to evaluate market conditions. The score is calculated based on the relative positioning of Ichimoku components, with adjustable weightings via user input.
Scoring Criteria
Each component contributes to the overall score as follows:
Price vs. Cloud (Kumo) & Other Components
Price vs. Kumo → 2 Points
Price vs. Kumo Shadow → 0.5 Points
Tenkan vs. Kijun
Tenkan vs. Kijun → 2 Points
Tenkan vs. Kumo → 0.5 Points
Kijun vs. Kumo → 0.5 Points
Tenkan Slope → 0.5 Points
Kijun Slope → 0.5 Points
Chikou Span Interactions
Price vs. Chikou → 2 Points
Chikou vs. Kumo → 0.5 Points
Chikou Consolidation → 0.5 Points
Senkou Span Analysis
Senkou A vs. Senkou B → 2 Points
Senkou Slope → 0.5 Points
Price vs. Key Levels
Price vs. Tenkan → 2 Points
Price vs. Kijun → 2 Points
Interpreting the Score
The aggregate score functions as an oscillator, fluctuating between a range of ±16.0.
A higher score indicates strong bullish momentum.
A lower score suggests bearish market conditions.
To enhance readability and smooth fluctuations, a 9-period SMA is applied to the score.
Application in Algorithmic Trading
This scoring system helps integrate Ichimoku Cloud principles into algorithmic trading strategies by providing a structured and quantifiable method for assessing market conditions.
Would love to hear your feedback! 🚀 Let me know how this system works for you.
Period Counter CandleDescription:
The Period Candle Counter is a Pine Script v6 indicator designed to track and display candle statistics within a user-defined time range. This tool provides valuable insights into market movement by counting green (bullish) and red (bearish) candles within the selected period, along with their respective percentages.
Additionally, it calculates the total duration of the selected candles based on the current chart timeframe. This allows traders to understand how much actual market time has passed during the analyzed period.
Features & Functionality:
✅ Custom Time Selection:
Users can define a start and end time for the analysis.
The indicator automatically identifies and tracks candles within this period.
✅ Candle Count & Percentages:
Total Candles in the selected period.
Green Candle Count & Percentage (bullish candles).
Red Candle Count & Percentage (bearish candles).
✅ Time Calculation:
Multiplies the number of candles by the chart timeframe.
Converts the total time into hours and minutes (e.g., "2h 30m").
✅ User-Friendly Display:
Data is neatly organized in a panel positioned in the top-right corner of the chart.
Background highlighting is applied during the selected period for easy visualization.
Use Cases:
📊 Trend Analysis – Helps traders identify whether a session was bullish or bearish.
⏳ Market Session Timing – Understand how long a specific trend or movement lasted.
📉 Backtesting Strategy Support – Evaluate historical periods efficiently.
Day of Week Performance█ OVERVIEW
The Day of Week Performance indicator is designed to visualise and compare the cumulative percentage change for each day of the week. This indicator explores one of the many calendar based anomalies in financial markets.
In financial analysis, a calendar based anomaly refers to recurring patterns or tendencies associated with specific time periods, such as days of the week. By calculating the cumulative percentage change for each day (Monday through Friday) and displaying the results both graphically and in a summary table, this indicator helps identify whether certain days consistently outperform others.
█ FEATURES
Customisable time window via Time Settings.
Calculates cumulative percentage change for each day (Monday to Friday) separately.
Option to use Sunday instead of Friday for CFDs and Futures analysis.
Distinct visual representation for each day using unique colours.
Customisable table settings including position and font size.
Built-in error checks to ensure the indicator is applied on a Daily timeframe.
█ HOW TO USE
Add the indicator to a chart set to a Daily timeframe.
Select your desired Start Time and End Time in the Time Settings.
Toggle the performance table on or off in the Table Settings.
Adjust the table’s location and font size as needed.
Use the "Use Sunday instead of Friday" option if your market requires it.
View the cumulative performance plotted in distinct colours.
Colour Scheme:
Monday: Blue
Tuesday: Red
Wednesday: Green
Thursday: Orange
Friday: Purple
AdvancedLines (FiboBands) - PaSKaL
Overview :
AdvancedLines (FiboBands) - PaSKaL is an advanced technical analysis tool designed to automate the plotting of key Fibonacci retracement levels based on the highest high and lowest low over a customizable period. This indicator helps traders identify critical price zones such as support, resistance, and potential trend reversal or continuation points.
By using AdvancedLines (FiboBands) - PaSKaL , traders can easily spot key areas where the price is likely to reverse or consolidate, or where the trend may continue. It is particularly useful for trend-following, scalping, and range-trading strategies.
Key Features:
Automatic Fibonacci Level Calculation :
- The indicator automatically calculates and plots key Fibonacci levels (0.236, 0.382, 0.5, 0.618, and 0.764), which are crucial for identifying potential support and resistance levels in the market.
Adjustable Parameters :
- Bands Length: You can adjust the bands_length setting to change the number of bars used for calculating the highest high and lowest low. This gives flexibility for using the indicator on different timeframes and trading styles.
- Visibility: The Fibonacci levels, as well as the midline (0.5 Fibonacci level), can be shown or hidden based on your preference.
- Color Customization: You can change the color of each Fibonacci level and background fills to suit your chart preferences.
Fibonacci Levels
- The main Fibonacci levels plotted are:
- 0.236 – Minor support/resistance level
- 0.382 – Moderate retracement level
- 0.5 – Midpoint retracement, often used as a key level
- 0.618 – Golden ratio, considered one of the most important Fibonacci levels
- 0.764 – Strong reversal level, often indicating a continuation or change in trend
Background Fill
- The indicator allows you to fill the background between the Fibonacci levels and the bands with customizable colors. This makes it easier to visually highlight key zones on the chart.
How the Indicator Works:
AdvancedLines (FiboBands) - PaSKaL calculates the range (difference between the highest high and the lowest low) over a user-defined number of bars (e.g., 300). Fibonacci levels are derived from this range, helping traders identify potential price reversal points.
Mathematical Basis :
Fibonacci retracement levels are based on the Fibonacci sequence, where each number is the sum of the previous two (0, 1, 1, 2, 3, 5, 8, 13, etc.). The ratios derived from this sequence (such as 0.618 and 0.382) have been widely observed in nature, market cycles, and price movements. These ratios are used to forecast potential price retracements or continuation points after a major price move.
Fibonacci Levels Calculation :
Identify the Range: The highest high and the lowest low over the defined period are calculated.
Apply Fibonacci Ratios: Fibonacci ratios (0.236, 0.382, 0.5, 0.618, and 0.764) are applied to this range to calculate the corresponding price levels.
Plot the Levels: The indicator automatically plots these levels on your chart.
Customizing Fibonacci Levels & Colors:
The "AdvancedLines (FiboBands) - PaSKaL" indicator offers various customization options for Fibonacci levels, colors, and visibility:
Fibonacci Level Ratios:
- You can customize the Fibonacci level ratios through the following inputs:
- Fibo Level 1: 0.764
- Fibo Level 2: 0.618
- Fibo Level 3: 0.5
- Fibo Level 4: 0.382
- Fibo Level 5: 0.236
- These levels determine key areas where price may reverse or pause. You can adjust these ratios based on your trading preferences.
Fibonacci Level Colors:
- Each Fibonacci level can be assigned a different color to make it more distinguishable on your chart:
- Fibo Level 1 Color (default: Yellow)
- Fibo Level 2 Color (default: Orange)
- Fibo Level 3 Color (default: Green)
- Fibo Level 4 Color (default: Red)
- Fibo Level 5 Color (default: Blue)
- You can change these colors to fit your visual preferences or to align with your existing chart themes.
Visibility of Fibonacci Levels:
- You can choose whether to display each Fibonacci level using the following visibility inputs:
- Show Fibo Level 1 (0.764): Display or hide this level.
- Show Fibo Level 2 (0.618): Display or hide this level.
- Show Fibo Level 3 (0.5): Display or hide this level.
- Show Fibo Level 4 (0.382): Display or hide this level.
- Show Fibo Level 5 (0.236): Display or hide this level.
- This allows you to customize the indicator according to the specific Fibonacci levels that are most relevant to your trading strategy.
Background Fill Color
- The background between the Fibonacci levels and price bands can be filled with customizable colors:
- Fill Color for Upper Band & Fibo Level 1: This color will fill the area between the upper band and Fibonacci Level 1.
- Fill Color for Lower Band & Fibo Level 5: This color will fill the area between the lower band and Fibonacci Level 5.
- Adjusting these colors helps highlight critical zones where price may reverse or consolidate.
How to Use AdvancedLines (FiboBands) - PaSKaL in Trading :
Range Trading :
Range traders typically buy at support and sell at resistance. Fibonacci levels provide excellent support and resistance zones in a ranging market.
Example: If price reaches the 0.618 level in an uptrend, it may reverse, providing an opportunity to sell.
Conversely, if price drops to the 0.382 level, a bounce might occur, and traders can buy, anticipating the market will stay within the range.
Trend-following Trading :
For trend-following traders, Fibonacci levels act as potential entry points during a retracement. After a strong trend, price often retraces to one of the Fibonacci levels before continuing in the direction of the trend.
Example: In a bullish trend, when price retraces to the 0.382 level, it could be a signal to buy, as the price might resume its upward movement after the correction.
In a bearish trend, retracements to levels like 0.618 or 0.764 could provide optimal opportunities for shorting as the price resumes its downward movement.
Scalping :
Scalpers focus on short-term price movements. Fibonacci levels can help identify precise entry and exit points for quick trades.
Example: If price is fluctuating in a narrow range, a scalper can enter a buy trade at 0.236 and exit at the next Fibonacci level, such as 0.382 or 0.5, capturing small but consistent profits.
Stop-Loss and Take-Profit Levels :
Fibonacci levels can also help in setting stop-loss and take-profit levels.
Example: In a bullish trend, you can set a stop-loss just below the 0.236 level and a take-profit at 0.618.
In a bearish trend, set the stop-loss just above the 0.382 level and the take-profit at 0.764.
Identifying Reversals and Continuations :
Reversals: When price reaches a Fibonacci level and reverses direction, it may indicate the end of a price move.
Trend Continuation: If price bounces off a Fibonacci level and continues in the same direction, this may signal that the trend is still intact.
Conclusion :
AdvancedLines (FiboBands) - PaSKaL is an essential tool for any trader who uses Fibonacci retracements in their trading strategy. By automatically plotting key Fibonacci levels, this indicator helps traders quickly identify support and resistance zones, forecast potential reversals, and make more informed trading decisions.
For Trend-following Traders: Use Fibonacci levels to find optimal entry points after a price retracement.
For Range Traders: Identify key levels where price is likely to reverse or bounce within a range.
For Scalpers: Pinpoint small price movements and take advantage of quick profits by entering and exiting trades at precise Fibonacci levels.
By incorporating AdvancedLines (FiboBands) - PaSKaL into your trading setup, you will gain a deeper understanding of price action, improve your decision-making process, and enhance your overall trading performance.
Custom Length Moving AverageThe Custom Length Moving Average is a dynamic indicator that allows traders to plot a moving average with an adjustable length based on their preferred number of days. Users can choose between Simple Moving Average (SMA), Exponential Moving Average (EMA), or Weighted Moving Average (WMA) to match their trading strategy. The script automatically calculates the moving average length by factoring in the chart’s timeframe and trading session duration, ensuring precision and adaptability. This makes it an ideal tool for traders looking for a flexible moving average that adjusts to different market conditions and timeframes.