Multiple Candlestick Patterns - AlgomaxxA comprehensive candlestick pattern detection indicator that identifies seven major Japanese candlestick patterns in real-time. This indicator helps traders identify potential reversal and continuation patterns with customizable visual alerts and labels.
Features
Detects 7 major candlestick patterns:
Doji
Hammer
Shooting Star
Bullish Engulfing
Bearish Engulfing
Morning Star
Evening Star
Color-coded candlesticks for easy pattern identification
Customizable pattern indicators above/below candles
Optional pattern labels with adjustable position
Alert conditions for each pattern
Grouped settings for easy customization
Settings
General Settings
Lookback Period: Number of candles to analyze (default: 20)
Body Size Threshold: Minimum relative size for candle body (default: 0.6)
Pattern Settings
Toggle visibility for each pattern type:
Doji Pattern
Hammer Pattern
Shooting Star Pattern
Bullish Engulfing Pattern
Bearish Engulfing Pattern
Morning Star Pattern
Evening Star Pattern
Label Settings
Show Labels: Toggle pattern labels on/off
Label Text Color: Customize label color
Label Position: Choose between Left/Center/Right alignment
Label Offset: Adjust distance of labels from candles
Pattern Descriptions
Doji: Shows indecision when open and close prices are very close
Yellow color
Cross symbol below candle
Hammer: Potential bullish reversal with long lower shadow
Green color
Triangle up symbol below candle
Shooting Star: Potential bearish reversal with long upper shadow
Red color
Triangle down symbol above candle
Bullish Engulfing: Bullish reversal pattern where current green candle completely engulfs previous red candle
Light green color
Triangle up symbol below candle
Bearish Engulfing: Bearish reversal pattern where current red candle completely engulfs previous green candle
Light red color
Triangle down symbol above candle
Morning Star: Three-candle bullish reversal pattern
Seafoam green color
Triangle up symbol below candle
Evening Star: Three-candle bearish reversal pattern
Pink red color
Triangle down symbol above candle
How to Use
Add the indicator to your chart
Customize the settings based on your preferences:
Enable/disable specific patterns you want to monitor
Adjust label settings for better visibility
Set up alerts for patterns you want to be notified about
Pattern Recognition:
Watch for color changes in candlesticks indicating pattern formation
Look for shape indicators above/below candles
Read pattern labels for quick pattern identification
Trading Suggestions:
Use in conjunction with other technical indicators
Consider overall trend and support/resistance levels
Confirm patterns with volume and price action
Wait for pattern completion before making trading decisions
Tips
Patterns work best when used with multiple timeframes
Combine with trend lines and support/resistance levels
Use volume to confirm pattern strength
Consider market context and overall trend
Larger timeframes typically produce more reliable signals
Use alerts to avoid missing important pattern formations
Disclaimer
This indicator is for informational and educational purposes only. No guarantee is made regarding the accuracy of pattern detection or potential future price movements. Always use proper risk management and consider multiple factors before making trading decisions.
Chart-Muster
CMP vs ATH PercentageThis indicator helps traders and investors track how the current market price (CMP) compares to the all-time high (ATH) price of an asset. It calculates the percentage difference between the CMP and ATH and displays it visually on the chart. A label is placed on the latest bar, showing key information like:
ATH (All-Time High Price)
CMP (Current Market Price)
Percentage Comparison (CMP as a percentage of ATH)
Additionally, the indicator plots a horizontal line at the ATH level to provide a clear visual reference for the price history.
Use Cases:
Identify price levels relative to historical highs.
Gauge whether the price is nearing or far from its ATH.
Quickly assess how much the price has recovered or declined from the ATH.
Customization:
You can modify the label's style, color, or text formatting according to your preferences. This indicator is useful for long-term analysis, especially when tracking stocks, indices, or other financial instruments on a weekly timeframe.
Note:
This indicator is designed to work on higher timeframes (e.g., daily or weekly) where ATH levels are more meaningful.
Candlesticks Not Touching EMA 3 & EMA 5 ScannerCandlesticks Not Touching EMA 3 & EMA 5 Scanner
Short Title: EMA Scanner
Overview
This indicator scans for candlesticks that do not touch the EMA 3 and EMA 5, highlighting potential trading opportunities where price action is significantly distanced from these moving averages. It identifies momentum-based entries and helps traders spot strong trends.
How It Works
It checks if the candle's high and low are completely above or below both EMAs (3 & 5).
It ensures that the distance between the candle and EMA 5 is at least a user-defined multiple of the candle range.
When a valid candle is detected, a triangle marker appears below (for long trades) or above (for short trades).
Trade Execution Strategy
Entry:
Long Entry → Break of the candle’s high
Short Entry → Break of the candle’s low
Stop Loss:
Long SL → Low of the same candle
Short SL → High of the same candle
Target: EMA 5
Additional Features
✅ Plots EMA 3 (Blue) and EMA 5 (Red) for reference
✅ Marks potential long and short trades with arrows
✅ Detects & plots when Target or Stop Loss is hit
✅ Alerts for valid signals, target hits, and stop loss hits
Best Use Cases
🔹 Suitable for intraday & swing traders looking for momentum-based trades
🔹 Works well in trending markets
🔹 Helps identify mean-reversion & breakout opportunities
🚀 Use this indicator to refine your trading setups & boost your market edge! 🚀
Key Levels Theory with Boxes v3Key Levels Theory with Boxes
This script helps traders visualize important price levels and mark them with lines and boxes on a chart. The lines represent key whole number levels, and the boxes give you a visual reference to see how price interacts with these levels. This tool can be used to track support/resistance areas and anticipate price movement based on round numbers.
Key Functions:
Lines:
The script draws horizontal lines at key price levels (e.g., 2850, 2855, 2860, etc.) starting from a defined "start level."
The lines are dashed by default and their appearance can be customized (color, style, width).
Boxes:
For each level, a box is drawn above and below the line.
The size of the box is fixed (1.5 units above and below the level) and it can be customized to any other interval.
The box is filled with a green color by default, with 5% opacity, so it doesn’t overpower the chart but still provides a visual reference.
Customizable Inputs:
Start Level: The starting price level from which all other levels will be calculated (e.g., 2850).
Number of Levels: How many levels of lines and boxes you want to display (e.g., 6 levels).
Box Interval: The distance above and below each level to define the size of the boxes (default is 1.5).
Line Style: The appearance of the lines (solid, dotted, or dashed).
Line Color: The color of the lines (default is white).
Line Width: The width of the lines (default is set to 0 for a cleaner look).
Box Color: The color of the boxes (default is green with 5% opacity).
What Does It Do?
Visualizes price levels: The script plots key price levels and helps traders easily identify where price is currently at, relative to whole number levels.
Marks support/resistance: These levels often act as psychological price points, making them useful for spotting potential support or resistance.
Helps with trade decisions: By seeing how the price behaves around these key levels, traders can make more informed decisions about entering or exiting positions.
Daily Time TheoryDaily Time Theory Indicator
The Daily Time Theory indicator is a versatile tool designed exclusively for daily charts. It dynamically colors daily candles according to the day of the week using customizable colors, making it easy to visually distinguish between Monday through Friday. In addition, it provides the option to display horizontal lines for key price levels (Open, High, Low, and Close) for each day. These lines extend into the future for a user-defined number of weeks, giving traders a clear view of historical support and resistance levels.
Key Features:
Day-Based Candle Coloring:
Each weekday’s candles are automatically colored based on user-defined color settings (e.g. blue for Monday, green for Tuesday, etc.), enhancing chart clarity and enabling quick visual analysis of daily patterns.
Customizable Price Level Lines:
Traders can toggle on or off the display of the Open, High, Low, and Close price levels for each day. This allows you to focus on the specific data points that are most relevant to your trading strategy.
Extended Projections:
The indicator lets you extend the drawn price level lines for multiple weeks. This feature provides insight into historical price levels and helps identify potential support and resistance areas.
Tiny Labels for Clarity:
Each line drawn comes with a small, unobtrusive label at its far right that clearly indicates whether the line represents the Open, High, Low, or Close. This ensures that you always know which price level is being highlighted without cluttering the chart.
User-Friendly Input Grouping:
The inputs are neatly organized into groups by day, making it simple to adjust colors and toggle settings for each weekday independently.
How It Works:
The indicator automatically detects the current day on a daily chart and assigns a corresponding color to the candles.
It stores each day’s Open, High, Low, and Close values using persistent variables so that historical price levels remain visible.
When toggled on, horizontal lines representing the selected price levels are drawn across the chart. A tiny label is attached to the end of each line, indicating the type of price level.
The extended lines allow you to see how historical daily price levels may act as support or resistance in the future.
Usage Recommendations:
This indicator is best used on daily timeframes for markets with regular trading sessions. It is ideal for traders who wish to analyze intra-week price behavior, identify recurring support and resistance levels, and incorporate daily price structure into their trading strategy.
Candle Range TheoryCandle Range Analysis:
Calculates the true range of each candle
Shows a 14-period SMA of the range (adjustable)
Dynamic bands based on standard deviation
Visual Components:
Colored histogram showing range deviations from mean
Signal line for oscillator smoothing
Expansion/contraction zones marked with dotted lines
Arrow markers for extreme range conditions
Key Functionality:
Identifies range expansion/contraction relative to historical volatility
Shows normalized range oscillator (-100% to +100% scale)
Includes visual and audio alerts for extreme range conditions
Customizable parameters for sensitivity and smoothing
Interpretation:
Red zones indicate above-average volatility/expansion
Green zones indicate below-average volatility/contraction
Crossings above/below zero line show range expansion/contraction
Signal line crossover system potential
Bitcoin Liquidity Breakout with ICT StrategiesBitcoin Liquidity Breakout with ICT Strategies
a one of many scripts developed by our engineers .
Check the results for yourself
OmniPulse (Fixed Version)OmniPulse (Fixed Version) – Description
OmniPulse is a multi-indicator framework designed to combine three core oscillators—RSI, Stochastic, and Momentum—at various lookback lengths, then refine their signals using placeholder features such as machine learning forecasting, adaptive cycle detection, and neural network filtering. While some of these advanced features are not natively supported in Pine Script, they are represented here in simplified forms to illustrate how a more sophisticated system could be structured.
Key Components:
Multi-Length Oscillator Arrays
RSI (calcrsi() function)
Stochastic (placeholder via ta.sma() on a typical price average)
Momentum (ta.roc())
These are calculated for multiple lengths defined by the rsiLengths, stochLengths, and momentumLengths arrays.
Dual-Threshold Convergence
Compares each oscillator’s value to user-defined upper/lower thresholds (threshold1, threshold2) to identify bullish or bearish conditions.
Summarizes results in a convergence score.
Placeholder Machine Learning Forecast
Demonstrates a simple averaging of oscillator values as a “forecast” when toggled on.
Adaptive Cycle Detection (Placeholder)
Introduces a static cycle period (e.g., 20.0) as a placeholder for more advanced transforms.
Neural Network Filter (Placeholder)
Averages convergence, forecast, and cyclePeriod into a single filteredSignal.
Signal Plotting
Plots the filtered signal on the chart.
Highlights potential bullish or bearish extremes with shape markers based on percentile thresholds.
Practical Use & Extension:
Real Multi-Timeframe Analysis: Replace placeholders with request.security() for each timeframe.
Advanced Forecasting: Incorporate custom or external machine learning models.
Genuine Cycle Detection: Implement more sophisticated logic or user-defined cycle detection tools.
Neural Network Heuristics: Expand the placeholder step into a deeper filtering or weighting system.
Overall, OmniPulse serves as an adaptable blueprint for traders and developers, showcasing how multiple indicators and advanced concepts might be combined into a cohesive, signal-generating framework.
Buyable Gap Ups (BGU) ScreenerBuyable Gap Ups (BGU) Screener
This custom indicator detects Buyable Gap Ups (BGU), designed to identify stocks with significant price movements driven by gap-ups, often signaling strong bullish momentum. It helps traders spot potential opportunities where a stock has gapped up above the previous day's high with increased volume, suggesting the possibility of continued price strength.
Key Features:
Gap Percentage Threshold: Set a minimum gap percentage required for a valid buyable gap-up.
Volume Change Threshold: Identifies gap-ups accompanied by a significant increase in volume compared to the 50-day average.
ATR-Based Gap Detection (Optional): Use Average True Range (ATR) to determine whether the gap is large enough, factoring in recent volatility.
Customizable Lookback Period: Adjust the number of recent bars to track the frequency of BGU occurrences.
Volume Confirmation: Only signals buyable gaps when volume surpasses a defined threshold above the 50-day average.
Input Parameters:
Gap Percentage Threshold: Adjusts the minimum percentage gap for a valid signal.
Volume Change Threshold: Determines the minimum percentage increase in volume compared to the 50-day moving average.
Use ATR Gap: Option to use ATR to determine the minimum gap size instead of the percentage gap.
ATR Multiplier for Gap: Customizes the gap size based on the ATR.
ATR Length: Adjusts the lookback period for calculating ATR.
Lookback Period for BGU: Set the number of bars over which to calculate the BGU count.
Alerts & Signals:
The script will plot signals below bars where a valid BGU condition is met.
Alerts can be set for when a BGU is detected, giving real-time notifications for potential trading opportunities.
This indicator is designed to help traders find stocks showing strong bullish momentum, especially after earnings or other market-moving events, with the potential for continued uptrend. It is ideal for those looking to incorporate gap-based strategies in their trading.
Month of Year Performance█ OVERVIEW
The Month of Year Performance indicator is designed to visualize and compare the cumulative percentage change for each month of the year. By aggregating monthly returns, it helps uncover seasonal trends and potential anomalies in financial markets.
In financial analysis, a calendar based anomaly refers to recurring patterns or tendencies associated with specific time periods, such as days of the week. By calculating the cumulative percentage change for each month (January through December) and displaying the results both graphically and in a summary table, this indicator helps identify whether certain months
consistently outperform others.
█ FEATURES
Customisable time window via Time Settings.
Calculates cumulative percentage change for each month (January to December) separately.
Built-in error check to ensure the indicator is applied on a Monthly timeframe.
Distinct visual representation for each month using unique colours.
Customisable table settings including location and font size.
Displays a performance summary table with metrics such as performance, average return, % positive, and count.
█ HOW TO USE
Add the indicator to a chart set to a Monthly timeframe.
Select your desired Start Time and End Time in the Time Settings.
Toggle the performance table on or off in the Table Settings.
Adjust the table’s location and font size as needed.
View the cumulative monthly performance plotted in distinct colours.
Colour Scheme:
January: Blue
February: Red
March: Green
April: Orange
May: Purple
June: Fuchsia
July: Teal
August: Yellow
September: Navy
October: Lime
November: Maroon
December: Aqua
Day of Week Performance█ OVERVIEW
The Day of Week Performance indicator is designed to visualise and compare the cumulative percentage change for each day of the week. This indicator explores one of the many calendar based anomalies in financial markets.
In financial analysis, a calendar based anomaly refers to recurring patterns or tendencies associated with specific time periods, such as days of the week. By calculating the cumulative percentage change for each day (Monday through Friday) and displaying the results both graphically and in a summary table, this indicator helps identify whether certain days consistently outperform others.
█ FEATURES
Customisable time window via Time Settings.
Calculates cumulative percentage change for each day (Monday to Friday) separately.
Option to use Sunday instead of Friday for CFDs and Futures analysis.
Distinct visual representation for each day using unique colours.
Customisable table settings including position and font size.
Built-in error checks to ensure the indicator is applied on a Daily timeframe.
█ HOW TO USE
Add the indicator to a chart set to a Daily timeframe.
Select your desired Start Time and End Time in the Time Settings.
Toggle the performance table on or off in the Table Settings.
Adjust the table’s location and font size as needed.
Use the "Use Sunday instead of Friday" option if your market requires it.
View the cumulative performance plotted in distinct colours.
Colour Scheme:
Monday: Blue
Tuesday: Red
Wednesday: Green
Thursday: Orange
Friday: Purple
EBL - Enigma BOS Logic: A Comprehensive Multi-Timeframe Trend anThe EBL (Enigma BOS Logic) script is designed for traders seeking an advanced and versatile tool for identifying market trends, breakouts, and critical price levels. This indicator leverages multi-timeframe analysis, trend filtering, and customizable guidance line settings to provide an all-in-one solution for informed trading decisions.
What Does EBL Do?
EBL identifies critical breakout levels (BOS - Break of Structure) on up to three selected timeframes and dynamically plots them as horizontal guidance lines. It combines these levels with trend analysis and user-defined filters to show only the most relevant data. The script offers flexibility to adapt to different trading styles, whether you're a scalper, day trader, or swing trader.
Key Features:
Multi-Timeframe Analysis:
Users can select three distinct timeframes (e.g., 4H, 30m, 15m).
Execution timeframe (e.g., 1m or 5m) overlays the lines from the selected higher timeframes for real-time precision.
Customizable Guidance Lines:
Define line length (horizontal bars) and choose whether lines extend to the current price.
Individual color settings for bullish and bearish lines.
Trend Detection Filter:
Automatically determines the overall market trend based on the 50-period SMA on each selected timeframe.
Displays only bullish lines during uptrends and bearish lines during downtrends.
Time-Limited Display:
Option to show only lines from the last three days, reducing clutter and focusing on recent price action.
Alerts:
Trigger alerts when price breaks above or below critical levels on any selected timeframe.
Users can choose to receive alerts only for specific timeframes.
How Does It Work?
Break of Structure (BOS):
The script captures key high and low levels on each selected timeframe.
Levels are dynamically updated as the market evolves.
Trend Filtering:
Trend direction is determined for each timeframe based on whether the close is above or below its 50-period SMA.
The overall trend combines signals from all three timeframes, providing a balanced and holistic view of the market.
User Control:
Customize everything: timeframes, colors, line behavior, and alert conditions.
Adjust filters to focus on your preferred time horizon (e.g., last 3 days).
How to Use:
Select up to three timeframes based on your trading strategy (e.g., 4H for macro view, 30m for intermediate trends, and 15m for precision).
Enable or disable the trend filter to control whether lines reflect the market's directional bias.
Configure alerts for breakout levels that align with your strategy.
Use the execution timeframe to see how higher timeframe levels interact with real-time price action.
Who Is It For?
This indicator is ideal for:
Trend Traders who want a clear view of directional bias across multiple timeframes.
Breakout Traders who need to identify key resistance and support levels dynamically.
Scalpers and Day Traders who require real-time precision by overlaying higher timeframe levels on lower execution timeframes.
Underlying Concepts:
Break of Structure (BOS): Highlights significant market pivot points, essential for identifying breakout opportunities.
Multi-Timeframe Confluence: Combines insights from various timeframes to create a balanced understanding of price behavior.
Trend Filtering: Ensures clarity by only displaying levels that align with the overall market direction.
EBL - Enigma BOS Logic is not just another breakout indicator. It is a comprehensive tool that combines multi-timeframe analysis, trend detection, and user-centric customization to empower traders with actionable insights. Whether you're analyzing macro trends or executing precision trades, EBL adapts to your strategy and provides clarity in the chaos of the market.
Sweep Candle [odnac]
ATR Imbalance Detection
This feature highlights candles that have a significantly larger range compared to the average true range (ATR).
How it works: A candle is considered imbalanced if its range (high - low) exceeds a specified multiple of the ATR (default multiplier is 1.5, with an ATR length of 5).
Visualization: Such candles are highlighted in yellow.
Engulfing Candle Detection
This feature detects bullish and bearish engulfing candles.
Types
Standard: Traditional engulfing pattern where the current candle fully "engulfs" the previous one.
Sweep: A variation where the candle engulfs the previous one and sweeps the previous low (for bullish) or high (for bearish).
Visualization:
Bullish engulfing patterns are marked with a green triangle below the candle.
Bearish engulfing patterns are marked with a red triangle above the candle.
Momentum Candle Detection
This feature identifies candles with strong upward or downward momentum compared to the previous candle.
Types
Standard: A basic momentum pattern where the current candle continues the price direction with strong momentum.
Sweep: A variation where the candle sweeps the previous low (for bullish) or high (for bearish).
Visualization:
Bullish momentum candles are marked with a green circle below the candle.
Bearish momentum candles are marked with a red circle above the candle.
Summary
This indicator helps traders identify significant market conditions such as imbalances, engulfing candles, and momentum patterns, making it a valuable tool for technical analysis and trend-following strategies.
The customizable settings provide flexibility to adapt the tool to different trading styles.
Bollinger Bounce Reversal Strategy – Visual EditionOverview:
The Bollinger Bounce Reversal Strategy – Visual Edition is designed to capture potential reversal moves at price extremes—often termed “bounce points”—by using a combination of technical indicators. The strategy integrates Bollinger Bands, MACD, and volume analysis, and it provides rich on‑chart visual cues to help traders understand its signals and conditions. Additionally, the strategy enforces a maximum of 5 trades per day and uses fixed risk management parameters. This publication is intended for educational purposes and offers a systematic, transparent approach that you can further adjust to fit your market or risk profile.
How It Works:
Bollinger Bands:
A 20‑period simple moving average (SMA) and a user‑defined standard deviation multiplier (default 2.0) are used to calculate the Bollinger Bands.
When the price reaches or crosses these bands (i.e. falls below the lower band or rises above the upper band), it suggests that the price is in an extreme, potentially oversold or overbought, state.
MACD Filter:
The MACD (calculated with standard lengths, e.g. 12, 26, 9) provides momentum information.
For a bullish (long) signal, the MACD line should be above its signal line; for a bearish (short) signal, the MACD line should be below.
Volume Confirmation:
The strategy uses a 20‑period volume moving average to determine if current volume is strong enough to validate a signal.
A signal is confirmed only if the current volume is at or above a specified multiple (by default, 1.0×) of this moving average, ensuring that the move is supported by increased market participation.
Visual Cues:
Bollinger Bands and Fill: The basis (SMA), upper, and lower Bollinger Bands are plotted, and the area between the upper and lower bands is filled with a semi‑transparent color.
Signal Markers: When a long or short signal is generated, corresponding markers (labels) appear on the chart.
Background Coloring: The chart’s background changes color (green for long signals and red for short signals) on the bars where signals occur.
Information Table: An on‑chart table displays key indicator values (MACD, signal line, volume, average volume) and the number of trades executed that day.
Entry Conditions:
Long Entry:
A long trade is triggered when the previous bar’s close is below the lower Bollinger Band and the current bar’s close crosses above it, combined with a bullish MACD condition and strong volume.
Short Entry:
A short trade is triggered when the previous bar’s close is above the upper Bollinger Band and the current bar’s close crosses below it, with a bearish MACD condition and high volume.
Risk Management:
Daily Trade Limit: The strategy restricts trading to no more than 5 trades per day.
Stop-Loss and Take-Profit:
For each position, a stop loss is set at a fixed percentage away from the entry price (typically 2%), and a take profit is set to target a 1:2 risk-reward ratio (typically 4% from the entry price).
Backtesting Setup:
Initial Capital: $10,000
Commission: 0.1% per trade
Slippage: 1 tick per bar
These realistic parameters help ensure that backtesting results reflect the conditions of an average trader.
Disclaimer:
Past performance is not indicative of future results. This strategy is experimental and provided solely for educational purposes. It is essential to backtest extensively and paper trade before any live deployment. All risk management practices are advisory, and you should adjust parameters to suit your own trading style and risk tolerance.
Conclusion:
By combining Bollinger Bands, MACD, and volume analysis, the Bollinger Bounce Reversal Strategy – Visual Edition provides a clear, systematic method to identify potential reversal opportunities at price extremes. The added visual cues help traders quickly interpret signals and assess market conditions, while strict risk management and a daily trade cap help keep trading disciplined. Adjust and refine the settings as needed to better suit your specific market and risk profile.
[COG] Adaptive Squeeze Intensity 📊 Adaptive Squeeze Intensity (ASI) Indicator
🎯 Overview
The Adaptive Squeeze Intensity (ASI) indicator is an advanced technical analysis tool that combines the power of volatility compression analysis with momentum, volume, and trend confirmation to identify high-probability trading opportunities. It quantifies the degree of price compression using a sophisticated scoring system and provides clear entry signals for both long and short positions.
⭐ Key Features
- 📈 Comprehensive squeeze intensity scoring system (0-100)
- 📏 Multiple Keltner Channel compression zones
- 📊 Volume analysis integration
- 🎯 EMA-based trend confirmation
- 🎨 Proximity-based entry validation
- 📱 Visual status monitoring
- 🎨 Customizable color schemes
- ⚡ Clear entry signals with directional indicators
🔧 Components
1. 📐 Squeeze Intensity Score (0-100)
The indicator calculates a total squeeze intensity score based on four components:
- 📊 Band Convergence (0-40 points): Measures the relationship between Bollinger Bands and Keltner Channels
- 📍 Price Position (0-20 points): Evaluates price location relative to the base channels
- 📈 Volume Intensity (0-20 points): Analyzes volume patterns and thresholds
- ⚡ Momentum (0-20 points): Assesses price momentum and direction
2. 🎨 Compression Zones
Visual representation of squeeze intensity levels:
- 🔴 Extreme Squeeze (80-100): Red zone
- 🟠 Strong Squeeze (60-80): Orange zone
- 🟡 Moderate Squeeze (40-60): Yellow zone
- 🟢 Light Squeeze (20-40): Green zone
- ⚪ No Squeeze (0-20): Base zone
3. 🎯 Entry Signals
The indicator generates entry signals based on:
- ✨ Squeeze release confirmation
- ➡️ Momentum direction
- 📊 Candlestick pattern confirmation
- 📈 Optional EMA trend alignment
- 🎯 Customizable EMA proximity validation
⚙️ Settings
🔧 Main Settings
- Base Length: Determines the calculation period for main indicators
- BB Multiplier: Sets the Bollinger Bands deviation multiplier
- Keltner Channel Multipliers: Three separate multipliers for different compression zones
📈 Trend Confirmation
- Four customizable EMA periods (default: 21, 34, 55, 89)
- Optional trend requirement for entry signals
- Adjustable EMA proximity threshold
📊 Volume Analysis
- Customizable volume MA length
- Adjustable volume threshold for signal confirmation
- Option to enable/disable volume analysis
🎨 Visualization
- Customizable bullish/bearish colors
- Optional intensity zones display
- Status monitor with real-time score and state information
- Clear entry arrows and background highlights
💻 Technical Code Breakdown
1. Core Calculations
// Base calculations for EMAs
ema_1 = ta.ema(close, ema_length_1)
ema_2 = ta.ema(close, ema_length_2)
ema_3 = ta.ema(close, ema_length_3)
ema_4 = ta.ema(close, ema_length_4)
// Proximity calculation for entry validation
ema_prox_raw = math.abs(close - ema_1) / ema_1 * 100
is_close_to_ema_long = close > ema_1 and ema_prox_raw <= prox_percent
```
### 2. Squeeze Detection System
```pine
// Bollinger Bands setup
BB_basis = ta.sma(close, length)
BB_dev = ta.stdev(close, length)
BB_upper = BB_basis + BB_mult * BB_dev
BB_lower = BB_basis - BB_mult * BB_dev
// Keltner Channels setup
KC_basis = ta.sma(close, length)
KC_range = ta.sma(ta.tr, length)
KC_upper_high = KC_basis + KC_range * KC_mult_high
KC_lower_high = KC_basis - KC_range * KC_mult_high
```
### 3. Scoring System Implementation
```pine
// Band Convergence Score
band_ratio = BB_width / KC_width
convergence_score = math.max(0, 40 * (1 - band_ratio))
// Price Position Score
price_range = math.abs(close - KC_basis) / (KC_upper_low - KC_lower_low)
position_score = 20 * (1 - price_range)
// Final Score Calculation
squeeze_score = convergence_score + position_score + vol_score + mom_score
```
### 4. Signal Generation
```pine
// Entry Signal Logic
long_signal = squeeze_release and
is_momentum_positive and
(not use_ema_trend or (bullish_trend and is_close_to_ema_long)) and
is_bullish_candle
short_signal = squeeze_release and
is_momentum_negative and
(not use_ema_trend or (bearish_trend and is_close_to_ema_short)) and
is_bearish_candle
```
📈 Trading Signals
🚀 Long Entry Conditions
- Squeeze release detected
- Positive momentum
- Bullish candlestick
- Price above relevant EMAs (if enabled)
- Within EMA proximity threshold (if enabled)
- Sufficient volume confirmation (if enabled)
🔻 Short Entry Conditions
- Squeeze release detected
- Negative momentum
- Bearish candlestick
- Price below relevant EMAs (if enabled)
- Within EMA proximity threshold (if enabled)
- Sufficient volume confirmation (if enabled)
⚠️ Alert Conditions
- 🔔 Extreme squeeze level reached (score crosses above 80)
- 🚀 Long squeeze release signal
- 🔻 Short squeeze release signal
💡 Tips for Usage
1. 📱 Use the status monitor to track real-time squeeze intensity and state
2. 🎨 Pay attention to the color gradient for trend direction and strength
3. ⏰ Consider using multiple timeframes for confirmation
4. ⚙️ Adjust EMA and proximity settings based on your trading style
5. 📊 Use volume analysis for additional confirmation in liquid markets
📝 Notes
- 🔧 The indicator combines multiple technical analysis concepts for robust signal generation
- 📈 Suitable for all tradable markets and timeframes
- ⭐ Best results typically achieved in trending markets with clear volatility cycles
- 🎯 Consider using in conjunction with other technical analysis tools for confirmation
⚠️ Disclaimer
This technical indicator is designed to assist in analysis but should not be considered as financial advice. Always perform your own analysis and risk management when trading.
Trend Lines by Pivots (Enhanced)### **📌 Detailed Explanation of the TradingView Indicator Code**
This **Pine Script v5** indicator automatically **detects trend lines** based on pivot highs and pivot lows. It helps traders visualize **support and resistance levels** using dynamic trend lines.
---
## **🔹 How the Indicator Works**
The indicator identifies **key pivot points** in price action and then **draws trend lines** connecting them. It works as follows:
1. **Detects Pivot Highs and Lows**:
- A **pivot high** is a local maximum where the price is higher than surrounding bars.
- A **pivot low** is a local minimum where the price is lower than surrounding bars.
2. **Stores the Last Two Pivot Points**:
- The script remembers the last **two pivot highs** and **two pivot lows**.
- These points are used to **draw resistance and support lines** dynamically.
3. **Plots Resistance and Support Lines**:
- The script continuously **updates** and **extends** the trend lines to the right as new pivots are found.
- **Red Line (Resistance):** Connects the last two pivot highs.
- **Green Line (Support):** Connects the last two pivot lows.
---
## **🔹 Code Breakdown**
### **1️⃣ Inputs for User Customization**
```pinescript
leftLen = input.int(2, "Left Pivot Length")
rightLen = input.int(2, "Right Pivot Length")
highLineColor = input.color(color.red, "Resistance Line Color")
lowLineColor = input.color(color.green, "Support Line Color")
```
- **leftLen & rightLen:** Define how many bars on the left and right should be used to confirm a pivot.
- **highLineColor:** Sets the color of the resistance trend line (default: **red**).
- **lowLineColor:** Sets the color of the support trend line (default: **green**).
---
### **2️⃣ Detect Pivot Highs & Lows**
```pinescript
pivotHigh = ta.pivothigh(leftLen, rightLen)
pivotLow = ta.pivotlow(leftLen, rightLen)
```
- `ta.pivothigh(leftLen, rightLen)`: Detects a **pivot high** if it's the highest price in a certain range.
- `ta.pivotlow(leftLen, rightLen)`: Detects a **pivot low** if it's the lowest price in a certain range.
---
### **3️⃣ Store the Last Two Pivot Points**
#### **🔺 Storing Resistance (Pivot Highs)**
```pinescript
var float lastPivotHigh1 = na
var int lastPivotHighIndex1 = na
var float lastPivotHigh2 = na
var int lastPivotHighIndex2 = na
```
- These variables store **the last two pivot highs** and their **bar indices** (position on the chart).
#### **🔻 Storing Support (Pivot Lows)**
```pinescript
var float lastPivotLow1 = na
var int lastPivotLowIndex1 = na
var float lastPivotLow2 = na
var int lastPivotLowIndex2 = na
```
- These variables store **the last two pivot lows** and their **bar indices**.
---
### **4️⃣ Update Pivot Points When New Ones Are Found**
#### **Updating Resistance (Pivot Highs)**
```pinescript
if not na(pivotHigh)
lastPivotHigh2 := lastPivotHigh1
lastPivotHighIndex2 := lastPivotHighIndex1
lastPivotHigh1 := pivotHigh
lastPivotHighIndex1 := bar_index - rightLen
```
- If a new **pivot high** is found:
- The **previous pivot** becomes `lastPivotHigh2`.
- The **new pivot** becomes `lastPivotHigh1`.
- The index (`bar_index - rightLen`) marks where the pivot occurred.
#### **Updating Support (Pivot Lows)**
```pinescript
if not na(pivotLow)
lastPivotLow2 := lastPivotLow1
lastPivotLowIndex2 := lastPivotLowIndex1
lastPivotLow1 := pivotLow
lastPivotLowIndex1 := bar_index - rightLen
```
- Similar to pivot highs, this section updates **pivot lows** dynamically.
---
### **5️⃣ Create and Update Trend Lines**
#### **🔺 Drawing the Resistance Line**
```pinescript
var line highLine = na
if not na(lastPivotHigh2) and not na(lastPivotHigh1)
if na(highLine)
highLine := line.new(lastPivotHighIndex2, lastPivotHigh2, lastPivotHighIndex1, lastPivotHigh1, color=highLineColor, extend=extend.right)
else
line.set_xy1(highLine, lastPivotHighIndex2, lastPivotHigh2)
line.set_xy2(highLine, lastPivotHighIndex1, lastPivotHigh1)
line.set_color(highLine, highLineColor)
```
- If **two pivot highs** exist:
- **First time:** Creates a new **resistance line** connecting them.
- **Updates dynamically:** Adjusts the line when a new pivot appears.
#### **🔻 Drawing the Support Line**
```pinescript
var line lowLine = na
if not na(lastPivotLow2) and not na(lastPivotLow1)
if na(lowLine)
lowLine := line.new(lastPivotLowIndex2, lastPivotLow2, lastPivotLowIndex1, lastPivotLow1, color=lowLineColor, extend=extend.right)
else
line.set_xy1(lowLine, lastPivotLowIndex2, lastPivotLow2)
line.set_xy2(lowLine, lastPivotLowIndex1, lastPivotLow1)
line.set_color(lowLine, lowLineColor)
```
- Same logic applies for **support levels**, creating or updating a **green trend line**.
---
## **🔹 How to Use This Indicator**
1. **Apply the script in TradingView**:
- Open **Pine Script Editor** → Paste the code → Click **"Add to Chart"**.
2. **Interpret the Lines**:
- **Red line (Resistance):** Price may struggle to break above it.
- **Green line (Support):** Price may bounce off it.
3. **Trading Strategy**:
- **Breakout Strategy:**
- If the price **breaks resistance**, expect a bullish move.
- If the price **breaks support**, expect a bearish move.
- **Reversal Trading:**
- Look for **bounces off support/resistance** for potential reversals.
---
## **🔹 Key Features of This Indicator**
✅ **Automatically detects pivot highs and lows.**
✅ **Draws real-time trend lines for support and resistance.**
✅ **Updates dynamically with new price action.**
✅ **Customizable settings for pivot sensitivity and colors.**
This indicator is useful for **trend traders, breakout traders, and support/resistance traders**. 🚀
Let me know if you need **further improvements or additional features!** 😊
Quarterly Performance█ OVERVIEW
The Quarterly Performance indicator is designed to visualise and compare the performance of different Quarters of the year. This indicator explores one of the many calendar based anomalies that exist in financial markets.
In the context of financial analysis, a calendar based anomaly refers to patterns or tendencies that are linked to specific time periods, such as days of the week, weeks of the month, or months of the year. This indicator helps explore whether such a calendar based anomaly exists between quarters.
By calculating cumulative quarterly performance and counting the number of quarters with positive returns, it provides a clear snapshot of whether one set of quarters tends to outperform the others, potentially highlighting a calendar based anomaly if a significant difference is observed.
█ FEATURES
Customisable time window through input settings.
Tracks cumulative returns for each quarter separately.
Easily adjust table settings like position and font size via input options.
Clear visual distinction between quarterly performance using different colours.
Built-in error checks to ensure the indicator is applied to the correct timeframe.
█ HOW TO USE
Add the indicator to a chart with a 3 Month (Quarterly) timeframe.
Choose your start and end dates in the Time Settings.
Enable or disable the performance table in the Table Settings as needed.
View the cumulative performance, with Q1 in blue, Q2 in red, Q3 in green and Q4 in purple.
Even vs Odd Days Performance█ OVERVIEW
The Even vs Odd Days Performance indicator is designed to visualise and compare the performance of even-numbered days versus odd-numbered days. This indicator explores one of the many calendar based anomalies that exist in financial markets.
In the context of financial analysis, a calendar based anomaly refers to patterns or tendencies that are linked to specific time periods, such as days of the week, weeks of the month, or months of the year. This indicator helps explore whether such a calendar based anomaly exists between even and odd days.
By calculating cumulative daily performance and counting the number of days with positive returns, it provides a clear snapshot of whether one set of days tends to outperform the other, potentially highlighting a calendar based anomaly if a significant difference is observed.
█ FEATURES
Customisable time window through input settings.
Tracks cumulative returns for even and odd days separately.
Easily adjust table settings like position and font size via input options.
Clear visual distinction between even and odd day performance using different colours.
Built-in error checks to ensure the indicator is applied to the correct timeframe.
█ HOW TO USE
Add the indicator to a chart with a Daily timeframe.
Choose your start and end dates in the Time Settings.
Enable or disable the performance table in the Table Settings as needed.
View the cumulative performance, with even days in green and odd days in red.
Even vs Odd Weeks Performance█ OVERVIEW
The Even vs Odd Weeks Performance indicator is designed to visualise and compare the performance of even-numbered weeks versus odd-numbered weeks. This indicator explores one of the many calendar based anomalies that exist in financial markets.
In the context of financial analysis, a calendar based anomaly refers to patterns or tendencies that are linked to specific time periods, such as days of the week, weeks of the month, or months of the year. This indicator helps explore whether such a calendar based anomaly exists between even and odd weeks.
By calculating cumulative weekly performance and counting the number of weeks with positive returns, it provides a clear snapshot of whether one set of weeks tends to outperform the other, potentially highlighting a calendar based anomaly if a significant difference is observed.
█ FEATURES
Customisable time window through input settings.
Tracks cumulative returns for even and odd weeks separately.
Easily adjust table settings like position and font size via input options.
Clear visual distinction between even and odd week performance using different colours.
Built-in error checks to ensure the indicator is applied to the correct timeframe.
█ HOW TO USE
Add the indicator to a chart with a Weekly timeframe.
Choose your start and end dates in the Time Settings.
Enable or disable the performance table in the Table Settings as needed.
View the cumulative performance, with even weeks in green and odd weeks in red.
Discount/Premium OTE LevelsThis indicator is created to identify discount/premium areas to provide additional confluence to trades taken. The underlying theory is that the trades taken in discounted areas are likely to have less risk due to a smaller stop loss and a higher reward/risk ratio.
The indicator operates by first identifying a zone between the last major swing high and low. These highs and lows are determined as price points that at the extremes within the number of bars to the left, as defined by the "Swing Sensitivity" setting.
Once a price zone is established, the indicator verifies that the zone meets the minimum size in points as configured via the "Minimum size" setting to be considered tradable. Zones that are too small may not provide a sufficient range even for scalping. The default value is 42 points based on Nasdaq, which means that the distance between inner most OTE levels (0.382 and 0.618) is at least 10 points.
When a valid zone is identified, it is then subdivided into areas of interest based on OTE levels, which can be configured/adjusted via the "Levels to Draw" setting. These levels represent the midpoint (50%), which distinguishes between premium and discount, and the three OTE levels 0.79, 0.705, 0.618, above the 50% for discount and below the 50% for premium.
For example, if a zone is formed initially by a swing low followed by a swing high with the assumption that the draw is higher, the indicator can be used to formulate long positions from below the 50% level starting at 0.38 OTE level, or ideally at 0.295 OTE level using 0 as a stop loss. Alternatively, if the 50% level is not yet tapped, short scalp positions can be made from 0.79-0.618 OTE levels with 50% as a partial or TP target.
See for long/short example
Typically, the indicator will show only a single zone. However, there may be cases with two zones: one larger parent zone containing a smaller, valid price zone within itself.
The indicator will automatically invalidate and remove the zone once the high/low of the zone is invalidated.
Configuration:
The indicator provides several visualization options for customization, including:
Color settings for OTE levels, with separate settings for edge/50% color, premium, and discount levels.
Settings for line style for OTE levels.
Settings to determine whether to show prices on level labels.
Settings to decide if lines should be extended to the right.
Ultimate T3 Fibonacci for BTC Scalping. Look at backtest report!Hey Everyone!
I created another script to add to my growing library of strategies and indicators that I use for automated crypto trading! This strategy is for BITCOIN on the 30 minute chart since I designed it to be a scalping strategy. I calculated for trading fees, and use a small amount of capital in the backtest report. But feel free to modify the capital and how much per order to see how it changes the results:)
It is called the "Ultimate T3 Fibonacci Indicator by NHBprod" that computes and displays two T3-based moving averages derived from price data. The t3_function calculates the Tilson T3 indicator by applying a series of exponential moving averages to a combined price metric and then blending these results with specific coefficients derived from an input factor.
The script accepts several user inputs that toggle the use of the T3 filter, select the buy signal method, and set parameters like lengths and volume factors for two variations of the T3 calculation. Two T3 lines, T3 and T32, are computed with different parameters, and their colors change dynamically (green/red for T3 and blue/purple for T32) based on whether the lines are trending upward or downward. Depending on the selected signal method, the script generates buy signals either when T32 crosses over T3 or when the closing price is above T3, and similarly, sell signals are generated on the respective conditions for crossing under or closing below. Finally, the indicator plots the T3 lines on the chart, adds visual buy/sell markers, and sets alert conditions to notify users when the respective trading signals occur.
The user has the ability to tune the parameters using TP/SL, date timerames for analyses, and the actual parameters of the T3 function including the buy/sell signal! Lastly, the user has the option of trading this long, short, or both!
Let me know your thoughts and check out the backtest report!
Candle Gap ScannerThis code will compare the first candle with the second candle. If the highest value reached by the first candle is lower than the lowest value reached by the second candle, and this difference is greater than a percentage value that can be adjusted in the settings, it will place a red mark. Additionally, it will compare the first candle with the second candle again. If the lowest value reached by the first candle is higher than the highest value reached by the second candle, and this difference is greater than a percentage value that can be adjusted in the settings, it will place a red mark.
4Hour Zone SeparatorThis custom TradingView indicator draws vertical lines on your chart to visually separate the 4-hour trading zones within a single trading day. The indicator helps traders identify key time intervals throughout the day for better market analysis and decision-making.
Features:
• Time-Based Zones: The indicator divides the day into six distinct 4-hour periods, starting from midnight (00:00) and continuing every 4 hours. Each zone is marked by a vertical line on the chart.
• User Customization: You can toggle the visibility of the lines for each 4-hour period (00:00, 04:00, 08:00, 12:00, 16:00, 20:00) based on your preference. This allows you to focus on specific zones that matter most for your analysis.
• Line Styling Options: Choose from three different line styles — Solid, Dashed, or Dotted — and adjust the thickness to your desired preference.
• Dynamic Time Adjustment: The indicator automatically adjusts for the time zone, ensuring that the 00:00 timestamp reflects the correct start of the day based on your chart’s time zone.
How It Works:
1. The indicator starts by calculating the beginning of the day at 00:00, then it sequentially places vertical lines every 4 hours.
2. Each line is color-coded for easy identification, and the lines stretch from the highest to the lowest point on the chart for that range.
3. The lines are drawn only when the chart enters a new 4-hour zone.
This tool is especially useful for day traders who want to track price action during specific times of the day and make informed decisions based on market behavior within each 4-hour period.