PCHLM with TimeframeThis indicator plots the previous candle's high, low, and midpoint on the chart with customizable line thickness and distinct colors for better visualization. It allows traders to choose the timeframe from which these levels are derived, providing flexibility to adapt to different trading strategies.
Features:
Timeframe Selection: Users can select any desired timeframe (e.g., daily, weekly) to define the previous candle's high, low, and midpoint.
Color-Coded Lines:
The high level is marked with a red line.
The low level is marked with a green line.
The midpoint is marked with a grey line.
Adjustable Line Thickness: Traders can set the thickness of the lines between 1 and 5, allowing for better visual customization according to their preferences.
Dynamic Updates: The lines update automatically with each new candle, ensuring the levels are always current based on the selected timeframe.
Candlestick analysis
Chained Inside BarsThis script identifies consecutive inside bars by referencing only the most recent non-inside bar, so it avoids excessive lookback. An “inside” bar means its high is lower than the reference bar’s high, and its low is higher than the reference bar’s low. If the current bar is inside, it’s colored white; once price breaks outside, the script updates that new bar as the next reference.
Key Points
• Bars are compared against the last non-inside bar, chaining consecutive inside bars off that same reference bar.
• Inside bars are highlighted in white (non-inside bars retain default chart colors).
• Includes an alert condition for when a new inside bar forms.
• Prevents large dynamic indexing, making it more stable and efficient.
Use this indicator to quickly spot consecutive inside-bar formations without needing to track every single bar-to-bar relationship.
Doji Double Top & Double Bottom
FUNCTION :
This indicator checks if 2 consecutive candlesticks are formed in such a way that both the lows or both the highs of the consecutive candlesticks are almost at the same level and either of them is a doji
TIMEFRAMES :
it works on daily, weekly, monthly and higher timeframes
CRITERIA :
There is maximum difference value between 2 consecutive candlesticks' lows or 2 consecutive candlesticks' highs
Minimum value of the doji's wick size
Maximum value of the doji's body size
These 3 conditions need to be fulfilled for the 2 consecutive candlesticks to be considered as a Double top or Double bottom by this indicator
EXAMPLES :
Here the indicator is giving only double Bottom signals on CRUDE OIL chart
Here the indicator is giving only double top signals on GOLD chart
Here the indicator gives both double top & double bottom signals on EUR/USD Daily chart
Here the indicator is giving both double top & double bottom signals on EUR/USD Half-Yearly chart
DEFINITIONS :
There are 2 types -
DOJI DOUBLE BOTTOM - if the lows of 2 consecutive candlesticks are almost at the same level & either of them is doji then it is called Double Bottom and market is supposed to go higher after forming it.
DOJI DOUBLE TOP - if the highs of 2 consecutive candlesticks are almost at the same level & either of them is doji then it is called Double Top and market is supposed to go lower after forming it.
SETTINGS :
There are options to change the value of each of the 3 parameters within the indicator's settings for daily, weekly & monthly chart [
LIMITATIONS :
You should not trade based on the signals from this indicator solely, you should check other parameters too before making trading decision
Volume Footprint POC for Every CandleCalculating and plotting the Point of Control (POC) for every candle on a volume footprint chart can provide valuable insights for traders. Here are some interpretations and uses of this information:
1. Identify Key Price Levels
Highest Traded Volume: The POC represents the price level with the highest traded volume for each candle. This level often acts as a significant support or resistance level.
Confluence Zones: When multiple POCs align at similar price levels over several candles, it indicates strong support or resistance zones.
2. Gauge Market Sentiment
Buyer and Seller Activity: High volume at certain price levels can indicate where buyers and sellers are most active. A rising POC suggests stronger buying activity, while a falling POC suggests stronger selling activity.
Volume Profile: Analyzing the volume profile helps in understanding the distribution of traded volume across different price levels, providing insights into market sentiment and potential reversals.
3. Spot Trends and Reversals
Trend Continuation: Consistent upward or downward shifts in POC levels can indicate a trend continuation. Traders can use this information to stay in trending positions.
Reversal Signals: A sudden change in the POC direction may signal a potential reversal. This can be used to take profits or enter new positions.
4. Intraday Trading Strategies
Short-Term Trading: Intraday traders can use the POC to make informed decisions on entry and exit points. For example, buying near the POC during an uptrend or selling near the POC during a downtrend.
Scalping Opportunities: High-frequency traders can use shifts in the POC to scalp small profits from price movements around these key levels.
5. Volume-Based Indicators
Confirmation of Other Indicators: The POC can be used in conjunction with other technical indicators (e.g., moving averages, RSI) to confirm signals and improve trading accuracy.
Support and Resistance: Combining the POC with traditional support and resistance levels can provide a more comprehensive view of the market dynamics.
In summary, the Point of Control (POC) is a valuable tool for traders to understand market behavior, identify key levels, and make more informed trading decisions. If you have specific questions or need further details on how to use this information in your trading strategy, feel free to ask! 😊
4 Bar FractalThis indicator is a simple yet powerful tool that tracks potential trend reversals by checking whether the closing price of the last candle in a four-candle sequence finishes above or below the highs or lows of both the immediately preceding candle and the first candle in that sequence. If the closing price breaks above those prior highs, a green triangle appears above the chart to indicate bullish momentum; if it breaks below those lows, a red triangle appears below the chart to signal bearish momentum. Not only is it beneficial for scalping or other short-term trading, but it also works well for swing trades and longer-term trends, making it one of the most effective indicators for catching significant market shifts. However, to avoid false breakouts, it is advisable to confirm signals with volume or additional trend indicators and to maintain disciplined risk management.
MMPD #1 Pro @Max Maserati🎯 MMPD #1 Pro - Premium/Discount Market Position Detector
A comprehensive market analysis tool designed to identify premium and discount zones, helping traders navigate market positioning with precision and confidence.
📈 Core Features:
Premium Zone Analysis:
- Extreme Premium Line (Upper Boundary) marks peak market valuation
- Premium Box serves as a confirmation zone for strong bullish momentum
- Strong Bullish trend area point a trending bullish market when open/close happen inside
- Green candles confirm trend strength
- Pink candles signal potential reversals or retracement
- Red candles with bullish closes indicate sustained buying pressure
📉 Discount Zone Dynamics:
- Extreme Discount Line (Lower Boundary) identifies oversold conditions
- Discount Box highlights potential accumulation areas
- Strong Bearish trend area point a trending bearish market when open/close happen inside
- Red candles confirm bearish momentum
- Pale green candles suggest potential reversal or retracement
- Green candles with bearish closes indicate sustained selling pressure
📊 Momentum Analysis Table:
Displays real-time percentage measurements:
- CC: Current candle strength with trend multiplier (1.3x in-trend, 0.7x counter-trend)
- PC1: Previous candle's strength with same multipliers for momentum comparison
- PC2: Two bars back measurement for trend development validation
🔍 Advanced Features:
- Real-time momentum tracking through percentage-based measurements
- Institutional order flow visualization
- High-volume candle identification
- Dynamic trend strength confirmation
🎯 Strategic Applications:
- Trend confirmation and reversal identification
- Optimal entry and exit point detection
- Risk management through zone identification
- Market positioning assessment
Designed to combines technical precision with visual clarity for enhanced decision-making focusing on premium and discount
[GrandAlgo] Candle Trap ZonesThe Candle Trap Zones indicator identifies areas where price becomes "trapped" within a defined range and refines these zones using a proprietary algorithm. This unique approach ensures that only the most relevant zones, based on both proximity and price behavior, are highlighted for traders. By integrating advanced features like Fibonacci Cloud visualization and customizable detection parameters, the indicator offers tools to support detailed and adaptable price action analysis.
How It Works:
The Candle Trap Zones indicator evaluates historical price data to identify ranges where price has been trapped. Zones are filtered using proximity detection to prevent overlaps and maintain clarity. Additionally:
The strength parameter adjusts the sensitivity of zone identification, while the trap detection range determines how far back the algorithm evaluates price data.
The Fibonacci Cloud acts as an extension of the identified zones, providing additional precision by highlighting key levels just outside the zones
The auto-adjustment feature dynamically modifies zones if new zones are formed in close proximity, ensuring the chart reflects the most relevant areas.
The zone extension feature expands zones when price re-enters, allowing traders to track extended interactions with critical levels.
Key Features:
Proximity-Based Trap Zone Detection
Dynamically identifies and refines trap zones while avoiding overlaps to keep charts clean.
Fibonacci Cloud Integration:
Extends trap zones with Fibonacci-based levels, providing actionable reference points for potential reactions.
Customizable Detection Parameters:
Fine-tune zone detection with adjustable strength and range settings to suit various trading styles.
Real-Time Alerts:
Sends notifications when price enters, exits, or re-tests a trap zone, enabling timely trading decisions.
Dynamic Zone Updates:
Continuously recalculates zones as new data becomes available, reflecting current market conditions.
Clear and Intuitive Visuals:
Trap zones and Fibonacci clouds are highlighted in distinct colors for seamless chart analysis.
Use Cases:
Identify areas where price consolidates or liquidity builds up.
Monitor zones for potential breakouts or reversals.
Fibonacci Clouds serve as additional reference points for anticipating market reactions and refining trade setups
Trap zones may highlight areas of accumulation or distribution where traders can anticipate price reversals or breakouts.
Useful for identifying liquidity zones in range-bound markets or pinpointing key levels for breakout trades in trending markets.
Adaptable for use in Forex, crypto, stocks, and other trading markets.
Disclaimer:
This indicator is a technical analysis tool designed to assist traders by providing insights into market conditions. It does not guarantee future price movements or trading outcomes and should not be relied upon as a sole decision-making tool. The effectiveness of this indicator depends on its application, which requires your trading knowledge, experience, and judgment.
Trading involves significant financial risk, including the potential loss of capital. Past performance of any tool or indicator does not guarantee future results. This script is intended for educational and informational purposes only and does not constitute financial or investment advice. Users are strongly encouraged to perform their own analysis and consult with a qualified financial professional before making trading decisions.
MM Candle Bias Volume Trend Matrix Pro Overlay @MaxMaseratiThis overlay indicator colors candlesticks based on trend strength and volume analysis from the MMM Candle Bias Volume Trend Matrix Pro system. It uses EMAs (8, 21, 50) for trend identification and a 20-period volume average for volume confirmation.
Candlesticks are colored:
- Strong Green: Bullish trend with high volume (>1.5x average)
- Light Green: Bullish trend with normal volume
- Strong Red: Bearish trend with high volume (>1.5x average)
- Light Red: Bearish trend with normal volume
The coloring provides a visual representation of market control and trend strength, aligning with the complete Matrix Pro system's analysis framework.
MMM Candle Bias Volume Trend % Matrix Pro @MaxMaserati 📊 MMM Candle Bias Volume Trend % Matrix Pro 📊
🔍 Overview
A sophisticated yet intuitive market analysis tool that combines volume analysis, trend detection, and momentum scoring to provide clear trading signals. This indicator helps traders identify market control between buyers and sellers using a unique scoring system based on volume, price action, and multi-timeframe alignment.
This professional-grade tool is designed to enhance your trading decisions through clear visual signals and comprehensive market analysis.
🧩 Core Components
📈 Volume Analysis System
- Compares current volume to 20-period average
- Identifies high-volume periods (1.5x above average)
- Uses volume confirmation for signal strength
- Integrates volume trends across multiple timeframes (240min, 60min, current)
🔧 Advanced Features
- Multiple timeframe analysis (240, 60, current)
- Perfect alignment detection (+)
- Early warning system for trend changes
- Momentum scoring across timeframes
- Volume-trend correlation analysis
- Trend alignment confirmation
🎯 Market Control Measurement
- Analyzes candlestick patterns and body ratios
- Calculates buyer/seller control percentages
- Monitors trend strength across timeframes
- Tracks consecutive directional movements
- Identifies perfect alignments (+) across timeframes
🏷️ Label Understanding
Direction Arrows:
- ↗️ = Uptrend in progress
- ↘️ = Downtrend in progress
- → = Sideways/Neutral trend
Volume Indicator:
- 🔊 = High volume (1.5x above average volume)
Exit Warnings:
- XXX = Strongest exit signal (high volume reversal)
- XX = Strong exit warning
🚦 Visual Signals
- Green bars: Bull Control %
- Red bars: Bear Control %
- Direction Arrows: ↗️ (Up), ↘️ (Down), → (Sideways)
- Volume Alert: 🔊 (High Volume)
- Perfect Alignment: + (All timeframes aligned)
- Exit Warnings: XXX, XX (Risk Levels)
⚠️ Exit Signals
- XXX: Immediate exit (strong reversal with volume)
- XX: Strong warning (deteriorating conditions)
- X: Initial caution signal
- More urgent when losing perfect alignment (+)
📝 Labels Combination significance
- ↗️🔊+ = Perfect uptrend with volume confirmation
- ↘️🔊+ = Perfect downtrend with volume confirmation
- ↗️+ = Perfect uptrend alignment
- ↘️🔊XX = Downtrend with volume and exit warning
⭐ Perfect Alignment (+)
Indicates:
- All timeframes in agreement (240min, 60min, current)
- Strong momentum (above 60%)
- Clear trend direction
- Highest probability setups
- Best for position entries
🌟 Special Signals
🔄 Trend Shifts
- "Strong ⬆️" or "Strong ⬇️": Major momentum moves
- "Early": Potential trend formation
- "⬆️ Trend Shift" or "⬇️ Trend Shift": Potential Major trend change alerts
- Requirements: 60%+ control, 3+ consecutive bars
- Enhanced reliability with + alignment
📍 Signal Zones & Interpretation
💪 Strong Zone (70%+ Control)
- Highest probability trading opportunities
- Perfect for full position sizing
- Requires volume confirmation (🔊)
- Enhanced reliability with perfect alignment (+)
- Best for confident directional trades
✅ Confirmed Zone (60-70% Control)
- Solid trading opportunities
- Recommended for reduced position sizes
- Look for consecutive confirmations
- Must have volume support (🔊)
- More valuable with perfect alignment (+)
📋 Trading Strategy Guide
💯 For Strong Signals (>70%)
1. Wait for bar confirmation above 70%
2. Confirm high volume presence (🔊)
3. Check for perfect alignment (+)
4. Monitor for XXX exit signals
5. Set wider stops based on volatility
✔️ For Confirmed Signals (60-70%)
1. Require volume confirmation (🔊)
2. Look for perfect alignment (+)
3. Look for multiple confirmations
4. Set tighter stops
5. Exit quickly on XX or XXX signals
General Uses
📥 Best Entry
1. Wait for + symbol with volume (🔊)
2. Confirm trend direction (↗️ or ↘️)
3. Check control percentage (preferably 70%+)
4. Look for consecutive aligned bars
5. Enter with appropriate position size
⚖️ Risk Management
- Quick exits: Honor XXX warnings
- Tight stops: Required for 60-70% zone trades
- Volume confirmation: Essential for all entries
- Perfect alignment (+): Allows for larger position sizes
Remember: This indicator serves as a market strength meter. Perfect alignments (+) with higher percentages and multiple confirmations indicate the strongest signals. Always combine with proper risk management and additional technical analysis for optimal results.
Note: Past performance doesn't guarantee future results. This is a tool to help your trading decisions. Always combine it with other technical analysis and proper risk management for best results.
BTC-SPX Momentum Gauge + EMA SignalHere's an explanation of the market dynamics and signal benefits of this script:
Momentum and Sentiment Indicator:
The script uses the momentum of the S&P 500 to change the chart's background color, providing a quick visual cue of market sentiment. Green indicates potential bullish momentum in the broader market, while red suggests bearish momentum. This can help traders gauge overall market direction at a glance.
Bitcoin Trend Analysis:
By plotting the scaled TEMA of Bitcoin (BTC), traders can see how Bitcoin's trend correlates or diverges from the current asset being analyzed. Since Bitcoin is often viewed as a hedge against traditional financial systems or inflation, its trend can signal broader economic shifts or investor sentiment towards alternative investments.
Dual Trend Confirmation:
The script offers two trend lines: one for Bitcoin and one for the current ticker. When these lines move in tandem, it might indicate a strong market trend across both traditional and crypto markets. Divergence between these lines can highlight potential market anomalies or opportunities for arbitrage or hedging.
Smoothness vs. Reactivity:
The use of TEMA for Bitcoin provides a smoother signal than a simple moving average, reducing lag while still reacting to price changes. This can be particularly useful for identifying longer-term trends in Bitcoin's volatile market. The 20-period EMA for the current ticker, on the other hand, gives a quicker response to price changes in the asset you're directly trading.
Cross-Asset Correlation:
By overlaying Bitcoin's trend on another asset's chart, traders can analyze how these markets might influence each other. For instance, if Bitcoin is in an uptrend while a traditional asset is declining, it might suggest capital rotation into cryptocurrencies.
Trading Signals:
Crossovers or divergences between the TEMA of Bitcoin and the EMA of the current ticker could be used as signals for entry or exit points. For example, if the BTC TEMA crosses above the current ticker's EMA, it might suggest a shift towards crypto assets.
Risk Management:
The visual cues from the background color and moving averages can aid in risk management. For example, trading in the direction of the momentum indicated by the background color might be seen as going with the market flow, potentially reducing risk.
Macro-Economic Insights:
The relationship between Bitcoin and traditional markets can offer insights into macroeconomic conditions, particularly related to inflation, monetary policy, and investor sentiment towards fiat currencies.
Headwind and tailwind:
Currently BTC correlated trade instruments experience headwind or tailwind from the broader market. This indicator lets the user see it to help their trade decision process.
Additional Statement:
As the market realizes the dangers of the fiat that its construct is built upon and evolves and migrates into stable money, incorruptible by inflation, this indicator will reveal the external influence of that corruptible and the internal influence of the incorruptible; having diminishing returns as the rise of stable money overtakes the treasuries of the fiat construct.
Volume profile [Signals] - By Leviathan [Mindyourbuisness]Market Sessions and Volume Profile with Sweep Signals - Based on Leviathan's Volume Profile
This indicator is an enhanced version of Leviathan's Volume Profile indicator, adding session-based value area analysis and sweep detection signals. It combines volume profile analysis with market structure concepts to identify potential reversal opportunities.
Features
- Session-based volume profiles (Daily, Weekly, Monthly, Quarterly, Yearly)
- Forex sessions support (Tokyo, London, New York)
- Value Area analysis with POC, VAH, and VAL levels
- Extended level visualization for the last completed session
- Sweep detection signals for key value area levels
Sweep Signals Explanation
The indicator detects two types of sweeps at VAH, VAL, and POC levels:
Bearish Sweeps (Red Triangle Down)
Conditions:
- Price makes a high above the level (VAH/VAL/POC)
- Closes below the level
- Closes below the previous candle's low
- Previous candle must be bullish
Trading Implication: Suggests a failed breakout and potential reversal to the downside. These sweeps often indicate stop-loss hunting above key levels followed by institutional selling.
Bullish Sweeps (Green Triangle Up)
Conditions:
- Price makes a low below the level (VAH/VAL/POC)
- Closes above the level
- Closes above the previous candle's high
- Previous candle must be bearish
Trading Implication: Suggests a failed breakdown and potential reversal to the upside. These sweeps often indicate stop-loss hunting below key levels followed by institutional buying.
Trading Guidelines
1. Use sweep signals in conjunction with the overall trend
2. Look for additional confirmation like:
- Volume surge during the sweep
- Price action patterns
- Support/resistance levels
3. Consider the session's volatility and time of day
4. More reliable signals often occur at VAH and VAL levels
5. POC sweeps might indicate stronger reversals due to their significance as fair value levels
Notes
- The indicator works best on higher timeframes (1H and above)
- Sweep signals are more reliable during active market hours
- Consider using multiple timeframe analysis for better confirmation
- Past performance is not indicative of future results
Credits: Original Volume Profile indicator by Leviathan
Sunil 2 Bar Breakout StrategyDetailed Explanation of the Sunil 2 Bar Breakout Strategy
Introduction
The Sunil 2 Bar Breakout Strategy is a simple yet effective price-action-based approach designed to identify breakout opportunities in financial markets. This strategy analyzes the movement of the last three candles to detect momentum and initiates trades in the direction of the breakout. It is equipped with a built-in stop-loss mechanism to protect capital, making it suitable for traders looking for a structured and disciplined trading system.
The strategy works well across different timeframes and asset classes, including indices, stocks, forex, and cryptocurrencies. Its versatility makes it ideal for both intraday and swing trading.
Core Concept
The strategy revolves around two primary conditions: breakout identification and risk management.
Breakout Identification:
Long Trade Setup: The strategy identifies bullish breakouts when:
The current candle's closing price is higher than the previous candle's closing price.
The high of the previous candle is greater than the highs of the two candles before it.
Short Trade Setup: The strategy identifies bearish breakouts when:
The current candle's closing price is lower than the previous candle's closing price.
The low of the previous candle is lower than the lows of the two candles before it.
Risk Management:
Stop-Loss: For each trade, a stop-loss is automatically set:
For long trades, the stop-loss is set to the low of the previous candle.
For short trades, the stop-loss is set to the high of the previous candle.
This ensures that losses are minimized if the breakout fails.
Exit Logic:
The trade is closed automatically when the stop-loss is hit.
This approach maintains discipline and prevents emotional trading.
Strategy Workflow
Entry Criteria:
Long Entry: A long trade is triggered when:
The current close is greater than the previous close.
The high of the previous candle exceeds the highs of the two candles before it.
Short Entry: A short trade is triggered when:
The current close is less than the previous close.
The low of the previous candle is below the lows of the two candles before it.
Stop-Loss Placement:
For long trades, the stop-loss is set at the low of the previous candle.
For short trades, the stop-loss is set at the high of the previous candle.
Trade Management:
Trades are exited automatically if the stop-loss level is hit.
The strategy avoids re-entering trades until new breakout conditions are met.
Default Settings
Position Sizing:
The default position size is set to 1% of the account equity. This ensures proper risk management and prevents overexposure to the market.
Stop-Loss:
Stop-loss levels are automatically calculated based on the previous candle’s high or low.
Timeframes:
The strategy is versatile and works across multiple timeframes. However, it is recommended to test it on 15-minute, 1-hour, and daily charts for optimal performance.
Key Features
Automated Trade Execution:
The strategy handles both trade entry and exit automatically based on pre-defined conditions.
Built-In Risk Management:
The automatic stop-loss placement ensures losses are minimized on failed breakouts.
Works Across Markets:
The strategy is compatible with a wide range of instruments, including indices, stocks, forex, and cryptocurrencies.
Clear Signals:
Entry and exit points are straightforward and based on objective conditions, reducing ambiguity.
Versatility:
Can be used for both day trading and swing trading, depending on the chosen timeframe.
Best Practices for Using This Strategy
Backtesting:
Test the strategy on your chosen instrument and timeframe using TradingView's Strategy Tester to evaluate its performance.
Market Conditions:
The strategy performs best in trending markets or during periods of high volatility. Avoid using it in range-bound or choppy markets.
Position Sizing:
Use the default position size (1% of equity) or adjust based on your risk tolerance and account size.
Instrument Selection:
Focus on instruments with good liquidity and volatility, such as indices (e.g., NIFTY, BANKNIFTY), forex pairs, or major cryptocurrencies (e.g., Bitcoin, Ethereum).
Potential Enhancements
To make the strategy even more robust, consider adding the following optional features:
Stop-Loss Multiplier:
Allow users to customize the stop-loss distance as a multiple of the default level (e.g., 1.5x the low or high of the previous candle).
Take-Profit Levels:
Add user-defined take-profit levels, such as a fixed risk-reward ratio (e.g., 1:2).
Time Filter:
Include an option to restrict trading to specific market hours (e.g., avoid low-liquidity times).
Conclusion
The Sunil 2 Bar Breakout Strategy is an excellent tool for traders looking to capitalize on breakout opportunities while maintaining disciplined risk management. Its simplicity, combined with its effectiveness, makes it suitable for traders of all experience levels. By adhering to the clearly defined rules, traders can achieve consistent results while avoiding emotional trading decisions.
This strategy is a reliable addition to any trader’s toolbox and is designed to work seamlessly across different market conditions and instruments.
Stochastic candles "Stochastic Candles" is designed to provide higher timeframe stochastic calculations and enhance the chart with additional visual aids like colored candles and EMA plotting.
Features of the Script:
Higher Timeframe Stochastic Calculation:
This indicator computes the stochastic %K and %D values for a specified higher timeframe and ensures these values are fetched for the higher timeframe data.
Dynamic Label Placement:
The script places labels on the chart displaying the %K and %D values above and below the bars, respectively.
Labels are dynamically deleted after being updated, ensuring only the latest values are visible.
Candle Coloring:
Candles are colored blue if %K > %D, yellow if %D > %K, and retain the default color otherwise.
Exponential Moving Average (EMA):
This indicator work fine . Consolidate market put effects on its performance .
Elliott Wave with Customizable Visualization and Toggle1. Key User Inputs
a. Setting Wave 1 Start and High Points
- Wave 1 Start (Low Point): Enter the starting point (low point) of the first wave.
- Default: 10000.
- Wave 1 High (Previous High): Enter the high point (end point) of the first wave.
- Default: 11000.
b. Setting Targets and Retracement Ratios for Each Wave
- Wave 1 Target: Select the target ratio for Wave 1.
- Options: 1.0, 1.272, 1.414, 1.618, 2.0.
- Default: 1.618.
- Wave 2 Retrace: Select the retracement ratio for Wave 2.
- Options: 0.236, 0.382, 0.5, 0.618, 0.786.
- Default: 0.618.
- Wave 3 Target: Select the target ratio for Wave 3.
- Options: 1.0, 1.272, 1.414, 1.618, 2.0.
- Default: 1.618.
- Wave 4 Retrace: Select the retracement ratio for Wave 4.
- Options: 0.236, 0.382, 0.5, 0.618.
- Default: 0.382.
- Wave 5 Target: Select the target ratio for Wave 5.
- Options: 0.618, 1.0, 1.272, 1.414, 1.618.
- Default: 1.0.
c. Setting Colors and Styles for Each Wave
You can customize the color and line style of each wave:
- Wave 1 Color: Color of Wave 1 (Default: Green).
- Wave 2 Color: Color of Wave 2 (Default: Red).
- Wave 3 Color: Color of Wave 3 (Default: Blue).
- Wave 4 Color: Color of Wave 4 (Default: Purple).
- Wave 5 Color: Color of Wave 5 (Default: Orange).
- Wave 1 Line Style: Select the line style for Wave 1 (Options: Solid, Dotted, Dashed).
- Default: Solid.
- The same settings can be applied to the remaining waves.
d. Setting Wave Display Options
- You can toggle the visibility of specific waves:
- Example: Set Show Wave 1 to false to hide Wave 1 from the chart.
- Default: true (All waves are displayed).
2. Outputs and Visualization
Wave Target Lines
- The target price and retracement levels for each wave are displayed as horizontal lines on the chart.
- Selected ratios (Fibonacci ratios) are highlighted based on the user-defined style.
Labels
- Labels next to the target lines display the target price and Fibonacci ratio.
- Example: Wave 1 (1.618): 11236.54.
3. Key Calculations and Wave Explanations
a. Wave 1
- Length: Wave 1 High - Wave 1 Start.
- Target: The target price is calculated based on the selected ratio (Wave 1 Target).
- Display: The target line and label are displayed starting from Wave 1 Start.
b. Wave 2
- Retracement Length: Wave 1 Target - Wave 1 Start.
- Retracement Target: The retracement price is calculated based on the selected ratio (Wave 2 Retrace).
- Display: The retracement line and label are displayed starting from Wave 1 Target.
c. Wave 3
- Length: Same as the length of Wave 1.
- Target: The target price is calculated based on the selected ratio (Wave 3 Target).
- Display: The target line and label are displayed starting from Wave 1 Target.
d. Wave 4
- Retracement Length: Wave 3 Target - Wave 1 Target.
- Retracement Target: The retracement price is calculated based on the selected ratio (Wave 4 Retrace).
- Display: The retracement line and label are displayed starting from Wave 3 Target.
e. Wave 5
- Length: Same as the length of Wave 3.
- Target: The target price is calculated based on the selected ratio (Wave 5 Target).
- Display: The target line and label are displayed starting from Wave 3 Target.
4. Usage Examples
Trend Analysis
- Visualize the target price and retracement levels of each wave to understand upward or downward trends.
Determining Entry/Exit Points
- Plan entry and exit strategies by observing when target prices reach specific Fibonacci ratios.
Customization
- Enhance visual convenience by adjusting chart styles and colors to suit your preferences.
5. Notes and Precautions
Input Validation
- Ensure that the Wave 1 Start and Wave 1 High values match actual price ranges to achieve accurate results.
Market Conditions
- Elliott Wave Theory is a predictive tool and may differ from actual market movements.
Risk Management
- Use the results as a reference and always incorporate risk management strategies when making investment decisions.
Falcon Liquidity Grab StrategyHow to Use This Script for Commodities and Indices
Best Timeframes: Start with 15-minute charts but test on higher timeframes like 1 hour for indices.
Risk Settings: Adjust the stop_loss_points and take_profit_multiplier to match the volatility of the chosen instrument.
SCE Price Action SuiteThis is an indicator designed to use past market data to mark key price action levels as well as provide a different kind of insight. There are 8 different features in the script that users can turn on and off. This description will go in depth on all 8 with chart examples.
#1 Absorption Zones
I defined Absorption Zones as follows.
//----------------------------------------------
//---------------Absorption---------------------
//----------------------------------------------
box absorptionBox = na
absorptionBar = ta.highest(bodySize, absorptionLkb)
bsab = ta.barssince(bool(ta.change(absorptionBar)))
if bsab == 0 and upBar and showAbsorption
absorptionBox := box.new(left = bar_index - 1, top = close, right = bar_index + az_strcuture, bottom = open, border_color = color.rgb(0, 80, 75), border_width = boxLineSize, bgcolor = color.rgb(0, 80, 75))
absorptionBox
else if bsab == 0 and downBar and showAbsorption
absorptionBox := box.new(left = bar_index - 1, top = close, right = bar_index + az_strcuture, bottom = open, border_color = color.rgb(105, 15, 15), border_width = boxLineSize, bgcolor = color.rgb(105, 15, 15))
absorptionBox
What this means is that absorption bars are defined as the bars with the largest bodies over a selected lookback period. Those large bodies represent areas where price may react. I was inspired by the concept of a Fair Value Gap for this concept. In that body price may enter to be a point of support or resistance, market participants get “absorbed” in the area so price can continue in whichever direction.
#2 Candle Wick Theory/Strategy
I defined Candle Wick Theory/Strategy as follows.
//----------------------------------------------
//---------------Candle Wick--------------------
//----------------------------------------------
highWick = upBar ? high - close : downBar ? high - open : na
lowWick = upBar ? open - low : downBar ? close - low : na
upWick = upBar ? close + highWick : downBar ? open + highWick : na
downWick = upBar ? open - lowWick : downBar ? close - lowWick : na
downDelivery = upBar and downBar and high > upWick and highWick > lowWick and totalSize > totalSize and barstate.isconfirmed and session.ismarket
upDelivery = downBar and upBar and low < downWick and highWick < lowWick and totalSize > totalSize and barstate.isconfirmed and session.ismarket
line lG = na
line lE = na
line lR = na
bodyMidpoint = math.abs(body) / 2
upWickMidpoint = math.abs(upWickSize) / 2
downWickkMidpoint = math.abs(downWickSize) / 2
if upDelivery and showCdTheory
cpE = chart.point.new(time, bar_index - 1, downWickkMidpoint)
cpE2 = chart.point.new(time, bar_index + bl, downWickkMidpoint)
cpG = chart.point.new(time, bar_index + bl, downWickkMidpoint * (1 + tp))
cpR = chart.point.new(time, bar_index + bl, downWickkMidpoint * (1 - sl))
cpG1 = chart.point.new(time, bar_index - 1, downWickkMidpoint * (1 + tp))
cpR1 = chart.point.new(time, bar_index - 1, downWickkMidpoint * (1 - sl))
lG := line.new(cpG1, cpG, xloc.bar_index, extend.none, color.green, line.style_solid, 1)
lE := line.new(cpE, cpE2, xloc.bar_index, extend.none, color.white, line.style_solid, 1)
lR := line.new(cpR1, cpR, xloc.bar_index, extend.none, color.red, line.style_solid, 1)
lR
else if downDelivery and showCdTheory
cpE = chart.point.new(time, bar_index - 1, upWickMidpoint)
cpE2 = chart.point.new(time, bar_index + bl, upWickMidpoint)
cpG = chart.point.new(time, bar_index + bl, upWickMidpoint * (1 - tp))
cpR = chart.point.new(time, bar_index + bl, upWickMidpoint * (1 + sl))
cpG1 = chart.point.new(time, bar_index - 1, upWickMidpoint * (1 - tp))
cpR1 = chart.point.new(time, bar_index - 1, upWickMidpoint * (1 + sl))
lG := line.new(cpG1, cpG, xloc.bar_index, extend.none, color.green, line.style_solid, 1)
lE := line.new(cpE, cpE2, xloc.bar_index, extend.none, color.white, line.style_solid, 1)
lR := line.new(cpR1, cpR, xloc.bar_index, extend.none, color.red, line.style_solid, 1)
lR
First I get the size of the wicks for the top and bottoms of the candles. This depends on if the bar is red or green. If the bar is green the wick is the high minus the close, if red the high minus the open, and so on. Next, the script defines the upper and lower bounds of the wicks for further comparison. If the candle is green, it's the open price minus the bottom wick. If the candle is red, it's the close price minus the bottom wick, and so on. Next we have the condition for when this strategy is present.
Down delivery:
Occurs when the previous candle is green, the current candle is red, and:
The high of the current candle is above the upper wick of the previous candle.
The size of the current candle's top wick is greater than its bottom wick.
The total size of the previous candle is greater than the total size of the current candle.
The current bar is confirmed (barstate.isconfirmed).
The session is during market hours (session.ismarket).
Up delivery:
Occurs when the previous candle is red, the current candle is green, and:
The low of the current candle is below the lower wick of the previous candle.
The size of the current candle's bottom wick is greater than its top wick.
The total size of the previous candle is greater than the total size of the current candle.
The current bar is confirmed.
The session is during market hours
Then risk is plotted from the percentage that users can input from an ideal entry spot.
#3 Candle Size Theory
I defined Candle Size Theory as follows.
//----------------------------------------------
//---------------Candle displacement------------
//----------------------------------------------
line lECD = na
notableDown = bodySize > bodySize * candle_size_sensitivity and downBar and session.ismarket and barstate.isconfirmed
notableUp = bodySize > bodySize * candle_size_sensitivity and upBar and session.ismarket and barstate.isconfirmed
if notableUp and showCdSizeTheory
cpE = chart.point.new(time, bar_index - 1, close)
cpE2 = chart.point.new(time, bar_index + bl_strcuture, close)
lECD := line.new(cpE, cpE2, xloc.bar_index, extend.none, color.rgb(0, 80, 75), line.style_solid, 3)
lECD
else if notableDown and showCdSizeTheory
cpE = chart.point.new(time, bar_index - 1, close)
cpE2 = chart.point.new(time, bar_index + bl_strcuture, close)
lECD := line.new(cpE, cpE2, xloc.bar_index, extend.none, color.rgb(105, 15, 15), line.style_solid, 3)
lECD
This plots candles that are “notable” or out of the ordinary. Candles that are larger than the last by a value users get to specify. These candles' highs or lows, if they are green or red, act as levels for support or resistance.
#4 Candle Structure Theory
I defined Candle Structure Theory as follows.
//----------------------------------------------
//---------------Structure----------------------
//----------------------------------------------
breakDownStructure = low < low and low < low and high > high and upBar and downBar and upBar and downBar and session.ismarket and barstate.isconfirmed
breakUpStructure = low > low and low > low and high < high and downBar and upBar and downBar and upBar and session.ismarket and barstate.isconfirmed
if breakUpStructure and showStructureTheory
cpE = chart.point.new(time, bar_index - 1, close)
cpE2 = chart.point.new(time, bar_index + bl_strcuture, close)
lE := line.new(cpE, cpE2, xloc.bar_index, extend.none, color.teal, line.style_solid, 3)
lE
else if breakDownStructure and showStructureTheory
cpE = chart.point.new(time, bar_index - 1, open)
cpE2 = chart.point.new(time, bar_index + bl_strcuture, open)
lE := line.new(cpE, cpE2, xloc.bar_index, extend.none, color.red, line.style_solid, 3)
lE
It is a series of candles to create a notable event. 2 lower lows in a row, a lower high, then green bar, red bar, green bar is a structure for a breakdown. 2 higher lows in a row, a higher high, red bar, green bar, red bar for a break up.
#5 Candle Swing Structure Theory
I defined Candle Swing Structure Theory as follows.
//----------------------------------------------
//---------------Swing Structure----------------
//----------------------------------------------
line htb = na
line ltb = na
if totalSize * swing_struct_sense < totalSize and upBar and downBar and high > high and showSwingSturcture and session.ismarket and barstate.isconfirmed
cpS = chart.point.new(time, bar_index - 1, high)
cpE = chart.point.new(time, bar_index + bl_strcuture, high)
htb := line.new(cpS, cpE, xloc.bar_index, color = color.red, style = line.style_dashed)
htb
else if totalSize * swing_struct_sense < totalSize and downBar and upBar and low > low and showSwingSturcture and session.ismarket and barstate.isconfirmed
cpS = chart.point.new(time, bar_index - 1, low)
cpE = chart.point.new(time, bar_index + bl_strcuture, low)
ltb := line.new(cpS, cpE, xloc.bar_index, color = color.teal, style = line.style_dashed)
ltb
A bearish swing structure is defined as the last candle’s total size, times a scalar that the user can input, is less than the current candles. Like a size imbalance. The last bar must be green and this one red. The last high should also be less than this high. For a bullish swing structure the same size imbalance must be present, but we need a red bar then a green bar, and the last low higher than the current low.
#6 Fractal Boxes
I define the Fractal Boxes as follows
//----------------------------------------------
//---------------Fractal Boxes------------------
//----------------------------------------------
box b = na
int indexx = na
if bar_index % (n * 2) == 0 and session.ismarket and showBoxes
b := box.new(left = bar_index, top = topBox, right = bar_index + n, bottom = bottomBox, border_color = color.rgb(105, 15, 15), border_width = boxLineSize, bgcolor = na)
indexx := bar_index + 1
indexx
The idea of this strategy is that the market is fractal. It is considered impossible to be able to tell apart two different time frames from just the chart. So inside the chart there are many many breakouts and breakdowns happening as price bounces around. The boxes are there to give you the view from your timeframe if the market is in a range from a time frame that would be higher than it. Like if we are inside what a larger time frame candle’s range. If we break out or down from this, we might be able to trade it. Users can specify a lookback period and the box is that period’s, as an interval, high and low. I say as an interval because it is plotted every n * 2 bars. So we get a box, price moves, then a new box.
#7 Potential Move Width
I define the Potential Move Width as follows
//----------------------------------------------
//---------------Move width---------------------
//----------------------------------------------
velocity = V(n)
line lC = na
line l = na
line l2 = na
line l3 = na
line l4 = na
line l5 = na
line l6 = na
line l7 = na
line l8 = na
line lGFractal = na
line lRFractal = na
cp2 = chart.point.new(time, bar_index + n, close + velocity)
cp3 = chart.point.new(time, bar_index + n, close - velocity)
cp4 = chart.point.new(time, bar_index + n, close + velocity * 5)
cp5 = chart.point.new(time, bar_index + n, close - velocity * 5)
cp6 = chart.point.new(time, bar_index + n, close + velocity * 10)
cp7 = chart.point.new(time, bar_index + n, close - velocity * 10)
cp8 = chart.point.new(time, bar_index + n, close + velocity * 15)
cp9 = chart.point.new(time, bar_index + n, close - velocity * 15)
cpG = chart.point.new(time, bar_index + n, close + R)
cpR = chart.point.new(time, bar_index + n, close - R)
if ((bar_index + n) * 2 - bar_index) % n == 0 and session.ismarket and barstate.isconfirmed and showPredictionWidtn
cp = chart.point.new(time, bar_index, close)
cpG1 = chart.point.new(time, bar_index, close + R)
cpR1 = chart.point.new(time, bar_index, close - R)
l := line.new(cp, cp2, xloc.bar_index, extend.none, color.aqua, line.style_solid, 1)
l2 := line.new(cp, cp3, xloc.bar_index, extend.none, color.aqua, line.style_solid, 1)
l3 := line.new(cp, cp4, xloc.bar_index, extend.none, color.red, line.style_solid, 1)
l4 := line.new(cp, cp5, xloc.bar_index, extend.none, color.red, line.style_solid, 1)
l5 := line.new(cp, cp6, xloc.bar_index, extend.none, color.teal, line.style_solid, 1)
l6 := line.new(cp, cp7, xloc.bar_index, extend.none, color.teal, line.style_solid, 1)
l7 := line.new(cp, cp8, xloc.bar_index, extend.none, color.blue, line.style_solid, 1)
l8 := line.new(cp, cp9, xloc.bar_index, extend.none, color.blue, line.style_solid, 1)
l8
By using the past n bar’s velocity, or directional speed, every n * 2 bars. I can use it to scale the close value and get an estimate for how wide the next moves might be.
#8 Linear regression
//----------------------------------------------
//---------------Linear Regression--------------
//----------------------------------------------
lr = showLR ? ta.linreg(close, n, 0) : na
plot(lr, 'Linear Regression', color.blue)
I used TradingView’s built in linear regression to not reinvent the wheel. This is present to see past market strength of weakness from a different perspective.
User input
Users can control a lot about this script. For the strategy based plots you can enter what you want the risk to be in percentages. So the default 0.01 is 1%. You can also control how far forward the line goes.
Look back at where it is needed as well as line width for the Fractal Boxes are controllable. Also users can check on and off what they would like to see on the charts.
No indicator is 100% reliable, do not follow this one blindly. I encourage traders to make their own decisions and not trade solely based on technical indicators. I encourage constructive criticism in the comments below. Thank you.
Candle 1 2 3 on XAUUSD (by Veronica)Description
Discover the Candle 1 2 3 Strategy, a simple yet effective trading method tailored exclusively for XAUUSD on the 15-minute timeframe. Designed by Veronica, this strategy focuses on identifying key reversal and continuation patterns during the London and New York sessions, making it ideal for traders who prioritise high-probability entries during these active market hours.
Key Features:
1. Session-Specific Trading:
The strategy operates strictly during London (03:00–06:00 UTC) and New York (08:30–12:30 UTC) sessions, where XAUUSD tends to show higher volatility and clearer price movements.
Pattern Criteria:
- Works best if the first candle is NOT a pin bar or a doji.
- Third candle should either:
a. Be a marubozu (large body with minimal wicks).
a. Have a significant body with wicks, ensuring the close of the third candle is above Candle 2 (for Buy) or below Candle 2 (for Sell).
Callout Labels and Alerts:
Automatic Buy and Sell labels are displayed on the chart during qualifying sessions, ensuring clarity for decision-making.
Integrated alerts notify you of trading opportunities in real-time.
Risk Management:
Built-in Risk Calculator to estimate lot sizes based on your account size, risk percentage, and stop-loss levels.
Customizable Table:
Displays your calculated lot size for various stop-loss pip values, making risk management seamless and efficient.
How to Use:
1. Apply the indicator to XAUUSD (M15).
2. Focus on setups appearing within the London and New York sessions only.
3. Ensure the first candle is neither a pin bar nor a doji.
4. Validate the third candle's body placement:
For a Buy, the third candle’s close must be above the second candle.
For a Sell, the third candle’s close must be below the second candle.
5. Use the generated alerts to streamline your entry process.
Notes:
This strategy is meant to complement your existing knowledge of market structure and price action.
Always backtest thoroughly and adjust parameters to fit your personal trading style and risk tolerance.
Credit:
This strategy is the intellectual property of Veronica, developed specifically for XAUUSD (M15) traders seeking precision entries during high-volume sessions.
Imbalance Imbalance Detection:
Bullish Imbalance: Occurs when the high of the bar two periods ago is lower than the low of the current bar, indicating a possible reversal to the upside.
Bearish Imbalance: Occurs when the high of the current bar is lower than the low of the bar two periods ago, indicating a potential reversal to the downside.
Visual Highlighting:
The script changes the color of the previous bar (one bar before the imbalance) based on whether a bullish or bearish imbalance is detected.
Users can customize the color for both bullish and bearish imbalances to suit their preferences.
User Inputs:
Show Imbalance: Option to toggle the visibility of the imbalance signals on the chart.
Color Customization: Users can choose custom colors for bullish and bearish imbalances, allowing for easy distinction between the two types.
Alert Conditions:
The script includes pre-configured alert conditions for both bullish and bearish imbalances, notifying traders when an imbalance is detected, which can be useful for triggering trades or further analysis.
Pivot Points High Low - JVersion**Indicator Name**: Pivot Points High Low (Without Price Labels)
**Overview**
The Pivot Points High Low indicator is designed to identify and mark local highs and lows (or “pivot” points) on a price chart. Unlike other pivot-based indicators that label each pivot with its exact price, this version displays only small circular markers—removing clutter and focusing attention on the pivot locations themselves.
**Key Features**
1. **Pivot Detection**
- The script uses TradingView’s built-in `ta.pivothigh()` and `ta.pivotlow()` functions to determine when the market has formed a pivot high or pivot low.
- You can define how many bars to the left and right are required to confirm a pivot, helping you tailor the indicator to different market conditions and timeframes.
2. **Clean Markers**
- Each confirmed pivot high or low is represented by a circle placed precisely on the candle where the pivot is detected.
- No numeric labels are shown, keeping your chart visually uncluttered while still highlighting important turning points in price.
3. **Customization**
- **Left/Right Pivot Length**: Choose how many bars to the left and right must be lower (for highs) or higher (for lows) to validate a pivot. Larger values mean fewer but more significant pivots; smaller values mean more frequent pivots.
- **Marker Colors**: Independently customize the colors of the high-marker circles and low-marker circles to easily distinguish between local tops and bottoms.
4. **Usage and Interpretation**
- **Identifying Reversals**: As soon as a circle appears at a local high or low, it may indicate a short-term trend reversal or the beginning of a new swing in price.
- **Combine with Other Tools**: Pivot points are more informative when used alongside broader trend analysis, support/resistance identification, or other momentum indicators.
- **Adjusting Sensitivity**: By increasing or decreasing the left/right pivot lengths, you can make the indicator more or less sensitive to small market fluctuations.
5. **Practical Tips**
- **Swing Trading**: Shorter lengths can be used by swing traders looking for quick reversals in lower timeframes.
- **Longer-Term Trends**: Larger lengths are better for position traders or those who prefer to see only major turning points in the market.
- **Clean Chart Layout**: Because text labels are removed, you can visually focus on the circles—especially helpful if you use multiple indicators and prefer a less cluttered chart.
---
By pinpointing local highs and lows without price labels, the **Pivot Points High Low** indicator keeps charts neat yet informative, allowing traders to quickly recognize potential turning points in the market and make more informed decisions.
TTZConcept GOLD XAUUSD Lot CalculatorThe Gold Lot Size Calculator for XAU/USD on TradingView is a powerful and user-friendly tool designed by TTZ Concept to help traders calculate the optimal lot size for their Gold trades based on their account size, risk tolerance, and the price movement of Gold (XAU/USD). Whether you're a beginner or an experienced trader, this tool simplifies position sizing, ensuring that your trades align with your risk management strategy.
Key Features:
Accurate Lot Size Calculation: Calculates the optimal lot size for XAU/USD trades based on your specified account balance and the percentage of risk per trade.
Flexible Risk Management**: Input your desired risk percentage (e.g., 1%, 2%) to ensure that you are not risking more than you're comfortable with on any single trade.
Customizable Inputs: Enter your account balance, risk percentage, stop loss (in pips), and leverage to get an accurate lot size recommendation.
Real-Time Data The tool uses real-time Gold price data to calculate the position size, ensuring that your risk management is always up to date with market conditions.
-Simple Interface: With easy-to-use sliders and input fields, you can quickly adjust your parameters and get the required lot size in seconds.
No Complicated Calculations Automatically factors in the pip value and contract specifications for XAU/USD, eliminating the need for manual calculations.
How It Works:
1. Input your trading account balance: The tool calculates based on your total equity.
2. Set your risk percentage: Choose how much of your account you want to risk on a single trade.
3. Define your stop loss in pips: Specify the distance of your stop loss from the entry point.
4. Get your recommended lot size: Based on your inputs, the tool will calculate the ideal lot size for your trade.
Why Use This Tool?
Precise Risk Management: Take control of your trading risk by ensuring that each trade is positioned according to your risk tolerance.
Save Time: No need for manual calculations — let the calculator handle the complex math and focus on your strategy.
Adapt to Changing Market Conditions: As the price of Gold (XAU/USD) fluctuates, your lot size adapts to ensure consistent risk management across different market conditions.
Perfect for:
- Gold traders (XAU/USD)
- Beginners seeking to understand position sizing and risk management
- Experienced traders looking to streamline their trading process
- Anyone who trades Gold futures, CFDs, or spot Gold in their trading account
Active Ranges Detector
1. Purpose
The script identifies and manages bar ranges, which are defined as bars where the high and low prices are fully contained within the high and low of the previous bar. These ranges are used by traders to identify potential breakouts and price consolidations.
2. Key Features
Active Range Validation
A potential range becomes an active range when the price breaks out of the bar’s high or low. The breakout direction is tracked:
• Upward breakout: When the price closes above the high of the range.
• Downward breakout: When the price closes below the low of the range.
The script creates:
• Lines to represent the high and low of the range.
• A colored background box to indicate the range, with color coded for breakout direction:
• Green: Upward breakout.
• Orange: Downward breakout.
Range Updates
• Exit Detection: The script detects if the price exits the range (moves outside the high or low levels).
• Reintegration and Mitigation:
• If the price re-enters an exited range, it marks the range as “mitigated.”
• The lines for mitigated ranges are updated (color and width are changed).
• The background box is removed for mitigated ranges.
3. User Inputs
The script provides customization options:
• Breakout Colors:
• upBreakoutColor: Background color for upward breakout ranges (default: semi-transparent green).
• downBreakoutColor: Background color for downward breakout ranges (default: semi-transparent orange).
• Mitigated Range Styling:
• mitigatedLineColor: Line color for mitigated ranges (default: red).
• mitigatedLineWidth: Width of the line for mitigated ranges.
• Line and Background Settings:
• activeLineWidth: Width of lines for active ranges.
• lineExtension: Length of line extensions beyond the range’s initial boundaries.
• Range Display Limits:
• maxActiveRanges: Maximum number of active ranges to display on the chart (default: up to 200).
4. Visualization
The script provides clear visual feedback for identified ranges:
• Lines: High and low levels of the range are drawn as lines on the chart.
• Background Boxes: Colored boxes are drawn to represent active ranges, with breakout direction indicated by the box’s color.
• Mitigation Styling: Mitigated ranges have updated line styles and no background.
5. Range Management
The script actively manages ranges:
• Tracks the status of each range (active, exited, reintegrated, mitigated).
• Limits the number of displayed ranges to improve chart readability and comply with TradingView’s object limits.
6. Use Case
This script is ideal for traders who:
• Use inside bars to identify areas of consolidation and breakout opportunities.
• Want to track active and mitigated ranges automatically.
• Need a clear, visual representation of ranges and breakout directions.
7. Limitations
• Inside bars are identified based only on the current and previous bar, so the script might not detect more complex consolidation patterns.
• The maximum number of ranges displayed is limited to the user-defined value (maxActiveRanges), with a hard limit of 200 due to TradingView’s object restrictions.
Daily Weekly Monthly Highs & Lows - Alerts !
1. Purpose
The script helps traders:
• Visualize the high and low levels for the previous daily, weekly, and monthly periods.
• Receive alerts when the current price crosses these levels.
• Identify key support and resistance zones based on historical highs and lows.
2. Key Features
User Inputs
The script offers customization options through input parameters:
• Daily Levels:
• Enable/disable displaying daily levels (Show Daily Levels).
• Customize the color for daily level lines (Daily Line Color).
• Weekly Levels:
• Enable/disable displaying weekly levels (Show Weekly Levels).
• Customize the color for weekly level lines (Weekly Line Color).
• Monthly Levels:
• Enable/disable displaying monthly levels (Show Monthly Levels).
• Customize the color for monthly level lines (Monthly Line Color).
3. Core Functionality
Level Calculations
The script retrieves the previous daily, weekly, and monthly highs and lows using the request.security() function:
• Daily High/Low: Taken from the previous day’s high and low.
• Weekly High/Low: Taken from the previous week’s high and low.
• Monthly High/Low: Taken from the previous month’s high and low.
Price Crossing Detection
For each level (daily, weekly, monthly), the script checks if the current high or low price has crossed:
• The previous high (triggering a “High Reached” alert).
• The previous low (triggering a “Low Reached” alert).
4. Visual Features
The script plots lines to represent the previous highs and lows:
• Daily Levels:
• Dashed lines for the previous daily high and low.
• Configurable color (Daily Line Color).
• Weekly Levels:
• Dashed lines for the previous weekly high and low.
• Configurable color (Weekly Line Color).
• Monthly Levels:
• Dashed lines for the previous monthly high and low.
• Configurable color (Monthly Line Color).
These lines extend forward by one bar for better visibility on the chart.
5. Alert Features
The script provides alerts for when the price crosses these levels:
• Daily Alerts:
• “Daily High Reached” when the current price crosses the previous daily high.
• “Daily Low Reached” when the current price crosses the previous daily low.
• Weekly Alerts:
• “Weekly High Reached” when the current price crosses the previous weekly high.
• “Weekly Low Reached” when the current price crosses the previous weekly low.
• Monthly Alerts:
• “Monthly High Reached” when the current price crosses the previous monthly high.
• “Monthly Low Reached” when the current price crosses the previous monthly low.
6. Practical Use Case
This script is ideal for traders who:
• Use support and resistance levels from daily, weekly, and monthly timeframes as part of their strategy.
• Want to monitor price interactions with these levels in real-time.
• Need automatic alerts for key price movements without continuously monitoring the chart.
7. Limitations
• Max Line Count: TradingView limits the number of lines that can be drawn on the chart to max_lines_count = 500.
• No Historical Levels: The script only tracks the most recent daily, weekly, and monthly levels and does not display historical levels.
Doji Detector- Alerts!
1. Purpose
The script identifies Doji candles, which are candlesticks with very small or negligible bodies and relatively large wicks. These patterns often indicate market indecision and can serve as potential reversal signals.
2. User Inputs
The script includes several customizable parameters to fine-tune the detection of Doji candles:
• wickRatioLimit: Defines the maximum allowable ratio between the sizes of the upper and lower wicks.
• Example: If the upper wick is no more than 1.5 times larger than the lower wick (or vice versa), the candle can be classified as a Doji.
• bodyColor: Specifies the color for the body of detected Doji candles.
• showMarker: Enables or disables the display of a visual marker (a triangle) below detected Doji candles.
• bodyToWickRatio: Sets the maximum ratio between the size of the candle’s body and the total length of its wicks.
• Example: A body-to-wick ratio of 0.5 means the body cannot be larger than 50% of the sum of the upper and lower wicks.
• alertOnDoji: Activates or deactivates alerts when a Doji candle is detected.
3. Detection Mechanism
The script calculates key components of the candlestick:
• Upper Wick: Difference between the high price and the larger of the open or close prices.
• Lower Wick: Difference between the low price and the smaller of the open or close prices.
• Body Size: Absolute difference between the open and close prices.
It then determines whether the candle qualifies as a Doji based on the following conditions:
1. The body size must be less than or equal to the specified fraction of the total wick size (bodyToWickRatio).
2. The ratio of the upper wick to the lower wick must not exceed the defined wickRatioLimit.
If both conditions are met, the candle is classified as a Doji.
4. Visual Features
The script provides visual indicators for detected Doji candles:
• Bar Coloring: The bodies of detected Doji candles are colored with the specified bodyColor (default is red).
• Markers: If enabled (showMarker = true), a green triangle is plotted below each detected Doji candle for easy identification.
5. Alerts
The script sets up alert conditions for detected Doji candles:
• If alertOnDoji is enabled, an alert is triggered whenever a Doji candle is detected.
• The alert message is customizable and displays “Doji Detected!” by default.
6. Use Case
This script is useful for traders who want to:
• Identify moments of market indecision (Doji patterns) automatically.
• Receive alerts to take appropriate trading actions based on these patterns.
• Highlight Doji candles on charts with customized colors and markers.