M5 Predictor by AbdullayevXAUUSD M5 Predictive System
A multi-layer scoring system that predicts the next 5-minute candle direction for Gold.
📊 THE LOGIC:
This indicator combines 4 key factors to predict where the next candle will go:
1. Higher Timeframe Context - checks if M15 and H1 trends align
2. Current Candle Strength - analyzes body size, volume, and close position
3. Market Position - measures distance from VWAP and key levels
4. Price Patterns - detects engulfings, traps, and trend structures
Each factor gives a score. Total score ≥ +3 = BUY signal, ≤ -3 = SELL signal.
🎯 HOW TO USE:
- Green arrow + "BUY X%" = Go long at candle open
- Red arrow + "SELL X%" = Go short at candle open
- Higher % = stronger confidence
- Dashed lines show Stop Loss and Take Profit levels
- No signal = market is choppy or weak setup
⚙️ FEATURES:
✓ Automatic Stop/Take levels based on ATR
✓ Time-of-day filter (stronger signals during London/NY sessions)
✓ Chop filter (no signals when market ranges)
✓ Confidence scoring (50-100%)
✓ Built-in alerts
💡 BEST FOR:
Gold (XAUUSD) scalpers on 5-minute timeframe who want clear entry/exit levels with probability-based signals.
⚠️ Not financial advice. Use proper risk management.
Forecasting
Earnings CountdownAdd to a chart to show a text box with how long to next earnings.
Being updated to add functionality from original open source Pine script
Rolling Compound ReturnRolling Compound Return Indicator - Summary
This indicator calculates and displays the compounded return over rolling time periods, showing how an investment would have performed if held for the specified lookback length.
How it works:
1. Rolling calculation - For each bar, looks back N periods and compounds all the returns together using the formula: (1 + return₁) × (1 + return₂) × ... × (1 + returnₙ) - 1
2. Multiple timeframes - Allows comparison of up to 3 different rolling periods simultaneously:
* Period 1 (default 20 bars): Blue line
* Period 2 (default 50 bars): Orange line
* Period 3 (default 100 bars): Purple line
3. Visual elements:
* Lines plotted as percentage returns on dedicated Y-axis
* Zero reference line to distinguish gains from losses
* Optional green/red fill showing positive/negative zones
* Info table displaying current values for each period
4. Key insight - Unlike simple moving averages of returns, this shows the actual cumulative effect of holding through all the ups and downs over the rolling window.
Use case: Helps identify whether recent price action (over your chosen lookback period) has resulted in net gains or losses, and how different time horizons compare. For example, you might see the 20-period showing +5% while the 50-period shows -2%, indicating recent strength after a longer decline.
The indicator updates on every bar to show the "rolling N-period return" at each point in time.
Roboquant RP Profits NY Open Retest StrategyRoboquant RP Profits NY Open Retest Strategy A good strategy for CL
Dynamic Buy/Sell Volume Visualizer [wjdtks255]Indicator Description:
The Dynamic Buy/Sell Volume Visualizer separates bullish and bearish volumes and calculates their moving averages with customizable colors and transparency. It dynamically visualizes buying strength relative to selling pressure by plotting a volume ratio line that changes color intensity and line thickness based on volume dominance. Background colors highlight strong buying or selling phases when volumes exceed thresholds. Volume bars and moving averages provide clear market volume context, and horizontal lines mark key neutral and strength levels.
How It Works:
Bull and bear volumes are distinguished by candle direction.
Moving averages (SMA) smooth volume data with user-defined length and customizable visual styles.
The volume ratio (buy volume MA over total MA) reflects buying strength from 0 (full sell) to 1 (full buy).
The volume ratio line’s color and thickness change dynamically according to the ratio’s magnitude.
Background colors alert users when buy or sell volumes surpass thresholds.
Volume bars and moving averages give detailed volume insights, complemented by horizontal lines showing neutral (0.5), strong buy (0.7), and strong sell (0.3) levels.
Trading Method:
Use the volume ratio line to gauge current market pressure; above 0.7 suggests strong buying, below 0.3 indicates strong selling.
Observe background color shifts as quick visual cues for volume surges or declines.
Combine this volume visualization with price actions to time entries and exits.
Customize moving average parameters to align the indicator with your trading style.
Combined Signal + Auto Day Plan + Volume🧠 Combined Signal + Auto Day Plan + Volume
Version: Pine Script v5
Category: Strategy / Signal & Levels Tool
Author: (you can add your TradingView nickname)
📋 Overview
The Combined Signal + Auto Day Plan + Volume indicator merges multiple professional trading concepts into one visual tool — helping traders identify momentum shifts, entry zones, and daily trading plans with volume confirmation.
It automatically detects trend direction, generates dynamic take-profit & stop-loss levels, and overlays key daily reference points such as VWAP, pivot, support, and resistance zones based on ATR and trend context.
⚙️ Main Components
1️⃣ Signal System
Detects trend bias using SMA-based logic.
Generates entry price, TP1–TP3, and SL dynamically from recent impulse ranges.
Updates signals automatically when trend bias changes or previous targets are hit.
Visual levels are drawn directly on the chart.
2️⃣ Volume Analysis
Compares current volume against a moving average (SMA).
Classifies volume as:
🟢 Strong (above 1.5× average)
🟡 Average
🔴 Weak (below 0.8× average)
Displays the current volume strength and trend bias in an on-chart table.
3️⃣ Auto Day Plan
Uses multi-timeframe ATR calculations to define:
Support / Resistance zones
Pivot & Balance areas
Daily VWAP
Auto Targets (ATR-based expansion levels)
Adapts automatically to selected base timeframe (1H, 4H, or Daily).
4️⃣ Trend Context
Dual EMA system (50 & 200) to confirm bullish/bearish structure.
Aligns expected direction with VWAP & pivot location for context-aware bias.
🎯 What You Get on Chart
📈 Automatic LONG/SHORT signals
🎯 TP1, TP2, TP3, and SL levels
📊 Volume strength meter
🧭 VWAP, pivot, support/resistance & balance zones
🎨 Clean visual layout for intraday and swing traders
🧩 Inputs
Parameter Description
lenImpulse Impulse range length
smaLen SMA length for trend bias
levelRatio SL/TP ratio multiplier
volLen Volume SMA length
baseTF Base timeframe for zones/VWAP
atrMult1 / atrMult2 ATR multipliers for target levels
fwdBars Extension range for future projection
💡 How to Use
Add the script to your chart and choose your preferred timeframe.
Observe signal direction (📈 LONG / 📉 SHORT) and TP/SL levels.
Confirm entries when:
Trend aligns with VWAP direction, and
Volume category shows Strong or Average.
Use Auto Day Plan levels (pivot, balance, VWAP) as intraday reaction zones.
Volumatic VIDYA – Pro+1. Professional & Clear (recommended for TradingView)
Volumatic VIDYA Pro+ combines a dynamic VIDYA trend filter, Delta Volume pressure, and automatic pattern recognition (Double/Triple Tops & Bottoms, Head & Shoulders).
A complete technical tool for detecting momentum shifts, trend reversals, and trade entries across multiple timeframes.
2. Short & Catchy
Adaptive VIDYA trendline + Delta Volume + Pattern detection in one tool.
Instantly visualize market bias, structure, and momentum strength.
3. Educational / Analytical
Analyze market dynamics with VIDYA-based trend filtering, volume delta analysis, and automated pattern recognition.
Ideal for traders who combine price action with quantitative confirmation.
[KF] Multi-Duration Rate Expectations IndicatorAfter last fed cut in Oct then following jump in rates, I was frustrated at not having access to good rate expectations vs actual because the market usually prices in prior to fed action. This indicator was developed to make futures market rate expectations accessible and interpretable without requiring professional bond analytics systems.
Summary
This Pine Script indicator reveals what the futures market expects for interest rates across three key durations: Fed Funds (overnight), 2-Year, and 10-Year Treasury yields. By comparing futures-implied rates against current spot yields, it provides a clear visual signal of whether the market expects rates to rise, fall, or remain steady.
Understanding Rate Futures
Fed Funds futures (ZQ1!) use a simple design where the expected rate equals 100 minus the futures price. If ZQ1! trades at 96.12, the market expects a 3.88% Fed Funds rate. Treasury futures work differently - they trade as bond prices (typically 102-115) that move inversely to yields. Converting Treasury futures to implied yields requires complex bond mathematics involving duration and conversion factors.
This indicator solves the Treasury futures complexity by implementing a self-calibrating sensitivity model. It observes the historical relationship between futures prices and yields, then uses this to project rate expectations. The model also compares front-month to next-month contracts to detect expected rate direction, automatically adapting as market conditions change.
How to Use
Add the indicator to any chart and select your desired duration in the settings. The display shows the futures-implied rate, current yield, and the difference between them. Green indicates the market expects higher rates, red means lower expectations, and gray shows expectations in line with current rates.
The indicator excels at identifying divergences between market expectations and current rates, which often precede rate movements or futures repricing. Comparing expectations across different durations reveals insights about yield curve positioning and Fed policy anticipation.
Technical Note
While Fed Funds futures provide exact rate expectations, Treasury futures conversions are sophisticated approximations that provide reliable directional signals and reasonable magnitude estimates sufficient for most trading applications.
High and low statisticsHigh/Low Pattern Analyzer (All Timeframes)
Ever wonder if there's a hidden pattern in the market?
Does the high of the week usually happen on a Tuesday?
Does the low of the month always form in the first week?
Which 15-minute candle really sets the high for the entire day?
This indicator is a powerful statistical tool designed to answer these questions by analyzing historical price action to find patterns in when the high and low of a period are formed.
The Core Idea: Daily High & Low of the Week
The simplest and most popular feature of this indicator is the "Daily high and low of the week" analysis.
What it does:
It looks back over your chosen number of weeks (e.g., the last 100) and finds out which day of the week (Monday, Tuesday, Wednesday, etc.) made the final high and which day made the final low for each of those weeks.
How to use it:
Go to the script settings.
Enable the "Daily High/Low of the Week" module.
Set your chart to the 1D (Daily) timeframe.
A table will appear on your chart (bottom-right by default) showing the exact count and percentage for each day. This lets you see at a glance if there's a strong tendency for the market you're watching.
Advanced Analysis: Other Timeframes
This script goes far beyond just the daily chart. It includes four other independent analysis modules:
1. 4-Hour High/Low of the Week
What it does: For intraday and swing traders. This module finds which 4-hour candle session (e.g., the 08:00 candle, the 16:00 candle) tends to form the high or low of the entire week.
Key Feature (DST Aware): This table is "season-aware." It knows that the 08:00 "summertime" (DST) candle is the same trading session as the 07:00 "wintertime" (STD) candle. It groups them together so your data is never split or messy.
2. Weekly High/Low of the Month
What it does: For a monthly perspective. This module finds which week of the month (Week 1, 2, 3, 4, or 5) is most likely to form the monthly high or low.
How to use: Enable it and set your chart to the 1W (Weekly) timeframe.
3. Monthly High/Low of the Year
What it does: The ultimate "big picture" view. This module finds which month (Jan, Feb, Mar, etc.) most frequently forms the high or low for the entire year.
How to use: Enable it and set your chart to the 1M (Monthly) timeframe.
The Power User Module: Custom Timeframe Analysis
This is the most powerful feature. It lets you analyze any timeframe combination you want.
What it does: It finds out which "Lower Timeframe" (LTF) candle made the high or low of any "Higher Timeframe" (HTF) you choose.
Example: Do you want to know which 15-minute candle makes the Daily high?
Set your chart to the 15M timeframe.
Go to the "Custom Timeframe Analysis" settings.
Set the "Higher Timeframe" to "1D".
The script will draw a "season-aware" table (just like the 4H module) showing you the exact 15-minute candles (09:15, 09:30, etc.) that are statistically most likely to form the day's high or low.
Other Features
Show Labels: Each module has an option to "Show labels," which will draw a label (e.g., "Daily High of the Week") directly on the chart at the exact bar that made the high or low.
Custom Dividers: Each module has its own optional, color-customizable divider (e.g., weekly, monthly) that you can toggle on to see the periods more clearly.
Clean Settings: All modules are disabled by default (except for "Daily") to keep your chart clean. You only need to enable the specific analysis you want to see.
This tool was built to turn your curiosity about market patterns into actionable, statistical data. Enjoy!
VIX/VVIX Spike RiskVIX/VVIX Spike Risk Analyzer
The VIX/VVIX Spike Risk Analyzer analyzes historical VIX behavior under similar market conditions to forecast future VIX spike risk.
By combining current VIX and VVIX levels as dual filters, it identifies historical precedents and calculates the probability and magnitude of VIX spikes over the next 1, 5, and 10 trading days.
IMPORTANT: This indicator must be applied to the VIX chart (CBOE:VIX) to function correctly.
Methodology
1. Dual-Filter Pattern Matching
The indicator uses both VIX and VVIX as simultaneous filters to identify historically analogous market conditions:
By requiring BOTH metrics to match historical levels, the indicator creates more precise market condition filters than using VIX alone. This dual-filter approach significantly improves predictive accuracy because:
VIX alone might be at 15, but VVIX can tell us if that 15 is stable (low VVIX) or explosive (high VVIX)
High VVIX + Low VIX often precedes major spikes
Low VVIX + Low VIX suggests sustained calm
2. Tolerance Settings
VIX Matching (Default: ±10% Relative)
Uses relative percentage matching for consistency across different VIX regimes
Example: VIX at 15 matches 13.5-16.5 (±10%)
Can switch to absolute tolerance (±5 points) if preferred
VVIX Matching (Default: ±10 Points Absolute)
Uses absolute point matching as VVIX scales differently
Example: VVIX at 100 matches 90-110
Can switch to relative percentage if preferred
3. Historical Analysis Window
The indicator scans up to 500 bars backward (limited by VVIX data availability) to find all historical periods where both VIX and VVIX were at similar levels. Each match becomes a "sample" for statistical analysis.
4. Forward-Looking Spike Analysis
For each historical match, the indicator measures VIX behavior over the next 1, 5, and 10 days
Display Metrics Explained
Average Highest Spike
Shows the average of the maximum VIX spikes observed.
Highest Single Spike
Shows the single largest spike ever recorded
Probability No 10% Spike
Shows what percentage of historical cases stayed BELOW a 10% spike:
Probability No 20% Spike
Shows what percentage of historical cases stayed BELOW a 20% spike:
Note : You'll see many more shaded bars than the sample count because each match creates up to 5 consecutive shaded bars (bars 1-5 after the match all "look back" and see it).
Short Volatility Strategies:
Enter when there's a LOW probability of big vol spikes based on today's metrics
Long Volatility Strategies
Enter when there's a HIGH probability of big vol spikes based on today's metrics
Sector Analysis [SS]Introducing the most powerful sector analysis tool/indicator available, to date, in Pine!
This is a whopper indicator, so be sure to read carefully to ensure you understand its applications and uses!
First of all, because this is a whopper, let's go over the key functional points of the indicator.
The indicator compares the 11 main sector ETFs against whichever ticker you are looking at.
The functions include the following:
Ability to pull technicals from the sectors, such as RSI, Stochastic and Z-Score;
Ability to look at the correlation of the sector ETF to the current ticker you are looking at.
Ability to calculate the R2 value between the ticker you are looking at and each sector.
The ability to run a Two Tailed T-Test against the log returns of the Ticker of interest and the Sector (to analyze statistically significant returns between sectors/tickers).
The ability to analyze the distribution of returns across all sector ETFs.
The ability to pull buying and selling volume across all sector ETFs.
The ability to create an integrated moving average using a sector ETF to predict the expected close range of a ticker of interest.
These are the highlight functions. Below, I will go more into them, what they mean and how to use them.
Pulling Technicals
This is pretty straight forward. You can pull technicals, such as RSI, Stochastic and Z-Score from all the sector ETFs and view them in a table.
See below for the example:
Pulling Correlation
In order to see which sector your ticker of interest follows more closely, we need to look first at correlation and then at R2.
The correlation will look at the immediate relationship over a specified time. A highly positive value, indicates a strong, symbiotic relationship, which the sector and the ticker follow each other. This would be represented by a correlation of 0.8 or higher.
A strong negative correlation, such as -0.8 or lower, indicates that the sector and the ticker are completely opposite. When one goes up, the other goes down and vice versa.
You can adjust your correlation assessment length directly in the settings menu:
If you want to use a sector ETF to find the expected range for a ticker of interest, it is important to locate the highest, POSITIVE, correlation value. Here are the results for MSFT at a correlation lookback of 200:
In this example, we can see the best relationship is with the ETF XLK.
Analysis of R2
R2 is an important metric. It essentially measures how much of the variance between 2 tickers are explained by a simple, linear relationship.
A high R2 means that a huge degree of variance can be explained between the 2 tickers. A low R2 means that it cannot and that the 2 tickers are likely not integrated or closely related.
In general, if you want to use the sector ETF to find the mean and trading range and identify over-valuation/over-extension and under-extension statistically, you need to see both a high correlation and a high R-Squared. These 2 metrics should be analyzed together.
Let's take a look at MSFT:
Here, despite the correlation implying that XLK was the ticker we should use to analyze, when we look at the R Squared, we see actually, we should be using XLI.
XLI has a strong positive relationship with MSFT, albeit a bit less than XLK, but the R2 is solid, > 0.9, indicating the XLI explains much of MSFT's variance.
Two Tailed T-Test
A two tailed T-test analyzes whether there is a statistically significant difference between 2 different groups, or in our case, tickers.
The T-Test is conducted on the log returns of the ticker of interest and the sector. You then can see the P value results, whether it is significant or not. Let's look at MSFT again:
Looking at this, we can see there is no statistically significant difference in returns between MSFT and any of the sectors.
We can also see the SMA of the log returns for more detailed comparison.
If we were to observe a significant finding on the T-Test metrics, this would indicate that one sector either outperforms or underperforms your ticker to a statistically significant degree! If you stumble upon this, you would check the average log returns to compare against the average returns of your ticker of interest, to see whether there is better performance or worse performance from the sector ETF vs. your ticker of interest.
Analyzing the Distribution
The indicator will also analyze the distribution of returns.
This is an interesting option as it can help you ascertain risk. Normally distributed returns imply mean reverting behavviour. Deviations from that imply trending behaviour with higher risk expectancy. If we look at the distribution statistics currently over the last 200 trading days, here are the results:
Here, we can see all show signs of trending, as none of the returns are normally distributed. The highest risk sectors are XLK and XLY.
Why are they the highest risk?
Because the indicator has found a heavy right tailed distribution, indicated sudden and erratic mean reversion/losses are possible.
Creating an MA
Now for the big bonus of the indicator!
The indicator can actually create a regression based range from closely correlated sectors, so you can see, in sectors that are strongly correlated to your ticker, whether your ticker is over-bought, oversold or has mean reverted.
Let's look at MSFT using XLI, our previously identified sector with a high correlation and high R2 value:
The results are pretty impressive.
You can see that MSFT has rode the mean of the sector on the daily timeframe for quite some time. Each time it over extended itself above the sector implied range, it mean reverted.
Currently, if you were to trade based on Pairs or statistics, MSFT is no trade as it is currently trading at its sector mean.
If you are a visual person, you can have the indicator plot the mean reversion points directly:
Green represents a bullish mean reversion and red a bearish mean reversion.
Concluding Remarks
If you like pair trading, following the link between sectors and tickers or want a more objective way to determine whether a ticker is over-bought or oversold, this indicator can help you.
In addition to doing this, the indicator can provide risk insights into different sectors by looking at the distribution, as well as identify under-performing sectors or tickers.
It can also shed light on sectors that may be technically over-bought or oversold by looking at Z-Score, stochastics and RSI.
Its a whopper and I really hope you find it helpful and useful!
Thanks everyone for reading and checking this out!
Safe trades!
Mum Formasyonları TespitiIt is used to detect candles.
It is designed to analyze all the candles that form.
The most frequently formed candles are displayed on the price chart.
Gann Astronomical Turning PointsThis is a comprehensive Pine Script that implements W.D. Gann's astronomical theories to identify potential market turning points. Here's a detailed breakdown of the script:
Overview
The script identifies and displays astronomical events (sun angles, moon phases, and Mercury retrogrades) that Gann theorists believe correlate with market turning points. It also analyzes historical price performance following these events to provide statistical significance.
Key Components
1. Input Parameters
Date Range: Users can set the analysis period (start and end dates)
Display Options: Toggle visibility of different astronomical events and tables
Analysis Settings: Configure the lookback period for price change analysis (1-20 days)
2. Astronomical Calculations
The script includes several functions to calculate celestial positions:
getDaysSinceEpoch(t): Calculates days since January 1, 2000 (reference point)
getSunLongitude(t): Computes the Sun's position in the ecliptic (0-360°)
getMoonPhase(t): Determines the Moon's phase angle relative to the Sun
getMercuryLongitude(t): Calculates Mercury's position in the ecliptic
3. Gann Critical Angles (Sun Events)
The script identifies when the Sun reaches four critical angles that Gann considered significant:
0° Aries (Spring Equinox)
90° Cancer (Summer Solstice)
180° Libra (Fall Equinox)
270° Capricorn (Winter Solstice)
These are detected by tracking when the Sun's longitude crosses these specific angles.
4. Moon Phases
Four key moon phases are identified:
New Moon: Moon passes between Earth and Sun
First Quarter: Moon is 90° east of Sun
Full Moon: Moon is opposite the Sun
Last Quarter: Moon is 270° east of Sun
5. Mercury Retrograde Periods
The script detects when Mercury appears to move backward in its orbit:
Identifies start and end dates of retrograde motion
Displays these periods as highlighted zones on the chart
6. Price Change Analysis
For each astronomical event, the script:
Calculates the percentage price change over a user-defined lookback period
Categorizes changes as positive or negative
Stores this data for statistical analysis
7. Statistical Significance
The script calculates several metrics for each event type:
Average Price Change: Mean percentage change following events
Up/Down Ratio: Number of positive vs. negative changes
Accuracy Percentage: How often the dominant direction occurred
8. Visual Elements
The script includes multiple display components:
Event Labels
Sun Angles: Orange sun symbols displayed above price bars
Moon Phases: Moon phase emojis displayed below price bars
Mercury Retrograde: Red boxes highlighting the retrograde periods
Information Tables
Events Table: Shows upcoming and recent astronomical events
Significance Analysis Table: Displays statistical performance of each event type
Forecast Section: Identifies the next upcoming event and predicted direction
9. Forecasting Functionality
The script predicts market direction for the next astronomical event based on:
Historical average price change for that event type
Statistical accuracy of previous similar events
Color-coded forecast (green for bullish, red for bearish)
This script offers an interesting implementation of Gann's astronomical theories, but should be used as part of a broader analysis rather than as a standalone trading system.
Disclaimer: This indicator is for educational purposes only. Past performance does not guarantee future results. Always conduct your own research and risk assessment before trading.
VIX Regime AnalyzerVIX Regime Analyzer
The VIX Regime Analyzer is an analytical tool that examines historical VIX patterns to provide insights into how your asset typically performs under similar volatility conditions.
Key Features:
Historical Pattern Matching: Automatically scans up to 1,000 bars of history to find all periods when VIX was at levels similar to today, using customizable tolerance ranges (absolute or percentage-based).
Forward-Looking Statistics: For each VIX regime match, calculates what actually happened to your asset over the next 1, 5, 10, and 20 trading days, providing both average returns and probability of positive outcomes.
Regime Classification System: Intelligently categorizes the current market environment as bullish or bearish: Visual Historical Context:
Background shading throughout your chart highlights every historical period when VIX matched current levels, color-coded by subsequent performance (green for gains, red for losses).
User Inputs:
VIX Level Tolerance (+/-): How closely VIX must match (default: ±5 points)
Use Relative Tolerance (%): Switch to percentage-based matching for consistency across different VIX levels
Lookback Period: How many bars to analyze
Highlight Historical VIX Matches: Toggle background highlighting of past matching periods
The Data Table
The statistics box appears in the right handside of your chart and contains three main sections:
Section 1: VIX REGIME
Current VIX: The live VIX closing price
Range: The tolerance band being searched (e.g., if VIX is 18 with ±5 tolerance, range is 13-23)
Historical Samples: Number of matching periods found in the lookback window (minimum 10 required for statistical validity)
Section 2: FORWARD RETURN
Shows the average percentage change in your asset over different timeframes following similar VIX levels:
Avg Next Day: What typically happened by the next trading session
Avg Next 5 Days: Average 5-day forward performance
Avg Next 10 Days: Average 10-day forward performance
Avg Next 20 Days: Average 20-day forward performance (approximately 1 month)
Section 3: PROBABILITY UP
Shows the win rate - the percentage of times your asset closed higher after VIX matched current levels:
Next Day: Probability of being up the next session
Next 5 Days: Probability of being up after 5 days
Next 10 Days: Probability of being up after 10 days
Next 20 Days: Probability of being up after 20 days
Colors:
🟢 Green: Bullish regimes (various strengths)
🔴 Red: Bearish regimes (various strengths)
🟡 Yellow: Choppy/uncertain regime
When "Highlight Historical VIX Matches" is enabled:
Scroll back through your chart and you'll see colored backgrounds highlighting every period when VIX matched today's level. The color tells you whether that match led to gains (green) or losses (red). This provides instant visual pattern recognition - you can quickly see if similar VIX levels historically led to bullish or bearish outcomes.
Practical Example:
If you see that most historical periods with similar VIX levels are highlighted in green, it suggests the current VIX level has historically been a bullish signal for your asset.
How The Indicator Makes Decisions
The regime classification uses both magnitude AND probability to avoid false signals:
Example of Strong Classification:
Average 5-day return: +1.5%
Win rate: 65%
Result: STRONG BULLISH (both high return and high probability)
Example of Weak Signal:
Average 5-day return: +2.0%
Win rate: 35%
Result: CHOPPY (high average but low consistency = unreliable)
This dual-factor approach ensures the indicator doesn't mislead you with regimes that had a few huge winners but mostly losers, or vice versa.
Best Practices
Combine with your existing strategy: Use this as a regime filter rather than standalone signals
Check sample size: More historical matches = more reliable statistics
Consider multiple timeframes: If 5-day and 20-day metrics disagree, proceed with caution
Asset-specific tuning: Different assets may require different tolerance settings
VIX spikes: The indicator is particularly useful during VIX spikes to understand if panic is justified
What Makes This Different
Unlike simple VIX indicators that just plot the fear index, this tool:
Quantifies the actual impact of VIX levels on YOUR specific asset
Provides probability-based forecasts rather than subjective interpretation
Shows historical context visually so you can see patterns at a glance
Uses rigorous statistical criteria to avoid false regime classifications
Adaptive Cortex Strategy (ACS)Strategy Title: Adaptive Cortex Strategy (ACS)
This script is invite-only.
Part 1: Philosophy and the Fundamental Problem It Solves
Adaptive Cortex Strategy (ACS) is an advanced decision support system designed to dynamically adapt to the ever-changing characteristics of the market. A major weakness of traditional approaches is that while successful in a specific market condition (e.g., a strong trend), they become ineffective when the market changes course (e.g., enters a sideways range). ACS solves this problem by continuously analyzing the market's current "regime" and instantly adapting its decision-making logic accordingly.
Its primary goal is to enable the strategy itself to "think" and evolve with the market, without requiring the trader to change their strategy.
Part 2: Original Methodology and Proprietary Logic
A Note on the Original Methodology and Intellectual Property
This algorithm is not based on or copied from any open-source strategy code. The system utilizes the mathematical principles of widely accepted indicators such as ADX, RSI, and Ichimoku as data sources for its analyses.
However, the intellectual property and unique value of the algorithm lies in its unique and closed-source architecture that processes, prioritizes, and synthesizes data from these standard tools. The methods used in core components, particularly the adaptive 'Cortex' memory system and statistical 'Forecast' engine, represent a unique set of logic developed from scratch for this script. The parameters, order of operations, and conditional logic are entirely custom-designed. Therefore, the system's performance is a result of its unique design, not a repetition of publicly available code.
ACS's power lies not in the individual indicators it uses, but in the unique and proprietary logic layers that process the information from these indicators.
1. Multi-Factor Scoring and Adaptive Weighting:
The heart of the methodology is a scoring system that analyzes the market in four main categories: Trend, Support/Resistance, Momentum, and Volume. However, what makes ACS unique is that it dynamically changes the importance it assigns to these categories based on the market regime.
Unique Application: Using ADX, DMI, and ATR indicators, the system detects whether the market is in different regimes, such as "Strong Trend" or "High Volatility Squeeze." When it detects a strong trend, it automatically increases the weight of the Trend scores from the Ichimoku and proprietary AMF Trend Engine. When it detects sideways or tightness, it shifts its focus to Support/Resistance zones determined by Dynamic Channels and the author's "Cortex" Memory System. A different approach was added here, inspired by the classic Fibonacci estimation. This "adaptive weighting" ensures that the strategy always focuses its attention on the most appropriate area.
2. Statistical Forecast Engine:
ACS goes beyond standard indicators and includes a proprietary forecasting algorithm that measures the probability of a potential price movement's success.
Unique Implementation: The system stores the results of past tests (successful bounces/breakouts) at key price levels in a "brain" (memory). At the time of a new test, it compares the current RSI momentum, volume anomalies, and market regime with similar past situations. Based on this comparison, it calculates the probability of the current test being successful as a statistical percentage and adds this percentage to the final score as a "bonus" or "penalty."
3. Walk-Forward Architecture:
Markets constantly evolve. ACS continues to learn from the latest market dynamics by resetting its memory at regular intervals (e.g., monthly) through its "Re-Learn Mode," rather than being trapped by old data. This is an advanced approach aimed at ensuring the strategy remains current and effective over the long term.
Part 3: Practical Features and User Benefits
HOW DOES IT HELP INVESTORS?
Customizable Trading Profiles: ACS does not come with a single set of settings. Users can instantly adapt all the algorithm's key periods and decision thresholds to their trading style by selecting one of the pre-configured trading profiles, such as "SCALPING," "INTRADAY TREND," or "SWING TRADE." Additionally, they can further fine-tune the selected profile with "Speed Adjustment."
Full Automation Compatibility (JSON): The strategy is equipped with fully configurable JSON-formatted alert messages for buy, sell, and position closing transactions. This makes it possible to establish a fully automated trading system by connecting ACS signals to automation platforms such as 3Commas and PineConnector. Dynamic values such as position size ({{strategy.order.contracts}}) are automatically added to alerts.
Advanced and Adaptive Risk Management: Protecting capital is as important as making a profit. ACS offers a multi-layered risk management framework for this purpose:
Flexible Position Size: Allows you to set the risk for each trade as a percentage of capital or a fixed dollar amount.
Adaptive ATR Stop: The stop-loss level is dynamically expanded or contracted based on current market volatility (the ratio of short-term ATR to long-term ATR).
Contingency Mechanisms: Includes safety nets such as "Maximum Drawdown Protection" and the "Praetorian Guard" engine, which detects sudden market shocks.
Clear and Comprehensible Dashboard: Transforms dozens of complex data points into an intuitive dashboard that provides critical information such as market trends, major trends, support/resistance zones, and final signals at a glance.
Section 4: Disclaimers and Rules
Transparency Note: This algorithm uses the mathematical foundations of publicly available indicators such as ADX, ATR, RSI, and Ichimoku. However, ACS's intellectual property and unique value lies in its unique architecture, which combines data from these standard tools, prioritizes it by market trend, and synthesizes it with its proprietary "Cortex" and "Statistical Forecast" engines.
Educational Use:
IMPORTANT WARNING: The Adaptive Cortex Strategy is a professional decision support and analysis tool. It is NOT a system that promises "guaranteed profits." All trading activities involve the risk of capital loss. Past performance is no guarantee of future results. All signals and analysis generated by this script are for educational purposes only and should not be construed as investment advice. Users are solely responsible for applying their own risk management rules and making their final trading decisions.
Strategy Backtest Information
Please remember that past performance is not indicative of future results. The published chart and performance report were generated on the 4-hour timeframe of the BTC/USD pair with the following settings:
Test Period: January 1, 2016 - November 2, 2025
Default Position Size: 15% of Capital
Pyramiding: Closed
Commission: 0.0008
Slippage: 2 ticks (Please enter the slippage you used in your own tests)
Testing Approach: The published test includes 123 trades and is statistically significant. It is strongly recommended that you test on different assets and timeframes for your own analysis. The default settings are a template and should be adjusted by the user for their own analysis.
Trailing 12M % Gain/Lossthis script shows profit or loss for training 12 months, works only on daily time frame
True Range + Average True Range (Status Line Only)This simple yet powerful indicator displays True Range (TR) and Average True Range (ATR) values directly in your TradingView status line, without cluttering your chart.
It’s designed for traders who want to quickly monitor volatility and price range expansion in real time.
⚙️ Features:
Real-time updating TR & ATR values
Clean and minimal — no chart clutter
Customizable ATR length and smoothing method (RMA, SMA, EMA, WMA)
Works on all timeframes and symbols
📈 Use Cases:
Monitor volatility changes during trading sessions
Confirm breakout strength or volatility contraction
Combine with price action or volume-based setups
Buy&Hold Profitcalculator in EuroTitle: Buy & Hold Strategy in Euro
Description:
This Pine Script implements a simple yet flexible Buy & Hold strategy denominated in Euros, suitable for a wide range of assets including cryptocurrencies, forex pairs, and stocks.
Key Features:
Custom Investment Amount: Define your invested capital in Euros.
Flexible Start & End Dates: Specify exact entry and exit dates for the strategy.
Automatic Currency Conversion: Supports assets priced in USD or USDT, converting the invested capital to chart currency using the EUR/USD exchange rate.
Single Entry and Exit: Executes a one-time Buy & Hold position based on the defined timeframe.
Profit and Performance Tracking: Calculates total profit/loss in Euros and percentage returns.
Smart Exit Label: Displays a dynamic label at the exit showing final position value, net profit/loss, and return percentage. The label automatically adjusts its position above or below the price bar for optimal visibility.
Visual Enhancements:
Position value and profit/loss plotted on the chart.
Background color highlights the active investment period.
Buy and Sell markers clearly indicate entry and exit points.
This strategy is ideal for traders and investors looking to simulate long-term positions and evaluate performance in Euro terms, even when trading USD-denominated assets.
Usage Notes:
Best used on daily charts for medium- to long-term analysis.
Adjust start and end dates, as well as invested capital, to simulate different scenarios.
Works with any asset, but currency conversion is optimized for USD or USDT-pegged instruments.
Doctor Scalp (BUY/SELL) [by Adi]A script for fast scalping using. Works best with a 5-minute-to-1-hour interval.
AI MEDEA FORECASTAI MEDEA searches for similar historical patterns and uses them to generate predictions. The longer it runs, the more data it gathers and the better the predictions become.
Important:
The indicator must remain enabled to:
- Collect predictions and check their accuracy
- Have as much data as possible for comparison
- Provide more accurate results
Recommendation:
Let the indicator run for several days on different timeframes (15m, 30m, 1H, 4H). The accuracy table will show the actual accuracy only after gathering enough predictions.






















