UT Bot + LinReg Candles (Dual Sensitivity)
Script Description:
This indicator combines the popular UT Bot Alerts system with Linear Regression Candles (open source) for enhanced trend detection and trading signals in one singel script. The UT Bot features independent, then 2 x ATR sensitivity and periods controls for buy and sell signals, allowing you to fine-tune entries and exits to match your strategy. The script also overlays colored Linear Regression Candles with an optional signal line, helping you visually identify trend strength and direction. All calculations are performed on standard chart prices (no Heikin Ashi). Suitable for all asset classes and timeframes.
Eample setting for usdjpy 5 min chart for repeated buy and sell singnals based on trend:
BUY ATR period 300 multiplier 1
SELL ATR period 1 multiplier 2
Disclaimer:
This script is for informational and educational purposes only. It is not financial advice. Use at your own risk; the author assumes no responsibility for any trading results or losses.
Credits goes to to Ugurvu for linreg candles and quantnomad for UT Bot alerts that make this script possible.
Author: Patrick
Indicatori e strategie
The Essa System V1.5The Essa System V1.5
Overview
The Essa System is a comprehensive trading strategy and backtesting tool designed for traders who use market structure and Fibonacci retracements. It automatically identifies significant trading ranges, calculates key retracement levels, and then backtests a complete trading strategy based on entries at these levels.
This is more than just an indicator; it's a full suite of analytical tools designed to help you develop, test, and analyze a complete trading plan directly on your chart.
How It Works
The system's logic is based on a classic price action concept:
Range Detection: First, it automatically identifies a significant trading range by finding the highest high and lowest low based on pivot points over a user-defined lookback period.
Fibonacci Analysis: Once the range direction (bullish or bearish) is established, the script calculates and displays key Fibonacci retracement levels (50%, 61.8%, 70.5%, and 78.6%).
Trade Execution: The system then looks for historical and live trading opportunities, entering a trade when the price pulls back to one of the enabled Fibonacci levels. All trades are managed with a predefined Stop Loss and Take Profit in pips.
Key Features
Automatic Range & Fibonacci Analysis: Automatically draws the primary trading range and key Fib levels, updating as market structure evolves.
Historical Backtesting: Plots all historical trade entries based on the strategy rules, allowing for a complete performance review over the chosen chart history.
Detailed Trade Visuals: Displays active trades on the chart with clear lines and boxes for entry, stop loss, and take profit zones.
Advanced Session Filtering: Allows you to isolate trades to specific market sessions (London, New York, Asia) with timezone support and daily trade limits.
Built-in Risk Management: A cornerstone of the system. It automatically calculates the required position size for each trade based on your specified Account Size, Risk Percentage, and Stop Loss.
Comprehensive Performance Tables: The script includes two powerful analytical tables:
Trade Helper Table: Shows the status of live or potential upcoming trades, including entry/SL/TP prices and the calculated position size.
History Table: Logs all recent trades and calculates key statistics like Profit Factor, Win Rate, and the overall PnL impact on your account balance.
Customizable Strategy: Fine-tune every aspect of the strategy with inputs for the lookback period, SL/TP in pips, which Fib levels are tradable, and a cooldown timer to prevent over-trading.
How to Use
Add the indicator to your chart.
Navigate to the settings and, under "Account Settings," configure your Account Size and Risk Per Trade (%). This is essential for the PnL and position sizing calculations to be meaningful.
Under "Session Filter Settings," adjust the sessions you wish to trade.
Analyze the historical trades and the performance tables to understand the strategy's behaviour on your chosen asset and timeframe.
Disclaimer: This is a tool for strategy analysis and backtesting. It is not financial advice. Past performance is not indicative of future results. Always use proper risk management.
Gann Octave 8 - Professional V 1.0Gann Octave 8 Indicator:
Core Concept: This indicator divides the price range between highest high and lowest low into 8 equal parts (octaves), creating support/resistance levels based on W.D. Gann's trading principles.
Key Components:
1. Price Range Calculation:
o Finds highest high and lowest low over a lookback period (default 50 bars)
o Divides this range into 8 equal segments (12.5% each)
2. 8 Octave Levels:
o 0% (Low Support) - Strongest support
o 12.5%, 25%, 37.5% - Minor levels
o 50% (CRITICAL) - Most important level
o 62.5%, 75%, 87.5% - Minor levels
o 100% (High Resistance) - Strongest resistance
3. Gann Angles: Projects trend lines from high/low points at various angles (1x1, 2x1, 1x2, etc.)
4. Visual Features:
o Color-coded levels
o Information table showing current position
o Background highlighting when near critical levels
o Trend analysis (bullish/bearish zones)
Trading Strategy
Entry Signals:
BULLISH TRADES:
• Price crosses above 50% level → Strong buy signal
• Price bounces from 25% or 37.5% levels → Support bounce
• Price in upper zone (above 50%) → Bullish bias
BEARISH TRADES:
• Price crosses below 50% level → Strong sell signal
• Price rejects at 75% or 87.5% levels → Resistance rejection
• Price in lower zone (below 50%) → Bearish bias
Key Trading Rules:
1. 50% Level is Critical: Most important for trend direction
2. Zone Trading:
o Above 50% = Bullish zone (look for longs)
o Below 50% = Bearish zone (look for shorts)
3. Strength Levels:
o Above 75% or below 25% = Strong moves
o Near 100% (high) or 0% (low) = Extreme levels
Risk Management:
• Stop Loss: Place below previous octave level
• Take Profit: Target next octave level
• Position Size: Reduce size near extreme levels (0%, 100%)
Example Trade:
If price breaks above 50% level:
• Entry: Long position
• Stop: Below 37.5% level
• Target: 75% level
• Risk: Monitor for rejection at resistance levels
The indicator works best in trending markets and helps identify high-probability reversal zones.
Works for both Stocks & Derivatives. Experiment with code and share your feedback in comments..
Logistic Regression ICT FVG🚀 OVERVIEW
Welcome to the Logistic Regression Fair Value Gap (FVG) System — a next-gen trading tool that blends precision gap detection with machine learning intelligence.
Unlike traditional FVG indicators, this one evolves with each bar of price action, scoring and filtering gaps based on real market behavior.
🔧 CORE FEATURES
✨ Smart Gap Detection
Automatically identifies bullish and bearish Fair Value Gaps using volatility-aware candle logic.
📊 Probability-Based Filtering
Uses logistic regression to assign each gap a confidence score (0 to 1), showing only high-probability setups.
🔁 Real-Time Retest Tracking
Continuously watches how price interacts with each gap to determine if it deserves respect.
📈 Multi-Factor Assessment
Evaluates RSI, MACD, and body size at gap formation to build a full context snapshot.
🧠 Self-Learning Engine
The logistic regression model updates on each bar using gradient descent, refining its predictions over time.
📢 Built-In Alerts
Get instant alerts when a gap forms, gets retested, or breaks.
🎨 Custom Display Options
Control the color of bullish/bearish zones, and toggle on/off probability labels for cleaner charts.
🚩 WHAT MAKES IT DIFFERENT
This isn’t just another box-drawing indicator.
While others mark every imbalance, this system thinks before it draws — using statistical modeling to filter out noise and prioritize high-impact zones.
By learning from how price behaves around gaps (not just how they form), it helps you trade only what matters — not what clutters.
⚙️ HOW IT WORKS
1️⃣ Detection
FVGs are identified using ATR-based thresholds and sharp wick imbalances.
2️⃣ Behavior Monitoring
Every gap is tracked — and if respected enough times, it becomes part of the elite training set.
3️⃣ Context Capture
Each new FVG logs RSI, MACD, and body size to provide a feature-rich context for prediction.
4️⃣ Prediction (Logistic Regression)
The model predicts how likely the gap is to be respected and assigns it a probability score.
5️⃣ Classification & Alerts
Gaps above the threshold are plotted with score labels, and alerts trigger for entry/respect/break.
⚙️ CONFIGURATION PANEL
🔧 System Inputs
• Max Retests – How many times a gap must be respected to train the model
• Prediction Threshold – Minimum score to show a gap on the chart
• Learning Rate – Controls how fast the model adapts (default: 0.009)
• Max FVG Lifetime – Expiration duration for unused gaps
• Show Historic Gaps – Show/hide expired or invalidated gaps
🎨 Visual Options
• Bullish/Bearish Colors – Set gap colors to fit your chart style
• Confidence Labels – Show probability scores next to FVGs
• Alert Toggles – Enable alerts for:
– New FVG detected
– FVG respected (entry)
– FVG invalidated (break)
💡 WHY LOGISTIC REGRESSION?
Traditional FVG tools rely on candle shapes.
This system relies on probability — by training on RSI, MACD, and price behavior, it predicts whether a gap will act as a true liquidity zone.
Logistic regression lets the system continuously adapt using new data, making it more accurate the longer it runs.
That means smarter signals, fewer false positives, and a clearer view of where real opportunities lie.
(STC) with Buy/Sell
PS! This is ment to be used as compliment and confirmation for indicator "UT Bot + LinReg Candles (Dual Sensitivity) by PDK1977
Schaff Trend Cycle (STC) Oscillator with Buy/Sell Signals
The Schaff Trend Cycle (STC) is a fast and reliable oscillator developed by Doug Schaff, designed to improve on traditional cycle indicators like MACD and Stochastic. The STC indicator helps you identify trend direction, potential reversals, and entry/exit points with greater speed and accuracy.
Key Features:
Clear, Color-Coded Line: The STC line turns green when rising and red when falling, making trend changes easy to spot.
Buy/Sell Signals:
Buy: When the STC line crosses up over the 25 level, a green triangle appears, suggesting bullish momentum.
Sell: When the STC line crosses down under the 75 level, a red triangle appears, highlighting potential bearish momentum.
Levels: 25 and 75 are highlighted to mark overbought and oversold regions.
Separate Pane: Designed to be displayed in its own subwindow below the main chart, keeping your price action clean and uncluttered.
How to Use:
Buy Signal: Watch for the STC to cross above 25 for possible long entries.
Sell Signal: Watch for the STC to cross below 75 for possible short entries.
The indicator works on all timeframes and is suitable for trending markets, swing trading, and scalping strategies.
Tip: Combine STC signals with other trend or volume indicators for added confirmation and more robust trading decisions.
3Commas DCA Long Short3Commas DCA Long/Short Manager – SuperTrend-Powered
This script turns TradingView SuperTrend signals into fully-automated 3Commas actions. On each confirmed bar-close trend flip it:
• Starts the chosen Long or Short DCA bot
• Closes & stops the opposite bot to keep only one side running
Key features
• SuperTrend core – ATR Length & Factor are user-tunable
• Dual-bot control – independent IDs for Long and Short bots, each can be toggled on/off
• Safety first – ignores the very first bar to avoid repaint artefacts
• Email/webhook ready – alerts output compact JSON compatible with 3Commas; optional delay seconds parameter included
• One-click deployment – drop on any chart, set an “Any alert() function call” alert, paste your 3Commas email address / webhook, and trade hands-free.
Back-test thoroughly and use paper trading before going live. Happy automating!
Silver Bullet🎯 Silver Bullet Macro Time & Bias Framework
The Silver Bullet script is a complete framework for identifying high-probability trading windows and directional bias, inspired by ICT concepts.
✅ Key Features:
• Macro Sessions Detection – Automatically identifies key time windows (ICT Killzones or custom hours) on any timeframe.
• Dynamic Session Boxes – Visual boxes marking each session’s high/low range.
• Bias Calculation – Determines Long or Short bias using price action within the session.
• Fibonacci Levels – Automatically draws Fibonacci retracements and extensions relative to session ranges.
• Adaptive Labels & Tables – Clear labels showing session range, bias, entry, target, and stop levels.
• Customizable Timezones & Styles – Supports all chart timezones, different text sizes, and flexible display positions.
⸻
📈 Optimized for the 5-Minute Chart, but can be applied to other intraday timeframes.
🌐 Learn more & contact support: www.macrobullet.trade
FVG MTF + 50%
// This indicator identifies Fair Value Gaps (FVGs) on M15, H1, and H4 timeframes, highlights them on the chart as colored boxes, draws the 50% median line,
// and displays price labels for the 0%, 50%, and 100% levels of each gap.
// It also tracks when gaps are “filled” (mitigated) and logs counts on a dashboard, providing real-time metrics on open/filled FVGs for liquidity analysis.
//
// Key Features:
// 1. Multi‐Timeframe Detection: Scans M15, H1, H4 for three‐bar FVG patterns using a configurable threshold.
// 2. Colored Zones and Median Lines: Draws bullish (green) and bearish (red) gap boxes, bordered in white, with a dashed white line at the midpoint.
// 3. Price Labels: Optionally annotates each gap with “0% FVG = $X,” “50% FVG = $Y,” and “100% FVG = $Z” at the moment of detection.
// 4. Gap Mitigation: Monitors price re‐entry into a gap; when filled, it removes the box and logs a dashed line at the fill price.
// 5. Dashboard: Counts total bullish/bearish FVGs and calculates the percentage filled on each timeframe.
// 6. Alerts: Configurable alerts for new gap creation and fill events at 0%, 50%, and 100% levels.
//
// Implementation Details:
// • Detection Logic: A three-bar gap occurs when the middle bar’s low is above the prior bar’s high (bullish) or its high is below the prior bar’s low (bearish).
// A “threshold” parameter filters minor gaps based on relative size.
// • Data Structures: Uses Pine v6’s user‐defined “fvg” type to store gap high, low, direction, and timestamp. Arrays track open boxes, lines, labels for each timeframe.
// • Drawing:
// – box.new() draws transparent rectangles spanning 500 bars into the future.
// – line.new() draws dashed median lines and mitigation lines when gaps are filled.
// – label.new() places price annotations at the current right edge with textalign=text.align_right.
// • Dashboard: table.new() creates a 3×3 panel showing “Bullish”/“Bearish” counts and “Mitigated” percentages in real time.
// • Alerts: alertcondition() triggers when new gaps form or are mitigated at specified percentages.
//
// Usage:
// • Add to chart: Apply the script; enable or disable timeframes via checkboxes (Enable FVG M15, H1, H4).
// • Configure text labels: Toggle “Text” to show or hide on‐chart price annotations.
// • Monitor dashboard: Observe counts and fill rates to gauge market liquidity pressure.
// • Set alerts: Enable alerts for specific levels (0%, 50%, 100%) and timeframes as needed.
//
// Potential Extensions:
// • Customizable lookback on fill monitoring (beyond “showLast” parameter).
// • Dynamic threshold based on ATR or volatility metrics instead of static percentage.
// • Integration with order‐flow or volume data to refine gap significance.
// • Expanded timeframes (D1, W, etc.) for higher‐timeframe liquidity profiling.
//
// =============================================================================
//
// © 2025. Licensed under CC BY‐NC‐SA 4.0 International.
// Feel free to reference academic works (Hasbrouck, Bouchaud, O’Hara) for theoretical context.
//
// End of Description.
Gabriel's Relative Strength IndexGabriel’s RSI—The Reinvention of Relative Strength
Not your average RSI.
This is a fully reengineered Relative Strength Index that merges the power of advanced signal processing, adaptive smoothing, volume dynamics, and intelligent divergence detection into a single, modular toolkit designed for precision trading across all markets.
Whether you’re scalping crypto, swing trading equities, or dissecting futures contracts—Gabriel’s RSI adapts to your strategy with unrivaled control and clarity.
1. RSI Settings
RSI Length (Jurik): Set to 51 by default to mimic a 21-period standard RSI when Jurik smoothing is applied. Adjust lower (e.g., 22) to mimic a 9-period RSI.
RSI Source: The default is hlc3 for smoother RSI inputs. Can be changed to any price-based series (close, open, etc.) for customization.
2. RSI Smoothing Options
MA Type: Smoothing applies to both RSI and its MA overlay simultaneously. I used to use the 56 EMA RSI, and it works well too.
JMA: Best for adaptive recursive smoothing. A power of 2 and a phase of 50 are used.
T3: Smooth and lag-reduced, suitable for trend detection. The alpha is 0.7.
SMA + Bollinger Bands: Adds deviation-based envelopes for volatility spotting.
MA Length: Affects how smooth or reactive the RSI signal is.
BB StdDev: Only relevant if BBs are used. Controls bandwidth for overbought/oversold zones.
3. MACD Settings
Fast/Slow Length: Defaults (21/81) optimized for smoother MACD with SMA or T3. For Algo trading, EMA/JMA is best.
Signal Length: Shorter (e.g., 2) gives more reactive crossover signals, it can be increased.
Source: Default is close. Close works best for the settings I input.
MA Types: JMA and EMA reduce noise and increase signal generation. Select SMA for simplicity or T3 for trend-following.
Histogram: Bar colors signal strength and trend of MACD directly on your chart.
4. Directional Movement Index (DMI)
ADX Smoothing: High values (e.g., 100) offer strong trend confirmation with Hann Window smoothing.
DI Length: Affects DI+/- sensitivity. 100 ADX - 12 DI or 15 ADX - 35 DI are suggested, the latter for quicker boot time, as 100 bars is quite long.
Smoothing Type: Choose Hann Window for refined smoothing; RMA (SMMA) for simplicity.
Volatility Type: ATR includes gaps; ADR is useful for gapless strategies.
Plotted as area fills, 0 to 100 scaled.
5. Volume Z-Score
%R Length: Normalizes volume to percentile range (73 swing, 112 exhaustion).
Z-Score Lengths: Compares short-term and long-term volume trends with Z-scores of volume.
Fast Z-Score < Slow Z-Score = Gives a Volume Squeeze.
Fast MA > Slow MA = Bullish Volume Divergence; volume has been fired. Not via Z-score, but instead via SMA, ALMA, and RMA of volume.
WPR Volume: Weighted %R used to highlight exhaustion/pivot points.
Plot volume bars after a volume squeeze has been fired; if bars aren't plotted, then it's under squeeze. Backtest on ES1! Prove it's good for catching bottoms below 15 minutes as well.
6. Divergence Engine
Pivot Settings: Pivot Period (12), Divergence minval Lookback (5), and max Lookback Bars (100) control sensitivity. Works well on any asset class; these are the optimal settings for the RSI.
Source Options: RSI, MACD, ADX, DI difference, or Volume %R.
Divergence Type:
Regular: Classic reversal signals.
Hidden: Continuation signals.
Heikin Ashi Mode: Enables use of HA candles on normal charts for smoother pivots. May distort values if your chart is H.A. so leave it unchecked then.
7. Squeeze Momentum (SQZMOM)
Squeeze Types:
Wide (Black): Regular compression
Normal (Red), Regular Squeeze
Narrow (Yellow), Golden Squeeze
Very Narrow (Purple) Extreme compression
Fired (Green): Breakout detected
Plotted as circles on the bottom of my indicator.
Momentum Bar Colors:
Cyan: Rising momentum
Blue: Pullback within uptrend
Red: Falling momentum
Yellow: Correction within downtrend
Reversal Lines: Dashed lines indicate momentum crossing its Jurik MA (DM-Style Pivots).
Plotted as squares on the top of my indicator.
8. Rate of Change (RoC)
RoC of Momentum: EMA-smoothed RoC on momentum for leading signals. Double smoothed, once and then another time for smoother signals.
Signal Line: JMA used to filter noise and generate reversal signals.
Crossovers: Bullish/bearish signals based on RoC vs signal line are plotted as triangles directly on your chart.
Optimized: Backtested for short-term setups like 1H or faster. Works on Daily timeframes as well for Futures.
9. Multi-Timeframe Squeeze Settings
Each timeframe (Hourly, 4H, Daily, Weekly, Monthly) has:
Reversal Toggle: Enables dashed line DM-Style Pivots on crossovers.
MA Length: For Jurik MA smoothing on momentum.
BB/KC Thresholds: Define squeeze sensitivity per timeframe. A shorter BB/KC length, 17-14-12, responds better on lower timeframes.
Momentum Length: Tailors oscillator responsiveness; 20 is ideal.
10. BB Std. Deviation Scaling
Low-Pass Super Smoother : Smooths (True Range) noise for BBs.
High-Pass Butterworth : Extracts cycles for BB Stdv. blend.
Root Mean Squared : Dynamic BB width adjustment based on market activity.
11. Alerts
RSI: Overbought/oversold reversals. Several types.
MACD: Histogram shift through zero line.
DMI/ADX: Crossovers and strength conditions. The 17 key level is used for the ADX.
Volume: Smart Money alerts on low-volume zones. May concentrate on ICT sessions.
Squeeze: Alerts on all 5 squeeze states.
Momentum: Crosses and reversals.
RoC: Bullish and bearish crosses.
Divergences: Regular, hidden, combined.
12. Visual Output Summary
RSI Line + MA/BBs
MACD Histogram Bar Colors
DMI/ADX as area fills
Volume %R columns
Squeeze Momentum Shapes and Dots
RoC Crossover Arrows
DM-style Breakout Pivots
Divergence Lines and Labels
Best Practices
Watch the slope of the RSI for pullbacks on a strong trend. Combine it with squeeze for exit timing.
Combine RSI Divergence with MACD histogram cross and Squeeze firing for precise entry.
Use Volume Z-Score to filter for institutional activity, and enter Long. Watch for reversals as well.
Watch RoC crossovers for fast, leading signals.
Enable Reversal Lines on 1H+ charts for breakout or breakdown pivots.
Use multi-timeframe thresholds for swing confirmation. The TFs I use the most are 2-5-15 minutes for futures and swinging with 1 hour daily and weekly. Those are the TFs I backtested.
KT Gaussian Bands🎯 Overview
KT Gaussian Bands is an advanced technical indicator that uses Gaussian-weighted smoothing to create dynamic support and resistance bands. This sophisticated algorithm provides high-quality buy and sell signals by filtering market noise and adapting to price volatility.
🔬 How It Works
The indicator employs a Gaussian weighting function to smooth price data, creating more accurate trend detection compared to traditional moving averages. The algorithm calculates:
Dynamic Upper Band (Resistance Level)
Dynamic Lower Band (Support Level)
Adaptive Signal Generation based on price interaction with bands
📊 Key Features
✨ Smart Signal Generation
🔺 BUY Signal: When price crosses below the lower band and bounces back up
🔻 SELL Signal: When price crosses above the upper band and drops back down
Real-time arrows displayed directly on the chart
⚙️ Customizable Parameters
Bandwidth (h): Controls the smoothness of the calculation (Default: 8.0)
Multiplier: Adjusts the sensitivity of the bands (Default: 3.0)
Source: Choose your preferred price source (Default: Close)
Repainting Mode: Toggle between real-time and historical accuracy
🎨 Visual Elements
Color-coded bands (Teal for upper, Red for lower)
Clear arrow signals for entry/exit points
Clean dashboard showing current mode status
📈 Trading Applications
Best Timeframes
Works effectively on all timeframes
Particularly strong on 15M, 1H, and 4H charts
Daily charts for swing trading setups
Trading Strategies
Trend Following: Use signals in the direction of the major trend
Mean Reversion: Trade bounces off the bands in ranging markets
Breakout Confirmation: Validate breakouts with band penetration
Risk Management
Use stop-loss below/above the opposite band
Position size based on band width (wider = higher volatility)
Combine with other indicators for confirmation
⚠️ Important Notes
Repainting Mode
Enabled: Shows the most accurate current analysis (may change on live bars)
Disabled: Historical signals remain fixed (recommended for backtesting)
Best Practices
Don't trade every signal - wait for high-probability setups
Consider market context and overall trend direction
Use proper risk management on every trade
Backtest on your preferred timeframes before live trading
🔧 Settings Guide
Bandwidth (8.0): Lower = More responsive, Higher = Smoother
Multiplier (3.0): Lower = More signals, Higher = Fewer but stronger signals
Repainting: Enable for live analysis, Disable for backtesting
📊 Performance Characteristics
Low Lag: Responds quickly to price changes
Noise Reduction: Filters out false signals effectively
Adaptive: Automatically adjusts to market volatility
Versatile: Works across different market conditions
🎓 Educational Value
This indicator demonstrates advanced mathematical concepts in trading:
Gaussian distribution applications in finance
Dynamic volatility adjustment
Weighted moving average techniques
⭐ Why Choose KT Gaussian Bands?
Mathematically Sound: Based on proven statistical methods
User-Friendly: Clear signals with minimal complexity
Flexible: Adapts to your trading style and timeframe
Reliable: Consistent performance across market conditions
Disclaimer: This indicator is for educational and informational purposes only. Always use proper risk management and never risk more than you can afford to lose. Past performance does not guarantee future results.
Dynamic Gap Probability ToolDynamic Gap Probability Tool measures the percentage gap between price and a chosen moving average, then analyzes your chart history to estimate the likelihood of the next candle moving up or down. It dynamically adjusts its sample size to ensure statistical robustness while focusing on the exact deviation level.
Originality and Value:
• Combines gap-based analysis with dynamic sample aggregation to balance precision and reliability.
• Automatically extends the sample when exact matches are scarce, avoiding misleading signals on rare extreme moves.
• Provides real “next-candle” probabilities based on historical occurrences rather than fixed thresholds or untested heuristics.
• Adds value by giving traders an evidence-based edge: you see how similar past deviations actually played out.
How It Works:
1. Calculate gap = (close – moving average) / moving average * 100.
2. Round the absolute gap to nearest percent (X%).
3. Count historical bars where gap ≥ X% above or ≤ –X% below.
4. If exact X% count is below the minimum occurrences threshold, include gaps at X+1%, X+2%, etc., until threshold is reached.
5. Compute “next-candle” green vs. red probabilities from the aggregated sample.
6. Display current gap, sample size, green probability, and red probability in a table.
Inputs:
• Moving Average Type (SMA, EMA, WMA, VWMA, HMA, SMMA, TMA)
• Moving Average Period (default 200)
• Minimum Occurrences Threshold (default 50)
• Table position and styling options
Examples:
• If price is 3% above the 200-period SMA and 120 occurrences ≥3% are found, with 84 green next candles (70%) and 36 red (30%), the script displays “3% | 120 | 70% green | 30% red.”
• If price is 8% below the SMA but only 20 exact matches exist, the script will include 9% and 10% gaps until it reaches 50 samples, then calculate probabilities from that broader set.
Why It’s Useful:
• Mean-reversion traders see green-probability signals at extreme overbought or oversold levels.
• Trend-followers identify continuation likelihood when red probability is high.
• Risk managers gauge reliability by inspecting sample size before acting on any signal.
Limitations:
• Historical probabilities do not guarantee future performance.
• Results depend on timeframe and symbol, backtest with your data before trading.
• Use realistic slippage and commission when overlaying on strategy scripts.
Floor and Roof Indicator with SignalsFloor and Roof Indicator with Trading Signals
A comprehensive support and resistance indicator that identifies premium and discount zones with automated signal generation.
Key Features:
Dynamic Support/Resistance Zones: Calculates floor (support) and roof (resistance) levels using price action and volatility
Premium/Discount Zone Identification: Highlights areas where price may find resistance or support
Customizable Signal Frequency: Control how often signals are displayed (every Nth occurrence)
Visual Signal Table: Optional table showing the last 5 long and short signal prices
Multiple Timeframe Compatibility: Works across all timeframes
Technical Details:
Uses ATR-based calculations for dynamic zone width adjustment
Combines Bollinger Bands with highest/lowest price analysis
Smoothing options for cleaner signal generation
Fully customizable colors and display options
How to Use:
Floor Zones (Blue): Potential support areas where long positions may be considered
Roof Zones (Pink): Potential resistance areas where short positions may be considered
Signal Crosses: Visual markers when price interacts with key levels
Signal Table: Track recent signal prices for analysis
Settings:
Length: Period for calculations (default: 200)
Smooth: Smoothing factor for cleaner signals
Zone Width: Adjust the thickness of support/resistance zones
Signal Frequency: Control signal display frequency
Visual Options: Customize colors and table position
Alerts Available:
Long signal alerts when price touches discount zones
Short signal alerts when price reaches premium zones
Educational Purpose: This indicator is designed to help traders identify potential support and resistance areas. Always combine with proper risk management and additional analysis.
This description focuses on the technical aspects and educational value while avoiding any language that could be interpreted as financial advice or guaranteed profits.
User-Defined Volume Average ComparisonThe User-Defined Volume Average Comparison indicator empowers traders to analyze volume trends by comparing short-term and long-term volume moving averages. With customizable periods, visual cues, and built-in alerts, it’s a versatile tool for identifying volume-driven market shifts across any timeframe, ideal for stocks, forex, crypto, and more.Key Features: Customizable Periods: Set short and long periods (in bars) to match your trading strategy.
Conditional Highlighting:
Green Background: Short-period volume average ≥ long-period volume average, signaling strong short-term volume.
Red Background: Short-period volume average < long-period volume average / 2, indicating low short-term volume.
Optional Labels: Toggle labels to display conditions on the chart (default: off).
Alerts: Receive notifications for key conditions: “Short ≥ Long Alert” for high volume periods.
“Short < Long/2 Alert” for low volume periods.
Visualized Averages: Plots short-period (blue) and long-period (red) volume moving averages for easy analysis.
How It Works:
The indicator calculates the simple moving average (SMA) of volume over user-defined short and long periods, then compares them: A green background and alert trigger when the short-period average meets or exceeds the long-period average, suggesting increased volume activity.
A red background and alert trigger when the short-period average falls below half of the long-period average, indicating reduced volume.
Labels (if enabled) display “Short ≥ Long” or “Short < Long/2” for clarity.
Settings: Short Period (Bars): Number of bars for the short-term volume average (default: 3).
Long Period (Bars): Number of bars for the long-term volume average (default: 50).
Show Labels: Enable or disable condition labels (default: off).
Use Cases: Trend Confirmation: Use green alerts to confirm high volume during breakouts or trend continuations.
Divergence Detection: Identify low volume periods with red alerts to spot potential reversals or weak trends.
Multi-Timeframe Analysis: Apply on any timeframe (e.g., 4H, 1D), with periods based on bars (e.g., 3 bars on 4H = 12 hours).
Notes: Periods are based on the chart’s timeframe (bars). For shorter timeframes, consider increasing period values for more significant results.
Set alerts to “Once Per Bar Close” for reliable notifications.
Combine with price-based indicators to enhance trading decisions.
Why Use This Indicator?
This indicator offers a flexible, alert-driven approach to volume analysis, helping traders of all levels make informed decisions. Its intuitive design and customizable settings make it a valuable addition to any trading setup.
EMAs 60/125/250 + Swing-Struktur + CCI-AlertsEMAs 60/125/250 + Swing-Points + CCI-Alerts / crossover 100 /-100
ICT Daily BiasSimple indicator for Daily Chart using ICT principles to suggest Reversal or Continuation, with next day suggested Draw on Liquidity.
USAGE: In AM session, go into 1m chart / Replay mode and back up to 11:59pm of prior trading day for projected draw on liquidity for current day trading session.
Candle Emotion Oscillator [CEO]Candle Emotion Oscillator (CEO) - Revolutionary User Guide
🧠 World's First Market Psychology Oscillator
The Candle Emotion Oscillator (CEO) is a groundbreaking indicator that measures market emotions through pure candle price action analysis. This is the first oscillator ever created that translates candle patterns into psychological states, giving you unprecedented insight into market sentiment.
🚀 Revolutionary Concept
What Makes CEO Unique
100% Pure Price Action: No volume, no external data - just candle analysis
Market Psychology: Measures actual emotions: Fear, Greed, Panic, Euphoria
Never Been Done Before: First oscillator to analyze market emotions
Exhaustion Prediction: Detects emotional fatigue before reversals
Fast Response: Perfect for your 2-5 minute scalping setup
The Four Core Emotions
🟢 GREED (Positive Values)
What it measures: Market conviction and decisiveness
Candle Pattern: Large bodies, small wicks
Psychology: Traders are confident and decisive
Oscillator: Positive values (0 to +100)
Trading Implication: Trend continuation likely
🔴 FEAR (Negative Values)
What it measures: Market uncertainty and indecision
Candle Pattern: Small bodies, large wicks
Psychology: Traders are uncertain and hesitant
Oscillator: Negative values (0 to -100)
Trading Implication: Consolidation or reversal likely
🚀 EUPHORIA (Extreme Positive)
What it measures: Excessive optimism and buying pressure
Candle Pattern: Large green bodies with upper wicks
Psychology: Extreme bullish sentiment
Oscillator: Values above +60
Trading Implication: Overbought, reversal warning
💥 PANIC (Extreme Negative)
What it measures: Capitulation and selling pressure
Candle Pattern: Large red bodies with lower wicks
Psychology: Extreme bearish sentiment
Oscillator: Values below -60
Trading Implication: Oversold, reversal opportunity
📊 Visual Elements Explained
Main Components
Thick Colored Line: Primary emotion oscillator
Green: Greed (positive emotions)
Red: Fear (negative emotions)
Bright Green: Euphoria (extreme positive)
Dark Red: Panic (extreme negative)
Thin Blue Line: Emotion trend (longer-term context)
Background Gradient: Emotional intensity
Darker = stronger emotions
Lighter = weaker emotions
Diamond Signals: 🔶 Emotional exhaustion detected
Rocket Signals: 🚀 Extreme euphoria warning
Explosion Signals: 💥 Extreme panic warning
Information Table (Top Right)
Swing Structure [HH HL LH LL + 😎 + 👻]Tracks real-time swing structure (HH, HL, LH, LL) using confirmed pivot points. Shows ghost 👻 and cool 😎 emojis at key higher low setups. Great for identifying breakout retests and trend continuation zones. No repaint.
Heiken Ashi CVD v6.8🔷 Heiken Ashi CVD v6.8 — Predictive Gann HiLo + Momentum-Scored Trend System
Overview:
This premium-grade indicator blends the power of Heiken Ashi smoothing, real CVD (Cumulative Volume Delta), and a predictive Gann Hi-Lo trend engine — engineered for precision, clarity, and long-term stability.
💡 What it Does:
✅ Plots Smart Candles using your choice of:
Real CVD-based candles
Heiken Ashi CVD (for smoother order-flow clarity)
Or Heiken Ashi Price (as a fallback or volatility filter)
🔁 Switches Between 5 Trend Modes:
Gann HiLo – Traditional swing logic using high/low smoothing
HMA – Fast-reacting trend detection with Hull MA
GH-HMA (Average) – Balanced hybrid of HMA and SMA
GH-HMA (Confirm) – Requires both HMA and SMA to agree
GH-HMA (Score Weighted) – Uses intelligent scoring + momentum to confirm directional confidence
⚡ Optional Momentum Acceleration Filter:
Detects trend momentum surges using ROC (Rate of Change)
Filters weak signals in Score Weighted mode for higher confidence entries
User-toggleable: enable or disable as needed
📢 Alerts You ONLY When It Matters:
Buy/Sell signals fire only when both Price and your selected CVD/HA source close beyond the Gann HiLo trendline
Ensures the trend has flipped direction, not just flickered
🛡️ Failsafe Design:
Auto-fallback to HA Price if CVD data is unavailable
Candle logic and MA signals adapt seamlessly to selected source
Non-repainting, lightweight, multi-timeframe compatible
🎯 Ideal For:
Traders who want clean, high-probability trend signals
Volume delta analysts using Heiken Ashi-enhanced CVD
Professionals seeking a blend of visual clarity + confirmation logic
Anyone who wants predictive edge without repainting
🧠 Bonus:
Built with professional-grade logic, clean UI, and future-proof structure.
Fully customizable and user-friendly.
💎 Free to Use — Give Back, Not Guess
This tool was built to empower traders with transparent logic, predictive structure, and real insight — not just colors and noise.
Use it. Share it. Improve it.
Volume Spikes with EMA LabelVolume Spikes with EMA Label (by Emilio TRIUNFO)
Highlights significant volume surges by comparing real-time volume against a customizable EMA threshold multiplied by 1.5 (default).
Visually marks high-volume bars with colored labels on the chart to help identify strong market activity and trading opportunities.
Adjustable EMA length and multiplier allow flexibility for different strategies.
Relative Strength Suite [BLC]📊 Relative Strength Suite
A powerful, all-in-one relative strength toolkit for traders and analysts. Whether you're a trend follower, momentum trader, or sector rotator, this script gives you the flexibility to analyze and screen assets using three distinct RS methodologies—all in one clean interface.
🔍 What It Does
Flexible Relative Strength allows you to compare any asset to a benchmark (like SP:SPX , NASDAQ:QQQ , AMEX:IWM , etc.) using one of four modes:
📈 Relative Strength – Classic price ratio comparison
📘 Dorsey Relative Strength – Smoothed trend-based RS using EMA
📒 Mansfield Relative Strength – Momentum-based RS normalized to its own average
🧮 Screener Mode – Load Indicator into Pine Screener to see all 3 values.
🛠️ Key Features & Settings
🧩 Relative Strength
Comparison Symbol: Select the ticker you want to use as a benchmark.
Highlights new highs/lows in Relative Strength with dynamic line coloring:
🟢 Green = New high (outperformance)
🔴 Red = New low (underperformance)
Optional moving average overlay (SMA, EMA, WMA, HMA) for trend smoothing.
✅ Use Case: Identify when a stock is gaining strength relative to the market or sector.
📘 2. Dorsey RS (Smoothed Trend)
Uses an EMA of the RS ratio to smooth out noise.
Rising Dorsey RS = consistent outperformance.
Falling Dorsey RS = consistent underperformance.
✅ Use Case: Spot long-term relative trends regardless of price volatility.
📒 3. Mansfield RS (Performance Momentum)
Compares RS ratio to its own long-term SMA (default 200).
Values above 0 = outperforming the benchmark.
Values below 0 = underperforming.
✅ Use Case: Ideal for momentum traders and Stan Weinstein-style stage analysis.
🧮 4. Screener Mode
Not for use on your chart. This is only to use in TradingView's Pine Screener.
Displays all three RS lines simultaneously.
Includes all 3 modes to act as screener signals
🛠️How to Use Screener Mode
Add this indicator to your favorites list.
Open Pine Screener and select this indicator.
Select your timeframe.
Click Settings & Change Strength Type to Screener > Click Apply
Hit Scan!
New High Low Signal: Finds stocks making a new RS high (1) or low (-1) over your lookback period.
Dorsey Trend Signal: Finds stocks where the smoothed RS trend is rising (1) or falling (-1).
Mansfield Zone Signal: Finds stocks where momentum is in the positive zone (1) or negative zone (-1)
✅ Use Case: Quickly scan multiple assets for relative strength breakouts, trend shifts, or momentum zones.
🧪 Pro Tip
Combine this indicator with volume, price structure, or moving averages to confirm breakouts and trend strength. Use Screener Mode on a watchlist to identify top RS candidates in seconds.
To clean up your screener table, click the column settings icon ( ⋮ ) and uncheck any columns you don't need to see. You can still filter by them even if they are hidden.
📝 Credits & Notes
Inspired by classic RS methods (including Dorsey and Mansfield).
Final, production-ready version with tooltips, labels, and screener outputs.
For educational and informational purposes—always test before live trading!
Let me know if you see any bugs, miscalculations, or any features you'd like to see added to it!
RSI Multi-Timeframe Dashboard by giua64)### Summary
This is an advanced dashboard that provides a comprehensive overview of market strength and momentum, based on the Relative Strength Index (RSI) analyzed across 6 different timeframes simultaneously (from 5 minutes to the daily chart).
The purpose of this script is to offer traders an immediate and easy-to-read summary of market conditions, helping to identify the prevailing trend direction, overbought/oversold levels, and potential reversals through divergence detection. All of this is available in a single panel, eliminating the need to switch timeframes on your main chart.
### Key Features
* **Multi-Timeframe Analysis:** Simultaneously monitors the 5m, 15m, 30m, 1H, 4H, and Daily timeframes.
* **Scoring System:** Each timeframe is assigned a score based on multiple RSI conditions (e.g., above/below 50, overbought/oversold status, direction) to quantify bullish or bearish strength.
* **Aggregated Signal:** The dashboard calculates a total percentage score and provides a clear summary signal: **LONG**, **SHORT**, or **WAIT**.
* **Divergence Detection:** Automatically identifies Bullish and Bearish divergences between price and RSI for each timeframe.
* **Non-Repainting Option:** In the settings, you can choose to base calculations on the close of the previous candle (`Use RSI on Closed Candle`). This ensures that past signals (like status and score) do not change, providing more reliable data for analysis.
* **Fully Customizable:** Users can modify the RSI period, overbought/oversold thresholds, divergence detection settings, and the appearance of the table.
### How to Read the Dashboard
The table consists of 6 columns, each providing specific information:
* **% (Total Score):**
* **Header:** Shows the overall strength as a percentage. A positive value indicates bullish momentum, while a negative value indicates bearish momentum. The background color changes based on intensity.
* **Rows:** Displays the numerical score for the individual timeframe.
* **RSI:**
* **Header:** The background color indicates the average of all RSI values. Green if the average is > 50, Red if < 50.
* **Rows:** Shows the real-time RSI value for that timeframe.
* **Signal (Status):**
* **Header:** This is the final operational signal. It turns **🟢 LONG** when bullish strength is high, **🔴 SHORT** when bearish strength is high, and **⚪ WAIT** in neutral conditions.
* **Rows:** Describes the RSI status for that timeframe (e.g., Bullish, Bearish, Overbought, Oversold).
* **Dir (Direction):**
* **Header:** Displays an arrow representing the majority direction across all timeframes.
* **Rows:** Shows the instantaneous direction of the RSI (↗️ for rising, ↘️ for falling).
* **Diverg (Divergence):**
* Indicates if a bullish (`🟢 Bull`) or bearish (`🔴 Bear`) divergence has been detected on that timeframe.
* **TF (Timeframe):**
* Indicates the reference timeframe for that row.
### Advantages and Practical Use
This tool was created to solve a common problem: the need to analyze multiple charts to understand the bigger picture. With this dashboard, you can:
1. **Confirm a Trend:** A predominance of green and a "LONG" signal provides strong confirmation of bullish sentiment.
2. **Identify Weakness:** Red signals on higher timeframes can warn of an impending loss of momentum.
3. **Spot Turning Points:** A divergence on a major timeframe can signal an excellent reversal opportunity.
### Originality and Acknowledgements
This script is an original work, written from scratch by giua64. The idea was to create a comprehensive and visually intuitive tool for RSI analysis.
Any feedback, comments, or suggestions to improve the script are welcome!
**Disclaimer:** This is a technical analysis tool and should not be considered financial advice. Always do your own research and backtest any tool before using it in a live trading environment.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
giua64
borsamercati.it – Educational tools by giua64
Anche su:
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Swing High & Low MarkerMarks swing high and low candles
Swing high candle:
A candle whose high is higher than the highs of the candles immediately before and after it.
Swing low candle:
A candle whose low is lower than the lows of the candles immediately before and after it.