Williams Accelerator Oscillator — ACWhat it is
The Accelerator Oscillator (AC) measures the acceleration/deceleration of momentum. It’s derived from the Awesome Oscillator (AO) and shows whether momentum is speeding up or slowing down. In this implementation, columns are green when AC rises vs. the previous bar and red when it falls.
How it’s calculated
Price source: Median Price (HL2) by default; Close can be used instead.
AO = SMA(HL2, fastLen) − SMA(HL2, slowLen) (defaults: 5 & 34).
AC = AO − SMA(AO, signalLen) (default: 5).
Coloring: Green if AC > AC , else Red.
Zero line (optional) helps contextualize acceleration around neutral.
How to read it (typical interpretation)
Above 0: Upside acceleration (bullish pressure increasing).
Below 0: Downside acceleration (bearish pressure increasing).
Color sequences: Consecutive green columns suggest increasing upside acceleration; consecutive red columns suggest increasing downside acceleration.
Note: AC reflects change in momentum, not trend direction by itself. Many traders confirm with trend filters or price structure before acting.
Inputs
AO Fast SMA (default 5)
AO Slow SMA (default 34)
AC Signal SMA (default 5) — smoothing for the AO used in AC calc
Use Median Price (HL2) for AO (on/off)
Show zero line (on/off)
Show AO (for reference) (on/off)
Show AC signal (SMA of AO) (on/off)
Plots
AC Histogram — column chart colored by acceleration (green/red).
Zero — optional baseline at 0.
AO — optional reference line.
AO Signal (SMA) — optional smoothing line of AO.
Alerts
AC crosses above 0 — acceleration flips positive.
AC crosses below 0 — acceleration flips negative.
AC green above zero — AC rising and > 0.
AC red below zero — AC falling and < 0.
Usage tips
On lower timeframes, consider a slightly larger signalLen to reduce noise.
Confirm with price action, trend filters, or volatility context.
Values update intrabar; for stricter signals, confirm on bar close.
Limitations
AC is built from moving averages and is therefore lagging relative to raw price.
It is not normalized; behavior can vary by instrument and timeframe.
Do not use in isolation for entries/exits without risk management.
Credits
Concept by Bill Williams. This script is an independent implementation for educational and research purposes.
Disclaimer
No financial advice. Markets involve risk; test thoroughly before live use.
指标和策略
COT Non-Commercial Net PositionsThis indicator displays the net position of Non-Commercial traders (speculators) in futures markets by subtracting short positions from long positions, based on CFTC COT data. It fetches the relevant COT long and short values weekly (or as per the user-selected timeframe) and plots the net positions relative to zero.
Buyer vs Seller Control CompanionBuyer vs Seller Control Companion (Overlay)
Crossover signal overlay based on candlestick wick analysis moving averages
Overview:
This companion indicator displays crossover signals directly on the price chart based on the same buyer vs seller control calculations. It identifies moments when the relationship between buying and selling pressure shifts by analyzing where prices close relative to their intraday ranges.
Calculation Method:
The indicator uses identical calculations to the main Buyer vs Seller Control indicator:
Visual Components:
Lime Triangle Up: Appears below price bars when buyer control SMA crosses above seller control SMA
Fuchsia Triangle Down: Appears above price bars when seller control SMA crosses above buyer control SMA
Signal Logic:
Crossover events are detected when one moving average crosses above or below the other. These crossovers indicate potential shifts in the balance between buying and selling pressure as measured by candlestick closing positions relative to their wicks.
Arrow Placement:
Upward Triangle: Positioned below the bar when buyer control moving average exceeds seller control moving average
Downward Triangle: Positioned above the bar when seller control moving average exceeds buyer control moving average
Size: Small triangular shapes to avoid cluttering the price chart
Timing: Arrows appear only on bars where actual crossovers occur
Settings:
Moving Average Period: Adjustable from 1-200 periods (default: 20)
Technical Notes:
This overlay version works on any timeframe
Arrows only appear when crossovers actually occur, not on every bar
The indicator uses the same mathematical foundation as the main oscillator version
Signal frequency depends on the chosen moving average period
Shorter periods generate more frequent crossovers, longer periods generate fewer
Relationship to Main Indicator:
This companion overlay displays the exact crossover points that can be observed in the main Buyer vs Seller Control indicator. It provides the same information but presents it directly on the price chart for convenient reference without switching between indicator panes.
This overlay serves as a visual reference tool for crossover events detected in the underlying buyer vs seller control analysis.
Buyer vs Seller ControlBuyer vs Seller Control Analysis
Technical indicator measuring market participation through candlestick wick analysis
Overview:
This indicator analyzes the relationship between closing prices and candlestick wicks to measure buying and selling pressure. It calculates two key metrics and displays their moving averages to help identify market sentiment shifts.
Calculation Method:
The indicator measures two distinct values for each candle:
Buyer Control Value: Distance from candle low to closing price (close - low)
Seller Control Value: Distance from candle high to closing price (high - close)
Both values are then smoothed using a Simple Moving Average (default period: 20) to reduce noise and show clearer trends.
Visual Components:
Lime Line: 20-period SMA of buyer control values
Fuchsia Line: 20-period SMA of seller control values
Area Fill: Colored region between the two lines
Histogram: Difference between buyer and seller control SMAs
Zero Reference Line: Horizontal line at zero level
Information Table: Current numerical values (optional display)
Interpretation:
When the lime line (buyer control) is above the fuchsia line (seller control), it indicates that recent candles have been closing closer to their highs than to their lows on average.
When the fuchsia line is above the lime line, recent candles have been closing closer to their lows than to their highs on average.
Fill Color Logic:
Lime (green) fill appears when buyer control SMA > seller control SMA
Fuchsia (red) fill appears when seller control SMA > buyer control SMA
Fill transparency adjusts based on the magnitude of difference between the two SMAs
Stronger differences result in more opaque fills
Settings:
Moving Average Period: Adjustable from 1-200 periods (default: 20)
Show Info Table: Toggle to display/hide the numerical values table
Technical Notes:
The indicator works on any timeframe
Values are displayed in the same units as the underlying asset's price
The histogram shows the mathematical difference between the two SMA lines
Transparency calculation uses a 50-period lookback for dynamic scaling
This indicator provides a quantitative approach to analyzing candlestick patterns by focusing on where prices close relative to their intraday ranges.
Initial Balance Breakout Signals [LuxAlgo]The Initial Balance Breakout Signals help traders identify breakouts of the Initial Balance (IB) range.
The indicator includes automatic detection of IB or can use custom sessions, highlights top and bottom IB extensions, custom Fibonacci levels, and goes further with an IB forecast with two different modes.
🔶 USAGE
The initial balance is the price range made within the first hour of the trading session. It is an intraday concept based on the idea that high volume and volatility enter the market through institutional trading at the start of the session, setting the tone for the rest of the day.
The initial balance is useful for gauging market sentiment, or, in other words, the relationship between buyers and sellers.
Bullish sentiment: Price trades above the IB range.
Mixed sentiment: Price trades within the IB range.
Bearish sentiment: Price trades below the IB range.
The initial balance high and low are important levels that many traders use to gauge sentiment. There are two main ideas behind trading around the IB range.
IB Extreme Breakout: When the price breaks and holds the IB high or low, there is a high probability that the price will continue in that direction.
IB Extreme Rejection: When the price tries to break those levels but fails, there is a high probability that it will reach the opposite IB extreme.
This indicator is a complete Initial Balance toolset with custom sessions, breakout signals, IB extensions, Fibonacci retracements, and an IB forecast. All of these features will be explained in the following sections.
🔹 Custom Sessions and Signals
By default, sessions for Initial Balance and breakout signals are in Auto mode. This means that Initial Balance takes the first hour of the trading session and shows breakout signals for the rest of the session.
With this option, traders can use the tool for open range trading, making it highly versatile. The concept behind open range (OR) is the same as that of initial balance (IB), but in OR, the range is determined by the first minute, three or five minutes, or up to the first 30 minutes of the trading session.
As shown in the image above, the top chart uses the Auto feature for the IB and Breakouts sessions. The bottom chart has the Auto feature disabled to use custom sessions for both parameters. In this case, the first three minutes of the trading session are used, turning the tool into an Open Range trading indicator.
This chart shows another example of using custom sessions to display overnight NASDAQ futures sessions.
The left chart shows a custom session from the Tokyo open to the London open, and the right chart shows a custom session from the London open to the New York open.
The chart shows both the Asian and European sessions, their top and bottom extremes, and the breakout signals from those extremes.
🔹 Initial Balance Extensions
Traders can easily extend both extremes of the Initial Balance to display their preferred targets for breakouts. Enable or disable any of them and set the IB percentage to use for the extension.
As the chart shows, the percentage selected on the settings panel directly affects the displayed levels.
Setting 25 means the tool will use a quarter of the detected initial balance range for extensions beyond the IB extremes. Setting 100 means the full IB range will be used.
Traders can use these extensions as targets for breakout signals.
🔹 Fibonacci Levels
Traders can display default or custom Fibonacci levels on the IB range to trade retracements and assess the strength of market movements. Each level can be enabled or disabled and customized by level, color, and line style.
As we can see on the chart, after the IB was completed, prices were unable to fall below the 0.236 Fibonacci level. This indicates significant bullish pressure, so it is expected that prices will rise.
Traders can use these levels as guidelines to assess the strength of the side trying to penetrate the IB. In this case, the sellers were unable to move the market beyond the first level.
🔹 Initial Balance Forecast
The tool features two different forecasting methods for the current IB. By default, it takes the average of the last ten values and applies a multiplier of one.
IB Against Previous Open: averages the difference between IB extremes and the open of the previous session.
Filter by current day of the week: averages the difference between IB extremes and the open of the current session for the same day of the week.
This feature allows traders to see the difference between the current IB and the average of the last IBs. It makes it very easy to interpret: if the current IB is higher than the average, buyers are in control; if it is lower than the average, sellers are in control.
For example, on the left side of the chart, we can see that the last day was very bullish because the IB was completely above the forecasted value. This is the IB mean of the last ten trading days.
On the right, we can see that on Monday, September 15, the IB traded slightly higher but within the forecasted value of the IB mean of the last ten Mondays. In this case, it is within expectations.
🔶 SETTINGS
Display Last X IBs: Select how many IBs to display.
Initial Balance: Choose a custom session or enable the Auto feature.
Breakouts: Enable or disable breakouts. Choose custom session or enable the Auto feature.
🔹 Extensions
Top Extension: Enable or disable the top extension and choose the percentage of IB to use.
Bottom extension: Enable or disable the bottom extension and choose the percentage of IB to use.
🔹 Fibonacci Levels
Display Fibonacci: Enable or disable Fibonacci levels.
Reverse: Reverse Fibonacci levels.
Levels, Colors & Style
Display Labels: Enable or disable labels and choose text size.
🔹 Forecast
Display Forecast: Select the forecast method.
- IB Against Previous Open: Calculates the average difference between the IB high and low and the previous day's IB open price.
- Filter by Current Day of Week: Calculates the average difference between the IB high and low and the IB open price for the same day of the week.
Forecast Memory: The number of data points used to calculate the average.
Forecast Multiplier: This multiplier will be applied to the average. Bigger numbers will result in wider predicted ranges.
Forecast Colors: Choose from a variety of colors.
Forecast Style: Choose a line style.
🔹 Style
Initial Balance Colors
Extension Transparency: Choose the extension's transparency. 0 is solid, and 100 is fully transparent.
AlgoPilotX - Breakout & Breakdown Meter (v1)Version Note:
This is a revised and improved version of the AlgoPilotX – Breakout & Breakdown Meter. It includes expanded explanations of the underlying logic, variable usage, and originality to comply with TradingView guidelines.
AlgoPilotX – Breakout & Breakdown Meter is a structured trading tool that combines Fair Value Gap (FVG) detection, session-based support/resistance breakouts, and a clean market condition info panel. It’s designed to help traders spot potential setups early and confirm stronger breakouts or breakdowns with context from momentum, volatility, and trend indicators.
How It Works
Session Levels → The first candle high/low of the session defines dynamic support/resistance. Unlike static pivots, these levels update with each new trading session and reflect real intraday sentiment.
Fair Value Gaps (FVGs) → A three-candle imbalance highlights inefficiencies. When detected, the script marks the open of the third candle as a potential entry (light green/red arrow).
Pullback Confirmations → If price pulls back into session support/resistance and then breaks away strongly, a stronger entry signal (dark green/red arrow) is plotted.
Breakouts & Breakdowns → Additional arrows appear when price crosses decisively above resistance or below support.
Signal Hierarchy → Arrows vary by color/size:
Light = early/potential setups.
Dark/Large = stronger confirmations.
Info Panel Dashboard → RSI, MACD, Bollinger Bands, and EMAs are displayed in a compact table with both numeric values and Bullish/Bearish/Neutral states, color-coded for quick interpretation.
How the Functions and Variables Work Together
Session Levels (Support & Resistance)
The script uses time() and session inputs to identify the first candle of the chosen trading session.
Variables sessionHigh and sessionLow are stored with var so they persist until the next session.
These levels are then plotted as dynamic support/resistance lines. This approach is different from static pivots or daily highs/lows, because it adapts in real-time to the market open.
Fair Value Gap (FVG) Detection
Conditions check for three-candle imbalances ( low > high for bullish, high < low for bearish).
When detected, a potential entry is marked at the open of the third candle.
Variables fvgBull and fvgBear define this logic , making FVGs a core entry condition rather than a side overlay.
Entry Hierarchy (Light vs. Dark Arrows)
longPotentialEntry and shortPotentialEntry mark light green/red arrows as early signals.
pullbackToSupport and pullbackToResistance build on these by requiring price to return to session levels and then break away again.
This creates the dark green/red arrows for stronger entries, introducing a two-step filtering process.
Breakout & Breakdown Detection
breakAbove = ta.crossover(close, sessionHigh)
breakBelow = ta.crossunder(close, sessionLow)
These conditions confirm true breakouts or breakdowns beyond support/resistance, reducing noise.
Info Panel Construction
A table is created and updated each bar.
Functions like ta.rsi(), ta.ema(), ta.sma(), and ta.stdev() calculate RSI, MACD, EMAs, and Bollinger Bands.
Each indicator’s state is summarized into human-readable text (e.g., “Bullish,” “Bearish,” “Above,” “Oversold”) and displayed with color coding using the helper function f_stateColor().
Values are also displayed numerically (RSI, MACD histogram, EMA levels, BB width), making this a dashboard rather than just arrows on a chart.
Helper Function for States
f_stateColor(state) translates qualitative states into consistent colors (green for bullish/above, red for bearish/below, orange for neutral, purple for overbought/oversold).
This ensures that every signal in the info panel has a visual identity that traders can read instantly.
Alerts Integration
alertcondition() is tied to each major event: FVG potential entries, strong pullback confirmations, and breakout/breakdown signals.
This allows the script to be used for alerts, notifications and automation , not just visual charting.
How to Use
1. Default timeframe = 15m (adjustable).
2. The first session candle defines support & resistance.
3. Watch for arrows:
Light green (▲) below candle → Potential breakout long (FVG detected).
Dark green (▲) below candle → Strong breakout confirmation after pullback.
Light red (▼) above candle → Potential breakdown short (FVG detected).
Dark red (▼) above candle → Strong breakdown confirmation after pullback.
Larger arrows = higher confidence signals.
4. Check the Info Panel for context:
RSI → momentum
MACD → trend confirmation
Bollinger Bands → overbought/oversold
EMA20 & EMA50 → short- and medium-term trend bias
5. Always confirm with your own price action, volume, and risk management rules.
6. Easily move the Info Panel to any corner of the chart via settings to keep your view clear.
Why This Structure Is Original
Not a mashup : Instead of simply overlaying RSI, MACD, or EMAs, the script integrates them into a signal-filtering framework.
Dynamic anchoring: Session-based high/low variables make levels adaptive to intraday structure, unlike fixed pivots.
Dual entry tiering: Light vs. dark arrows are built by combining FVGs + pullback conditions, offering nuance most breakout scripts lack.
Dashboard-style panel: Variables are summarized into a real-time info box with both numbers and state labels, replacing multiple chart overlays with one compact tool.
Modular functions: Breakout, pullback, FVG detection, and indicator states are modularized with separate variables — making the script flexible, extendable, and unique in design.
Disclaimer
This script is for educational purposes only. It does not constitute financial advice and does not guarantee profitable outcomes. Always backtest thoroughly, paper trade, and use proper risk management before trading live.
Premier Stochastic Oscillator [LazyBear, V2]This script builds on the well-known Premier Stochastic Oscillator (PSO) originally introduced by LazyBear, and adds a Z-Score extension to provide statistical interpretation of momentum extremes.
Features
Premier Stochastic Core: A smoothed stochastic calculation that highlights bullish and bearish momentum phases.
Z-Score Mapping: The PSO values are standardized into Z-Scores (from –3 to +3), quantifying the degree of momentum stretch.
Positive / Negative Z-Scores:
Positive Z values suggest momentum strength that can align with accumulation or favorable buying conditions.
Negative Z values indicate stronger bearish pressure, often aligning with selling or distribution conditions.
On-Chart Label: The current Z-Score is displayed on the latest bar for quick reference.
How to Use
Momentum Confirmation: Use the oscillator to confirm whether bullish or bearish momentum is intensifying.
Overextended Conditions: Extreme Z-Scores (±2 or beyond) highlight statistically stretched conditions, often preceding reversions.
Strategic Integration: Best applied in confluence with trend tools or higher-timeframe filters; not a standalone trading signal.
Originality
Unlike the standard PSO, this version:
Adds a Z-Score framework for objective statistical scaling.
Provides real-time labeling of Z values for clarity.
Extends the classic oscillator into a tool for both momentum detection and mean-reversion context.
350DMA bands + Z-score (V2)This script extends the classic 350-day moving average (350DMA) by building dynamic valuation bands and a Z-Score framework to evaluate how far price deviates from its long-term mean.
Features
350DMA Anchor: Uses the 350-day simple moving average as the baseline reference.
Fixed Multipliers: Key bands plotted at ×0.625, ×1.0, ×1.6, ×2.0, and ×2.5 of the 350DMA — historically significant levels for cycle analysis.
Z-Score Mapping: Price is converted into a Z-Score on a scale from +2 (deep undervaluation) to –2 (extreme overvaluation), using log-space interpolation for accuracy.
Custom Display: HUD panel and on-chart label show the current Z-Score in real time.
Clamp Option: Users can toggle between raw Z values or capped values (±2).
How to Use
Valuation Context: The 350DMA is often considered a “fair value” anchor; large deviations identify cycles of under- or over-valuation.
Z-Score Insight:
Positive Z values suggest favorable accumulation zones where price is below long-term average.
Negative Z values highlight zones of stretched valuation, often associated with distribution or profit-taking.
Strategic Application: This is not a standalone trading system — it works best in confluence with other indicators, cycle models, or macro analysis.
Originality
Unlike a simple DMA overlay, this script:
Provides multiple cycle-based bands derived from the 350DMA.
Applies a logarithmic Z-Score mapping for more precise long-term scaling.
Adds an integrated HUD and labeling system for quick interpretation.
200WMA Overlay + Z (heatmap mapping)This script enhances the classic 200-week moving average (200WMA), a long-term market reference line, by adding Z-Score mapping and optional helper bands for extended cycle analysis.
Features
200WMA Anchor: Plots the true 200-week simple moving average on any chart, a widely followed metric for long-term Bitcoin and crypto cycles.
Helper Multiples: Optional overlay of key historical ratios (×0.625, ×1.6, ×2.0, ×2.5) often referenced as cycle support/resistance zones.
Z-Score Mapping: Translates the ratio of price to 200WMA into a Z-Score scale (from +2.5 to –2.5), offering a statistical perspective on whether the market is undervalued, neutral, or overheated relative to its long-term mean.
On-Chart Label: Current Z-Score displayed directly on the last bar for quick reference.
How to Use
Long-Term Valuation: The 200WMA serves as a “fair value” baseline; large deviations highlight extended phases of market sentiment.
Heatmap Context:
Positive Z values typically mark undervaluation or favorable accumulation zones.
Negative Z values highlight overvaluation or profit-taking / distribution zones.
Strategic View: Best used to contextualize long-term market cycles, not for short-term signals.
Confluence Approach: This indicator should not be used alone — combine it with other technical or fundamental tools for stronger decision-making.
Originality
Unlike a basic 200WMA overlay, this version:
Incorporates multi-band ratios for extended cycle mapping.
Introduces a custom Z-Score scale tied directly to price/WMA ratios.
Provides both visual structure and statistical interpretation on a single overlay.
Alpha VolumeThis script is a comprehensive trading toolkit designed to integrate position sizing, risk management, and key data metrics directly onto your chart. It goes beyond a simple volume indicator by providing two interactive tables and a special volume signal to aid in trade planning and analysis.
What It Does
The "Alpha Volume" indicator is a multi-functional tool that helps traders make more informed decisions. Its core components are:
- A Position Size Calculator that dynamically determines how many shares to trade based on your account size, risk tolerance, and different stop-loss strategies.
- A Data Metrics Table that displays essential fundamental information like Market Cap, Industry, Sector, and Float shares.
- An Episodic Pivot (EP) signal that highlights bars with exceptionally high volume, pinpointing potentially significant market events.
Key Features
Dynamic Position Sizing: Automatically calculates the ideal trade size based on various stop-loss points:
- The low or high of the day.
- The midpoint of the current candle.
- Three customizable fixed percentage stop-losses (e.g., 0.75%, 1.00%, 1.25%).
Interactive Risk Management: After you enter a trade, you can input your actual entry price and quantity. The script will then calculate:
- The exact stop-loss price required to meet your predefined risk.
- The distance to your stop-loss in both percentage and currency.
- Up to 10 R-Multiple price targets to help with profit-taking.
On-Chart Fundamental Data: The Data Metrics table provides a quick snapshot of the company's financial health and classification, saving you from switching between screens.
- Episodic Pivot Signal: A simple triangle appears below a daily candle when its volume surpasses a user-defined threshold (e.g., 9 million shares), drawing your attention to stocks under significant accumulation or distribution.
How to Use
Pre-Trade Planning:
- In the indicator settings, enter your Capital and define your Risk per trade (either as a percentage like 0.5% or a fixed currency amount like $5000).
- The "Position Size Table" will instantly show you the quantity you can trade based on different potential stop-loss levels. For example, Q shows the quantity if your stop is the day's low, and SQ shows quantities for fixed percentage stops.
Trade Execution & Management:
- Once you're in a trade, enter your Position Opened (PO) price and Quantity Actual (QA) in the settings.
- The second table will update to show your calculated stop-loss (PC), the distance to it (DA), and your R-Multiple targets (RM), giving you a clear plan for managing the trade.
Market Analysis:
- Use the Episodic Pivot signal on the daily chart to identify stocks experiencing unusual volume, which often precedes significant price moves.
- Glance at the Data Metrics Table to quickly understand the company's size (Market Cap) and business (Industry/Sector).
Yearly VWAP with Z-Score V2This script extends the traditional Volume Weighted Average Price (VWAP) by applying it to yearly sessions (with a customizable start month) and combining it with a Z-Score framework to standardize price deviations from VWAP.
Features
Yearly VWAP: Automatically resets at the selected month, making it possible to align VWAP with fiscal or seasonal cycles (e.g., June–May).
Volatility-Weighted Bands: Standard deviation is calculated using volume-weighted price variance, creating adaptive upper and lower bands around VWAP.
Z-Score Calculation: Converts price distance from VWAP into standardized scores, ranging from +2.5 to –2.5. This enables statistical interpretation of whether price is trading at fair value, extended, or oversold relative to VWAP.
Custom Session Control: Input allows users to change the yearly anchor month.
On-Chart Display: VWAP and bands are plotted, with a live Z-Score label shown on the latest bar.
How to Use
Fair Value Reference: VWAP reflects the average price weighted by volume over the yearly session — a natural equilibrium point.
Overbought / Oversold Detection: Extreme Z-Score readings (±2 or beyond) highlight when price is stretched relative to VWAP.
Cycle Analysis: Resetting VWAP by custom months allows studying market behavior over fiscal years, seasons, or custom trading cycles.
Part of a Broader Toolkit: This script is not a standalone trading system. It works best when aggregated with other indicators, confluence factors, or a structured strategy.
Originality
Unlike a standard VWAP, this version:
Uses yearly anchoring with custom start month instead of session/day anchoring.
Adds volume-weighted standard deviation bands for statistical context.
Translates distance into a Z-Score scale for objective overbought/oversold assessment.
Positive Z-Score values indicate zones where price is positioned favorably for accumulation or potential buys, while negative values highlight areas more suitable for distribution or profit-taking — always best used in confluence with other tools rather than as a standalone signal
triple Keltner Channels with Z-Score V2This script expands on the classic Keltner Channel by plotting three adaptive volatility bands around an EMA baseline and introducing a dynamic Z-Score calculation to quantify price positioning within or beyond those bands.
Features
Three Keltner Channels:
Inner Channel at ×2 ATR
Outer Channel at ×3 ATR
Extended Channel at ×3.5 ATR
Customizable Inputs: EMA length, ATR length, and multipliers can be adjusted to suit different market conditions or asset volatility.
Z-Score Integration: Converts price location relative to the channels into standardized scores (from +2.5 to –2.5). Positive Z indicate a good value/zone to buy while negative one is the contrary (do not use it alone, use it with other indicators )
This provides a statistical lens for identifying overextended, neutral, or mean-reverting conditions.
Visual Clarity: Channel fills highlight volatility zones, while an on-chart label dynamically displays the current Z-Score.
How to Use
Overbought/Oversold Signals: Extreme Z-Score readings (±2 and beyond) suggest stretched conditions that often precede pullbacks or reversions.
Mean Reversion vs Breakout: Traders can assess whether price is likely to revert to the mean (EMA) or sustain momentum beyond outer bands.
Originality
Unlike a standard Keltner Channel, this one:
Uses three progressively wider ATR multiples for deeper volatility mapping.
Adds a Z-Score framework to statistically measure price displacement.
Provides a visual + numerical hybrid output (bands + live Z-Score label).
use only on 1W timeframe
Stiffness IndexStiffness Index Indicator
Overview
The Stiffness Index is a technical analysis indicator created by Markos Katsanos and first introduced in the November 2018 issue of Technical Analysis of Stocks & Commodities magazine. This indicator attempts to recognize strong price trends by counting the number of times price was above the 100-day moving average during the indicator period.
Core Philosophy
The premise is the fewer number of times price penetrates the MA, the stronger the trend. The philosophy behind this indicator is that traders should trade when the trend is at its strongest point - when the trend is at its "stiffest". Based on the observation that in strong long-lasting uptrends, price seldom penetrates the 100-bar simple moving average, this indicator helps assess the quality and strength of an uptrend.
How It Works
The Stiffness Index operates through several key components:
1. Moving Average Baseline: Uses a 100-period moving average as the primary reference level
2. Volatility Threshold: Includes a volatility threshold to eliminate minor movements - typically 0.2 standard deviations to reject minimal penetrations above the moving average
3. Counting Mechanism: Calculates the stiffness coefficient as the ratio of the number of times the price has closed above the moving average during the indicator period to the length of that period
4. Smoothing: Applies additional smoothing to the final result for cleaner signals
Key Components
Input Parameters
- Period 1 (100): The moving average period for the baseline calculation
- MA Method 1: Type of moving average for the baseline (SMA, EMA, SMMA, LWMA)
- Summation Period (60): The lookback period for counting closes above the moving average
- Period 2 (3): Smoothing period for the final signal line
- MA Method 2: Smoothing method for the signal line
- Threshold Level (80): Reference level for identifying strong trends
Visual Elements
- Blue Signal Line: The main stiffness reading showing trend strength
- Dotted Line: Adjustable threshold level for reference
Interpretation and Trading Applications
Signal Readings
- High Values (Above Threshold): Indicates a "stiff" trend where price consistently stays above the moving average with minimal penetrations
- Low Values (Below Threshold): Suggests a weaker trend with frequent penetrations of the moving average
- Original threshold levels mentioned in research range from 75-95
Trading Strategy
The original strategy suggests entering long positions when the stiffness reading reaches 90 or higher, with exits when the reading drops below 50. Some implementations use a threshold of 75 for entry confirmation.
Key Characteristics
- Designed primarily for stocks and instruments with upward bias
- Trades infrequently - typically about once per year when using strict parameters
- Best suited for trend-following strategies in strongly trending markets
Advantages
- Trend Quality Assessment: Quantifies the "stiffness" or quality of trends
- Volatility Filtering: Built-in volatility threshold reduces false signals from minor price movements
- Objective Measurement: Provides a numerical assessment of trend strength
- Customizable: Multiple parameters allow adaptation to different markets and timeframes
Best Practices
- Use in conjunction with baseline trend indicators for confirmation
- Most effective in markets with strong directional bias
- Consider the low frequency of signals when developing trading strategies
- May not be suitable for instruments that "twitch up and down" frequently
*Note: This indicator is specifically designed to identify and trade the strongest trending periods, which naturally results in fewer but potentially higher-quality trading opportunities.*
88-Key Piano Range - Musical Price Levels88-Key Piano Range - Musical Price Levels
Description:
Explore price analysis through musical harmony! This educational indicator maps price movements to the standard 88-key piano keyboard (A0 to C8), offering a creative way to visualize market ranges and explore harmonic price relationships with authentic keyboard-style background fills.
🎹 KEY FEATURES:
• Complete 88-Key Mapping - Full piano range from A0 to C8 mapped to your price range
• Piano-Style Visual Design - Clean background fills distinguishing white keys, black keys, and octaves
• Dual Anchor System - Set two time/price points to define your analytical range
• Flexible Display Options - Show all 88 keys, octaves only (C notes), or custom selections
• Harmonic Exploration - Explore consonant/dissonant key relationships based on music theory
• Real-time Price Note - See what musical note your current price represents
• Customizable Interface - Adjust colors, line widths, fills, and visual elements
🎵 EDUCATIONAL CONCEPTS:
• Octave Levels - C notes as harmonic reference points (similar to round numbers)
• Key Classifications - Natural notes (white keys) vs chromatic notes (black keys)
• Harmonic Intervals - Musical relationships applied to price analysis
• Creative Visualization - Alternative way to view price ranges and movements
⚙️ HOW TO USE:
1. Select Your Price Leg - Choose an upleg, downleg, or significant price movement to explore
2. Set Anchor A - Place at the start of your selected leg (swing low for upleg, swing high for downleg)
3. Set Anchor B - Place at the end of your selected leg (swing high for upleg, swing low for downleg)
4. Configure Display - Select all keys, octaves only, or enable background fills
5. Explore Harmonics - Enable harmony coloring to see musical relationships
6. Study Patterns - Observe how price movements align with musical intervals
🎼 CREATIVE APPLICATIONS:
• Experimental Analysis - Try a musical approach to leg analysis
• Educational Tool - Learn about mathematical relationships in both music and markets
• Alternative Perspective - View support/resistance through a musical lens
• Pattern Recognition - Explore if harmonic levels show interesting price behavior
• Fun Learning - Combine musical knowledge with trading concepts
📊 EXPERIMENTAL USE:
• Creative alternative to traditional Fibonacci levels
• Educational exploration of mathematical harmony in markets
• Interesting way to visualize price ranges and retracements
• Novel approach for musicians interested in trading concepts
Important Note: This is an educational and experimental tool that applies musical theory concepts to price analysis. It should be used for learning and exploration purposes alongside proven technical analysis methods. The musical relationships are mathematically based but not validated as reliable trading signals.
Options Max Pain Calculator [BackQuant]Options Max Pain Calculator
A visualization tool that models option expiry dynamics by calculating "max pain" levels, displaying synthetic open interest curves, gamma exposure profiles, and pin-risk zones to help identify where market makers have the least payout exposure.
What is Max Pain?
Max Pain is the theoretical expiration price where the total dollar value of outstanding options would be minimized. At this price level, option holders collectively experience maximum losses while option writers (typically market makers) have minimal payout obligations. This creates a natural gravitational pull as expiration approaches.
Core Features
Visual Analysis Components:
Max Pain Line: Horizontal line showing the calculated minimum pain level
Strike Level Grid: Major support and resistance levels at key option strikes
Pin Zone: Highlighted area around max pain where price may gravitate
Pain Heatmap: Color-coded visualization showing pain distribution across prices
Gamma Exposure Profile: Bar chart displaying net gamma at each strike level
Real-time Dashboard: Summary statistics and risk metrics
Synthetic Market Modeling**
Since Pine Script cannot access live options data, the indicator creates realistic synthetic open interest distributions based on configurable market parameters including volume patterns, put/call ratios, and market maker positioning.
How It Works
Strike Generation:
The tool creates a grid of option strikes centered around the current price. You can control the range, density, and whether strikes snap to realistic market increments.
Open Interest Modeling:
Using your inputs for average volume, put/call ratios, and market maker behavior, the indicator generates synthetic open interest that mirrors real market dynamics:
Higher volume at-the-money with decay as strikes move further out
Adjustable put/call bias to reflect current market sentiment
Market maker inventory effects and typical short-gamma positioning
Weekly options boost for near-term expirations
Pain Calculation:
For each potential expiry price, the tool calculates total option payouts:
Call options contribute pain when finishing in-the-money
Put options contribute pain when finishing in-the-money
The strike with minimum total pain becomes the Max Pain level
Gamma Analysis:
Net gamma exposure is calculated at each strike using standard option pricing models, showing where hedging flows may be most intense. Positive gamma creates price support while negative gamma can amplify moves.
Key Settings
Basic Configuration:
Number of Strikes: Controls grid density (recommended: 15-25)
Days to Expiration: Time until option expiry
Strike Range: Price range around current level (recommended: 8-15%)
Strike Increment: Spacing between strikes
Market Parameters:
Average Daily Volume: Baseline for synthetic open interest
Put/Call Volume Ratio: Market sentiment bias (>1.0 = bearish, <1.0 = bullish) It does not work if set to 1.0
Implied Volatility: Current option volatility estimate
Market Maker Factors: Dealer positioning and hedging intensity
Display Options:
Model Complexity: Simple (line only), Standard (+ zones), Advanced (+ heatmap/gamma)
Visual Elements: Toggle individual components on/off
Theme: Dark/Light mode
Update Frequency: Real-time or daily calculation
Reading the Display
Dashboard Table (Top Right):
Current Price vs Max Pain Level
Distance to Pain: Percentage gap (smaller = higher pin risk)
Pin Risk Assessment: HIGH/MEDIUM/LOW based on proximity and time
Days to Expiry and Strike Count
Model complexity level
Visual Elements:
Red Line: Max Pain level where payout is minimized
Colored Zone: Pin risk area around max pain
Dotted Lines: Major strike levels (green = support, orange = resistance)
Color Bar: Pain heatmap (blue = high pain, red = low pain/max pain zones)
Horizontal Bars: Gamma exposure (green = positive, red = negative)
Yellow Dotted Line: Gamma flip level where hedging behavior changes
Trading Applications
Expiration Pinning:
When price is near max pain with limited time remaining, there's increased probability of gravitating toward that level as market makers hedge their positions.
Support and Resistance:
High open interest strikes often act as magnets, with max pain representing the strongest gravitational pull.
Volatility Expectations:
Above gamma flip: Expect dampened volatility (long gamma environment)
Below gamma flip: Expect amplified moves (short gamma environment)
Risk Assessment:
The pin risk indicator helps gauge likelihood of price manipulation near expiry, with HIGH risk suggesting potential range-bound action.
Best Practices
Setup Recommendations
Start with Model Complexity set to "Standard"
Use realistic strike ranges (8-12% for most assets)
Set put/call ratio based on current market sentiment
Adjust implied volatility to match current levels
Interpretation Guidelines:
Small distance to pain + short time = high pin probability
Large gamma bars indicate key hedging levels to monitor
Heatmap intensity shows strength of pain concentration
Multiple nearby strikes can create wider pin zones
Update Strategy:
Use "Daily" updates for cleaner visuals during trading hours
Switch to "Every Bar" for real-time analysis near expiration
Monitor changes in max pain level as new options activity emerges
Important Disclaimers
This is a modeling tool using synthetic data, not live market information. While the calculations are mathematically sound and the modeling realistic, actual market dynamics involve numerous factors not captured in any single indicator.
Max pain represents theoretical minimum payout levels and suggests where natural market forces may create gravitational pull, but it does not guarantee price movement or predict exact expiration levels. Market gaps, news events, and changing volatility can override these dynamics.
Use this tool as additional context for your analysis, not as a standalone trading signal. The synthetic nature of the data makes it most valuable for understanding market structure and potential zones of interest rather than precise price prediction.
Technical Notes
The indicator uses established option pricing principles with simplified implementations optimized for Pine Script performance. Gamma calculations use standard financial models while pain calculations follow the industry-standard definition of minimized option payouts.
All visual elements use fixed positioning to prevent movement when scrolling charts, and the tool includes performance optimizations to handle real-time calculation without timeout errors.
Axel Alts — Support CloudOverview
Axel Alts is a custom indicator designed to visualize dynamic support zones for cryptocurrencies, including both Bitcoin and altcoins.
It creates an adaptive “support cloud” by combining recent market lows, Fibonacci-based sticky logic, and visual smoothing.
Unlike static levels, this tool aims to “hold” important zones during volatile moves while avoiding constant recalculations that can confuse traders.
How it works
Base Calculation
The indicator looks back over recent price bars and detects the Lowest Low.
From this base point, two key offsets are derived:
Upper Support (closer to price).
Lower Support (deeper support level).
These offsets are defined as fractions of the most recent low and smoothed with a moving average.
Sticky Fibonacci Logic
Normal moving averages adjust with every new candle, sometimes creating unstable zones.
To prevent this, a “sticky” mechanism is applied:
Levels can only shift if price moves beyond a trigger threshold.
Even then, the adjustment per bar is limited to a maximum step.
This creates the effect of “holding” the support until price meaningfully breaks.
Smoothing of Transitions
To avoid sharp corners when a level finally updates, a smoothstep interpolation is applied.
This ensures gradual, curved transitions on the chart, visually closer to a real “cloud” than to a step-line.
Background Cloud
The area between Upper Support and Lower Support is shaded.
This highlights a “support zone” where pullbacks may stabilize.
Shading can be toggled in the Style tab (as Background).
How to use it
Support Zone Identification
The shaded area represents a potential demand zone. If price enters the cloud and reacts , it can serve as an early sign of accumulation or bounce.
Trend Context
On higher timeframes (1D, 1W), these zones can highlight where large corrections find support.
On intraday timeframes, they can show where pullbacks may pause before resuming a move.
Risk Management
The cloud is not an entry signal but a map of areas.
Traders may choose to combine it with oscillators, momentum signals, or volume to refine timing.
Stops are often placed below the Lower Support, while scaling in near Upper Support is common in confluence strategies.
Features
Two adaptive levels: Upper Support and Lower Support.
Automatic sticky control (limits false shifts during chop).
Visual smoothing (reduces noise, keeps chart clean).
Locked parameters (all tuning is done inside code; no editable inputs).
Clean, minimal interface in the Style tab.
Limitations
Does not provide buy/sell alerts.
Levels are based only on recent lows; sudden market events can break through without warning.
Works best as a context tool, not a standalone strategy.
Disclaimer
This script is for educational and informational purposes only.
It should not be considered financial advice and does not guarantee profits.
Always conduct your own research and use proper risk management.
Universal Gann Square & Cube LevelsUniversal Gann Square & Cube Levels - Dynamic Support/Resistance
Description:
📊 UNIVERSAL GANN LEVELS INDICATOR
This powerful indicator automatically plots Gann Square and Cube levels around the current stock price, providing dynamic support and resistance levels based on W.D. Gann's mathematical theories.
🎯 KEY FEATURES:
✅ Auto-Adaptive: Works for ANY stock price (₹20 to ₹100,000+)
✅ Real-time Detection: Uses current close price automatically
✅ Dual Level System: Square levels (black) + Cube levels (red)
✅ Customizable Range: Adjust percentage range (5% to 50%)
✅ Clean Display: Toggle square/cube lines independently
✅ Universal Compatibility: Works on all timeframes and instruments
📈 HOW IT WORKS:
Square Levels (Black Lines): Based on perfect squares (n²) around current price
Cube Levels (Red Lines): Based on perfect cubes (n³) around current price
Smart Range: Automatically calculates relevant levels within your specified percentage range
Info Display: Shows current price and level counts
⚙️ SETTINGS:
Price Range %: Control how many levels appear (default: 15%)
Show Square Levels: Toggle black square lines on/off
Show Cube Levels: Toggle red cube lines on/off
🔥 PERFECT FOR:
Day traders seeking precise entry/exit points
Swing traders identifying key support/resistance zones
Gann theory practitioners and students
Multi-timeframe analysis across all instruments
💡 USAGE TIPS:
Use 10-20% range for active day trading
Use 30-50% range for swing trading analysis
Watch for price reactions at square/cube intersections
Combine with volume analysis for confirmation
🌟 WHY THIS INDICATOR?
Unlike fixed Gann calculators, this indicator dynamically adapts to ANY price level, making it truly universal for Indian stocks, crypto, forex, and commodities.
⚠️ DISCLAIMER:
This indicator is for educational and informational purposes only. It is not financial advice and should not be considered as a recommendation to buy or sell any security. Trading involves significant risk of loss and may not be suitable for all investors. Past performance does not guarantee future results. Always conduct your own research and consult with a qualified financial advisor before making any investment decisions. The developer assumes no responsibility for any trading losses incurred through the use of this indicator.
📋 COMPATIBILITY:
All TradingView plans
All timeframes (1m to 1M)
Stocks, Crypto, Forex, Commodities
Mobile and desktop platforms
StdDev Supertrend {CHIPA}StdDev Supertrend ~ C H I P A is a supertrend style trend engine that replaces ATR with standard deviation as the volatility core. It can operate on raw prices or log return volatility, with optional smoothing to control noise.
Key features include:
Supertrend trailing rails built from a stddev scaled envelope that flips the regime only when price closes through the opposite rail.
Returns-based mode that scales volatility by log returns for more consistent behavior across price regimes.
Optional smoothing on the volatility input to tune responsiveness versus stability.
Directional gap fill between price and the active trend line on the main chart; opacity adapts to the distance (vs ATR) so wide gaps read stronger and small gaps stay subtle.
Secondary pane view of the rails with the same adaptive fade, plus an optional candle overlay for context.
Clean alerts that fire once when state changes
Use cases: medium-term trend following, stop/flip systems, and visual regime confirmation when you prefer stddev-based distance over ATR.
Note: no walk-forward or robustness testing is implied; parameter choices and risk controls are on you.
MTF-RISK [Module+]Description
MTF-RISK is a futures risk management tool that calculates standardized position sizing across multiple CME micro contracts, anchored to higher-timeframe structure. By combining multi-timeframe reference levels with a contract-based dollar-per-point model, it allows traders to maintain consistent risk across different futures markets.
Example:
User has selected the 1H timeframe for the risk table. Once an hourly candle closes, the high and low of that completed hour are locked as reference boundaries.
Lower timeframe candles (e.g., 1m, 5m, 15m) reference these established 1H boundaries to calculate:
Distance in points from the current close to the HTF high or low.
Corresponding dollar risk based on the user-defined Max Risk per Trade ($) setting.
The risk table updates in real-time, showing the current stop distance, calculated contract size, and resulting risk in dollars for both upward and downward directions.
Benefit: Traders always maintain a fixed dollar risk, regardless of intraday price movement, while using HTF structure as the anchor for accurate and consistent position sizing.
1. Higher Timeframe Anchor
Always uses the last fully closed candle from the selected higher timeframe (default: 60m).
Captures the prior HTF high and low as reference boundaries.
Lower timeframe closers (e.g., 1m, 5m, 15m bars) reference these established HTF boundaries to measure stop distances and calculate risk.
Use: Ensures all position sizing is tied to completed HTF structure, providing a consistent framework for intraday trades.
2. Risk Model Engine
Traders define maximum dollar risk per trade.
The system calculates allowable micro contracts based on stop distance (current close → HTF high/low).
Supported contracts and their point values:
MNQ (Micro Nasdaq 100): $2.00 per point
MES (Micro S&P 500): $5.00 per point
MYM (Micro Dow Jones): $0.50 per point
MGC (Micro Gold): $10.00 per point
Formula:
Contracts = Max Risk ÷ (Stop Distance × TSE:VALUE per Point)
Risk ↑: Based on distance to HTF high.
Risk ↓: Based on distance to HTF low.
Use: Provides consistent dollar risk sizing across different futures contracts and multiple intraday timeframes.
3. Risk Table Overlay
Compact, real-time on-chart table with customizable styling.
Columns:
OP: Operation time (adjusted by user’s timezone offset).
Points ↑ / ↓: Stop distances in points relative to HTF boundaries.
Risk ↑ / ↓ ($): Dollar exposure at those stops.
Micros ↑ / ↓: Allowable contract count.
Asset: Displays selected futures contract in the header.
Custom features:
Independent text/background colors per column.
Highlighted latest row for clarity.
Adjustable outline, row colors, and text size.
Use: Gives traders immediate insight into position sizing without leaving the chart.
Intended Use:
This is a risk visualization module, not a trade signal generator. Traders can use it to:
Standardize risk sizing across multiple CME micro futures.
Quickly evaluate trade setups relative to HTF structure.
Measure stop distances from lower timeframe closes while referencing HTF boundaries.
Maintain consistency in risk management regardless of the instrument traded.
Limitations & Disclaimers:
Calculations assume standard CME tick values for MNQ, MES, MYM, and MGC.
Other markets may not align with these dollar-per-point values.
This indicator does not predict direction, generate entries, or guarantee outcomes.
For educational and informational purposes only.
Trading involves risk; always use proper risk management.
Closed-source (Protected): Logic is visible on charts, but source code is hidden.
Predictive Financial Indicator# TradingView Script Description - APFI v7 Enhanced
## 📊 **Advanced Predictive Financial Indicator v7 Enhanced**
### **Overview**
This indicator combines multiple advanced technical analysis concepts to predict potential price movements and identify high-probability turning points. It uses a proprietary multi-factor scoring system that analyzes market behavior patterns, trend dynamics, and volatility characteristics to generate predictive signals.
### **Core Methodology**
#### **1. Entanglement Factor Analysis**
- **Concept**: Measures market predictability through autocorrelation analysis of price momentum
- **Purpose**: Identifies periods when price movements follow predictable patterns
- **Implementation**: Calculates correlation between current and historical price changes across multiple timeframes
- **Value**: Higher entanglement indicates more predictable market behavior, increasing signal reliability
#### **2. Trend Strength Assessment**
- **Concept**: Evaluates the relationship between current price and moving average with momentum components
- **Purpose**: Determines trend quality and persistence
- **Implementation**: Combines price-to-MA ratio with short-term momentum analysis
- **Value**: Strong trends provide better context for signal validation
#### **3. Volatility Analysis**
- **Concept**: Multi-dimensional volatility assessment using both statistical and ATR-based measures
- **Purpose**: Identifies market conditions that favor certain signal types
- **Implementation**: Combines standard deviation of returns with ATR-based volatility ratios
- **Value**: Helps distinguish between high-confidence and low-confidence market environments
#### **4. Exhaustion Detection**
- **Concept**: Identifies when trends are losing momentum across multiple timeframes
- **Purpose**: Predicts potential trend reversals before they occur
- **Implementation**: Analyzes momentum slope changes and compares short vs. long-term momentum
- **Value**: Critical for turning point identification and risk management
#### **5. Dynamic Support/Resistance Analysis**
- **Concept**: Real-time identification of key price levels with rejection confirmation
- **Purpose**: Validates signals against significant price levels
- **Implementation**: Tracks multiple touch points and calculates rejection probabilities
- **Value**: Increases signal accuracy by confirming against structural market levels
#### **6. Volume Confirmation**
- **Concept**: Validates signals using volume analysis
- **Purpose**: Ensures signals are supported by institutional activity
- **Implementation**: Compares current volume to historical averages during significant price movements
- **Value**: Filters out weak signals that lack volume support
#### **7. Pattern Correlation**
- **Concept**: Identifies recurring price patterns and their correlation with current market behavior
- **Purpose**: Leverages historical pattern recognition for signal validation
- **Implementation**: Analyzes price change patterns and correlates with historical occurrences
- **Value**: Adds statistical confidence to signal generation
### **Signal Types**
#### **Turning Point Signals (Highest Priority)**
- **Purpose**: Identify high-probability trend reversal points
- **Criteria**: Combines exhaustion detection, support/resistance validation, volume confirmation, and pattern correlation
- **Visual**: Large circles on MA line with 🎯 symbols
- **Use Case**: Major trend changes, swing trading entries
#### **Regular Directional Signals**
- **Purpose**: Identify continuation or new trend directions
- **Criteria**: Based on predictive price analysis with confidence thresholds
- **Visual**: Medium circles on MA line with ▲▼ symbols
- **Use Case**: Trend following, momentum trading
#### **Sideways Signals**
- **Purpose**: Identify range-bound market conditions
- **Criteria**: Low directional confidence with high volatility compression
- **Visual**: Small circles on MA line with ◆ symbols
- **Use Case**: Range trading, consolidation periods
### **Key Features**
#### **Multi-Factor Scoring System**
- **Exhaustion Score**: 25% weight for trend exhaustion detection
- **Levels Score**: 20% weight for support/resistance validation
- **Volatility Score**: 15% weight for market condition assessment
- **Pattern Score**: 15% weight for historical pattern correlation
- **Volume Bonus**: 10% weight for volume confirmation
- **Pattern Bonus**: 5% weight for high correlation patterns
#### **Adaptive Thresholds**
- **Dynamic Sensitivity**: Adjusts to different market conditions
- **Asset-Specific**: Optimized for different instrument types
- **Timeframe Adaptive**: Adjusts parameters based on chart timeframe
#### **Visual Display Options**
- **Bold MA Line**: MA line becomes thicker and colored at signal points
- **Circles on MA**: Precise positioning of signals on moving average
- **Combined Display**: Both methods for maximum visibility
- **Customizable Colors**: Distinct colors for each signal type
### **How to Use**
#### **Setup**
1. Apply to any timeframe (1m to 1D recommended)
2. Adjust MA period based on your trading style (default: 20)
3. Set sensitivity level (0.1-3.0, default: 1.0)
4. Choose signal strength filter (Weak/Medium/Strong)
#### **Signal Interpretation**
- **High Confidence**: Signals with score > 0.7 and strong volume confirmation
- **Medium Confidence**: Signals with score 0.5-0.7 and moderate confirmation
- **Low Confidence**: Signals with score 0.3-0.5 and weak confirmation
#### **Trading Applications**
- **Swing Trading**: Use turning point signals for major reversals
- **Day Trading**: Use regular signals for intraday momentum
- **Position Trading**: Combine with higher timeframes for trend confirmation
### **Technical Specifications**
#### **Input Parameters**
- **MA Period**: 5-200 (default: 20)
- **Sensitivity**: 0.1-3.0 (default: 1.0)
- **Confidence Threshold**: 0.1-0.9 (default: 0.3)
- **Signal Strength**: Weak/Medium/Strong (default: Medium)
#### **Display Options**
- **Signal Display Method**: Bold MA Line / Circles on MA / Both
- **Circle Size**: Small/Medium/Large
- **MA Line Thickness**: 1-5 pixels
- **Information Table**: Real-time signal data
#### **Alerts**
- **Turning Point Alerts**: High-priority reversal signals
- **Regular Signal Alerts**: Directional momentum signals
- **Exhaustion Alerts**: Trend exhaustion warnings
### **Performance Characteristics**
#### **Strengths**
- **Multi-timeframe Analysis**: Works across different chart timeframes
- **Adaptive Parameters**: Automatically adjusts to market conditions
- **High Accuracy**: Combines multiple confirmation methods
- **Clear Visual Signals**: Easy to identify and interpret
#### **Best Practices**
- **Combine with Price Action**: Use signals as confirmation, not standalone
- **Risk Management**: Always use stop losses and position sizing
- **Backtesting**: Test on historical data before live trading
- **Market Conditions**: Works best in trending and volatile markets
### **Disclaimer**
This indicator is for educational and informational purposes only. It should not be considered as financial advice. Always conduct your own research and consider your risk tolerance before making trading decisions. Past performance does not guarantee future results.
---
**Version**: 7.0 Enhanced
**Compatibility**: Pine Script v6
**Last Updated**: September 2024
**Status**: Production Ready
All Levels This script draws key price levels on your chart, including:
• Previous Day (PD): High, Low, Close
• Day Before Yesterday (DBY): High, Low, Close
• Pre-Market (PM): High and Low
• Today’s levels: High, Low, Open, Close
• Current bar levels: High, Low, Open, Close
Each level is displayed as a horizontal line with a label showing the level value.
It works on any timeframe, including 1-minute charts, and automatically updates as new bars form.
⸻
2. Features
1. Custom Colors
Each type of level has its own color, declared as a const color. For example:
• Previous Day High = red
• Today’s Close = gold
• Pre-Market High = fuchsia
2. Right-Extending Lines
All horizontal levels extend to the right, so you always see them on the chart.
3. Persistent Labels
Every line has a label at the right side showing its name and price. For example:
• PDH 422
• TODL 415.5
4. Dynamic Updates
The script updates automatically whenever a new bar forms, so levels stay accurate.
5. Session-Based Pre-Market
You can define the pre-market session (default “04:00–09:30 EST”). The script calculates the high and low of this session only.
6. Checkbox Inputs
You can enable/disable entire groups of levels:
• Previous Day
• Day Before Yesterday
• Pre-Market
• Today
• Current bar
Goldbach Time – algopathingThe Goldbach Time indicator highlights intra-day timestamps that align with curated “Goldbach” time transforms. It is a time-only study intended for timing research and session-rhythm confluence: it flags minutes where one or more simple transforms of the clock (e.g. hour + minute, hour − minute, minute ± 1) hit values from a predefined integer set. Traders use those flagged minutes as a time-based confluence input alongside price structure (PO3 / Goldbach price levels, order blocks, liquidity, etc.).
Multi-Timeframe Price Levels# Multi-Timeframe Price Levels Indicator
## What This Script Does
This Pine Script indicator displays key horizontal price levels on your TradingView chart to help you identify important support and resistance zones. Think of it as having multiple "reference lines" that show where price has been and where it might react.
## The Price Levels You'll See
**🟣 Yesterday's Levels (Purple Lines)**
- Yesterday's High, Low, and Close
- These often act as support/resistance the next trading day
- Traders watch to see if price holds above/below these levels
**🟢🔴 Premarket Levels (Green/Red Circles)**
- High and Low from premarket trading (4:00 AM - 9:30 AM)
- Shows where institutional traders were active before market open
- Only appears if there was actual premarket activity
**🔵 First 5-Minute Levels (Blue Lines)**
- High and Low from the first 5 minutes of trading (9:30-9:35 AM)
- Locks in at 9:35 AM and doesn't change for the rest of the day
- Popular "opening range" levels many day traders use
**🟠 First 15-Minute Levels (Orange Lines)**
- High and Low from the first 15 minutes of trading (9:30-9:45 AM)
- Locks in at 9:45 AM and stays fixed all day
- Broader opening range for swing traders
**🟢🔴 Today's Levels (Green/Red Thick Lines)**
- Current day's high and low
- Updates in real-time as new highs/lows are made
- The most important current support/resistance levels
## Why These Levels Matter
- **Support/Resistance**: Price often bounces off these levels
- **Breakout Signals**: When price breaks through, it can signal strong moves
- **Risk Management**: Use them to set stop losses and profit targets
- **Context**: Understand where price has been to predict where it might go
## Customization Options
- **Toggle any level on/off** - Only show what you need
- **Adjust line thickness** - Make important levels stand out more
- **Change colors** - Match your chart theme
- **Set session times** - Adjust for different time zones
## Perfect For
- Day traders looking for intraday levels
- Swing traders identifying key zones
- Anyone wanting clean, automated support/resistance lines
- Traders who like multiple timeframe analysis
The script automatically updates daily and requires no manual drawing - just apply it and get instant professional-level price level analysis!