Laguerre Filter [BackQuant]Laguerre Filter
Overview
The Laguerre Filter is a powerful trend-following tool designed to smooth price action while maintaining responsiveness to market changes. It is based on the Laguerre recursive filter, which is a type of signal processing filter that adapts to both the current price dynamics and the underlying trend. The Laguerre Filter can be seen as a method to reduce market noise, enabling traders to more easily identify the strength and direction of trends while minimizing lag.
The Laguerre Filter is well-suited for markets with varying volatility levels, offering a smoother representation of price action without the delay associated with traditional moving averages. By dynamically adjusting to price movements, the Laguerre Filter provides a more adaptive and reliable signal compared to simpler smoothing techniques.
What is the Laguerre Filter?
The Laguerre Filter is derived from the Laguerre polynomial, which is used in signal processing for smooth filtering of data. The Laguerre filter is a recursive filter, meaning that each new value is calculated based on both the current price data and previous values, with a weighting system that allows it to adapt to market conditions. This recursive nature helps reduce the impact of short-term fluctuations, enabling the filter to focus on the underlying trend.
The Laguerre filter uses a feedback mechanism, where the input signal (price data) is smoothed iteratively. This iterative process helps avoid the lag that is typically associated with traditional moving averages while still capturing the overall trend direction.
The filter is designed to have:
Adaptive behavior: It reacts quickly to significant price changes while ignoring minor fluctuations.
Reduced noise: By filtering out random short-term price movements, it provides a clearer view of the underlying trend.
Customizability: Traders can adjust the filter’s sensitivity through user inputs, making it adaptable to different market conditions.
Core Calculation Methodology
The core of the Laguerre Filter lies in its recursive calculation:
Each new value is calculated using the previous value along with the current price input.
The recursive formula is governed by two key parameters: the damping factor (gamma) and the order of the filter (number of Laguerre elements).
The damping factor controls how responsive the filter is to changes in price. A higher gamma value makes the filter smoother but introduces more lag, while a lower gamma value makes it more reactive to price changes but can introduce more noise.
The order defines how many Laguerre elements are used in the calculation. A higher order results in a smoother output but with more delay, while a lower order provides a faster response but less smoothing.
The filter works by weighting previous values with a binomial weighting system, which assigns more weight to recent values and less weight to older values. This creates a dynamic smoothing effect that adapts to price volatility, ensuring that the filter is neither too slow nor too noisy.
Signal Logic and Trend Detection
The Laguerre Filter continuously evaluates the strength and direction of the trend by comparing the current smoothed value to the previous value:
If the current value is greater than the previous value, the trend is considered bullish, and the filter will signal a long condition.
If the current value is less than the previous value, the trend is considered bearish, and the filter will signal a short condition.
The trend detection logic is based on the recursive nature of the filter, which smooths price movements over time. This allows the filter to capture the broader trend while minimizing the influence of short-term price fluctuations.
The trend state is also visually represented by color-coding:
Green color represents an uptrend (bullish condition).
Red color represents a downtrend (bearish condition).
Neutral (white) indicates no clear trend direction.
This color-coding helps traders easily identify the prevailing trend and decide whether to enter or exit trades based on the trend's strength.
Laguerre Filter Behavior and Performance
The performance of the Laguerre Filter can be influenced by several factors:
Gamma (Damping Factor): A higher gamma value results in a smoother filter but increases lag. A lower gamma value allows for a faster response but may introduce more noise, making it more reactive to smaller price changes.
Filter Order: The order determines how many Laguerre elements are used in the filter calculation. A higher order provides more smoothing but increases lag, while a lower order results in a quicker response but less smoothing.
The sweet spot for gamma is typically between 0.7 and 0.85, where the filter offers a good balance between smoothness and responsiveness. The filter order is usually set to 4 for classic Laguerre filtering, but higher orders can be used for more smoothing if needed.
The Laguerre Filter’s performance shines in markets with sustained trends, where the filter can effectively capture and represent the underlying direction without excessive lag. It is particularly useful in volatile markets, as it helps smooth out noise while providing a clear picture of the trend.
Visual Presentation
The Laguerre Filter provides a dynamic, color-coded line that follows the trend direction. This line can be displayed alongside price data to visually highlight the market trend. In addition to the main Laguerre line, several visual enhancements can be applied:
Gradient fill between the price and the Laguerre Filter line, providing a visual cue for bullish or bearish market conditions.
Candle coloring to reflect the current trend, making it easier to spot trend reversals or confirmations directly on the chart.
Background shading to visually highlight areas of strong trend or consolidation.
Edge glow effect that highlights trend boundaries, making it easy to spot key levels of support or resistance.
These visual elements enhance the usability of the Laguerre Filter, allowing traders to quickly assess the market trend and make informed decisions.
Practical Use Cases
1) Trend Following
The Laguerre Filter is ideal for trend-following strategies. By using the filter to identify the prevailing trend, traders can:
Enter long positions when the Laguerre Filter turns bullish (green).
Enter short positions when the Laguerre Filter turns bearish (red).
By aligning trades with the dominant trend, traders can improve their chances of success.
2) Trend Strength Assessment
The Laguerre Filter can also be used to assess the strength of the trend:
A rising Laguerre value indicates a strengthening uptrend.
A falling Laguerre value indicates a strengthening downtrend.
A flattening Laguerre value signals weakening momentum or consolidation.
This information can be used to adjust position sizing or to decide when to enter or exit a trade.
3) Trade Management
The Laguerre Filter can also assist in trade management:
Use the Laguerre line as a trailing stop for long positions in an uptrend.
Scale out of positions as the Laguerre value begins to flatten or reverse.
Use the Laguerre Filter to avoid trades when the market is in consolidation or lacks a clear trend.
Tuning Guidelines
The Laguerre Filter can be adjusted for different market conditions using the following parameters:
Gamma (Damping Factor): Adjust for the desired level of responsiveness versus smoothness. Typical values range from 0.7 to 0.85.
Filter Order: Adjust to control the level of smoothing. The default value of 4 is a good starting point, but higher orders can be used for smoother filters.
Summary
The Laguerre Filter is a versatile and adaptive trend-following indicator that smooths price data and reduces noise, making it easier to identify and follow trends. By using recursive smoothing techniques and adjustable parameters, the Laguerre Filter provides an accurate representation of market conditions with minimal lag. It is especially useful in volatile markets where traditional moving averages may fail to capture the underlying trend. With its color-coded trend detection, gradient fills, and customizable settings, the Laguerre Filter is a powerful tool for traders looking to stay aligned with the prevailing market direction.
Statistics
FOMC Policy Events[nakano]### FOMC Policy Events
#### Summary / 概要
This indicator plots the historical policy decisions of the U.S. Federal Open Market Committee (FOMC) directly onto your chart. It is an essential tool for traders and analysts who want to visualize how the market reacts to changes in monetary policy. All historical event data from 2000 onwards is hard-coded into the script for fast and reliable performance.
このインジケーターは、米国連邦公開市場委員会(FOMC)の過去の政策決定をチャート上に直接プロットします。金融政策の変更に対する市場の反応を視覚的に分析したいトレーダーやアナリストにとって不可欠なツールです。2000年以降の全ての過去イベントデータが含まれます。
---
#### Features / 主な機能
* **Comprehensive Historical Data / 包括的な過去データ**
Includes all historical scheduled and emergency FOMC rate decisions from January 2000.
2000年1月以降の、全ての定例および緊急のFOMC金利決定の履歴を含みます。
* **Detailed Event Labels / 詳細なイベントラベル**
Each event is marked with a clear label showing:
各イベントには、以下の情報を示す明確なラベルが表示されます:
* The exact date of the announcement.
発表の正確な日付
* The type of decision (Rate Hike, Rate Cut, Hold, or Emergency Cut).
決定内容(利上げ、利下げ、据え置き、緊急利下げ)
* The resulting Federal Funds Target Rate.
決定後の政策金利(FF金利ターゲット)
* **Fully Customizable Display / 柔軟な表示設定**
From the indicator's settings menu, you can:
インジケーターの設定画面から、以下の操作が可能です:
* Individually toggle the visibility of Rate Hikes, Rate Cuts, and Holds.
「利上げ」「利下げ」「据え置き」の表示・非表示を個別に切り替える
* Choose your preferred language for the labels (English or Japanese).
ラベルの表示言語を「英語」または「日本語」から選択する
* **Clear Visual Cues / 明確なビジュアル**
* **Rate Hikes:** Green labels positioned below the price bars.
**利上げ:** バーの下に緑色のラベル
* **Rate Cuts:** Red labels positioned above the price bars.
**利下げ:** バーの上に赤色のラベル
* **Holds:** Gray labels positioned above the price bars.
**据え置き:** バーの上に灰色のラベル
* **Emergency Events:** Specially highlighted in maroon for easy identification.
**緊急イベント:** 識別しやすいように特別な色(ワインレッド)で強調表示
---
#### How to Use / 使用方法
1. Add the indicator to your chart.
インジケーターをチャートに追加します。
2. Click the **Settings (gear icon)** next to the indicator name on your chart.
チャート上のインジケーター名の横にある**設定(歯車アイコン)**をクリックします。
3. In the "Display Settings" section, check or uncheck the boxes to show or hide different event types.
「Display Settings」セクションで、各イベントタイプの表示・非表示をチェックボックスで切り替えます。
4. In the "Language Settings" section, select your preferred language from the dropdown menu.
「Language Settings」セクションで、ドロップダウンメニューからお好みの言語を選択します。
---
#### A Note on Data / データについて
The event data included in this script is static and contains historical decisions up to September 2025. The script does not plot future scheduled meetings and will need to be manually updated as new policy decisions are made.
このスクリプトに含まれるイベントデータは静的なものであり、2026年1月までの過去の決定を含んでいます。未来のスケジュールをプロットする機能はなく、新しい金融政策が決定された場合は、スクリプトの手動更新が必要です。
Super AccumulatorThis indicator is designed to make Accumulation/Distribution (A/D) movements more visible and easier to interpret.
Under normal conditions, accumulation and distribution activity can be hard to spot on the chart, especially with short-term volume signals. To address this, we visualized the A/D difference as a histogram, allowing you to quickly assess buying and selling pressure.
Additionally, the histogram is combined with the SuperTrend indicator to clearly show the trend direction on the panel. Buy signals are displayed as yellow circles, sell signals as red circles, providing an immediate view of both momentum and trend direction.
When used alongside other indicators, this setup becomes a powerful tool for trend-following and volume-based strategies.
Note: This indicator is not a standalone buy/sell signal; always use it with proper risk management.
Smart Position Calculator: Risk, Margin & TicksAre you tired of manually calculating position sizes or using clumsy external calculators? This minimalist indicator solves the problem directly on your chart.
It tells you exactly how much to buy/sell to risk a specific dollar amount (e.g., $50), considering your leverage and commissions.
Key Benefits:
Protect your deposit: Standardize your risk per trade.
Plan better: See your Risk/Reward ratio and Commission costs instantly.
Trade comfortably: The UI adapts to your screen (Dark/Light modes + Font Size control).
Scalp precisely: See distance in Ticks.
How it works:
Add to Favorites.
Select Entry, Stop, and Take Profit points on the chart.
Read the table.
Weekly Open Lines 1hWeekly open price plotted on the 1h chart, fwd looking across the week. Stats showing likelihood of a return to the open price by weekday.
Combo Premium SMA Alert SystemShort Straddle for ATM Options Entry at SMA Cross over downside and SL or Exit SMA Cross over Upside
Growth Comparison (Gold, Silver, Copper, Platinum & Crypto)
Data Sources
The symbols configured this time point to globally trusted data sources (providers).
・OANDA (XAUUSD, XAGUSD, XCUUSD, XPTUSD):
Data from OANDA, one of the world's largest FX and commodity providers. It reflects the “spot prices” for gold, silver, copper, and platinum in near real-time.
・BINANCE (BTCUSDT, ETHUSDT, XRPUSDT):
Data from Binance, the world's largest cryptocurrency exchange. It has the highest trading volume and is used as the global standard price indicator. Retrieves BTC, ETH, and XRP.
How the Script Works (Technical Explanation)
・Fixed Starting Price:
The script internally stores the price on the set “comparison start date” (e.g., January 1, 2025).
・Real-Time Calculation:
It constantly retrieves the latest current price and continuously calculates the percentage using the following formula.
Formula: (Current Price - January 1, 2025 Price) ÷ January 1, 2025 Price × 100
*Since January 1 is a global market holiday (New Year's Day) with no prices available, the script automatically adopts the next market opening price (e.g., January 2 morning's open price) as the baseline.
・Automatic label tracking:
The program displays labels like “GOLD” at the right edge of the graph. This ensures you never lose track of which line corresponds to which asset, even when lines overlap.
Translated with DeepL.com (free version)
Today's Price Position On Intraday-From Low /High OVERVIEW
A clean, professional indicator that displays your stock's current position relative to today's high, today's low, and yesterday's close - all in one convenient table.
🎯 WHAT IT SHOWS
Three key metrics in real-time:
- From Low: How far price has moved from today's lowest point
- From High: How far price is from today's highest point
- % Today: Today's percentage change vs yesterday's 4 PM close
✨ KEY FEATURES
✓ Real-time percentage tracking throughout the trading day
✓ Works on ALL intraday timeframes (1min, 5min, 15min, etc.)
✓ Includes Pre-Market (4:00-9:30 AM) and Regular Trading Hours (9:30-4:00 PM)
✓ Color-coded indicators: Green (up), Red (down), Yellow (at reference point)
✓ Clean, non-intrusive table display in bottom-right corner
✓ Accurate reference to previous day's actual closing price
🔧 TESTING MODE
Built-in testing mode allows you to:
- Manually input test values for High, Low, Close, and Previous Close
- Verify calculations and behavior before live trading
📈 IDEAL FOR
- Day traders monitoring intraday price action
- Swing traders tracking daily momentum
- Anyone wanting quick visual reference of price position
- Traders who need to know "where we are" at a glance
💡 HOW TO USE
Simply add to your chart - no configuration needed! The indicator automatically:
1. Tracks today's high and low (including pre-market)
2. References yesterday's 4 PM closing price
3. Calculates your current position as percentages
4. Updates in real-time with color-coded signals
🎨 COLOR LEGEND
- Green: Price is up/above reference
- Red: Price is down/below reference
- Yellow: Price is exactly at reference point (unchanged)
- Orange: Previous day's close reference price
⚙️ TECHNICAL NOTES
- Automatically resets at start of each trading day
- Handles both pre-market and regular hours seamlessly
- Uses confirmed previous day close (no repainting)
- Lightweight and efficient - won't slow down your charts
Perfect for traders who want professional-grade information without chart clutter!
PPAO - Propagator Price Action Oscillator
How PPAO works in one cycle (what it does every candle)
PPAO has 3 moving parts that run every bar:
1) It measures new candle pressure (the “push”)
This is the forcing term.
Return (ret): did price go up or down from last close?
Body: did the candle close above or below its open?
CLV: did the candle close near the high or near the low of its range?
With Option B, the “price action push” is directional:
Body is positive on bullish candles, negative on bearish candles.
CLV is:
near +1 if the candle closes near the high (buying strength),
near -1 if it closes near the low (selling strength).
So a candle that closes weak (near the low) pushes PPAO downward even if the candle range is large.
2) It decides how much to remember vs forget (the “friction”)
This is damping / decay.
High volatility (noisy market) → forget faster
Low volatility (cleaner market) → remember longer
So PPAO adapts: in chop it won’t hold bias for long; in smooth trends it will.
3) It updates a hidden “momentum engine” (state)
Internally it keeps two numbers (p and q) that store the market’s impulse with memory.
Every candle:
it shrinks the old state (decay),
rotates it a bit (momentum/volatility creates oscillation),
then adds the candle push (forcing).
Finally, it converts that hidden state into a 0–100 line:
> 50 means the state is aligned bullish,
< 50 means it’s aligned bearish.
The image below will give you an example of a deep analysis using the Propagator Price Action Oscillator (PPAO).
PPAO below 30
What that means mechanically
Below 30 = bearish impulse extreme.
It happens when the recent candles are consistently “bearish pressure” according to the forcing inputs:
returns are negative and/or
candles close weak inside their range (CLV negative) and/or
bodies are bearish (close < open)
Also, if volatility is elevated, damping can make this flip faster and stay extreme during a strong impulse.
What it means behaviorally
PPAO < 30 is not “prediction.” It is diagnosis:
“Recent candle pressure has been strongly bearish.”
This can show up in two common market contexts:
Continuation context
Price is breaking structure down, and candles keep closing weak → PPAO stays < 30.
Distribution / hidden weakness context (important)
Price may look stable or near a high, but candles are repeatedly closing poorly inside their ranges (negative CLV).
That makes PPAO drop under 30 even if price hasn’t collapsed yet.
That second case is exactly why Option B (Body + CLV) is useful: it can flag weak closes / selling absorption earlier than “price-only” oscillators.
PPAO above 70
What that means mechanically
Above 70 = bullish impulse extreme.
It occurs when the forcing inputs are strongly positive:
returns are positive and/or
candles close strong inside their range (CLV positive) and/or
bodies are bullish (close > open)
If volatility is not exploding, damping won’t erase the accumulated bullish state quickly, so PPAO can stay above 70 during sustained buying pressure.
What it means behaviorally
Again: not a prophecy, but an impulse read:
“Recent candle pressure has been strongly bullish.”
Two common contexts:
Trend continuation
Price is pushing higher and closes are strong → PPAO remains > 70.
Exhaustion risk
If price is hitting major resistance/liquidity and you start seeing weaker closes (CLV drops) while PPAO stops making new highs → that’s where reversals begin to appear.
The key takeaway using both images
PPAO extremes are best understood as:
Below 30: “Sellers are currently dominating candle pressure.”
Above 70: “Buyers are currently dominating candle pressure.”
Whether that dominance leads to continuation or reversal depends on what price does next (structure + where you are on the chart). PPAO is measuring pressure, not guaranteeing outcome.
Probabilidad Alcista / Bajista por Volumen yvvProbabilidad Alcista / Bajista por Volumen y tendencia
AI Academy: Volume k-NN [PhenLabs]📊 AI Academy: Volume k-NN
Version: PineScript™ v6
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📌 Description
AI Academy: Volume k-NN (Theory Edition) is an educational indicator designed to demystify how artificial intelligence pattern recognition works directly on your TradingView charts. Rather than being a black-box signal generator, this tool visualizes the entire k-Nearest Neighbors algorithm process in real-time, showing you exactly how AI identifies similar historical patterns and generates predictions.
The indicator scans up to 2,000 historical bars to find patterns that match your current price action, then uses an ensemble of the closest matches to project potential future movement. What sets this apart is the integrated “AI Grimoire”—an interactive educational book overlay that teaches core machine learning concepts through four illuminating chapters.
Whether you’re a trader curious about AI methodology or a developer learning algorithmic concepts, this indicator transforms abstract machine learning theory into tangible, visual understanding.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 Points of Innovation
• First TradingView indicator to visualize k-NN algorithm execution in real-time with full transparency
• Interactive “AI Grimoire” educational overlay teaches machine learning concepts while you trade
• Dual-mode pattern matching combines price action with optional volume confirmation
• Confidence-based opacity system visually communicates prediction reliability
• Historical match visualization shows exactly which past patterns informed the prediction
• Ghost bar projections display averaged ensemble predictions with adjustable forecast horizons
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔧 Core Components
• Pattern Capture Engine: Converts recent price action into logarithmic returns for normalized comparison across different price levels
• k-NN Search Algorithm: Calculates Euclidean distance between current pattern and historical patterns to find closest matches
• Volume Weighting System: Optional feature that incorporates volume patterns into distance calculations with adjustable influence
• Ensemble Predictor: Averages future returns from k-nearest historical matches to generate consensus forecast
• Confidence Calculator: Measures average distance of top matches to determine prediction reliability on 0-100% scale
• AI Grimoire Display: Table-based educational overlay rendering book-style content with chapter navigation
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔥 Key Features
• Adjustable Pattern Length: Define how many bars constitute the current pattern for matching (5-100 bars)
• Configurable Search Depth: Control how far back the algorithm searches for historical matches (500-4,900 bars)
• Flexible k-Neighbors: Select how many closest matches inform the prediction (1-20 neighbors)
• Volume Toggle: Enable or disable volume pattern matching for different market conditions
• Volume Influence Slider: Fine-tune the weight given to volume vs. price patterns (0-100%)
• Ghost Bar Count: Adjust how many future bars the indicator projects (3-15 bars)
• Minimum Confidence Filter: Set threshold to hide low-confidence predictions
• Historical Match Display: Toggle visibility of colored boxes marking source patterns
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎨 Visualization
• Blue Scanner Box: Highlights current pattern being analyzed labeled “AI INPUT (The Prompt)”
• Green Historical Boxes: Mark past patterns where price subsequently moved bullish
• Red Historical Boxes: Mark past patterns where price subsequently moved bearish
• Ghost Bars: Semi-transparent candles projecting into the future showing predicted price path
• Confidence Label: Displays prediction confidence percentage and number of matches used
• AI Grimoire Book: Leather-bound book overlay in top-right corner with navigable chapters
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📖 Usage Guidelines
Algorithm Settings
• Pattern Length — Default: 20 | Range: 5-100 | Controls how many recent bars define the pattern. Shorter values find more matches but less specific. Longer values find fewer but more precise matches.
• Search Depth — Default: 2000 | Range: 500-4900 | Determines how many historical bars to scan. Higher values find more potential matches but increase computation time.
• k-Neighbors — Default: 5 | Range: 1-20 | Number of closest matches to use for prediction. Higher values smooth predictions but may dilute strong signals.
• Ghost Bar Count — Default: 5 | Range: 3-15 | How many future bars to project. Shorter horizons are typically more reliable.
• Use Volume Matching — Default: Off | When enabled, patterns must match on both price AND volume characteristics.
• Volume Influence — Default: 30% | Range: 0-100% | Weight given to volume pattern when volume matching is enabled.
Visualization Settings
• Bullish/Bearish Match Colors — Customize colors for historical match boxes based on outcome direction.
• Min Confidence % — Default: 60 | Predictions below this threshold will not display.
• Show Historical Matches — Default: On | Toggle visibility of source pattern boxes on chart.
Education Settings
• Select Chapter — Navigate through AI Grimoire chapters or keep book closed for clean chart view.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ Best Use Cases
• Learning how k-Nearest Neighbors algorithm functions in a trading context
• Understanding the relationship between historical patterns and forward predictions
• Identifying when current market conditions resemble past scenarios
• Supplementing discretionary analysis with pattern-based confluence
• Teaching others machine learning concepts through visual demonstration
• Validating whether volume confirms price pattern formations
• Building intuition for what AI “sees” when analyzing charts
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ Limitations
• Past pattern similarity does not guarantee future outcome similarity
• Requires sufficient historical data (minimum 500+ bars) to function properly
• Computation-intensive on lower timeframes with maximum search depth
• Cannot predict truly novel “black swan” events not represented in historical data
• Volume matching less effective on assets with inconsistent volume reporting
• Predictions become less reliable as forecast horizon extends further out
• Educational overlay may obstruct chart view on smaller screens
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 What Makes This Unique
• Full Transparency: Unlike black-box AI tools, every step of the algorithm is visualized on your chart
• Integrated Education: The AI Grimoire teaches machine learning concepts without leaving TradingView
• Theory Meets Practice: See exactly which historical patterns inform each prediction
• Honest Uncertainty: Confidence scoring and opacity fading acknowledge when the AI “doesn’t know”
• Dual-Mode Analysis: Optional volume weighting adds institutional-quality analysis dimension
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔬 How It Works
1. Pattern Capture: On each bar, the indicator captures the most recent price changes as logarithmic returns, creating a normalized “fingerprint” of current market behavior. If volume matching is enabled, volume changes are captured similarly.
2. Historical Search: The algorithm iterates through up to 2,000 historical bars, calculating the Euclidean distance between the current pattern fingerprint and each historical pattern. Distance combines price similarity and optional volume similarity based on weight settings.
3. Neighbor Selection: All historical patterns are ranked by similarity (lowest distance = most similar). The k-closest matches are selected as the “ensemble council” that will inform the prediction.
4. Confidence Calculation: Average distance of top-k matches determines confidence. Tighter clustering of similar patterns yields higher confidence scores, while scattered or distant matches produce lower confidence.
5. Prediction Generation: Future returns from each historical match (what happened AFTER those patterns) are averaged together. This ensemble average is applied to current price to generate ghost bar projections.
6. Visualization: Historical match locations are marked with colored boxes (green for bullish outcomes, red for bearish). Ghost bars render with opacity tied to confidence level—higher confidence means more solid bars.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 Note:
This indicator is designed primarily for educational purposes —to help traders understand how AI pattern recognition algorithms function. While the predictions can supplement your analysis, they should never be used as the sole basis for trading decisions. The AI Grimoire chapters explain key concepts including why AI “hallucinates” during unprecedented market events. Always combine with proper risk management and additional confirmation.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Candle Size Table (Big Font & Colors)Symbols: gold, oil, BTC, silver, USDJPY, GBPUSD, USDCAD, AUDUSD
Timeframes: 1m and 5m
Size of the previous candle (for each TF)
I’ll assume “size” = candle range (high − low) of the previous closed candle.
CME Gold Dynamic Circuit Breaker & Prop Firm Buffer (6%-8%-10%)
Overview This indicator is designed specifically for Gold Futures (GC) and other assets subject to CME's Dynamic Circuit Breaker rules. Unlike Equity Indices (e.g., NQ, ES) which have fixed price limits based on the previous day's close, Gold uses a "Dynamic" limit that moves with the market.
Many prop firm traders lose their accounts not because of the daily percentage drop, but because of sudden intraday volatility that triggers trailing drawdown rules. This indicator helps you visualize the invisible "kill zones" calculated from the highest/lowest prices of the last 60 minutes.
Key Features
Dynamic Logic: Calculates limits based on the previous day's settlement price (Variant) applied to the Highest/Lowest price of the last 60 minutes.
Prop Firm Safety Buffer:
🟠 6% (Warning): Early warning line. Volatility is expanding; consider reducing position size.
🔴 8% (Critical): Danger zone. If price touches this level, you are at high risk of hitting prop firm trailing drawdowns or maximum loss limits.
🔵 10% (Hard Limit): CME Official Circuit Breaker level (Market Halt).
Real-time Visualization:
Extended Lines: Horizontal lines extend to the right of the chart for immediate visibility.
Clear Labels: Displays the exact percentage and price level at the current moment.
Stepline History: Shows historical limit levels to help analyze past volatility spikes.
How to Use
Do not rely on "Daily % Change": Even if Gold is only down -3% on the day, a sudden drop from a recent high can trigger the dynamic limit.
Respect the Orange Line (6%): When the price approaches the orange line, avoid chasing the trend. The risk of a sudden reversal or liquidity gap increases significantly.
Stay away from the Red Line (8%): This is the "No-Trade Zone" for prop traders.
Disclaimer This tool is for educational and informational purposes only. Always verify official margin requirements and trading rules with your specific broker or prop firm.
개요 이 지표는 골드 선물(GC) 및 CME 동적 서킷브레이커(Dynamic Circuit Breaker) 룰이 적용되는 상품을 위해 설계되었습니다. 나스닥(NQ)과 같은 지수 선물이 전일 종가 기준 '고정된' 제한폭을 가지는 것과 달리, 골드는 시장 가격 움직임에 따라 제한폭이 계속 변하는 '동적' 룰을 따릅니다.
많은 프랍 트레이더들이 일일 등락률만 보고 안심하다가, 순간적인 급등락으로 인해 '트레일링 드로우다운(Trailing Drawdown)'에 걸려 계좌를 잃곤 합니다. 이 지표는 직전 60분간의 고점/저점을 기준으로 보이지 않는 "위험 구간"을 시각화해 줍니다.
주요 기능
동적 계산 로직: **전일 정산가(Settlement)**를 기준으로 변동폭(Variant)을 계산하여, 직전 60분간의 최고가/최저가에 실시간으로 적용합니다.
프랍펌 안전 버퍼 (3단계 경보):
🟠 6% (Warning): 조기 경보 라인입니다. 변동성이 확대되고 있으므로 비중 축소를 고려해야 합니다.
🔴 8% (Critical): 위험 구간입니다. 이 라인에 근접하면 프랍펌의 트레일링 드로우다운이나 허용 손실 한도에 도달할 확률이 매우 높습니다. 진입을 자제하십시오.
🔵 10% (Hard Limit): CME 공식 서킷브레이커(거래 중단) 라인입니다.
실시간 시각화:
우측 연장선: 차트 우측 여백까지 선을 길게 뻗어, 현재 가격과 위험선 사이의 거리를 직관적으로 보여줍니다.
명확한 라벨: 현재 시점의 정확한 %와 가격을 표시합니다.
과거 내역: 과거에 위험선이 어떻게 움직였는지 계단식 선(Stepline)으로 보여주어 복기할 수 있습니다.
사용 팁
"일일 등락률"을 믿지 마십시오: 하루에 -3%밖에 안 빠졌더라도, 고점에서 급격하게 떨어졌다면 동적 제한선은 바로 밑까지 쫓아와 있을 수 있습니다.
오렌지색 선(6%)을 존중하십시오: 가격이 이 선에 닿으면 추격 매매를 멈추십시오. 유동성이 부족해지거나 급반등이 나올 수 있는 구간입니다.
빨간색 선(8%)은 "매매 금지 구역"입니다: 이 구간은 프랍 트레이더에게 생존이 걸린 마지노선입니다.
면책 조항 이 지표는 교육 및 정보 제공의 목적으로만 사용되어야 합니다. 실제 매매 시에는 반드시 본인이 사용하는 증권사나 프랍펌의 공식 규정을 확인하시기 바랍니다.
Standard Deviation Linesplot standard deviation lines for 1sd, 2sd, 3sd. The user gives the data for the standard deviation and the time.
TradeX ORB SniperTradeX ORB Sniper — Multi-Range Opening Breakout Framework
TradeX ORB Sniper is an invite-only Opening Range Breakout (ORB) framework built to analyze how price behaves around multiple predefined session ranges. It is not a bundle of generic presets — every mode and filter is developed in-house and operates under a unified internal logic engine.
Purpose & Core Design
The ORB Sniper contains four internally coded operating modes, each linked to a different opening range model. Depending on market conditions, these may reference:
Pre-market session range
5-minute opening range
15-minute opening range
Volume-adaptive range variations
All modes follow the same rule structure across timeframes, allowing traders to study breakout behavior within a consistent, rule-based environment.
Breakout Highlighting
When price closes above or below the selected range, the script marks that candle in gold/yellow (the “Get Ready Candle”).
This marking is informational only and is intended to visually indicate when price has exited the defined range area.
Zone Projection & Box Mapping
To assist with breakout visualization, the framework projects risk and continuation zones:
Risk Box — derived from the selected opening range
Reward Box — projected continuation area based on range expansion
These projection elements are adjustable, allowing users to control how breakout context is displayed on the chart.
Custom Visual Inputs
All visual components can be customized directly through the settings panel, including:
ORB Mode — switch between V1–V4 range configurations
Risk Box Color — modify the appearance of the risk zone
Reward Box Color — adjust the continuation box color
Get Ready Candle Color — change the breakout candle highlight
Inputs in Status Line — optional display of configuration summary
This allows the framework to adapt to different chart styles and personal preferences.
Development Process
The ORB Sniper was initially developed and tested in Python, where variations in volume, volatility, and technical behavior were iterated to refine range definitions.
The most stable and repeatable rules were then implemented in Pine Script to create a streamlined and consistent breakout framework.
Disclaimer
This is a proprietary, closed-source TradeX Labs tool.
It applies well-known concepts such as opening ranges and volume behavior within an original rule-based structure.
The script is intended for visual analysis only and does not generate trade signals or guarantee performance.
Default settings are provided for demonstration purposes only. Users should configure the framework based on their own instruments and timeframes.
Release Notes — September 14, 2025
TradeX ORB Sniper — Multi-Range Opening Breakout Framework
This invite-only script is a structured ORB framework designed to map price interaction with multiple predefined ranges. It is not composed of generic parameters — all versions and filters are coded in-house and operate through a shared logic engine.
9/14/2025 Update
Two-stage alert system added to improve usability and workflow.
Purpose & Core Design
The ORB Sniper provides four internally coded operating modes, each referencing a distinct opening range model. Depending on market context, these may include:
Pre-market session range
5-minute opening range
15-minute opening range
Volume-adaptive range variations
Each mode follows a consistent rule set across timeframes, allowing traders to observe breakout behavior within a structured framework.
Breakout Highlighting
When price closes beyond the active range, the breakout candle is highlighted in gold/yellow (“Get Ready Candle”).
This highlight serves only as a visual reference for when price has exited the defined range.
Zone Projection & Box Mapping
The framework plots projected risk and continuation zones:
Risk Box — defined from the selected opening range
Reward Box — continuation area derived from range displacement
These projections can be adjusted by the user to customize breakout visualization.
Custom Visual Inputs
Users can modify all visual elements from the settings menu:
ORB Mode — select between V1–V4 range logic
Risk Box Color — adjust risk zone display
Reward Box Color — modify continuation box appearance
Get Ready Candle Color — customize breakout candle highlight
Inputs in Status Line — optional summary shown at the top of the chart
This ensures compatibility with any chart layout or visual theme.
Development Process
The ORB Sniper framework was originally prototyped in Python, where volume, volatility, and technical variations were iterated to improve range logic.
The most effective rules were then implemented into Pine Script to produce a consistent and repeatable breakout model.
Disclaimer
This is an original TradeX Labs proprietary tool.
It uses recognized concepts such as opening ranges and volume behavior within a custom rule-based framework.
It is designed for visual analysis only and does not generate trade signals or guarantee outcomes.
Default configurations are illustrative only. Users should adjust settings to suit their market and timeframe.
Force of Multi Strategy Bot: Backtest Webhook Alert Adaptive MTFForce of Multi Strategy (FoMS) - Innovative solution designed for crypto trading 📈
Overview:
An intraday algorithmic trading bot with 29 strategies, up to 10 symbols, and multi-timeframe filters sends pre-configured Webhook Alerts in TTA format to major crypto exchanges and features a live strategy Switcher that selects the best-performing strategy based on real-time backtest data
Key Features:
29 non-repaint strategies on up to 10 symbols
Buy/Sell signals based on TV Technical Rating, as well as classic and adaptive indicators
Higher Timeframe filters (ADX, Volatility, Volume, ATR) with multipliers from chart TF
Advanced risk management and backtest metrics
Automated "Switcher” to pick the best-performing strategies from backtest data in real time
Webhook alerts in TTA format (tradingview to anywhere) pre-configured to major Crypto Exchanges: Binance, Bitget, BingX, Bybit, GateIO, KuCoin and OKX
Main Inputs:
"All Strategies" on/off - trading all strategies on chart symbol or one strategy for 10 symbols
HTF Mult 1/2 - multipliers for 2 higher timeframes filters
InitCap/Trade$/Leverage - position size of one trade and initial capital
Min ROI/WR/PF/SRP/MAR/Trades - minimal cutoff for key strategy performance metrics. When "All Strategies" is "on", the switcher will open trades for strategies which meet these criteria
"Check Last" on/off - check performance metrics for a specified number of recent trades.
If the option is disabled, metrics are checked for the entire duration of the backtest
BacktestDays/MaxBars - set how long the script will perform backtests in days, with a limitation on the number of bars for acceptable calculation speed
How it works:
Only one trade can be opened at a time for each symbol. Strategies or symbols are calculated using their own initial capital settings
FoMS operates in two modes: ‘All Strategies’ on and off. When ‘All Strategies’ is off, it focuses on a single, user-selected strategy for each symbol. If ‘All Strategies’ is on, it's continuously evaluates 29 strategies and uses the Switcher to select the most promising ones
“All Strategies” Off Mode:
When the ‘All Strategies’ option is disabled, the script executes trades and sends alerts based on a single, user-selected strategy for each symbol. The script records backtest results for the selected strategy, allowing you to analyze its performance
In attached example you see how FoMS works on 10 symbols (first ones in alphabetical order with a leverage of 50) with chosen strategy #2 and enabled ATR HTF filter. Summary Profit & Loss for Backtest strategy #2: +$162.20 across 119 trades, with a $10 per-trade margin
This mode ideal when you calibrate risk management options on different symbols, or if you find that one of 29 strategies is profitable on many symbols and want trade with many of them simultaneously. This opens up the possibility of mass diversification, for example, launching trading on 200 symbols with just 20 notifications
“All Strategies” On Mode:
When the ‘All Strategies’ enabled, FoMS continuously evaluates 29 strategies for chart symbol and records backtest results continuously from each of them enabling the switcher to work
In this example, you can see how FoMS operates with all 29 strategies on a single chart symbol, with a summary P&L of +554.7$ from the backtest across 403 trades. Over the last 20 days from the backtest starting point, each strategy executed a different number of trades, from 2 to 41, getting different P&L from -26.1$ to +74.2$. Based on the results obtained, it seems prudent to continue trading only with strategies that have been more successful in the backtest
This is where he comes into play: strategy switcher executes trades and send alerts only from strategies that meet your pre-defined performance criteria, based on backtest results of all strategies. This opens up opportunities, allowing you to not only test the performance of one or many strategies, but also test the logic behind switching them
In attached example switcher use next logic: trades opened only for strategies who reached in test minimal setting ROI >= 0.2, PF >= 1.75 and SRP >= 1. As a result of testing this given logic: profit/loss = $84 , return on investment = 0.33, number of trades in 20 days = 34 .
P&L per trade rises from 1,37$ (all strategies backtest trades) to 2.47$ (switcher work)
Another backtest of logic example, switcher does the same thing but after check 6 last trades for each strategy. This rise ROI from 0.33 to 0.43, P&L rises from 84$ to 98.7$, P&L per trade rises from 2.47$ (check 20 days test) to 3.3$ (check last 6 trades)
Also, switcher has abilities to check strategies and update decisions about their performance with setting time period , for example every 2 days, and additionally it’s can choose for trading only Top ROI Rated Strategies, at say for example it can open trades from only Top 3 of them all
Interface:
Labels: on chart show open long/short and result in USD for closed trades, when "All strategies" is active - labels at bottom of indicator window show which exactly number of strategy opens a deal. The "No" label means that none of the strategies that meet the performance criteria have opened a trade at this time
Lines: indicator window contained equity line (aqua) and HTF Technical rating area, chart contain SL/TP (red/green) and open price (blue) lines for opened trades
Table 1 (all strategies or all symbols):
- TR: count of closed trading deals; WR: Winning Rate; PF: Profit Factor
- MDD: Max Draw Down for all calculated time from initial capital
- R$: trading Profit & Losses Result in USD
First row shows some of script settings, in published example: initial capital 100$, leverage 50L, 20 backtest days, 10$ is invest in one deal, 15m is chart timeframe, 60m is higher timeframe 1 and 120m is higher timeframe 2.
The exchange name in the second row determines the alert messages format
If strategy meet cutoff criteria you will see "Ok" label, if strategy meet criteria and have maximum from other reached ROI they labeled "Best". Chart strategy labeled "Chart", Chart and Ok labels in one time is "Chart+", "Chart" and "Best" is labeled "Best+"
Green or red color of strategy number/symbol means a long or short trade is currently active
Table 2 (chart symbol):
- PT: Result in USD Per one Trade; PW: Result Per Win, PL: Result Per Loss
- ROI: Return On Investment; SR: Sharpe Ratio, MR: CalMAR ratio
- Tx: Commission Fee in $; R$: trading Profit & Losses Result in USD
There separate trade results of backtesting for longs and shorts. In first column you see how many USD were invested in one trade, taking into account possible position splitting
Update frequency: closed trades information updated every bar, but check "ok"/"best" labels in table 1 would be when chart have not open trade. Its need for calculation speed purpose
Risk management options:
When a buy or sell trade is opened, you'll see three lines on the chart: a red stop-loss line ( SL ), a green take-profit line ( TP ), and a blue line representing the entry price . The trade will be closed if the high price or low price reaches the line TP or SL (no wait for bar close) and alert will be triggered once per bar when script recalculates
Several options are available to control the behaviour of SL/TP lines, such as stop-loss by percent, ATR, Highest High (HH) and Lowest Low (LL) . Take Profit can be in percent, ATR, Risk Reward ratio . There some Trailing Stop with start trail trigger options - ATR, % or HH/LL
Available Kelly position sizing option with multiplier to reduce growth
Additionally, implemented a function for adding a position when the breakeven level expressed in the current ROI is reached for opened trade (splitting). The position is added within the bar
Webhook alerts in TTA format with message contained next info : Buy / Sell or adding Quantity, Leverage, SL price, TP price and close trade Result in USD
(for easy forward tests and check difference between actual trade result and alerts logs)
Backtest Engine:
Profit or Loss is USD = close trade price * open trade quantity - open trade price * open trade quantity - open trade quantity * (open trade price + close trade price)/2 * commission
Possible slippage or alert sending delay needed to be include in commission % which you will set in risk management settings block, default settings is 0.15% (0,06% for open, 0,06% for close and 0,03% for possible slippage or additional fees)
Maximum Draw Down Drawdown = (peak - current equity) / peak * 100 ;
Drawdown > maxDrawdown ? maxDrawdown = Drawdown
ROI = profit result in USD / sum of all positions margin
CalMAR Ratio = ROI / (-MaxDrawDown)
Sharpe Ratio = ROI / standard deviation for (Sum of all results) / (Sum of all Position Margins)
Strategies:
Before describing them, I’ll provide extensive statistics on the results of using the listed strategies:
Number 1, 2 and 3: based on Higher Timeframe TradingView Technical Ratings at self. 1 is summary total rating, 2 is oscillators and 3 is moving averages. When TR filter cross user setting filter levels trade will be open at chart bar close. By Default on chart you see Summary Technical Rating oscillator, but here the options for change it to Oscillator TR or Moving Average TR
Number 4, 5 and 6: based on Chart TimeFrame TR. Trades will open when its values (Summary, Oscillators and Moving Averages) reached setting buy/sell level. To seeing plot of Chart TF Technical Ratings you can just set HTF multipliers to 1
Number 7, 8 and 9: is Alternative buy sell logic for Chart TimeFrame TR, trades will open when counting rising or falling setting values will be reached
Number from 10 to 18: based on user-selected adaptive Moving Averages and Oscillators indicators. In settings you will see different types of Adaptive Algorithms, Moving Averages (By default: SMA, RMA, WMA, Hann, JMA) and Oscillators (By default: RSI, LRSI, MomentumRSI, RVI) - more than 30 options in total. The standard adaptive algorithm is unique, developed by the author and based on ADX: it shortens the length of the MA/OSC when the market is defined as trending, and increases it when the market is defined as sideways. Other available adaptive length algorithms options based on identification of Volatility, Market Cycles or Trending and works on a similar principle adjusting the length setting of MA/OSC within market condition. All adaptive strategies have their options for calibrating. You can plot on chart any MA/OSC and its length obtained from adaptive algorithms. Trades are opened when the MA/OSC are crossed user-specified in settings buy/sell levels
Number from 19 to 29: They are calibrated between two options "Fast React" or "Strong Signal" for avoid overfitting. "Fast React" mean trades would be more, indicators will detect buy/sell condition faster. "Strong Signal" buy/sell will identifies slower and open potentially more accurate trades. I tried to found mostly time worked classic strategies within thousands tests, at the time of publication this script uses :
- Swing HH LL ( 19 ): trades open when trend swing is determined by comparing the timing of the latest high vs. low within time window sensitive to Fast or Strong setting;
- Composite indicator ( 20 ): implemented Fast or Strong variations based on normalized and weighted 0.25 * SMA + 0.15 * RSI + 0.25 * MaCD + 0.35 * ROC, buy/sell signals trigger when overbought/oversell (ob/os) levels is crossed;
-%R ( 21,22 ): buy/sell signals occur when fast or strong long term Williams %R and short %R cross centre line or ob/os levels;
- Pivot Point SuperTrend ( 23 ): identifies pivot point centreline with ATR bands, buy/sell signal triggered when fast or strong trend direction is changed;
- Ichimoku ( 24 ): buy/sell when tenkan cross kijun with strong or fast cloud trend confirmation;
- TSI ( 25 ): trades open when fast/strong variations of true strength index crossing ob/os levels;
- Band Level RSI ( 26 ): identifies bands based on fast/strong close price wma and stdev, buy/sell signals triggered when RSI cross ob/os levels with price out of bands;
- RSI/MacD ( 27, 28 ): trades open when macd crossing signal line if RSI was in ob/os condition long time ago or short time ago in a fast or strong variations, and open trades when macd line (fast) or signal line (strong) crossed zero line;
- Bars UpDown( 29 ): trades open when last bars ups or downs in fast or strong variations
- Overbought/oversold levels are sensitive to the “Fast React” or “Strong Signal” settings
Why this mashup: No one single trading strategy works consistently in all conditions. I combine 29 unique strategies to dynamically identify the best-performing ones at any given time
You can enable or disable various Higher Timeframes Filters (ADX, Volume, Volatility, Tech rating). If enabled, trades will only open when the filter setting are reached for one of two HTF
And after this describe i will show you another great statistics:
In showed tables you see backtest results for all strategies on 100 random crypto coins. Uses default script settings: InitCap 20$, One trade 3$, L50, commission 0.15%, 15m chart TF and two HTF 60m and 120m, ATR 2.5 SL and ATR trailing with trigger at 7 ATRs by open price
What in this stats: First test was without any HTF filtering, second table show result for same strategies and coins, but with enabled ADX Filter. As you can see Filter reduce Losses radically
Without filtration just 24 crypto coins averages from 100 was profitable, with ADX filtration this number rises to 32 from 100 , note that after filter best performed become another strategies. Bear in mind, all filters or risk management options will affect their backtest performance
For clarity: classic indicators are not plotted on chart in this script to avoid overloading the interface. You can easily understand what exactly do listed upper strategies by the “Long” and “Short” labels on the chart and the trades counted in the tables. While you can collect the massive statistics by yourself as shown upper, it is not part of this script
Originality and Value:
Diverse: fully customizable rules for the first 18 strategies, as well as a choice of "fast" or "strong" signals for the remaining 11, allow you to build a suite with different trading frequency
Risk Control and Backtest: dynamic SL/TP and position sizing with immediate test performance of many assets/strategies in one framework help optimize the risk-reward profile
Automated Strategy Switching: author developed unique feature allows to pick on the best-performing strategies in real-time and can backtest the logic behind switching them.
It designed to finding profitable habits in market behaviours and to cut out unprofitable ones
This combination, along with the developer’s extensive research and testing, sets the “Force of Multi Strategy” apart from many other trading solutions available on the market
Another usage example:
Tips that I found through tests: Last 4 trades say more about the next one #5 than 10 do about #11. You can use many instances of FoMS on one symbol. An attached example demonstrates how 4 instances of FoMS work with different filter settings (No Filters, ADX, ATR, TV.TR)
All instances have the same settings : Symbol: PEPE, Chart TF 15m, HTF Mult 4/8, InitCap $100, One trade $10/50 Leverage. Strategies switch based on the same logic : choosing a strategy that achieved an ROI ≥ 0.4 and a win rate ≥ 50% over the last 4 trades. As you can see: the TV.TR filter opened 24 trades with best P&L 118.9$. The ATR filter (no trade if ATR 5 / ATR 20 < 1.2) performed best 1.37 ROI, achieving a P&L 95.9$ with 9 trades in 20 days of backtest
Now you can choose the preferred option and create a new alert with the Webhook address provided by TTA. That’s all. The next signal from the strategy that meets the set ROI and WR criteria from the last 4 trades with the HTF filter will be executed by the script and sent to the Webhook address to open a position on the exchange
Keep in mind , script open a market orders and alerts have slight delay, some negative or positive difference (usually 3-10%, L50) in close trade result between alert and actual trade results is possible, alert message example: Close 1000PEPEUSDT C=LINEAR +2.27$ Buy 1000PEPEUSDT Q=13276.2944 SL=0.006545 TP=0.010168 L=50 D=2 C=LINEAR St:21
Might be important , this script generates alerts for market orders that are then executed on pre-configured crypto exchanges via the TTA service, along with native SL/TP orders
Finally:
There is no universal instruction or ‘how to’ for profitability in all markets at any time. However, I will continue researching and will share more tips in the future. I believe that FoMS’s capabilities can revolutionize your understanding of intraday trading
Invite-only status safeguards the author’s unique multi-strategy framework, unavailable in public scripts, ensuring users access tailored tools without imitation risks.
To get access please see the Author's instructions!
Wishing you successful trades! Stay tuned for updates
DISCLAIMER: No sharing, copying, reselling, modifying, or any other forms of use are authorized for this script, and the information published with them. This script is strictly for individual use. No one knows the future and Investments are always made at your own risk. I am not responsible for any losses you may incur. Before investment make sure that your logic is profitable on demo account
MCX GOLD and SILVER Import Duty CalculationsThis Script of MCX Gold and Silver landed cost vs MCX Difference is Created and published for Trading view on 29/01/2026.
MCX Gold and Silver Landed vs MCX Difference Jan 2026This Script of Gold and Silver landed cost vs MCX Difference is Created and published for Trading view on 29/01/2026.
Angular Moving AveragesMETHODOLOGICAL GUIDE: ANGULAR MOVING AVERAGES
Pedagogical Introduction
Most traders make the mistake of viewing moving averages as simple support or resistance lines. However, the true power of a moving average lies in its slope vector. This script is designed to transform visual subjectivity into precise mathematical data, allowing the trader to quantify the acceleration or deceleration of a trend through an angular measurement system and a dynamic "pool" of alerts.
1. Dynamic Level System (Highs & Lows)
This module projects horizontal lines marking the most recent significant highs and lows detected by the algorithm. While its primary function is structural, its true power lies in its integration with the RSI.
• Color Logic: These lines are not static; they change color based on the state of the RSI oscillator (user-configurable).
◦ Fuchsia (Overbought/Oversold): Activated when the RSI reaches critical thresholds (default >= 70 or <= 30). It indicates that the price has reached a threshold of mass participation or exhaustion.
◦ Yellow (Transition Zones): Indicates that the price is entering cautionary terrain (60-70 or 30-40).
◦ Gray (Neutral Zone): The market is in a relative equilibrium (40-60), ideal for identifying consolidation phases.
• Utility: Allows the trader to know at a glance whether current support and resistance levels are validated by a momentum condition in the RSI.
2. Fibonacci Reference Frame (Background Structure)
As a visual complement, the script integrates an Automatic Fibonacci Retracement based on recent highs and lows. This system is designed as a low-opacity "watermark" to avoid obstructing price action.
• Reaction Zones: The system delimits three key bands:
1. Zone 23.6% to 38.2%: The first retracement filter.
2. Zone 38.2% to 50.0%: The movement's equilibrium level.
3. Zone 50.0% to 61.8%: The area of maximum relevance for continuity or reversal.
3. The Control Center (Angular Dashboard)
The table is a real-time data processor that divides its analysis into three fundamental pillars, as shown in the technical capture:
A. Moving Average Angle Matrix
Located in the upper left, it measures the vectorial slope of 5 different moving average architectures: Simple (S), Exponential (E), Weighted (W), Hull (H), and ALMA (A).
• Data Interpretation: The numbers inside the cells represent the exact angle of the vector. A positive number indicates an ascent, and a negative number indicates a descent.
• Period Versatility: The system allows for custom lengths for each type. For example, a user can compare three ALMA 10-period averages simultaneously to observe subtle variations in the micro-trend.
B. Quantitative High/Low Reference
The yellow section of the table displays the nominal values (exact prices) of the last detected Highs and Lows. This facilitates quick and precise order management (Stop Loss or Take Profit) without the need for external tools.
C. Angular Alerts Pool (Alert & Color Logic)
This is the most critical and advanced section of the table. It acts as the "filter" that decides which information is relevant to the trader.
• Smart Color-Coding: Cells turn Green or Red when angles meet specific pre-configured criteria.
• Lateralization Detection: A key pedagogical aspect is observing when short-term averages (following the price) mark green while long-term ones remain red. This divergence alerts the trader to transition or sideways phases, preventing entries in false trends.
• "Waterfall" Configuration: Allows for confirming that the movement has constant inertia (such as the three cascading ALMA 10s) before executing a trade.
• Total Integration: The Alerts Pool can also affect the visualization of the high and low levels on the chart.
Customization and Technical Restrictions
This system has been designed as a highly adaptable tool for any trading style. All numerical values, moving average lengths, colors, and visualization elements are fully user-configurable, with one single exception:
• Fibonacci Values: The levels 23.6%, 38.2%, 50.0%, and 61.8% remain fixed to ensure the integrity of the mathematical retracement metric. However, their colors and visibility can be customized to suit any visual theme (Dark or Light).
MODULAR CONFIGURATION & HYPER-SCALABLE ALERTS POOL
This system is not a rigid tool; it is a technical engineering environment designed for objective market measurement. Although specific setups are shown in the visual examples, the user has absolute control to adapt the indicator to their own analysis methodology.
1. Moving Average Configuration & Algorithmic Versatility
The engine processes 5 families of algorithms (SMA, EMA, WMA, HULL, and ALMA) with total flexibility:
• Custom Lengths: Although the system includes default values (10, 50, 100, 200), you can freely reconfigure them. For example, you can work with "pairs" of averages (two 20-period and two 55-period) to analyze different sensitivities.
• Style Personalization: The user decides which averages to display on the chart to maintain operational clarity, while the engine continues to process the rest of the data in the background.
• Instant Refresh: Any change in configuration is immediately updated in both the 20 vectors and the data table (Dashboard).
2. The Technical Alerts Pool: Centralized Intelligence
The alert management unifies up to 22 technical variables into a single output, optimizing TradingView resources and the trader's attention.
• Operational Efficiency: When the alarm sounds on your device, the Dashboard will accurately indicate which of the 22 variables (Price Breakouts or Angular Vectors) triggered the signal.
• Threshold Logic:
◦ Value 0: Alert disabled.
◦ Positive Value ($>0$): Identifies the strengthening of a bullish trend. The alert triggers when the angle is greater than or equal to the programmed value.
◦ Negative Value ($<0$): Identifies the strengthening of a bearish trend. The alert triggers when the angle is less than or equal to the programmed value.
• Mathematical Integrity: The program operates internally with high-precision decimals. If you program an alert at 20°, the system will only trigger it upon reaching the exact value (e.g., 20.00°). The Dashboard's visual rounding to whole numbers is purely aesthetic; the execution is strictly technical.
Technical Case Analysis (visual examples)
The following sequence of attached screenshots demonstrates the system's filtering and detection capabilities:
1. Bearish Trend Scenario
1. Initial Setup: This image shows two overlapping menus. First, the Style tab (where Hull averages are selected as a visual reference) and, second, the Alerts menu with negative values configured to detect downward trend strength.
2. Chart Response: The next capture shows the technical result: 20 aligned vectors and the price confirming the downward movement after the programmed breakouts.
2. Bullish Trend Scenario.
1. Threshold Setup: Capture showing the adjustment of values in the configuration menu, this time set with positive parameters to identify upward trend acceleration.
2. Chart Response: Image illustrating the expansion of the vectorial fan and the health of the bullish trend in full development.
Consolidation Filtering:
In these examples, a critical feature is evident: during periods of consolidation or sideways ranges, fast averages react to price noise, but slow ones maintain their trajectory. Thanks to the Alerts Pool, the user can filter this behavior and receive notifications only when the trend regains its real angular strength.
TECHNICAL ARCHITECTURE: VECTORIAL PRECISION
Total scale independence and cross-device consistency
The major problem with conventional angular indicators is that their appearance changes depending on the zoom level or screen size, leading to subjective and erroneous signals. This indicator solves this issue through a vector-based architecture that maintains absolute integrity.
You can observe the same asset, on the same timeframe and at the same time, from a mobile phone or a large desktop monitor; the angle and projected force will be identical. The inclination of the vectors is an objective measurement that does not depend on how you stretch or compress the chart on your screen.
Visual stability example (Standard scenario):
In this first link , you can observe the behavior of the vectors on a chart with normal proportions. I have used the Bar Replay tool to keep the scenario fixed and allow for a real comparison.
Visual stability example (Deformed chart):
In this second link , I have extremely deformed the chart. As you can see, while the price and candles change their visual appearance, the vectors maintain the exact same angle and position, proving that the force measurement is undisturbed by scaling.
TRADING ECOSYSTEM: ANGULAR VOLATILITY & EDITOR'S PICK SEAL
This moving average indicator serves as a complement to my Angular Volatility methodology. It is part of an analytical system that I have shared chronologically and transparently, allowing for a clear understanding of how these tools evolve within the market.
It is important to highlight that the technical robustness of this approach was officially recognized when my second publication in this series received the Editor’s Pick distinction. This endorsement from TradingView moderators validates the technical foundation of the angular analysis that I continue to expand today with this new script, designed to measure vector and force.
To fully understand the ecosystem and how this indicator enhances volatility and directional readings, you may consult the following public publications in their order of development:
1. Core Methodology (Script):
2. Awarded Market Analysis (Editor’s Pick):
3. Technical Educational Series (Case Studies):
EVALUATION ACCESS & CONTACT PROTOCOL
To allow you to personally verify the effectiveness of this vector and force system in your own trading, I am granting a 15-day temporary evaluation access.
How to request and manage your access:
1. Initial Request: Leave a comment directly on this publication requesting the trial. This allows me to immediately identify your profile and enable the invitation.
2. Activation and Location: Once I receive your comment, I will activate your access. You can find the indicator on your TradingView chart by going to the "Indicators" menu and looking for the folder named "Invite-only scripts". I will reply to your comment simply to confirm that access has been granted and to provide the expiration date.
3. Communication: To avoid cluttering the public comments section, I will send you a Private Message (TradingView Chat) with additional details. Through this private chat, we can maintain fluid communication. If you require permanent access, you can contact me via Facebook (link available in my author profile).
Important Note on Privacy:
Please do not share emails, phone numbers, or external links in the public comments. TradingView prohibits the exchange of personal data in this section, and both parties could face sanctions. For any details requiring external contact, please use the link in my profile or the private chat.
MARKET CALIBRATION, TIMEFRAMES, AND FUTURE UPDATES
It is fundamental to understand that this system does not use a generic formula. Each market and each timeframe requires exhaustive study and individual calibration to ensure that the vectors accurately represent the real force of the movement.
Currently, the script is calibrated exclusively for Cryptocurrency and Forex markets (options you will find in the settings menu). If there is solid interest from the community, I will undertake the calibration process for other assets such as Stocks, Indices, or Commodities—a task that requires time, patience, and rigorous technical study.
Regarding timeframes, the system is optimized to work on 1m, 5m, 15m, 30m, 1h, 4h, Daily, and Weekly charts. Outside of these ranges, the indicator will not perform readings to protect the integrity of the analysis. However, additional timeframes can be added upon direct request from subscribers, with the understanding that each new timeframe must undergo its own individual calibration process before being integrated into the code.
ADAPTABILITY AND FUTURE MOVING AVERAGES
Although the core of the indicator is optimized for a specific moving average configuration, the system has been designed with a flexible architecture that allows for the integration of other types of averages based on trading needs.
Technical Limits and Customized Versions:
It is important to consider that each added type of moving average consumes processing resources within TradingView. Due to the calculation and validation limits imposed by the platform to maintain chart performance, it is not feasible to include every possible variation within a single script.
However, this limitation is easily resolved through the creation of derivative or specific versions. Upon request from subscribers, these new moving averages can be incorporated into future releases or customized versions, ensuring that the tool adapts to your strategy without sacrificing fluid performance and vectorial precision.
VJS Area of InterestThe Area of Interest indicator is designed to highlight the key zones on the chart where price is most likely to react. These areas are not random — they represent levels where buyers and sellers have previously shown strong interest, making them high-probability zones to pay attention to.
Instead of chasing price or entering in the middle of nowhere, this indicator helps you wait for price to come to you. When price reaches an Area of Interest, that’s where we slow down, observe price behavior, and look for confirmations such as structure shifts, rejections, or volume reactions before considering an entry.
It’s important to understand that an Area of Interest is not an automatic buy or sell signal. Think of it as a decision zone. This keeps you patient and disciplined, reducing emotional trades and improving risk-to-reward by entering closer to invalidation levels.
Moving forward, our focus will be on executing trades only around these Areas of Interest. When combined with proper risk management and confirmation, this approach allows us to trade with structure, clarity, and consistency — instead of guessing market direction.






















