Price Flip StrategyPrice Flip Strategy with User-Defined Ticker Max/Max
This strategy leverages an inverted price calculation based on user-defined maximum and minimum price levels over customizable lookback periods. It generates buy and sell signals by comparing the previous bar's original price to the inverted price, within a specified date range. The script plots key metrics, including ticker max/min, original and inverted prices, moving averages, and HLCC4 averages, with customizable visibility toggles and labels for easy analysis.
Key Features:
Customizable Inputs: Set lookback periods for ticker max/min, moving average length, and date range for signal generation.
Inverted Price Logic: Calculates an inverted price using ticker max/min to identify trading opportunities.
Flexible Visualization: Toggle visibility for plots (e.g., ticker max/min, prices, moving averages, HLCC4 averages) and last-bar labels with user-defined colors and sizes.
Trading Signals: Generates buy signals when the previous original price exceeds the inverted price, and sell signals when it falls below, with alerts for real-time notifications.
Labeling: Displays values on the last bar for all plotted metrics, aiding in quick reference.
How to Use:
Add to Chart: Apply the script to a TradingView chart via the Pine Editor.
Configure Settings:
Date Range: Set the start and end dates to define the active trading period.
Ticker Levels: Adjust the lookback periods for calculating ticker max and min (e.g., 100 bars for max, 100 for min).
Moving Averages: Set the length for exponential moving averages (default: 20 bars).
Plots and Labels: Enable/disable specific plots (e.g., Inverted Price, Original HLCC4) and customize label colors/sizes for clarity.
Interpret Signals:
Buy Signal: Triggered when the previous close price is above the inverted price; marked with an upward label.
Sell Signal: Triggered when the previous close price is below the inverted price; marked with a downward label.
Set Alerts: Use the built-in alert conditions to receive notifications for buy/sell signals.
Analyze Plots: Review plotted lines (e.g., ticker max/min, HLCC4 averages) and last-bar labels to assess price behavior.
Tips:
Use in trending markets by enabling ticker max for uptrends or ticker min for downtrends, as indicated in tooltips.
Adjust the label offset to prevent overlapping text on the last bar.
Test the strategy on a demo account to optimize lookback periods and moving average settings for your asset.
Disclaimer: This script is for educational purposes and should be tested thoroughly before use in live trading. Past performance is not indicative of future results.
Dönemler
QuantumSync Pulse [ w.aritas ]QuantumSync Pulse (QSP) is an advanced technical indicator crafted for traders seeking a dynamic and adaptable tool to analyze diverse market conditions. By integrating momentum, mean reversion, and regime detection with quantum-inspired calculations and entropy analysis, QSP offers a powerful histogram that reflects trend strength and market uncertainty. With multi-timeframe synchronization, adaptive filtering, and customizable visualization, it’s a versatile addition to any trading strategy.
Key Features
Hybrid Signals: Combines momentum and mean reversion, dynamically weighted by market regime.
Quantum Tunneling: Enhances responsiveness in volatile markets using volatility-adjusted calculations.
3-State Entropy: Assesses market uncertainty across up, down, and neutral states.
Regime Detection: Adapts signal weights with Hurst exponent and volatility ROC.
Multi-Timeframe Alignment: Syncs with higher timeframe trends for context.
Customizable Histogram: Displays trend strength with ADX-based visuals and flexible styling.
How to Use and Interpret
Histogram Interpretation
Positive (Above Zero): Bullish momentum; color intensity shows trend strength.
Negative (Below Zero): Bearish momentum; gradients indicate weakness.
Overlaps: Alignment of final_z (signal) and ohlc4 (price) histograms highlights key price levels or turning points.
Regime Visualization
Green Background: Trending market; prioritize momentum signals.
Red Background: Mean-reverting market; focus on reversion signals.
Blue Background: Neutral state; balance both signal types.
Trading Signals
Buy: Histogram crosses above zero or shows positive divergence between histograms.
Sell: Histogram crosses below zero or exhibits negative divergence.
Confirmation: Match signals with regime background—green for trends, red for ranges.
Customization
Tweak Momentum Length, Entropy Lookback, and Hurst Exponent Lookback for sensitivity.
Adjust color themes and transparency to suit your charts.
Tips for Optimal Use
Timeframes: Use higher timeframes (1h, 4h) for trend context and lower (5m, 15m) for entries.
Pairing: Combine with RSI, MACD, or volume indicators for confirmation.
Backtesting: Test settings on historical data for asset-specific optimization.
Overlaps: Watch for histogram overlaps to identify support, resistance, or reversals.
Simulated Performance
Trending Markets: Histogram stays above/below zero, with overlaps at retracements for entries.
Range-Bound Markets: Oscillates around zero; overlaps signal reversals in red regimes.
Volatile Markets: Quantum tunneling ensures quick reactions, with filters reducing noise.
Elevate your trading with QuantumSync Pulse—a sophisticated tool that adapts to the market’s rhythm and your unique style.
Multi Scanner Plot & Table V1Here's how to interpret each column in the table:
Price vs MAs:
What it shows: Where the current price is relative to the short-term (e.g., 20-period) and long-term (e.g., 50-period) Simple Moving Averages (SMAs) calculated on your current chart's timeframe.
Interpretation:
Above Both (Green background): Price is above both the short and long MAs. Generally considered a bullish sign for the current trend.
Below Both (Red background): Price is below both MAs. Generally considered a bearish sign.
Mixed (Gray background): Price is between the two MAs (e.g., above the short but below the long, or vice-versa). Indicates indecision or a potential trend change.
RSI Value:
What it shows: The actual numerical value of the Relative Strength Index (RSI) calculated on your current chart's timeframe.
Interpretation: Just the raw RSI number (e.g., 65.32). The background is always gray. You compare this value to standard overbought/oversold levels (like 70/30) or the levels defined in the script's inputs.
RSI Status:
What it shows: Interprets the RSI Value based on the Overbought/Oversold levels set in the script's inputs (default 70/30). Calculated on your current chart's timeframe.
Interpretation:
Overbought (Red background): RSI is above the overbought level (e.g., > 70). Suggests the asset might be due for a pullback or reversal downwards. Red indicates a potentially bearish condition.
Oversold (Green background): RSI is below the oversold level (e.g., < 30). Suggests the asset might be due for a bounce or reversal upwards. Green indicates a potentially bullish condition.
Neutral (Gray background): RSI is between the oversold and overbought levels.
Last Sig Price:
What it shows: The price level where the last "SIG NOW" Buy or Sell signal occurred on your current chart's timeframe.
Interpretation: Helps you see the entry price of the most recent short-term signal generated by this script. The background color matches the signal type: Green for the last Buy signal, Red for the last Sell signal. N/A if no signal has occurred yet.
SIG NOW:
What it shows: This is the main short-term signal generated by the script based on conditions on your current chart's timeframe. It combines the "Price vs MAs" status and specific RSI conditions (price must be above/below both MAs and RSI must be within a certain range defined in the inputs).
Interpretation:
BUY (Green background): The specific buy conditions are met right now. (Price above both MAs AND RSI is strong but not necessarily overbought).
SELL (Red background): The specific sell conditions are met right now. (Price below both MAs AND RSI is weak but not necessarily oversold).
NEUTRAL (Gray background): Neither the Buy nor the Sell conditions are currently met.
ALERT:
What it shows: Flags unusual volume activity on the current bar compared to the recent average volume (calculated on your current chart's timeframe).
Interpretation:
SPIKE (Yellow background, black text): Current volume is significantly higher than the recent average (defined by the Volume Spike Multiplier). Can indicate strong interest or a potential climax.
DUMP (Purple background): Current volume is significantly lower than the recent average (defined by the Volume Dump Multiplier). Can indicate fading interest.
NONE (Gray background): Volume is within the normal range for the lookback period.
SD$:
What it shows: The price level where the last Volume Spike or Dump occurred on your current chart's timeframe.
Interpretation: Shows the price associated with the most recent significant volume event. The background color indicates the type of the last event: Green if the last event was a Spike, Red if the last event was a Dump. N/A if no Spike/Dump has occurred yet.
BB Value (%B):
What it shows: This relates to Bollinger Bands, but specifically calculated on a Higher Timeframe (HTF) that you can set in the inputs (e.g., Daily BBs while viewing an Hourly chart). It shows the Bollinger Band Percent B (%B) value for that HTF. %B measures where the HTF closing price is relative to the HTF upper and lower bands.
Interpretation:
Value > 1: HTF price closed above the HTF upper Bollinger Band.
Value < 0: HTF price closed below the HTF lower Bollinger Band.
Value between 0 and 1: HTF price closed within the HTF Bollinger Bands (e.g., 0.5 is exactly on the middle band).
The background is always gray.
LTS (Long Term Signal):
What it shows: A signal derived only from the Higher Timeframe (HTF) Bollinger Bands.
Interpretation:
BUY (Green background): The HTF price closed above the HTF upper Bollinger Band (see BB Value > 1). Considered a strong bullish signal from the higher timeframe perspective.
SELL (Red background): The HTF price closed below the HTF lower Bollinger Band (see BB Value < 0). Considered a strong bearish signal from the higher timeframe perspective.
NEUTRAL (Gray background): The HTF price closed within the HTF Bollinger Bands.
How to Understand Bollinger Bands and Signals in this Context:
Bollinger Bands are primarily used for the Long Term Signal (LTS) column. This script calculates BBs on a higher timeframe (you choose which one, or it defaults to the chart's timeframe if left blank).
The "LTS" signal triggers:
A BUY when the price on that higher timeframe closes above its upper Bollinger Band. This often indicates strong momentum or a potential breakout.
A SELL when the price on that higher timeframe closes below its lower Bollinger Band. This often indicates strong negative momentum or a potential breakdown.
The "BB Value" column gives you the raw %B number from that same higher timeframe, showing you exactly where the price is relative to the bands (is it just barely above/below, or way outside?).
The script does not directly use Bollinger Bands from the current chart timeframe for the "SIG NOW" or other table signals. The main short-term signals ("SIG NOW") rely on Moving Averages and RSI on the current timeframe. The LTS provides a longer-term perspective using HTF Bollinger Bands.
In summary: Look at the table to quickly gauge:
Short-term trend (Price vs MAs).
Short-term momentum (RSI Status, SIG NOW).
Recent short-term entry points (Last Sig Price).
Current volume anomalies (ALERT).
Long-term strength/weakness based on HTF Bollinger Bands (LTS, BB Value).
Combine these pieces of information to get a more rounded view of the current market conditions according to this specific script's logic.
Triad Macro Gauge__________________________________________________________________________________
Introduction
__________________________________________________________________________________
The Triad Macro Gauge (TMG) is designed to provide traders with a comprehensive view of the macroeconomic environment impacting financial markets. By synthesizing three critical market signals— VIX (volatility) , Credit Spreads (credit risk) , and the Stocks/Bonds Ratio (SPY/TLT) —this indicator offers a probabilistic assessment of market sentiment, helping traders identify bullish or bearish macro conditions.
Holistic Macro Analysis: Combines three distinct macroeconomic indicators for multi-dimensional insights.
Customization & Flexibility: Adjust weights, thresholds, lookback periods, and visualization styles.
Visual Clarity: Dynamic table, color-coded plots, and anomaly markers for quick interpretation.
Fully Consistent Scores: Identical values across all timeframes (4H, daily, weekly).
Actionable Signals: Clear bull/bear thresholds and volatility spike detection.
Optimized for timeframes ranging from 4 hour to 1 week , the TMG equips swing traders and long-term investors with a robust tool to navigate macroeconomic trends.
__________________________________________________________________________________
Key Indicators
__________________________________________________________________________________
VIX (CBOE:VIX): Measures market volatility (negatively weighted for bearish signals).
Credit Spreads (FRED:BAMLH0A0HYM2EY): Tracks high-yield bond spreads (negatively weighted).
Stocks/Bonds Ratio (SPY/TLT): Evaluates equity sentiment relative to treasuries (positively weighted).
__________________________________________________________________________________
Originality and Purpose
__________________________________________________________________________________
The TMG stands out by combining VIX, Credit Spreads, and SPY/TLT into a single, cohesive indicator. Its unique strength lies in its fully consistent scores across all timeframes, a critical feature for multi-timeframe analysis.
Purpose: To empower traders with a clear, actionable tool to:
Assess macro conditions
Spot market extremes
Anticipate reversals
__________________________________________________________________________________
How It Works
__________________________________________________________________________________
VIX Z-Score: Measures volatility deviations (inverted for bearish signals).
Credit Z-Score: Tracks credit spread deviations (inverted for bearish signals).
Ratio Z-Score: Assesses SPY/TLT strength (positively weighted for bullish signals).
TMG Score: Weighted composite of z-scores (bullish > +0.30, bearish < -0.30).
Anomaly Detection: Identifies extreme volatility spikes (z-score > 3.0).
All calculations are performed using daily data, ensuring that scores remain consistent across all chart timeframes.
__________________________________________________________________________________
Visualization & Interpretation
__________________________________________________________________________________
The script visualizes data through:
A dynamic table displaying TMG Score , VIX Z, Credit Z, Ratio Z, and Anomaly status, with color gradients (green for positive, red for negative, gray for neutral/N/A).
A plotted TMG Score in Area, Histogram, or Line mode , with adaptive opacity for clarity.
Bull/Bear thresholds as horizontal lines (+0.30/-0.30) to signal market conditions.
Anomaly markers (orange circles) for volatility spikes.
Crossover signals (triangles) for bull/bear threshold crossings.
The table provides an immediate snapshot of macro conditions, while the plot offers a visual trend analysis. All values are consistent across timeframes, simplifying multi-timeframe analysis.
__________________________________________________________________________________
Script Parameters
__________________________________________________________________________________
Extensive customization options:
Symbol Selection: Customize VIX, Credit Spreads, SPY, TLT symbols
Core Parameters: Adjust lookback periods, weights, smoothing
Anomaly Detection: Enable/disable with custom thresholds
Visual Style: Choose display modes and colors
__________________________________________________________________________________
Conclusion
__________________________________________________________________________________
The Triad Macro Gauge by Ox_kali is a cutting-edge tool for analyzing macroeconomic trends. By integrating VIX, Credit Spreads, and SPY/TLT, TMG provides traders with a clear, consistent, and actionable gauge of market sentiment.
Recommended for: Swing traders and long-term investors seeking to navigate macro-driven markets.
__________________________________________________________________________________
Credit & Inspiration
__________________________________________________________________________________
Special thanks to Caleb Franzen for his pioneering work on macroeconomic indicator blends – his research directly inspired the core framework of this tool.
__________________________________________________________________________________
Notes & Disclaimer
__________________________________________________________________________________
This is the initial public release (v2.5.9). Future updates may include additional features based on user feedback.
Please note that the Triad Macro Gauge is not a guarantee of future market performance and should be used with proper risk management. Past performance is not indicative of future results.
Spot Premium with ROCDescription:
This indicator tracks the spot premium of BTC by comparing the perpetual futures price (perp) from Binance against the spot price on Coinbase. The histogram displays the price difference (spot minus perp) with green bars when spot is higher and red when perp carries a premium. The Rate of Change (ROC) line measures how quickly this premium shifts, with an option to normalize fluctuations for greater stability.
Implications & Possible Use Cases:
• Market Sentiment Gauge: A sustained positive premium often indicates bullish sentiment, while a discount can signal bearish bias.
• Arbitrage Signals: Significant divergences between perp and spot may present short-term arbitrage opportunities across exchanges.
• Risk Management & Hedging: Traders can align derivatives and spot positions when premiums deviate sharply, reducing funding cost exposures.
• Funding Rate Insights: Since perp funding rates tend to follow premium levels, this indicator can act as an early warning for funding spikes.
• Trend Confirmation: Use the normalized ROC to confirm continuation or reversal of premium trends, filtering out noise around small diff values.
Let me know if you would like additional features.
SAR Pullback By TradingConTotoName & Version
SAR Pullback UX Improved (Pine Script v5)
Core Logic
Calculates two EMAs (fast and slow) to identify overall trend direction.
Uses the Parabolic SAR to detect “flip” points (when SAR crosses price), marking micro-trend reversals.
Micro-Trend Extremes
Tracks the highest high after a bullish flip (SAR below price) and the lowest low after a bearish flip (SAR above price).
These extremes feed into the stop-loss approximation.
Approximate Stop-Loss (“SL aprox”)
If SAR is below price (bullish), SL ≔ (micro-trend high − current SAR).
If SAR is above price (bearish), SL ≔ (current SAR − micro-trend low).
Leverage Calculation
User-defined “UR in USD” input.
Computes leverage as UR ÷ SL, giving you an estimate of position sizing potential.
On-Chart Signals
BUY label at each bullish flip, with SL and leverage printed.
SELL label at each bearish flip, likewise showing SL and leverage.
Customizable UI
Inputs to toggle display of SL, leverage, or both.
Choose your UR value, panel background/text colors, and BUY/SELL label colors.
Panel position fixed at top-right by default, showing a 2×3 table:
Header row (“Metric” / “Value”)
“SL aprox” row
“Leverage” row
Visuals
Plots the slow EMA colored by trend.
Draws SAR as crosses.
Bar colors shade green/red according to bullish/bearish conditions.
Semi-transparent, styled panel for quick glance of key metrics.
This indicator combines trend filtering, automated stop-loss sizing, and leverage guidance into a single, fully-configurable Pine Script tool—giving you clear on-chart signals plus a neat metrics panel for streamlined decision-making.
DCA OptimizedMonthly or Daily DCA strategy, with adjustable capital allocation percentages at the beginning of each quarter (January, April, July, and October) as well as for the other months of the year. Capital allocation settings are also customizable for daily DCA.
The strategy consists of performing annual DCA, taking profits at the end of the year, specifically on December 31st of each year, and repeating the process the following year.
If the year ends with an unrealized loss on the total invested, hold the assets until December 31st, until the asset is in profit.
Purchases are made on the first day of each month, at the daily opening price. The same applies to monthly or daily DCA (daily opening price).
By default, it is recommended to invest twice as much at the beginning of each quarter (January/April/July/October) compared to other months of the year. This allows you to optimize the average acquisition price over the long term, thus maximizing profits and reducing potential unrealized losses.
Example: January/April/July/October > 12.5% of the capital / Other months of the year > 6.25% of the capital (Total over 12 months = 100%)
You can select/unselect the months of the year in which to invest as you wish to optimize your periodic preferences.
Correction Candle CounterIndicator that identifies “correction” candles using the classic 3-1-3 pattern, highlights them with customizable colors and arrow markers, and tallies occurrences across all data, a selected year, or any defined month range. Flexible styling and date-filter options make it ideal for quick, focused analysis.
Volume Aggression Monitor📌 Volume Aggression Monitor — Overview
This indicator helps identify buying and selling pressure (aggression) in real-time by analyzing how market participants are executing trades. It is composed of three main components:
🔍 What Does It Show?
🧭 1. The Thermometer (Above Candles)
🟢 Green Arrow (▲) → Buy Aggression: Buyers are lifting the ask.
🔴 Red Arrow (▼) → Sell Aggression: Sellers are hitting the bid.
⚪ Gray Square (■) → Neutral: No significant price movement or aggression.
💡 Neutral in this context means:
The price barely moved during the candle (open-close % change < direction_threshold, default 0.05%).
No clear buyer or seller dominance. It often appears during low volatility, equilibrium, or market indecision periods. This prevents noise and false directional readings due to random micro-movements.
📊 2. Percentage Panel
A table displaying recent trades or candle data (from a lower timeframe). Colored arrows indicate the direction of aggression (buy/sell). Shows volume, delta, and aggression %.
✅ Use it to:
Track clusters of buy/sell aggression. Spot momentum builds.
⏱️ 3. Cumulative Times & Sales Bar
A horizontal progress bar representing cumulative aggression.
Positive = Buy Aggression dominates.
Negative = Sell Aggression dominates.
📉 Even in sideways price movement, this bar shows who is winning the fight under the surface.
---
🧠 How to Use It:
🔹 Confirm Trades
Use the thermometer and aggression signals to confirm your strategy entries (e.g., breakouts, pullbacks, support/resistance).
🔹 Detect Dominance
Observe who is in control: buyers or sellers? Are they pressing or hesitating?
🔹 Filter Market Noise
The neutral state avoids misinterpreting small, meaningless movements as strong signals.
---
Component | Meaning
🌡️ Thermometer (▲ ▼ ■) | Who’s in control in each candle
📊 Percentage Panel | Trade details: direction, delta, aggression
📈 Cumulative T&S Bar | Overall aggression bias over time
---
Maancyclus Volatiliteitsindicator (2025)This Moon Cycle Volatility Indicator for TradingView is designed to help traders track and analyze market volatility around specific lunar phases, namely the Full Moon and New Moon. The indicator marks the dates of these moon phases on the chart and measures volatility using the Average True Range (ATR) indicator, which gauges market price fluctuations.
Key Features:
Moon Phase Markers: The indicator marks the Full Moon and New Moon on the chart using labels. Blue labels are placed below bars for Full Moons, while red labels are placed above bars for New Moons. These markers are based on a manually curated list of moon phase dates for the year 2025.
Volatility Calculation: The indicator calculates market volatility using the ATR (14), which provides a sense of market movement and potential risk. Volatility is plotted as histograms, with blue histograms representing volatility around Full Moons and red histograms around New Moons.
Comparative Analysis: By comparing the volatility around these moon phases to the average volatility, traders can spot potential patterns or heightened market movements. This can inform trading strategies, such as anticipating increased market activity around specific lunar events.
In essence, this tool helps traders identify potential high-volatility periods tied to lunar cycles, which could impact market sentiment and price action.
Midpoint of Last 3 CandlesThis indicator highlights the market structure by plotting the midpoints of the current and previous two candles. It draws a horizontal line at the average of the high and low for each of these candles, giving a visual cue of the short-term balance point in price action. These midpoints can act as dynamic support and resistance levels, helping traders assess areas of potential reaction or continuation.
Each line is color-coded for clarity: green represents the current candle, orange marks the previous candle, and yellow indicates the one before that. All lines extend into the future on the chart, allowing you to see how price interacts with these levels as new candles form. This simple yet effective tool can be useful in various strategies, especially those focused on price action, scalping, or intraday analysis.
Stochastic Strategy Table with Trend (1m–4H) + Toggle📊 Multi-Timeframe Stochastic Strategy Table with Trend Detection
This script is designed for intraday and swing traders who want to monitor Stochastic momentum across multiple timeframes in real-time — all directly on the main chart.
🔎 What This Script Does
This script builds a compact, color-coded table that displays:
✅ %K and %D values of the Stochastic oscillator
✅ Cross direction (K > D or K < D)
✅ Overbought/Oversold zone conditions
✅ Short-term trend detection via %K movement
It covers ten timeframes:
1m, 2m,3m,5m, 15m, 30m, 1H, 2H, 3H, 4H
🟩 How to Use It
Trend colors in header:
🟢 Green = %K is rising (uptrend)
🔴 Red = %K is falling (downtrend)
⚪ Gray = flat or neutral
Cross Row:
Green background = Bullish (%K > %D)
Red background = Bearish (%K < %D)
Zone Row:
Green = Oversold (%K and %D below 20)
Red = Overbought (%K and %D above 80)
Gray = Neutral zone
Use Case:
Look for multiple timeframes aligning in trend
Enter trades on short timeframes (e.g. 5m) when HTFs confirm direction
Especially powerful when used with price action on 5m/15m candles
⚙️ Configurable Inputs
%K Length
%K Smoothing
%D Length
Table location
Table size
💡 Why This Script Is Unique
Shows true higher timeframe Stochastic values (not interpolated from current chart)
Works in real-time with consistent updates
Trend direction is visualized without needing extra space
Built for serious intraday traders who rely on clean data and signal alignment
🙏 Credits & Notes
This tool was created to solve a real problem: getting accurate HTF stochastic data in a clean, real-time, decision-friendly format.
I built it for my own use — and now I'm sharing it for luck, and for anyone else looking to trade more clearly and confidently.
Feel free to fork, customize, or build upon it.
Good luck, and trade safe! 🍀💹
ONE RING 8 MA Bands with RaysCycle analysis tool ...
MAs: Eight moving averages (MA1–MA8) with customizable lengths, types (RMA, WMA, EMA, SMA), and offsets
Bands: Upper/lower bands for each MA, calculated based on final_pctX (Percentage mode) or final_ptsX (Points mode), scaled by multiplier
Rays: Forward-projected lines for bands, with customizable start points, styles (Solid, Dashed, Dotted), and lengths (up to 500 bars)
Band Choices
Manual: Uses individual inputs for band offsets
Uniform: Sets all offsets to base_pct (e.g., 0.1%) or base_pts (e.g., 0.1 points)
Linear: Scales linearly (e.g., base_pct * 1, base_pct * 2, base_pct * 3 ..., base_pct * 8)
Exponential: Scales exponentially (e.g., base_pct * 1, base_pct * 2, base_pct * 4, base_pct * 8 ..., base_pct * 128)
ATR-Based: Offsets are derived from the Average True Range (ATR), scaled by a linear factor. Dynamic bands that adapt to market conditions, useful for breakout or mean-reversion strategies. (final_pct1 = base_pct * atr, final_pct2 = base_pct * atr * 2, ..., final_pct8 = base_pct * atr * 8)
Geometric: Offsets follow a geometric progression (e.g., base_pct * r^0, base_pct * r^1, base_pct * r^2, ..., where r is a ratio like 1.5) This is less aggressive than Exponential (which uses powers of 2) and provides a smoother progression.
Example: If base_pct = 0.1, r = 1.5, then final_pct1 = 0.1%, final_pct2 = 0.15%, final_pct3 = 0.225%, ..., final_pct8 ≈ 1.71%
Harmonic: Offsets are based on harmonic flavored ratios. final_pctX = base_pct * X / (9 - X), final_ptsX = base_pts * X / (9 - X) for X = 1 to 8 This creates a harmonic-like progression where offsets increase non-linearly, ensuring MA8 bands are wider than MA1 bands, and avoids duplicating the Linear choice above.
Ex. offsets for base_pct = 0.1: MA1: ±0.0125% (0.1 * 1/8), MA2: ±0.0286% (0.1 * 2/7), MA3: ±0.05% (0.1 * 3/6), MA4: ±0.08% (0.1 * 4/5), MA5: ±0.125% (0.1 * 5/4), MA6: ±0.2% (0.1 * 6/3), MA7: ±0.35% (0.1 * 7/2), MA8: ±0.8% (0.1 * 8/1)
Square Root: Offsets grow with the square root of the band index (e.g., base_pct * sqrt(1), base_pct * sqrt(2), ..., base_pct * sqrt(8)). This creates a gradual widening, less aggressive than Linear or Exponential. Set final_pct1 = base_pct * sqrt(1), final_pct2 = base_pct * sqrt(2), ..., final_pct8 = base_pct * sqrt(8).
Example: If base_pct = 0.1, then final_pct1 = 0.1%, final_pct2 ≈ 0.141%, final_pct3 ≈ 0.173%, ..., final_pct8 ≈ 0.283%.
Fibonacci: Uses Fibonacci ratios (e.g., base_pct * 1, base_pct * 1.618, base_pct * 2.618
Percentage vs. Points Toggle:
In Percentage mode, bands are calculated as ma * (1 ± (final_pct / 100) * multiplier)
In Points mode, bands are calculated as ma ± final_pts * multiplier, where final_pts is in price units.
Threshold Setting for Slope:
Threshold setting for determining when the slope would be significant enough to call it a change in direction. Can check efficiency by setting MA1 to color on slope temporarily
Arrow table: Shows slope direction of 8 MAs using an Up or Down triangle, or shows Flat condition if no triangle.
[Tradevietstock] Market Cycle Detector_Quantum Flux Best technical indicator to detect market cycles - Quantum Flux
Hello folks, it's Tradevietstock again! Today, I will introduce you to Quantum Flux Indicator, which can help you identify market cycle and find your best entry/exit effectively.
i. Overview
1. What is Market Cycle Detector_Quantum Flux?
The Quantum Flux Indicator is developed specifically to analyze and detect market cycles across a variety of asset classes. Whether you trade stocks, crypto, forex, or commodities, this indicator provides a consistent framework to track trends and time your positions.
2. Supported Markets:
Stock Market
Crypto Market
Commodities
Forex
You can apply the same cycle-based strategy across all these markets using QFI.
Depending on the platform you're using, here’s how you can start using Quantum Flux:
TradingView Users:
Once your invite is approved, the indicator will be added to your TradingView account. You can access it directly through the Indicators tab.
MT5 / Amibroker Users:
After your payment is completed, we will send you the QFI script. You can then import it manually into your MT5 or Amibroker trading platform.
ii. Setting Up the Indicator
1. Choose Your Setup
There are two ways to configure the Quantum Flux - The best indicator to detect market cycles
Default Setup (Recommended)
This includes both the Quantum Aroon and some of the Premium MACD signals. This full setup is ideal for traders who want a complete view of the market cycle with detailed signals. You just need to turn off the Premium MACD_Components as the image below
MACD-Only Setup
In this mode, the Quantum Aroon module is disabled. The indicator will rely solely on the Premium MACD Setting to generate signals. While this option is available, we recommend using the full setup for the most accurate performance.
2. Recognize the Market Cycle Phases
According to Tradevietstock’s theory , every trading asset typically moves through four distinct phases in a complete cycle:
Bearish Phase - Bear Market
First Bullish Wave - The Recovery
Strong Correction Phase
Final Bullish Wave
Quantum Flux generates visual and data-driven signals to help you time your trades accurately.
Green Dots: MACD crossover → Potential buy signal
Red Dots: MACD crossunder → Potential sell signal
Quantum Aroon Crossover: Confirms bullish trend or Buy Signals
Quantum Aroon Crossunder: Confirms bearish trend or Exit Signals
Green background: Extreme Bullish Phase
Red background: Extreme Bearish Phase
The Extreme Bullish/Bearish Phase is a unique feature of our system that enhances trading signals by capturing moments when the market moves aggressively—either in a strong uptrend or downtrend. This phase often represents the peak of Greed in bullish markets and Fear in bearish ones, offering a way to gauge market sentiment visually. The intensity of the background color helps interpret this: a bolder green indicates a more extreme bull market, while a deeper red signals an extreme bear market.
It's important to note that the Extreme Bullish/Bearish Phases are not direct entry or exit signals. Instead, they serve as enhancement signals that help traders make more informed decisions. These phases provide insight into whether it's wise to wait for additional confirmation before entering a trade, or to hold existing positions longer until clearer exit signals—like red dots or crosses—appear. By identifying the market's most intense emotional points, these signals help traders better align with momentum rather than react prematurely.
=> In summary, the Extreme Bullish/Bearish Phase provides valuable insight into market sentiment by highlighting emotional extremes, helping traders navigate aggressive trends with greater confidence. However, like all features in the indicator, its purpose is to complement, not replace, the core entry and exit signals—which are still based on crosses and dots. As always, green indicates bullish conditions, and red indicates bearish, but sentiment alone doesn't drive the trades—signals do.
3. The logic of the indicator and its trading strategy
Many traders are familiar with Wyckoff's theory, which, while foundational, can feel outdated and inefficient for real-life trading in today's fast-paced markets. It takes time to apply and may not be the most practical approach. That’s why many turn to day trading, but without the right tools and strategy, it can lead to account blow-ups.
The traditional market cycle consists of four stages: accumulation, markup, distribution, and markdown. While this is accurate, it's not always sufficient for modern trading. We need something more practical.
According to Tradevietstock's theory, the market cycle can be broken into four stages: a bear market, recovery, correction wave, and a bull market (the strongest uptrend). This new approach offers a shorter and more efficient timeline compared to Wyckoff's or other older cycle theories, making it a safer and more practical alternative to intraday trading.
To trade with market cycles, you need to remember these four stages:
Bearish Phase - Bear Market
First Bullish Wave - The Recovery
Strong Correction Phase
Final Bullish Wave
The logic for BUY/SELL (Entry/Exit) signals is built on a combination of crossover and crossunder events from the Quantum Aroon and Premium MACD indicators. Our Quantum Aroon is an enhanced version that applies a custom zero-lag smoothing function, making its trend signals more responsive and accurate than the traditional Aroon. It also includes a signal line for crossover alerts, along with visual enhancements like color-coded backgrounds, arrows, and gradient fills to highlight different market phases. Integrated with normalized MACD and RSI, it helps confirm signals and identify overbought or oversold conditions. Most importantly, it's aligned with Tradevietstock’s 4-phase market cycle—Bear Market, Recovery, Correction, and Bull Market—making it especially practical for real-world trading.
The Premium MACD differs from the standard version by introducing several key improvements. It normalizes the MACD line, signal line, and histogram for consistent interpretation across assets and timeframes, improving visual clarity. It also supports multi-timeframe analysis, allowing users to choose between the current chart resolution or a custom timeframe. The indicator includes color-coded histogram bars to show momentum changes and uses large dynamic circles to highlight crossover points.
=> These enhancements improve signal accuracy and make trend reversals easier to spot. Paired with the Quantum Aroon, it serves as a powerful confirmation tool within the Tradevietstock cycle framework.
4. Get to practice
In the example of NVDA, you can observe all four phases in action. For medium- to long-term traders, Phase 2 and Phase 4 usually present the strongest buying opportunities. Phase 1 and Phase 3 are accumulation phases — where prices are lower and preparations are made for the next bullish leg.
We can examine the following example to better understand Phase 1: The Bear Market . This phase only begins after a prior uptrend in the stock price . It’s crucial to remember that Phase 1 is not the start of the overall trend—it marks the reversal following a bullish run.
For instance, take the LMT stock: after a 50% rise, Quantum Flux displays a green background, indicating an 'Extreme Bullish Phase.' Once this bullish phase concludes, it sets the stage for a valid Phase 1—the beginning of the Bear Market.
The stock price declines sharply, triggering Quantum Flux to display a red background as the Aroon line crosses below the signal line.
Phase 1 concludes when we observe multiple crossover signals—most notably when the Aroon line crosses above the Signal line—and the red background, which signifies the Extreme Bearish Phase, disappears. Let's take a look at the image below:
Let’s move on to Phase 2: The Recovery. This phase follows the Bear Market—Phase 1. After a significant decline in the stock price, a recovery or pullback is expected.
Our signals for this phase include green dots and crosses, along with the confirmation signals that mark the end of Phase 1. This combination provides valid Buy signals and presents opportunities for mid-term investment strategies.
Phase 3 is a correction wave after the recovery . We also incorporate the cross and dot signals during this phase. In Phase 2, the strategy involves preparing to sell or take profits once the recovery phase matures. Whenever red dots or red crosses appear, they serve as indicators to consider taking profits, signaling the potential end of the upward move.
In Phase 3, known as the correction wave, the key objective is to take profits before the price begins to decline. This phase represents a temporary pullback following the recovery. Importantly, the end of Phase 3 often presents a strong buying opportunity—just before the onset of Phase 4, which is the strongest bullish wave. Whenever green dots and crosses appear at this stage, they serve as clear Buy signals, allowing us to position early for the upcoming bullish momentum.
Phase 4 is the strongest bullish wave—one that investors definitely don’t want to miss. Having entered at the end of Phase 3, the goal in Phase 4 is to maximize gains by targeting the highest highs.
During this phase, we closely monitor our exit signals, which include the appearance of red dots and red crosses, as well as the disappearance of the Extreme Bullish Phase indicator (green background). These signals help us lock in profits at the peak of the bullish momentum.
iii. Brief Conclusion on the Signals
End of Phase 1:
As Phase 1 nears completion, green dots start to appear. These serve as early entry signals, offering an opportunity to buy at lower prices before the trend reversal begins.
Phase 2 – Recovery:
Momentum begins to build during this phase. As it approaches its peak, red dots and Aroon line crossunders emerge—signaling that it's time to exit or reduce exposure in anticipation of a correction.
Phase 3 – Correction:
The indicator typically shows a red background, reflecting a bearish environment. This is a waiting phase—traders should remain cautious and avoid entering until green signals reappear.
Phase 4 – Strong Bullish Wave:
With the return of bullish signals (green dots, crosses, and green background), Phase 4 begins. After entering, the position is held to ride the strong momentum. Profit-taking signals include the appearance of red dots, red crosses, and the disappearance of the green background.
iv. Optimal Use by Market Type
Here’s how we suggest using QFI depending on what you trade:
Stocks: Best used on the Daily or Weekly chart for swing trades.
Cryptocurrency: Works well on BTC, ETH, or major altcoins using Daily and Weekly charts. Great for catching larger trend reversals.
CFDs and Forex: QFI is built for higher timeframes (H4, D1, W1), where it produces cleaner and more reliable signals.
Best Ways to Use It
🟢 Stocks
Works well on Weekly and Daily charts for swing entries
🟡 Crypto
Works best on Weekly and Daily charts
Good for trend-catching on BTC, ETH, or altcoins
🔴 CFDs
Designed with precision in mind — works on bigger timeframes, like H4, D1, and W1
The Quantum Flux Indicator is a flexible and powerful tool for anyone looking to navigate the full market cycle — from bottom to top and back again. With its ability to highlight key phases and generate timely signals, it becomes easier to plan your entries, hold through trends, and exit with confidence.
If you're serious about understanding market structure and improving your timing, Quantum Flux, the best Indicator to detect market cycles, can become a central part of your strategy — no matter what market you're in.
Market Sessions & Viewer Panel [By MUQWISHI]▋ INTRODUCTION :
The “Market Sessions & Viewer Panel” is a clean and intuitive visual indicator tool that highlights up to four trading sessions directly on the chart. Each session is fully customizable with its name, session time, and color. It also generates a panel that provides a quick-glance summary of each session’s candle/bar shape, helping traders gain insight into the volatility across all trading sessions.
_______________________
▋ OVERVIEW:
_______________________
▋ CREDIT:
This indicator utilizes the “ Timezone — Library ”. A huge thanks to @n00btraders for effort and well-organized work.
_______________________
▋ SESSION PANEL:
The Session Panel allows traders to visually compare session volatility using a candlestick/bar pattern.
Each bar represents the price action during a session and includes the session status, session name, closing price, change(%) from open, and a tooltip that reveals detailed OHLC and volume when hovered over.
Chart Type:
It offers two styles Bar or Candle to display based on traders’ preference
Sorting:
Allowing to arrange session candles/bars based on…
—Left to Right: The most recently opened on the left, moving backward in time to the right.
—Right to Left: The most recently opened on the right, moving backward in time to the left.
—Default: Arrange sessions in the user-defined input order.
_______________________
▋ CHART VISUALIZATION:
The chart visualization highlights each trading session using color-coded backgrounds in two selectable drawing styles that span their respective active timeframes. Each session block provides session’s name, close price, and change from open.
Chart Type: Candle
Chart Type: Box
Extra Drawing Feature:
This feature may not exist in other indicators within the same category, it extends the session block drawing to the projected end of the session. This's done through estimation based on historical data; however, it doesn’t function fully on seconds-based timeframes due to drawing limitations.
_______________________
▋ INDICATOR SETTINGS:
Section(1): Sessions
(1) Universal Timezone.
(2) Each Session: Enable/Disable, Name, Color, and Time.
Section(2): Session Panel
(1) Show/Hide Session Panel.
(2) Chart Type: Candle/Bar.
(3) Bar’s Up/Down color.
(4) Width and Height of the bar.
(5) Location of Session Panel on chat.
(6) Sort: Left to Right (most recent session is placed on the left), Right to Left (most recent session is placed on the right), and Default (as input arrangement).
Section(3): Chart Visualization
(1) Show/Hide Chart Block Visualization.
(2) Draw Shape: Box/Candle.
(3) Border Style and Size.
(4) Label Styling includes location, size, and some essential selectable infos.
Please let me know if you have any questions
for your comparison: Global M2 Money Supply // Days Offset =📈 Global M2 Money Supply Overlay – Offset Adjustable
This script plots an aggregated, FX-adjusted global M2 money supply index directly on your TradingView chart. It pulls M2 data from multiple global regions—including North America, Europe, Asia, Latin America, and more—and normalizes it for comparison in USD terms.
You can apply a custom time offset to the M2 line using the settings, allowing you to test potential leading or lagging correlations between global liquidity and market price action (e.g., Bitcoin, equities, commodities).
💡 Ideal for macro traders, long-term investors, and anyone interested in liquidity-driven market behavior.
Features:
Combines M2 data from 20+ countries and currency zones
FX-adjusted for consistency in USD terms
Offset slider to shift M2 data forward or backward in time
Scaled to trillions for readability
Plots directly on the main chart for visual comparison
The Hebrew CalendarThis indicator displays the current Hebrew (Jewish) calendar date based on the real-time Gregorian calendar. Features included:
Calculates and displays the current Hebrew day, month, and year.
Recognizes leap years and adjusts month counts accordingly.
Aligns with traditional Hebrew month names (Tishrei, Cheshvan, Kislev, etc.).
The calculations align with the Hebrew Calendar Converter from:
👉 www.chabad.org
The results are shown in a table overlay on your chart's top-right corner. This indicator is great for symbolic traders, astro enthusiasts, or anyone interested in ancient timekeeping systems woven into financial timeframes. Enjoy, time travelers! ⌛
The Mayan CalendarThis indicator displays the current date in the Mayan Calendar, based on real-time UTC time. It calculates and presents:
🌀 Long Count (Baktun.Katun.Tun.Uinal.Kin) – A linear count of days since the Mayan epoch (August 11, 3114 BCE).
🔮 Tzolk'in Date – A 260-day sacred cycle combining a number (1–13) and one of 20 day names (e.g., 4 Ajaw).
🌾 Haab' Date – A 365-day civil cycle divided into 18 months of 20 days + 5 "nameless" days (Wayeb').
The calculations follow Smithsonian standards and align with the Maya Calendar Converter from the National Museum of the American Indian:
👉 maya.nmai.si.edu
The results are shown in a table overlay on your chart's top-right corner. This indicator is great for symbolic traders, astro enthusiasts, or anyone interested in ancient timekeeping systems woven into financial timeframes. Enjoy, time travelers! ⌛
FX Rotation Dashboard – FX vs DXYFX Rotation Dashboard
This FX Rotation Dashboard indicator offers a clear, at-a-glance overview of the relative strength and momentum of major FX pairs when measured against the US Dollar Index (DXY). It helps identify which currency pairs are leading or lagging in performance and how their relative positioning is evolving over time.
🔎 Structure
Each row in the table represents a currency pair and provides the following data:
Symbol: The FX pair (e.g., EURJPY, GBPUSD, AUDNZD)
RS: The current relative strength ratio vs. DXY
MOM: The momentum of the RS – showing whether strength is accelerating or decelerating
Quadrant:
🔴 Lagging: Underperforming and losing momentum
🔵 Improving: Underperforming but gaining momentum
🟢 Leading: Outperforming with rising momentum
🟡 Weakening (not visible in current table): Outperforming but slowing down
Meaning: A descriptive label summarizing the quadrant status
🧭 Interpretation
Currency pairs in the Leading quadrant (e.g., EURJPY, GBPJPY, CHFJPY, CADJPY) are currently outperforming the USD with rising momentum – often indicating strength across both RS and MOM dimensions.
Pairs in the Improving quadrant (e.g., GBPUSD, EURUSD, AUDUSD) are showing positive momentum but still lagging in relative strength – potential early signs of rotation into leadership.
Pairs in the Lagging quadrant (e.g., USDCHF, USDJPY, AUDCHF) are underperforming and continue to weaken – often considered the least attractive at the current stage of the cycle.
🧠 Purpose
This FX Rotation visualization is particularly useful for:
Macro-level FX rotation analysis
Spotting emerging trends before they are fully priced in
Tracking performance of G10 and cross pairs against USD
It provides context for currency strength beyond individual price movements by placing them in a relative performance framework.
⚠️ Disclaimer: This indicator is for informational and analytical purposes only. It does not constitute investment advice or a recommendation to buy or sell any financial instrument. Always conduct your own research before making trading decisions.
Ultimate Gann Fan Suite with Multi-ArcsUltimate Gann Fan Suite with Multi-Arcs
This open-source indicator plots Gann Fan angles, arcs, and levels to analyze price and time relationships based on a user-selected pivot point.
What It Does:
- Draws Gann Fan angles (1x16 to 16x1) from a pivot, with optional mirrored lines.
- Plots a base Gann arc and multi-arcs scaled by Gann ratios.
- Displays a Square of 9 grid and Gann Square levels for price projections.
- Supports custom timeframes and price types for pivot selection.
How to Use:
- Pivot: Enable manual pivot picking and select a price type (e.g., Close, High).
- Timeframe: Choose a timeframe (e.g., Daily) for pivot data.
- Angles and Arcs: Show/hide specific Gann angles, arcs, or levels; adjust colors and line styles.
- Scaling: Set price scale (e.g., 9.0) and arc radius (e.g., 36) for visual clarity.
- Labels: Enable labels to identify angles and levels.
- Best for stocks, forex, or crypto on daily or weekly charts.
Notes:
- Ensure enough chart history for the selected timeframe.
- Use on assets with clear trends or cycles for best results.
- Adjust settings to balance chart readability.
VWAP SlicesVWAP Slices is a time-based analytical tool that helps traders evaluate market behavior across custom-defined periods. Instead of looking at VWAP, RSI, or MFI in isolation, this script allows users to select up to three specific time windows — for example, earnings weeks, Fed meetings, or major news cycles — and analyze how price interacted with volume, momentum, and money flow within each of those slices.
For each active period, the script calculates:
VWAP, based on HLC3 × Volume, giving a volume-weighted price anchor
Total traded volume
Number of bars (candles) in the period
RSI, computed using a custom-built relative strength algorithm from closing prices
MFI, calculated from HLC3 and volume to assess money flow direction and strength
These statistics are not simply shown independently — they are designed to be viewed in context with each other. For instance:
VWAP levels help identify fair value and possible accumulation/distribution zones within a time range.
RSI shows internal momentum strength, while MFI adds a volume-sensitive confirmation.
Comparing multiple periods side-by-side allows traders to see shifts in trend behavior and volume dynamics over time.
The script offers two visualization styles:
Labels placed on-chart near price, summarizing each period
A combined table showing all periods together for comparative analysis
Users can define:
Start and end dates of each period
Background color and visibility per period
Whether to display labels, a summary table, or both
It also computes aggregate metrics, including:
A volume-weighted combined VWAP across all selected periods
Average RSI and MFI, giving a broader sense of directional bias and money flow health
This tool is especially useful for:
Assessing how price and volume behaved around specific market events
Comparing accumulation vs distribution across different timeframes
Supporting thesis-driven trading by segmenting history into actionable chunks
This is not a mashup, but a purposeful framework for slicing market history into analytical blocks — combining price anchors with volume and momentum indicators to help traders better interpret price structure and trend context.
Auto Step Horizontal LinesAuto Step Horizontal lines by custom range
Create automatic horizontal lines by specifying the price range for each line, with each line serving as an observation point for support and resistance levels.
Trader Affirmation Stream – Animated + Styling(TraderKessy)The Trader Affirmation Stream is a minimalist overlay indicator designed to keep you focused, motivated, and mentally sharp during your trading sessions. It displays a rotating series of positive trading affirmations—gently animated with a fading effect—right on your chart to help reinforce discipline, patience, and consistency.
Key Features:
Sequential Affirmations
A curated list of motivational trading affirmations that update every N bars, helping you stay grounded and intentional throughout your trading day.
Smooth Fade Animation
Subtle pulse-like fade-in and fade-out transitions give the affirmations a calm, professional feel without disrupting your analysis.
Custom Styling Options
Choose your preferred text size (small, normal, large, or huge) and set the base transparency to match your chart's aesthetic.
Clean Chart Placement
Displayed at the top center of your chart for maximum visibility without interfering with price action or indicators.
Why Use This?
Trading isn’t just technical—it’s deeply psychological. This tool acts like a gentle mental coach, reminding you of your best trading behaviors:
Follow your plan.
Wait for quality setups.
Focus on process, not outcome.
Trust your edge.
A simple, powerful tool to help you develop the mindset of a consistently profitable trader.