Expansion Candles by Alex EntrepreneurHey people! Thanks for using Expansion Candles. I designed this tool to help me identify price runs (expansions) based on consecutive bullish or bearish candle closes and then trade continuations on the lower timeframes. Here's what makes it awesome:
How Does It Work?
An “expansion” is confirmed after multiple closes above the previous candle’s high (in the bull case) or below the previous candle’s low (in the bear case) while also having a higher candle low than the previous candle (in the bull case) or having lower candle high that the previous candle (in the bear case). After an expansion is confirmed, then the indicator will be displayed on the next candle.
You can set the number of required candle closes that confirm an “expansion” by increasing or decreasing the "Required Candles For Valid Expansion" setting.
An expansion will continue until an “invalidation” event occurs this will cause the indicator to stop displaying.
This “invalidation” can either be a lower candle low than the previous candle (in the bull case) and a higher candle high than the previous candle (in the bear case), or a close below the previous candle’s low (in the bull case) or a close above the previous candle’s high (in the bear case).
You can choose whether you want to use candle highs and lows as invalidation or candle closes as invalidation by changing the “Invalidation Type” setting to either “Wick” or “Candle Close”.
Key Features
Price Run Detection : Identify when price is expanding through consecutive bullish or bearish candle closes. You can chose whether a wick or opposite candle close finishes the run.
Timeframe Selection : Select your preferred timeframe for expansion candles and then view the indicator on lower timeframes for precise continuation entries.
Custom Display Options : Tailor the way expansions are shown on your chart. Choose your bullish and bearish colours and then display expansions as coloured candles, background colours, boxes, or arrows.
Sensitivity Adjustment : Adjust the indicator's sensitivity by changing the number of "Required Candles For Valid Expansion" to suit your analysis.
Set Alerts : Detect new bullish or bearish expansions in your favourite instruments with customisable alerts.
Best,
Alex Entrepreneur
Candlestick analysis
ICT Immediate Rebalance Toolkit [LuxAlgo]The ICT Immediate Rebalance Toolkit is a comprehensive suite of tools crafted to aid traders in pinpointing crucial trading zones and patterns within the market.
The ICT Immediate Rebalance, although frequently overlooked, emerges as one of ICT's most influential concepts, particularly when considered within a specific context. The toolkit integrates commonly used price action tools to be utilized in conjunction with the Immediate Rebalance patterns, enriching the capacity to discern context for improved trading decisions.
The ICT Immediate Rebalance Toolkit encompasses the following Price Action components:
ICT Immediate Rebalance
Buyside/Sellside Liquidity
Order Blocks & Breaker Blocks
Liquidity Voids
ICT Macros
🔶 USAGE
🔹 ICT Immediate Rebalance
What is an Immediate Rebalance?
Immediate rebalances, a concept taught by ICT, hold significant importance in decision-making. To comprehend the concept of immediate rebalance, it's essential to grasp the notion of the fair value gap. A fair value gap arises from market inefficiencies or imbalances, whereas an immediate rebalance leaves no gap, no inefficiencies, or no imbalances that the price would need to return to.
Rule of Thumb
After an immediate rebalance, the expectation is for two extension candles to follow; otherwise, the immediate rebalance is considered failed. It's important to highlight that both failed and successful immediate rebalances, when considered within a context, are significant signatures in trading.
Immediate rebalances can occur anywhere and in any timeframe.
🔹 Buyside/Sellside Liquidity
In the context of Inner Circle Trader's teachings, liquidity primarily refers to the presence of stop losses or pending orders, that indicate concentrations of buy or sell orders at specific price levels. Institutional traders, like banks and large financial entities, frequently aim for these liquidity levels or pools to accumulate or distribute their positions.
Buyside liquidity denotes a chart level where short sellers typically position their stops, while Sellside liquidity indicates a level where long-biased traders usually place their stops. These zones often serve as support or resistance levels, presenting potential trading opportunities.
The presentation applied here is the multi-timeframe version of our previously published Buyside-Sellside-Liquidity script.
🔹 Order Blocks & Breaker Blocks
Order Blocks and Breaker Blocks hold significant importance in technical analysis and play a crucial role in shaping market behavior.
Order blocks are fundamental elements of price action analysis used by traders to identify key levels in the market where significant buying or selling activity has occurred. These blocks represent areas on a price chart where institutional traders, banks, or large market participants have placed substantial buy or sell orders, leading to a temporary imbalance in supply and demand.
Breaker blocks, also known as liquidity clusters or pools, complement order blocks by identifying zones where liquidity is concentrated on the price chart. These areas, formed from mitigated order blocks, often act as significant barriers to price movement, potentially leading to price stalls or reversals in the future.
🔹 Liquidity Voids
Liquidity voids are sudden price changes when the price jumps from one level to another. Liquidity voids will appear as a single or a group of candles that are all positioned in the same direction. These candles typically have large real bodies and very short wicks, suggesting very little disagreement between buyers and sellers.
Here is our previously released Liquidity-Voids script.
🔹 ICT Macros
In the context of ICT's teachings, a macro is a small program or set of instructions that unfolds within an algorithm, which influences price movements in the market. These macros operate at specific times and can be related to price runs from one level to another or certain market behaviors during specific time intervals. They help traders anticipate market movements and potential setups during specific time intervals.
Here is our previously released ICT-Macros script.
🔶 SETTINGS
🔹 Immediate Rebalances
Immediate Rebalances: toggles the visibility of the detected immediate rebalance patterns.
Bullish, and Bearish Immediate Rebalances: color customization options.
Wicks 75%, %50, and %25: color customization options of the wick price levels for the detected immediate rebalance.
Ignore Price Gaps: ignores price gaps during calculation.
Confirmation (Bars): specifies the number of bars required to confirm the validation of the detected immediate rebalance.
Immediate Rebalance Icon: allows customization of the size of the icon used to represent the immediate rebalance.
🔹 Buyside/Sellside Liquidity
Buyside/Sellside Liquidity: toggles the visibility of the buy-side/sell-side liquidity levels.
Timeframe: this option is to identify liquidity levels from higher timeframes. If a timeframe lower than the chart's timeframe is selected, calculations will be based on the chart's timeframe.
Detection Length: lookback period used for the detection.
Margin: sets margin/sensitivity for the liquidity levels.
Buyside/Sellside Liquidity Color: color customization option for buy-side/sell-side liquidity levels.
Visible Liquidity Levels: allows customization of the visible buy-side/sell-side liquidity levels.
🔹 Order Blocks & Breaker Blocks
Order Blocks: toggles the visibility of the order blocks.
Breaker Blocks: toggles the visibility of the breaker blocks.
Swing Detection Length: lookback period used for the detection of the swing points used to create order blocks & breaker blocks.
Mitigation Price: allows users to select between the closing price or the wick of the candle.
Use Candle Body in Detection: allows users to use candle bodies as order block areas instead of the full candle range.
Remove Mitigated Order Blocks & Breaker Blocks: toggles the visibility of the mitigated order blocks & breaker blocks.
Order Blocks: Bullish, Bearish Color: color customization option for order blocks.
Breaker Blocks: Bullish, Bearish Color: color customization option for breaker blocks.
Visible Order & Breaker Blocks: allows customization of the visible order & breaker blocks.
Show Order Blocks & Breaker Blocks Labels: toggles the visibility of the order blocks & breaker blocks labels.
🔹 Liquidity Voids
Liquidity Voids: toggles the visibility of the liquidity voids.
Liquidity Voids Width Filter: filtering threshold while detecting liquidity voids.
Ignore Price Gaps: ignores price gaps during calculation.
Remove Mitigated Liquidity Voids: remove mitigated liquidity voids.
Bullish, Bearish, and Mitigated Liquidity Voids: color customization option..
Liquidity Void Labels: toggles the visibility of the liquidity voids labels.
🔹 ICT Macros
London and New York (AM, Launch, and PM): toggles the visibility of specific macros, allowing users to customize macro colors.
Macro Top/Bottom Lines, Extend: toggles the visibility of the macro's pivot high/low lines and allows users to extend the pivot lines.
Macro Mean Line: toggles the visibility of the macro's mean (average) line.
Macro Labels: toggles the visibility of the macro labels, allowing customization of the label size.
🔶 RELATED SCRIPTS
ICT-Killzones-Toolkit
Smart-Money-Concepts
Thanks to our community for recommending this script. For more conceptual scripts and related content, we welcome you to explore by visiting >>> LuxAlgo-Scripts .
Reversal Candlestick Structure [LuxAlgo]The Reversal Candlestick Structure indicator detects multiple candlestick patterns occurring when trends are most likely to experience a reversal in real-time. The reversal detection method includes various settings allowing users to adjust the reversal detection algorithm more precisely.
A dashboard showing the percentage of patterns detected as reversals is also included.
🔶 USAGE
Candlestick patterns are ubiquitous to technical analysts, allowing them to detect trend continuations, reversals, and indecision.
The proposed tool effectively detects reversals by using the confluence between candlestick patterns and a reversal detection method based on the stochastic oscillator, acting as a filter for the patterns. If a candlestick pattern occurs while conditions suggest a potential reversal then the pattern is highlighted.
The displayed candle coloring allows users to observe the reversal detection method, with colored candles indicating potential reversals.
Users wanting to detect longer-term reversals can use a higher "Trend Length" setting, this can however lead to an increased amount of displayed candlestick patterns.
To prevent false positives users also have control over a "Threshold" setting in a range between (0, 100), with values closer to 100 preventing candlesticks from being detected at the start of trends.
The "Warmup Length" serves a similar purpose, and aims to prevent sudden moves to be classified as reversals. Higher values of this setting will require trends to be established for a longer period of time for reversal conditions to be detected.
🔹 Dashboard
To evaluate the role of individual candlestick patterns as potential reversal signals relative to the proposed reversal detection method, a dashboard displaying the percentage of candlestick patterns displayed (that occur when a potential reversal is detected) over the total amount detected.
Hovering on the dashboard cells of the "Reversal %" column allows displaying the total amount of patterns detected.
🔶 CANDLESTICKS PATTERNS
This tool detects 16 popular candlestick patterns, each listed in the sub-sections below.
🔹 Bullish Patterns
Hammer - A bullish reversal pattern that forms after a decline, characterized by a small body at the upper end of the trading range and a long lower shadow.
Inverted Hammer - A bullish reversal pattern that forms after a downtrend, featuring a small body at the lower end of the trading range and a long upper shadow.
Bullish Engulfing - A bullish reversal pattern where a small bearish candlestick is followed by a larger bullish candlestick that completely engulfs the previous candle.
Rising 3 - A bullish continuation pattern that consists of a long bullish candlestick followed by three smaller bearish candlesticks and then another long bullish candlestick.
3 White Soldiers - A bullish reversal pattern consisting of three consecutive long bullish candlesticks, each opening within the previous candle's body and closing higher.
Morning Star - A bullish reversal pattern made up of three candlesticks: a long bearish candlestick, followed by a short candlestick, and then a long bullish candlestick.
Bullish Harami - A bullish reversal pattern where a small bullish candlestick is completely within a previous larger bearish candlestick.
Tweezer Bottom - A bullish reversal pattern identified by an initial bullish candle, followed by a bearish candle, both having equal lows.
🔹 Bearish Patterns
Hanging Man - A bearish reversal pattern that forms after an uptrend, characterized by a small body at the upper end of the trading range and a long lower shadow.
Shooting Star - A bearish reversal pattern that forms after an uptrend, featuring a small body at the lower end of the trading range and a long upper shadow.
Bearish Engulfing - A bearish reversal pattern where a small bullish candlestick is followed by a larger bearish candlestick that completely engulfs the previous candle.
Falling 3 - A bearish continuation pattern that consists of a long bearish candlestick followed by three smaller bullish candlesticks and then another long bearish candlestick.
3 Black Crows - A bearish reversal pattern consisting of three consecutive long bearish candlesticks, each opening within the previous candle's body and closing lower.
Evening Star - A bearish reversal pattern made up of three candlesticks: a long bullish candlestick, followed by a short candlestick, and then a long bearish candlestick.
Bearish Harami - A bearish reversal pattern where a small bearish candlestick is completely within a previous larger bullish candlestick.
Tweezer Top - A bearish reversal pattern is identified by an initial bullish candle, followed by a bearish candle, both having equal highs."
🔶 SETTINGS
🔹 Patterns
Group including toggles for each of the supported candlestick patterns. Enabled toggles will allow detection of the associated candlestick pattern.
🔹 Reversal Detection
Trend Length: Determines the sensitivity of the reversal detection method to shorter-term variation, with higher values returning a detection method more sensitive to longer-term trends.
Threshold: Determines how easy it is for the reversal detection method to consider a trend at an extreme point.
Warmup Length: Warmup period in the reversal detection method, longer values will require a longer-term trend to detect potential reversals.
🔹 Style
Color Candles: Enable candle coloring on the user chart based on the reversal detection method.
Use Gradient: Use a gradient as candle coloring.
Label Size: Size of the labels displaying the detected candlesticks patterns.
🔹 Dashboard
Show Dashboard: Display the dashboard on the user chart when enabled.
Location: Dashboard location on the user chart.
Size: Size of the displayed dashboard.
Liquidity Grab Zones | Flux Charts💎 GENERAL OVERVIEW
Introducing our new Liquidity Grab Zones Indicator! This indicator finds liquidity grabs in the current ticker and renders buyside & sellside liquidity grab zones. The retests and breakout of the zones are labeled, and you can set up alerts to get notified. For more information, please check the "HOW DOES IT WORK" section.
Features of the new Liquidity Grab Zones Indicator :
Renders Buyside & Sellside Liquidity Grab Zones
Retests & Breaks
Inverse Zones After Broken Feature
Alerts For All Features
Customizable Algorithm
Customizable Styles
🚩UNIQUENESS
Liquidity grabs can be useful when determining candles that have executed a lot of market orders, so you can plann your trades accordingly. This indicator lets you customize the pivot length and the wick-body ratio for liquidity grabs, provide retest & breakout labels, with customized styling and alerts.
📌 HOW DOES IT WORK ?
Liquidity grabs occur when one of the latest pivots has a false breakout. Then, if the wick to body ratio of the bar is higher than 0.5 (can be changed from the settings) a zone is plotted.
These zones usually indicate areas of high market interest where price action may reverse or accelerate. Identifying these zones can provide traders with critical levels for entering or exiting trades. A breakout of these zones generally mean strong movements are inbound, while failing breakouts make these zones act like support / resistance zones.
The indicator also reverses the type of the zone after an invalidation (can be turned off from the settings). This feature helps traders identify potential reversals more accurately.
The zone width is set to the area from the wick to the body of the candlestick, which can be seen here :
⚙️SETTINGS
1. General Configuration
Pivot Length -> This setting determines the range of the pivots. This means a candle has to have the highest / lowest wick of the previous X bars and the next X bars to become a high / low pivot.
Wick-Body Ratio -> After a pivot has a false breakout, the wick-body ratio of the latest candle is tested. The resulting ratio must be higher than this setting for it to be considered as a liquidity grab.
Zone Invalidation -> Select between Wick & Close price for Liquidity Grab Zone Invalidation.
Use these customizable settings to fine-tune the indicator according to your trading strategy and preferences.
Indecisive CandlesAn Indecisive Candle, often referred to as a Base Candle, is a pivotal element in technical analysis, particularly for identifying institutional supply and demand zones. These candles are characterized by their small bodies and long wicks, reflecting a balance between buyers and sellers, indicating a potential pause or consolidation in the market.
To calculate whether a candle qualifies as an indecisive candle based on the criterion that its body (the absolute difference between its open and close prices) is less than or equal to 50% of the total range of the candle (the difference between its high and low prices).
Key Features:
Small Real Body: Signifies minimal movement from open to close, indicating market indecision.
Long Upper and Lower Wicks: Show that both bulls and bears attempted to control the price, but neither succeeded, leading to a standoff.
Formation Context: Typically found at the end of a strong trend or within a consolidation phase, hinting at a potential reversal or continuation pattern.
Usage in Identifying Institutional Supply and Demand:
Supply Zones: When an Indecisive Candle forms after a rally, it can mark the onset of an institutional supply zone, suggesting that large entities are starting to sell, leading to potential downward pressure.
Demand Zones: Conversely, when this candle appears after a downtrend, it often signals the emergence of a demand zone, where institutions begin to accumulate, anticipating a price increase.
Trading Strategies:
Zone Identification: Use Indecisive Candles to pinpoint key supply and demand zones on your chart, enhancing the accuracy of your support and resistance levels.
Confirmation: Look for confirmation from subsequent price action or volume spikes to validate the presence of institutional activity before making trading decisions.
Risk Management: Place stop-loss orders beyond the wicks of these candles to protect against false breakouts or continued indecision.
Conclusion:
Indecisive Candles are essential tools for traders looking to understand market sentiment and institutional behavior. By mastering their identification and interpretation, you can enhance your ability to spot high-probability trading opportunities and manage risks effectively.
PDH PDL IndicatorThis TradingView indicator plots important historical levels on your chart, including the previous day's high (PDH) and low (PDL), previous week's high (PWH) and low (PWL), and the current day's, week's, and month's opening prices (D, W, M). The lines and labels are customizable in terms of color, and each level can be toggled on or off based on your preference.
Features:
PDH (Previous Day High): Displays the high price of the previous trading day.
PDL (Previous Day Low): Displays the low price of the previous trading day.
PWH (Previous Week High): Displays the high price of the previous trading week.
PWL (Previous Week Low): Displays the low price of the previous trading week.
D (Daily Open): Displays the opening price of the current trading day.
W (Weekly Open): Displays the opening price of the current trading week.
M (Monthly Open): Displays the opening price of the current trading month.
Customization:
Color Settings: You can customize the colors of the lines and text for each level.
Toggle Levels: You can toggle the display of each level (PDH, PDL, PWH, PWL, D, W, M) on or off.
How to Use:
Add the indicator to your TradingView chart.
Customize the colors and toggle the levels as per your requirements from the settings panel.
The lines will be plotted on the right side of the last candle, with labels indicating the corresponding level.
Example Usage:
This indicator is particularly useful for traders who want to keep track of significant price levels from previous trading sessions and the opening prices of the current trading periods. These levels can serve as potential support and resistance areas.
Candle Size with Moving Averages and AlertsOverview
The "Candle Size with Moving Averages and Alerts" indicator is designed to provide traders with a visual representation of the size of each candle. This is useful for identifying periods of high volatility or significant price movements. The indicator also offers moving averages of the candle sizes and customizable alert thresholds to notify traders of unusually large or small candles.
Key Features
Candle Size Plot: Displays the size of each candle on a separate panel.
Moving Averages: Optionally plot moving averages of the candle sizes with customizable lengths and colors.
Alert Thresholds: Define thresholds to get alerted when candle sizes are unusually large or small.
Customizable Colors: Choose colors for different elements of the indicator.
Alerts: Visual and background color alerts for significant candle sizes.
How to Use the Indicator
Adding the Indicator to Your Chart
Open TradingView and navigate to your chart.
Click on the "Indicators" button at the top of the chart.
Search for "Candle Size with Moving Averages and Alerts."
Click on the indicator to add it to your chart.
Customizing the Indicator
Once the indicator is added to your chart, click on the settings icon (gear icon) next to the indicator's name in the chart legend.
This will open the settings panel where you can customize various parameters of the indicator.
Settings and Parameters
Show Moving Averages
Checkbox: Enable or disable the display of moving averages on the candle size plot.
MA Length 1
Input: Set the length of the first moving average (default is 14).
MA Length 2
Input: Set the length of the second moving average (default is 28).
Alert Threshold
Input: Define the threshold for alerts as a multiple of the average candle size (default is 1.5).
MA Color 1
Color Picker: Choose the color for the first moving average (default is blue).
MA Color 2
Color Picker: Choose the color for the second moving average (default is red).
Candle Size Color
Color Picker: Choose the color for the candle size plot (default is green).
Alert Threshold Color
Color Picker: Choose the color for the alert thresholds (default is orange).
Understanding the Plots
Candle Size Plot
The main plot shows the size of each candle (high minus low) in green by default.
This helps you visualize the volatility and identify significant price movements.
Moving Averages
If enabled, two moving averages are plotted on the candle size chart to help you understand the average candle size over different periods.
MA 1 (blue by default) and MA 2 (red by default) provide a smoothed view of the candle sizes.
Alert Thresholds
The upper and lower thresholds are plotted as dashed lines (orange by default).
The upper threshold indicates an unusually large candle size, while the lower threshold indicates an unusually small candle size.
Alerts and Background Colors
When the candle size exceeds the upper threshold, an alert is triggered, and the background color changes to a semi-transparent orange.
When the candle size falls below the lower threshold, an alert is triggered, and the background color changes to a semi-transparent orange.
These visual cues help you quickly identify significant candle sizes.
Example Settings
MA Length 1: 14
MA Length 2: 28
Alert Threshold: 1.5
MA Color 1: Blue
MA Color 2: Red
Candle Size Color: Green
Alert Threshold Color: Orange
Doji Modern IndicatorDoji Patterns will be found based on 3 conditions -
Check if Open-close difference is a certain percentage of High-low difference
Check Upper & Lower wick sizes are greater than respective min threshold values
Check if the difference of Upper & Lower wick size is higher than the min threshold value
The threshold values are predetermined based on the timeframe selected for the chart
Candle Price MovementThis Pine Script indicator calculates and visualizes the price movement for each candlestick on the chart.
- **Calculation**: The price movement for each candle is determined by subtracting the opening price from the closing price.
- **Visualization**: The price movement is plotted as a histogram, with positive values indicating upward movement (green bars) and negative values indicating downward movement (red bars).
- **Options**:
- The histogram bars are colored blue with zero opacity, providing a clear visual distinction from the background.
- A horizontal line at zero (the "Zero Line") is added for reference, helping to identify periods of no price movement.
---
This indicator provides traders with a quick visualization of the price movement for each candlestick, helping to identify trends and potential trading opportunities.
7 hours a day by Yasser (YWMAAAWORLD)Hey there, traders! Today, we're diving into a nifty Pine Script called "7 hours a day," crafted by me Yasser (YWMAAAWorld). So, what's the scoop?
Imagine having a tool that highlights specific times on your chart like clockwork, making your trading day a breeze. That's precisely what this script does. It's like having a personal assistant reminding you of the important moments in the market.
Picture this: as the clock strikes 8:00 PM and 3:00 AM, our script draws these magical lines on your chart. These aren't just any lines; they're your guides, marking the boundaries of a crucial 7-hour period. Think of it as your trading sanctuary within the chaos of the market.
But wait, there's more! Our script isn't just about pretty lines. It's smart too. It knows when it's a weekend or Monday morning, so you can kick back and relax without unnecessary clutter on your chart.
Now, here's where the magic really happens. Within these 7-hour windows, our script calculates the highest and lowest price points, giving you a clear picture of market dynamics during those crucial hours. It's like having a crystal ball revealing the market's secrets.
So, whether you're a seasoned trader or just starting, "7 hours a day" is your trusty sidekick, guiding you through the twists and turns of the market with style and precision. Say goodbye to guesswork and hello to clarity in your trading journey!
it is believed that market ranges within these 7-hour windows, and when broken up or down you could expect a momentum price movement.
Length True Range BarColorOverview
The indicator prints different colors on the candles for pre-determined amplitudes in relation to the simple moving average over the average true range.
Calculations
The indicated value of the simple moving average in relation to the average true range is being used to restrict the color of the candle signal to its pre-determined amplitude.
How It Works
Supposing you have a strategy where there is a need to determine the size of the acceptable signal bar in relation to the average true range, as well as size your stop and target through this range. In summary, coloring based on the size of the amplitude due to the average of the ATR, provides the ease of identifying weak signals, where there will possibly not be a sequence of movement, or identifying stretched signals where it will possibly provide a correction movement. This way you can determine an ideal size range for your input signal. Ex: Color candle signal with size of ( Candle => 2* the SMA (ATR) and <= 3* the SMA (ATR).
Inputs
Valores
Period: To determine the length of the ATR
SMA: To determine the length of the Simple Moving Average
LengthMin: Minimum amplitude size factor
LengthMax: Maximum amplitude size factor
Traço: Coloring ATR
SMA: Coloring SMA
Traço: Coloring TR
Bar Color: Coloring candle Sing
Note 1
The values of ATR, SMA and TR will normally be shown in the indicator header for a dynamic visualization of the values, and possible exceptions for candles signals outside the initially proposed factor can be compared.
Note 2
Codes made available in the PINE language reference manual were used to develop the indicator, therefore it is a practical code for trend following setup strategies not available in the community.
Johnny's Trend Lines, Supports and ResistancesInspired and based on ismailcarlik's Trend Lines, Supports and Resistances.
Additions include an overall upgrade to Pinescript v5, changes in the way resistance and support levels are calculated, improved visual queues, and additional customization options.
This indicator is meticulously crafted to provide traders with visual tools for identifying trend lines, support, and resistance levels, enhancing the decision-making process in trading activities.
Features and Functionality
Trend Lines: The indicator allows users to enable or disable trend lines, adjust the number of points to check for establishing a trend, and set parameters for trend validation, including the maximum violation and exceptions for the last bars.
Support and Resistance: It offers tools to identify and visualize key support and resistance levels based on recent pivot points. This includes adjustable parameters for the maximum violations allowed and the exclusion of recent bars from the analysis.
Pivot Points: Users can define the pivot length for calculating highs and lows, which helps in marking significant pivot points that are instrumental in trend analysis.
Alerts and Notifications: The indicator is equipped with customizable alerts for trend line breaches and pivot point formations, which can be set to trigger at different frequencies based on user preference.
How It Works
Input Flexibility: Users can adjust various settings like the length of trend lines and pivot points, enabling or disabling specific features like marking pivots, and managing alert settings directly from the indicator’s input panel.
Dynamic Analysis: By analyzing the price action relative to the calculated trend lines and pivot points, the indicator dynamically identifies potential trend reversals, continuations, and significant price levels.
Visualization: It plots trend lines and marks support and resistance levels directly on the chart, with options to extend these lines and add labels for better clarity. Violated trend lines can be visually differentiated by changing their style and width.
Practical Application
Trend Line Strategy: Traders can use the trend lines to determine the strength of the current market trend and to spot potential reversal points.
Support and Resistance Strategy: By marking where the price has historically faced resistance or found support, traders can plan entry and exit points, set stop-loss orders, or identify breakout opportunities.
Pivot Points Strategy: Pivot points serve as vital indicators for intraday trading or long-term trend analysis, providing insights into potential support and resistance levels.
Customization and Alerts
Custom Alerts: Traders can set alerts for when the price crosses trend lines or when new support or resistance levels are formed, helping them stay informed of critical market movements without having to continuously monitor the charts.
Visual Customization: Users can personalize the appearance of trend lines and labels, choosing from a variety of colors and styles to match their chart setup or preferences.
"Johnny's Trend Lines, Supports and Resistances" is an essential tool for traders who rely on technical analysis, offering detailed insights and real-time updates on market conditions, trend strength, and potential price barriers.
Untested Levels Dynamic Timeframes**WORKS BEST ON 30M TIMEFRAME**
This indicator, titled "Untested Levels with Timeframes" is designed to identify and visualize price levels within different timeframes that have not been tested recently. Here's a breakdown of its benefits and usage:
Identifying Untested Price Levels: The indicator helps traders identify support and resistance levels that haven't been tested for a specified period within different timeframes. This can be valuable because untested levels may represent potential areas where price could reverse or encounter significant movement.
Customizable Timeframes: The indicator allows users to specify different timeframes (e.g., 30 minutes, 1 hour, 4 hours, daily) for analyzing untested levels. This flexibility enables traders to adapt the tool to their trading style and preferences.
Visual Representation: Untested levels are plotted on the chart as rays extending to the right. This visual representation makes it easy for traders to identify and assess these levels at a glance, enhancing their chart analysis process.
Dynamic Management: The indicator dynamically manages untested and tested levels over time, ensuring that traders focus on the most relevant price levels within each timeframe. This feature helps prevent clutter on the chart and maintains the indicator's effectiveness.
Potential Trading Opportunities: By identifying untested levels, traders may uncover potential trading opportunities, such as entering trades near untested support or resistance levels or waiting for confirmation of a breakout or reversal at these levels.
Risk Management: Understanding untested levels can also assist in risk management by providing traders with additional context when setting stop-loss levels or determining the risk-reward ratio for a trade.
Overall, this indicator can be a valuable tool for traders seeking to enhance their technical analysis and identify potential trading opportunities based on untested price levels across different timeframes. However, like any trading tool, it's essential to combine it with other analysis techniques and thoroughly backtest it to assess its effectiveness within your trading strategy.
Single Prints - BrightSingle Prints - Bright is a Pine Script indicator designed to identify and visualize significant price levels based on the concept of "single prints." Single prints are price levels where trading activity occurred but with little or no follow-up trading. This indicator plots these levels as lines on the chart, allowing traders to easily identify areas of potential support and resistance.
Features:
Customizable Line Distance: Adjust the distance between single print lines to suit your trading style and time frame.
Maximum Array Size: Set the maximum number of single print lines to be displayed on the chart.
Remove Gaps: Option to remove lines if the price gaps over them.
Multiple Time Frames: Choose to display single prints for daily, weekly, monthly, or yearly sessions.
Color Gradient: Lines are color-coded from red (oldest) to green (newest), providing a visual indication of their relative age.
Thicker, Lime-Colored Lines: Improved visibility with thicker lines and a more lime-like color scheme for easier identification on the chart.
How to Use:
Adding the Indicator:
Open TradingView and navigate to the chart where you want to apply the indicator.
Click on "Indicators" in the top menu.
Select "Pine Editor" and paste the provided Pine Script code into the editor.
Click "Add to Chart" to apply the indicator to your chart.
Configuring the Indicator:
Distance Between Lines (i_line_distance): Set the distance between single print lines. Adjust this value based on the volatility and time frame of the asset you are trading.
Maximum Array Size (i_max_array): Define the maximum number of single print lines to be displayed on the chart. This helps in managing the clutter on the chart.
Remove Gaps (i_remove_gaps): Enable or disable the option to remove lines if the price gaps over them.
Show Daily Single Prints (ShowDailySP): Enable or disable the display of daily single print lines.
Show Daily Extended Single Prints (ShowDailyExtendSP): Enable or disable the display of extended daily single print lines.
Show Weekly Single Prints (ShowWeeklySP): Enable or disable the display of weekly single print lines.
Show Monthly Single Prints (ShowMonthlySP): Enable or disable the display of monthly single print lines.
Show Yearly Single Prints (ShowYearlySP): Enable or disable the display of yearly single print lines.
Interpreting the Lines:
Color Gradient: The lines are color-coded to indicate their relative age. Red lines are the oldest, transitioning through orange and yellow to green, which are the newest. This color gradient helps in identifying how long a particular level has been significant.
Support and Resistance: Use the lines as potential support and resistance levels. Multiple lines close together indicate stronger levels of support or resistance.
Volatility Analysis: The number of lines within a gap can provide insights into market volatility. More lines indicate higher volatility and multiple potential reversal points within that range.
Trading Strategies:
Entry Points: Consider using the single print lines as entry points. For example, if the price approaches a support level with multiple lines, it may be a good buying opportunity.
Stop Loss and Take Profit: Use the single print lines to set stop-loss and take-profit levels. Placing stop-loss orders below multiple support lines can provide additional protection.
Trend Analysis: Analyze the overall trend and momentum in conjunction with the single print lines to make informed trading decisions. If the price is in an uptrend and approaching resistance lines, watch for potential breakouts or reversals.
Bulls And Bears [CHE]This Pine Script™ indicator, Bulls And Bears , aims to provide traders with potential entry points by analyzing market conditions. Here's how it works:
Calculation of Maximum and Minimum Values: The script calculates the highest and lowest values based on the high, open, close, and low prices of the asset.
Relative Strength Index (RSI) Condition: It evaluates whether the RSI value (with a period of 14) is above 50, indicating bullish momentum.
Bullish and Bearish Conditions: Based on the calculated maximum and minimum values, along with the RSI condition, it determines bullish and bearish conditions. If the current maximum value is higher than the previous maximum and the RSI condition is met, it suggests a bullish condition. Conversely, if the current maximum value is lower than the previous maximum and the RSI condition is not met, it suggests a bearish condition.
Super Smoother Function: This function is used to calculate a smoother moving average, reducing noise in the data.
Input Parameters: Traders can adjust the "Length Difference" and "Length threshold" parameters to customize the indicator according to their trading preferences.
Calculation of Super Smooth Moving Averages: The script calculates super smooth moving averages for both bullish and bearish conditions.
Plotting: It plots the super smooth moving averages on the chart, indicating potential entry points for bullish (green) and bearish (red) conditions.
Filling Areas: It fills the areas between the moving averages and the threshold line based on the conditions. Green filling represents bullish conditions, while red filling represents bearish conditions.
By using this indicator, traders can potentially identify favorable entry points based on market conditions, helping them make informed trading decisions.
Dead Simple Heikin Ashi Candles (HA Candles)Are you looking for a dead simple calculation of the Heikin Ashi candles as they are calculated in tradingview? Here it is!
I was looking through the library and I saw that many have come up with a lot of awesome scripts using heikin ashi candles. But, I can't find anywhere that had the straightforward simple version of how Tradingview calculates them. This was a problem for me because I realized after punching the formula in that TradingView doesn't calculate HA candles in the original way.
You might say they don't calculate them the "right" but, spoiler alert, there is no right in trading. You can only be rational or irrational as you make money or lose money.
This is useful to me for building out some portions of an algo that are not going to be compatible with the built-in function. It happens. So, if you were looking for it too, hopefully it saves you some time.
For reference the original calc of HA candles is:
o = (prev_HA_open + prev_HA_close) / 2
h = math.max(high, ha_open, ha_close)
l = math.min(low, ha_open, ha_close)
c = ohlc4
Trade Well.
LumleyTrading GapsName: LumleyTrading Gaps
Description:
The Gap Tracker Indicator is a powerful tool designed for traders to identify, monitor, and capitalize on price gaps in financial markets. It serves two primary functions:
Identifying Gaps: The indicator scans price action to detect instances where the current trading session's opening price significantly differs from the previous session's closing price. These disparities indicate the presence of price gaps.
Tracking Gap Fills: Once a gap is identified, the indicator continues to monitor the price movement. It dynamically adjusts its parameters to track whether and when the price retraces back to fill the gap. As soon as the gap is filled, the indicator generates a signal to notify traders of this occurrence.
Key Features:
Customizable Parameters: Traders can adjust the sensitivity and criteria for what constitutes a significant gap based on their trading preferences and the market conditions.
Visual Alerts: The indicator provides clear visual signals on price charts, highlighting the presence of gaps and indicating when they are filled. This helps traders to easily spot trading opportunities and make informed decisions.
Alert Notifications: In addition to visual cues, traders can opt to receive real-time alerts via email, SMS, or within their trading platform, ensuring they never miss an opportunity or a filled gap.
Historical Analysis: The indicator may also offer historical gap data, allowing traders to conduct backtesting and analyze the performance of trading strategies based on gap patterns.
Benefits:
Gap Trading Opportunities: Traders can use the indicator to identify potential areas of price continuation or reversal, leveraging the phenomenon of gap trading for profit.
Risk Management: By tracking gap fills, traders can manage their risk more effectively, knowing when a gap is likely to act as support or resistance and adjusting their positions accordingly.
Enhanced Decision Making: With real-time gap detection and fill tracking, traders gain valuable insights into market sentiment and price dynamics, empowering them to make timely and informed trading decisions.
Compatibility:
The Gap Tracker Indicator is compatible with popular trading platforms and can be seamlessly integrated into various technical analysis tools and strategies.
Conclusion:
In the fast-paced world of financial markets, identifying and understanding price gaps is crucial for successful trading. The Gap Tracker Indicator provides traders with a reliable tool to spot, track, and capitalize on gap opportunities, enhancing their trading efficiency and profitability.
Wyckoff Method IndicatorThe Wyckoff Method Market Cycle Indicator is a powerful tool designed to help traders identify the current market phase based on the principles of the Wyckoff Method. This indicator analyzes price action and volume patterns to determine whether the market is in an accumulation, markup, distribution, or markdown phase.
The Wyckoff Method, developed by Richard D. Wyckoff, is a time-tested approach to understanding market dynamics and identifying potential trading opportunities. By studying the interaction between price and volume, the Wyckoff Method aims to provide insight into the actions of market participants and the potential direction of the market.
This indicator automatically detects the key market phases as defined by the Wyckoff Method:
Accumulation: This phase occurs when large institutional investors are quietly accumulating positions, often leading to a period of consolidation with low volatility and decreasing volume.
Markup: Following the accumulation phase, the markup phase is characterized by a breakout above the accumulation range, accompanied by increasing volume. This indicates a potential bullish trend.
Distribution: After a significant price advance, the distribution phase emerges. It is marked by high volatility and increasing volume as large investors begin to distribute their holdings to the public.
Markdown: The markdown phase follows the distribution phase and is characterized by a breakdown below the distribution range, accompanied by increasing volume. This suggests a potential bearish trend.
The indicator plots the detected market phases on the chart using the following signals:
Green triangle pointing upwards: Accumulation phase
Blue triangle pointing downwards: Markup phase
Red triangle pointing downwards: Distribution phase
Orange triangle pointing upwards: Markdown phase
By utilizing this indicator, traders can gain valuable insights into the underlying market structure and make more informed trading decisions. However, it is important to note that the Wyckoff Method Market Cycle Indicator should be used in conjunction with other technical analysis tools and risk management strategies.
The indicator provides two input parameters:
Lookback Period: The number of bars used to calculate the volatility and determine the market phases. The default value is 50.
Volume Condition Multiple: The multiple used to compare the current volume with the volume of the lookback period. The default value is 2.
Traders can adjust these parameters to suit their specific trading style and the characteristics of the asset being analyzed.
Please note that this indicator is intended for educational and informational purposes only. It does not constitute financial advice. Always conduct your own analysis and exercise proper risk management when trading.
Happy trading!
Engulfing CandlesThis script serves as the "Engulfing Candles" indicator in TradingView. Here's what it does:
- It identifies bullish candlestick patterns where the current candle's high is lower than the previous candle's high, the current candle's low is higher than the previous candle's low, the current candle's close is higher than the previous candle's close, and the current candle's open is higher than the previous candle's open. It also identifies bearish candlestick patterns where the conditions are reversed.
- The indicator colors bullish candles in a specific color (Yellow Green) to visually highlight the bullish pattern, and colors bearish candles in another color (Purple pink) to visually highlight the bearish pattern.
- Additionally, it triggers an alert when either the bullish or bearish triangle shape appears, notifying traders with the message "A Southern Star Shadows pattern has appeared!"
High-Low DifferenceThe "High-Low Difference" indicator calculates the difference between the high and low prices within a specified period. In technical analysis, the high and low prices of an asset over a given period can provide valuable insights into the price volatility and trading range. By subtracting the low price from the high price, this indicator quantifies the range covered by price movements during the selected timeframe.
Understanding the high-low difference is essential for traders and analysts to gauge the volatility and potential price movements of an asset. A larger difference indicates higher volatility, implying greater price fluctuation within the chosen period. Conversely, a smaller difference suggests lower volatility, indicating relatively stable price movements.
Traders often use the high-low difference as part of their technical analysis toolkit to identify potential trading opportunities. For instance, a significant increase in the high-low difference may signal a breakout or increased market activity, prompting traders to adjust their trading strategies accordingly. Conversely, a narrowing high-low difference may indicate decreased volatility or a period of consolidation, suggesting potential price range-bound trading conditions.
Overall, the high-low difference serves as a simple yet valuable metric for understanding price volatility, identifying trading opportunities, and making informed decisions in the financial markets.
Support Resistance & Ema
The "Support Resistance & Ema" indicator combines various strategies to assist traders in identifying significant support and resistance levels on the chart and in following trends through exponential moving averages (EMA). This script is designed to be versatile and useful in different trading strategies.
Key Features:
Support and Resistance: It utilizes pivot highs and lows to pinpoint support and resistance levels. These levels are plotted on the chart with lines that change color based on trend reversals.
Trend Identification: The indicator follows trends using four conditions:
_hh: Higher highs and higher lows, indicating an uptrend.
_ll: Lower highs and lower lows, indicating a downtrend.
_hl: Higher highs and lower lows, indicating weakening uptrend or an impending reversal.
_lh: Lower highs and higher lows, indicating weakening downtrend or an impending reversal.
Exponential Moving Averages (EMA): It also displays various EMAs (9, 21, 50, 100, 200) on the chart to provide further insights into the trend direction.
Usage:
Support and Resistance: Support and resistance lines are automatically plotted on the chart. Trend reversals are highlighted by changing the color of the lines.
Trend Identification: The _hh, _ll, _hl, _lh conditions help identify trend changes. When one of these conditions is met, it indicates a particular configuration of highs and lows that might suggest a trading opportunity.
Exponential Moving Averages (EMA): The EMAs are plotted on the chart and can be used to confirm trends identified by the main indicator.
To use this script, you need to add it as an indicator to your trading chart. Once applied, the support, resistance lines, and EMAs will be visible on the chart, providing traders with valuable information to make informed trading decisions.
In summary, this script offers a comprehensive way to identify significant support and resistance levels, spot market trends, and confirm those trends through the use of exponential moving averages.
HTF Candle Consistency [LuxAlgo]The HTF Candle Consistency indicator tracks the most recent candle sentiment in up to 10 Higher Timeframe (HTF) and colors the user chart candle bodies based on the dominating sentiment. Users can weigh specific timeframes more significantly.
Additionally, the script provides an HTF dashboard that displays the current directional readouts for each selected timeframe to allow for an independent HTF analysis.
🔶 USAGE
Analyzing the movement and direction of higher timeframe candles can help filter out noisy variation from the price, and could be utilized to time trades better. When the majority of recent candles from the selected timeframes are bullish, the candle body will be colored in green, if this majority is bearish it will be colored in red.
Using the "Tricolor" coloring mode introduces a third coloring option, and is used when there isn't a clear sentiment majority across the selected timeframes, this option effectively allows for filtering out unwanted trends.
Users can control the variations to be filtered out depending on their chart timeframe and the enabled HTF's in the settings. Using low timeframes with higher HTF's will gray out a larger amount of candles, disabling these timeframes, changing them, or giving higher weighting to lower HTF's will allow for obtaining more dominance detection, and as such less grayed-out candles.
As seen above, the weight function allows for precise control over the specific elements being analyzed.
This indicator also features a dashboard for viewing each timeframe's direction at the same time. By doing so, it allows for better judgment on the specific elements composing the current HTF majority.
🔶 DETAILS
This indicator is only intended for Higher Timeframe Analysis, all the input timeframes should be kept equal to or lower than your current chart timeframe.
NOTE: This is necessary for data accuracy in most multi-timeframe indicators, and is generally a good practice to keep in mind.
As a reminder, the dashboard will display the timeframe in red text if a lower timeframe is detected. It is recommended to change or disable this timeframe for your analysis.
This indicator can support up to 10 timeframes, each with independent weightings.
NOTE: When a timeframe is disabled, the dashboard will no longer display that timeframe, and it will not be used in calculations.
🔹 Candle Coloring
Candle color can be selected between 3 modes.
Tricolor (Default): Changes the color based on a 3-part split of the possible data sum range.
Bicolor: Changes the color based on the sum being greater than or less than 0.
Gradient: Uses a 3-color gradient to determine the candle color based on the possible data sum range.
🔶 SETTINGS
🔹 Higher Timeframes
Toggle: Enable/Disable the timeframe from analysis.
Timeframe: Select which timeframe to use for analysis. <- NOTE: This input reflects any custom intervals you have created on Tradingview.
Weight: Determines the Weighting (Multiplier) for the timeframe's direction.
🔹 Style
Color Mode: (More details above) Determines the color mode in use for coloring candles.
🔹 Dashboard
General Settings: Control Toggle, Location, & Size of Dashboard on your chart.
Orientation: Choose to display the dashboard in a "Vertical (default)" or "Horizontal" orientation to fit your style.
[EmreKb] Volume AnalysisI've noticed that many Pine coders calculate buy and sell volumes by considering the volume of a bullish candle as buy volume and the volume of a bearish candle as sell volume. However, I believe this approach isn't very logical, especially for candles with long wicks like pinbars.
Therefore, I've devised a method to calculate the buy and sell volumes of a candle by separately considering the sizes of its top and bottom wicks and its body. I distribute the volume of the candle equally among its top wick, body, and bottom wick sizes. If the candle is bearish, I consider the body volume as sell volume; if bullish, as buy volume. For the top and bottom wick volumes, since there's a two-way movement, I allocate half to buy volume and the other half to sell volume.
This indicator displays the sum of buy and sell volumes retrospectively up to the "lookback" value on the candle. You can set the lookback value to 1 to only visualize the buy and sell volume distribution of a single candle.
If this method has been used by another Pine coder, please inform me!