SMA DMA Crossing SignalSMA and DMA Crossing Buy Sell Signals
This script implements a Double Moving Average (DMA) strategy, a popular technical analysis technique used by traders to identify trends and potential buy/sell signals in financial markets.
**Description:**
The Double Moving Average strategy involves the calculation of two moving averages – a short-term moving average and a long-term moving average. In this script, we calculate these moving averages as follows:
1. **Short-term DMA (`dmaShort`):**
- Calculated using a 28-bar Simple Moving Average (SMA).
- Represents the shorter-term trend in the price movement.
2. **Long-term DMA (`dmaLong`):**
- Also calculated using a 28-bar SMA.
- Displaced backward by 14 bars (`dmaLong := request.security(syminfo.tickerid, "D", dmaLong )`), effectively creating a 28-bar SMA with a -14 bar displacement.
- Represents the longer-term trend in the price movement.
**Signals:**
Buy and sell signals are generated based on the crossing of the short-term DMA over or under the long-term DMA:
- **Buy Signal (`DMA BUY`):** Occurs when the short-term DMA crosses above the long-term DMA (`dmaBuySignal`).
- **Sell Signal (`DMA SELL`):** Occurs when the short-term DMA crosses below the long-term DMA (`dmaSellSignal`).
**How to Use:**
- **Buy Signal:** Consider entering a long position when the short-term DMA crosses above the long-term DMA, indicating a potential uptrend.
- **Sell Signal:** Consider exiting a long position or entering a short position when the short-term DMA crosses below the long-term DMA, indicating a potential downtrend.
This script provides a visual representation of the DMA crossover signals on the chart, helping traders identify potential entry and exit points in the market.
**Note:** It's important to combine DMA signals with other technical analysis tools and risk management strategies for informed trading decisions.
All comments are welcome..
Chart patterns
Indecisive and Explosive CandlesThe Explosive & Base Candle with Gaps Identifier is an indicator designed to enhance your market analysis by identifying critical candle types and gaps in price action. This tool aids traders in pinpointing zones of significant buyer-seller interaction and potential institutional activity, providing valuable insights for strategic trading decisions.
Main Features:
Base Candle Identification: This feature detects Base candles, also known as indecisive candles, within the price action. A Base candle is characterized by a body (the difference between the close and open prices) that is less than or equal to 50% of its total range (the difference between the high and low prices). These candles mark zones where buyers and sellers are evenly matched, highlighting areas of potential support and resistance.
Explosive Candle Identification: The indicator identifies Explosive candles, which are indicative of strong market moves often driven by institutional activity. An Explosive candle is defined by a body that is greater than 70% of its total range. Recognizing these candles helps traders spot significant momentum and potential breakout points.
Supply and Demand Zone Identification: Both Base and Explosive candles are essential for identifying supply and demand zones within the price action. These zones are crucial for traders to place their trades based on the likelihood of price reversals or continuations.
Gap Detection: The indicator also detects gaps, defined as the difference between the close price of one candle and the open price of the next. Gaps are significant because prices often return to these levels to "fill the gap," providing opportunities for traders to predict price movements and place strategic trades.
Visual Markings and Alerts: The indicator visually marks Base and Explosive candles as well as gaps directly on the chart, making them easily identifiable at a glance. Traders can also set customizable alerts to notify them when these key candle types and gaps appear, ensuring they never miss an important trading opportunity.
Customizable Settings: Tailor the indicator’s settings to match your trading style and preferences. Adjust the criteria for Base and Explosive candles, as well as how gaps are detected and displayed, to suit your specific analysis needs.
How to Use:
Add the Indicator: Apply the Explosive & Base Candle with Gaps Identifier to your TradingView chart.
Analyze Identified Zones: Observe the marked Base and Explosive candles and gaps to identify key areas of support, resistance, and potential price reversals or continuations.
Set Alerts: Customize and set alerts for the detection of Base candles, Explosive candles, and gaps to stay informed of critical market movements in real-time.
Integrate with Your Strategy: Use the insights provided by the indicator to enhance your existing trading strategy, improving your entry and exit points based on the identified supply and demand zones.
The Explosive & Base Candle with Gaps Identifier is an invaluable tool for traders aiming to refine their market analysis and make more informed trading decisions. By identifying critical areas of price action, this indicator supports traders in navigating the complexities of the financial markets with greater precision and confidence.
Reversal Zones with SignalsThe "Reversal Zones with Signals" indicator is an advanced technical analysis tool designed to help traders identify potential market reversal points. By integrating Relative Strength Index (RSI), moving averages, and swing high/low detection, this indicator provides traders with clear visual cues for potential buy and sell opportunities.
Key Features and Benefits
Integration of Multiple Technical Analysis Tools:
The indicator seamlessly combines RSI, moving averages, and swing high/low detection. This multi-faceted approach enhances the reliability of the signals by confirming potential reversals through different technical analysis perspectives.
Customizable Parameters:
Users can adjust the sensitivity of the moving averages, the RSI overbought and oversold levels, and the length of the reversal zones. This flexibility allows traders to tailor the indicator to fit their specific trading strategies and market conditions.
Clear Visual Signals:
Buy and sell signals are plotted directly on the chart as easily recognizable green and red labels. This visual clarity simplifies the process of identifying potential entry and exit points, enabling traders to act quickly and decisively.
Reversal Zones:
The indicator plots reversal zones based on swing highs and lows in conjunction with RSI conditions. Green lines represent potential support levels (zone bottoms), while red lines represent potential resistance levels (zone tops). These zones provide traders with clear areas where price reversals are likely to occur.
Automated Alerts:
Custom alerts can be set for both buy and sell signals, providing real-time notifications when potential trading opportunities arise. This feature ensures that traders do not miss critical market moves.
How It Works
RSI Calculation:
The Relative Strength Index (RSI) is calculated to determine overbought and oversold conditions. When RSI exceeds the overbought threshold, it indicates that the market may be overbought, and when it falls below the oversold threshold, it indicates that the market may be oversold. This helps in identifying potential reversal points.
Swing High/Low Detection:
Swing highs and lows are detected using a specified lookback period. These points represent significant price levels where reversals are likely to occur. Swing highs are detected using the ta.pivothigh function, and swing lows are detected using the ta.pivotlow function.
Reversal Zones:
Reversal zones are defined by plotting lines at swing high and low levels when RSI conditions are met. These zones serve as visual cues for potential support and resistance areas, providing a structured framework for identifying reversal points.
Buy and Sell Signals:
Buy signals are generated when the price crosses above a defined reversal zone bottom, indicating a potential upward reversal. Sell signals are generated when the price crosses below a defined reversal zone top, indicating a potential downward reversal. These signals are further confirmed by the presence of bullish or bearish engulfing patterns.
Plotting and Alerts:
The indicator plots buy and sell signals directly on the chart with corresponding labels. Additionally, alerts can be set up to notify the user when a signal is generated, ensuring timely action.
Originality and Usefulness
Innovative Integration of Technical Tools:
The "Reversal Zones with Signals" indicator uniquely combines multiple technical analysis tools into a single, cohesive indicator. This integration provides a comprehensive view of market conditions, enhancing the accuracy of the signals and offering a robust tool for traders.
Enhanced Trading Decisions:
By providing clear and actionable signals, the indicator helps traders make better-informed decisions. The visualization of reversal zones and the integration of RSI and moving averages ensure that traders have a solid framework for identifying potential reversals.
Flexibility and Customization:
The customizable parameters allow traders to adapt the indicator to different trading styles and market conditions. This flexibility ensures that the indicator can be used effectively by a wide range of traders, from beginners to advanced professionals.
Clear and User-Friendly Interface:
The indicator's design prioritizes ease of use, with clear visual signals and intuitive settings. This user-friendly approach makes it accessible to traders of all experience levels.
Real-Time Alerts:
The ability to set up custom alerts ensures that traders are notified of potential trading opportunities as they arise, helping them to act quickly and efficiently.
Versatility Across Markets:
The indicator is suitable for use in various financial markets, including stocks, forex, and cryptocurrencies. Its adaptability across different asset classes makes it a valuable addition to any trader's toolkit.
How to Use
Adding the Indicator:
Add the "Reversal Zones with Signals" indicator to your chart.
Adjust the parameters (Sensitivity, RSI OverBought Value, RSI OverSold Value, Zone Length) to match your trading strategy and market conditions.
Interpreting Signals:
Buy Signal: A green "BUY" label appears below a bar, indicating a potential buying opportunity based on the detected reversal zone and price action.
Sell Signal: A red "SELL" label appears above a bar, indicating a potential selling opportunity based on the detected reversal zone and price action.
Setting Alerts:
Set alerts for buy and sell signals to receive notifications when potential trading opportunities arise. This ensures timely action and helps traders stay informed about critical market moves.
Higher Timeframe High & Low [ChartPrime]The Higher Timeframe High & Low Indicator plots key levels (high, low, and average price) from a higher timeframe onto the current chart, aiding traders in identifying significant support and resistance zones.
The indicator also detects and labels breakout points and can display trend directions based on these higher timeframe levels breakout points.
Key Features:
◆ Higher Timeframe Levels:
Plots the high, low, and average price from a selected higher timeframe onto the current chart.
Extends these levels into the future for better visualization.
◆ Breakout Detection:
Identifies and labels breakouts above the higher timeframe high or below the higher timeframe low.
Breakout points are clearly marked with labels indicating "High Break" or "Low Break" with timeframe mark.
If the following break out type is the same that previous, it does not marked by labels, but still marked by bar color.
◆ Trend Visualization:
Optionally displays trend direction by changing bar colors and line styles based on breakout conditions.
Trend indication helps in identifying bullish or bearish market conditions.
◆ Support and Resistance Indication:
Marks support and resistance points with '◆' symbols when the current timeframe's high or low interacts with the higher timeframe's levels.
◆ Period separation:
Background color changes to indicate period separation if enabled.
◆ Inputs:
Extension to the right of High and Low: Sets the number of bars to extend the high and low lines into the future.
Timeframe: Selects the higher timeframe (e.g., Daily) to use for plotting high and low levels.
Period Separator: Toggles the visual separator for periods.
Show Trend?: Toggles the trend visualization, changing bar colors and plot styles based on breakouts.
Show Breakout Labels?: Toggles the Breakout Labels visualization.
Indicator Logic:
Historical vs. Real-Time Bars: Adjusts values based on whether the bar is historical or real-time to ensure accurate plotting.
High and Low Prices: Retrieves the high and low prices from the selected higher timeframe.
Breakout Conditions: Determines if the current price has crossed above the higher timeframe high (high break) or below the higher timeframe low (low break).
Color and Trend Logic: Adjusts colors and checks for breakouts to avoid multiple labels and indicate trend direction.
Usage Notes:
This indicator is ideal for traders looking to integrate multi-timeframe analysis into their strategy.
The higher timeframe levels act as significant support and resistance zones, helping traders identify potential reversal or continuation points.
The breakout labels and trend visualization provide additional context for trading decisions, indicating when the price has breached key levels and is likely to continue in that direction.
This indicator enhances chart analysis by providing clear, visual cues from higher timeframe data, helping traders make more informed decisions based on a broader market perspective.
Forex SessionThis Trading View script highlights the trading sessions for New York, European, and Asian markets on the chart and adds labels at the start of each session. The script uses Pine Script version 5 and converts local session times to UTC to accurately display the session times regardless of your local Time zone.
Features :
Session Times:
New York: 8:30 AM to 3:00 PM (Eastern Time, GMT-4)
European: 8:00 AM to 4:30 PM (London Time, GMT+1)
Asian: 9:00 AM to 6:00 PM (Tokyo Time, GMT+9)
Background Highlighting: The script shades the background for each session.
New York Session: Blue
European Session: Green
Asian Session: Red
Today's sessions are shaded with 90% opacity.
Tomorrow's sessions are shaded with 70% opacity.
How It Works :
Session Times Conversion: The script converts the session times from local timezones to UTC
using the timestamp function.
Background Coloring: The bgcolor function is used to shade the background for each session.
Volume Breaker Blocks [UAlgo]The "Volume Breaker Blocks " indicator is designed to identify breaker blocks in the market based on volume and price action. It is a concept that emerges when an order block fails, leading to a change in market structure. It signifies a pivotal point where the market shifts direction, offering traders opportunities to enter trades based on anticipated trend continuation.
🔶 Key Features
Identifying Breaker Blocks: The indicator identifies breaker blocks by detecting pivot points in price action and corresponding volume spikes.
Breaker Block Sensitivity: Traders can adjust breaker block detection sensitivity, length to be used to find pivot points.
Mitigation Method (Close or Wick): Traders can choose between "Close" and "Wick" as the mitigation method. This choice determines whether the indicator considers closing prices or wicks in identifying breaker blocks. Selecting "Close" implies that breaker blocks will be considered broken when the closing price violates the block, while selecting "Wick" implies that the wick of the candle must violate the block for it to be considered broken.
Show Last X Breaker Blocks: Users can specify how many of the most recent breaker blocks to display on the chart.
Visualization: Volume breaker blocks are visually represented on the chart with customizable colors and text labels, allowing for easy interpretation of market conditions. Each breaker block is accompanied by informational text, including whether it's bullish or bearish and the corresponding volume, aiding traders in understanding the significance of each block.
🔶 Disclaimer
Educational Purpose: The "Volume Breaker Blocks " indicator is provided for educational and informational purposes only. It does not constitute financial advice or a recommendation to engage in trading activities.
Risk of Loss: Trading in financial markets involves inherent risks, including the risk of loss of capital. Users should carefully consider their financial situation, risk tolerance, and investment objectives before engaging in trading activities.
Accuracy Not Guaranteed: While the indicator aims to identify potential reversal points in the market, its accuracy and effectiveness may vary. Users should conduct thorough testing and analysis before relying solely on the indicator for trading decisions.
Past Performance: Past performance is not indicative of future results. Historical data and backtesting results may not accurately reflect actual market conditions or future performance.
HTF Ascending TriangleHTF Ascending Triangle aims at detecting ascending triangles using higher time frame data, without repainting nor misalignment issues.
Ascending triangles are defined by an horizontal upper trend line and a rising lower trend line. It is a chart pattern used in technical analysis to predict the continuation of an uptrend.
This indicator can be useful if you, like me, believe that higher time frames can offer a broader perspective and provide clearer signals, smoothing out market noise and showing longer-term trends.
You can change the indicator settings as you see fit to tighten or loosen the detection, and achieve the best results for your use case.
Features
It draws the detected ascending triangle on the chart.
It supports alerting when a detection occurs.
It allows for setting the higher time frame to run the detection on.
It allows for setting the minimum number of consecutive valid higher time frame bars to fit the pattern criteria.
It allows for setting a high factor detection criteria to apply on higher time frame bars high as a proportion of the distance between the reference bar high and open/close.
It allows for turning on an adjustment of the triangle using highest/lowest values within valid higher time frame bars.
Settings
Higher Time Frame dropdown: Selects higher time frame to run the detection on. It must be higher than, and a multiple of, the chart's timeframe.
Valid Bars Minimum field: Sets minimum number of consecutive valid higher time frame bars to fit the pattern criteria.
High Factor checkbox: Turns on/off high factor detection criteria.
High Factor field: Sets high factor to apply on higher time frame bars high as a proportion of the distance between the reference bar high and close/open.
Adjust Triangle checkbox: Turns on/off triangle adjustment using highest/lowest values within valid higher time frame bars.
Detection Algorithm Notes
The detection algorithm recursively selects a higher time frame bar as reference. Then it looks at the consecutive higher time frame bars (as per the requested number of minimum valid bars) as follows:
Low must be higher than previous bar.
Open/close max value must be lower than reference bar high.
When high factor criteria is turned on, high must be higher than reference bar open/close max value plus high factor proportion of the distance between reference bar high and open/close max value.
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
MFI RSThe script helps in recognizing the money flow resistance and rsi level combinations and is quite useful
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 .
Triple EMA Trend AlertThis EMA trend indicator works by determining if a short-term EMA is above an intermediate-term EMA that is in turn above a long-term EMA (in a bullish trend) or if the reverse is true in a bearish trend. An alert box is displayed on the chart to give a trend trader a quick at-a-glance reference to see which way the overall trend is moving by turning green when the trend is overall bullish, red when overall bearish, and gray when indecisive and not clearly trending (a good time for the trend trader to consider setting back and just observing as they wait for a new trend to develop). Text is displayed in the box showing the current overall trend direction. Sometimes, using this criterion, a trend can still be considered overall bullish while the EMAs are actually bearish prior an EMA crossover that results in a trend readout change to indecisive or in the opposite direction. For this reason, the indicator will also display in parenthesis if the EMAs are trending lower or higher by comparing all live-bar EMA values to that of the previous bar’s values to determine if they are collectively trending lower or higher at that time in order to give an early warning of a potential trend reversal before the EMA crossovers change the overall bullish or bearish readout of the indicator. Both the alert box and EMA line chart overlays can be turned on and off independently, if desired.
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.
Flags With Measured Move [QuantVue]Flags with Measured Moves is a technical analysis tool that identifies bull flags and provides a measured move target.
A bull flag is a continuation pattern that occurs within the context of a general uptrend. It represents a pause or small consolidation before the price resumes its upward movement.
A bull flag consists of two sections: the flagpole and the flag.
The flagpole is the initial upward movement that occurs before the flag forms.
The flag forms as the price consolidates after the initial uptrend. During this phase, the price tends to drift downward or sideways, ideally with declining volume.
Once the flag has put in a low, the initial range of thrust is added to the flag low to form the measured move target.
Every element of the flag is customizable by the trader, including the size and length of the prior uptrend and the minimum and maximum flag depth and length.
The indicator also includes alerts for when new flags are formed, when a breakout from the flag occurs, and when the measured move target is reached.
By default, the indicator settings are set for use on a daily timeframe. If using the indicator on an intraday timeframe, you will need to adjust the settings.
Give this indicator a BOOST and COMMENT your thoughts!
We hope you enjoy.
Cheers!
HH LL HL LH MarkerHH LL HL LH Marker
The "HH LL HL LH Marker" is a versatile technical analysis tool designed to help traders identify and visualize key pivot points in price action. It highlights four types of pivot points: Higher High (HH), Lower Low (LL), Higher Low (HL), and Lower High (LH), aiding in spotting potential trend reversals or continuations.
Features:
Customizable Inputs: Adjust the number of bars to look back on for pivot calculation, and choose which pivot types to display.
ZigZag Line: Optionally display a ZigZag line connecting the identified pivot points for a clearer visualization of price swings.
Visual Marker: Each pivot point type is marked with a distinct label, making it easy to identify on the chart.
How to Use:
Higher High (HH): Indicates when the current high is higher than the previous two highs, suggesting potential upward momentum.
Lower Low (LL): Signals when the current low is lower than the previous two lows, indicating potential downward momentum.
Higher Low (HL): Marks a higher low compared to the two previous lows, potentially signaling a bullish trend reversal.
Lower High (LH): Identifies a lower high compared to the two previous highs, potentially indicating a bearish trend reversal.
Usage Tips:
Combine with other technical indicators or chart patterns for comprehensive analysis.
Adjust input parameters according to the timeframe and asset being traded for optimal performance.
Note: This indicator is for educational purposes only and should be used alongside other tools and analysis techniques for making informed trading decisions.
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.
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.
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.
Previous and Premarket High/Low IndicatorDescription:
The "Previous and Premarket High/Low" indicator is designed to help traders identify key levels during the premarket, postmarket, and regular trading sessions. It highlights the highest and lowest prices during the premarket session and the previous trading day, providing critical levels for intraday trading strategies.
Features:
Customizable Display Settings: Users can adjust the colors, line styles, and line widths for the premarket and previous day high/low levels.
Session Labels: Clear labels indicating premarket and postmarket sessions for easy identification.
Alerts: Set alerts for significant price movements, such as new highs or lows during premarket and previous trading sessions.
Seasonality Widget [LuxAlgo]The Seasonality Widget tool allows users to easily visualize seasonal trends from various data sources.
Users can select different levels of granularity as well as different statistics to express seasonal trends.
🔶 USAGE
Seasonality allows us to observe general trends occurring at regular intervals. These intervals can be user-selected from the granularity setting and determine how the data is grouped, these include:
Hour
Day Of Week
Day Of Month
Month
Day Of Year
The above seasonal chart shows the BTCUSD seasonal price change for every hour of the day, that is the average price change taken for every specific hour. This allows us to obtain an estimate of the expected price move at specific hours of the day.
Users can select when data should start being collected using the "From Date" setting, any data before the selected date will not be included in the calculation of the Seasonality Widget.
🔹 Data To Analyze
The Seasonality Widget can return the seasonality for the following data:
Price Change
Closing price minus the previous closing price.
Price Change (%)
Closing price minus the previous closing price, divided by the
previous closing price, then multiplied by 100.
Price Change (Sign)
Sign of the price change (-1 for negative change, 1 for positive change), normalized in a range (0, 100). Values above 50 suggest more positive changes on average.
Range
High price minus low price.
Price - SMA
Price minus its simple moving average. Users can select the SMA period.
Volume
Amount of contracts traded. Allow users to see which periods are generally the most /least liquid.
Volume - SMA
Volume minus its simple moving average. Users can select the SMA period.
🔹 Filter
In addition to the "From Date" threshold users can exclude data from specific periods of time, potentially removing outliers in the final results.
The period type can be specified in the "Filter Granularity" setting. The exact time to exclude can then be specified in the "Numerical Filter Input" setting, multiple values are supported and should be comma separated.
For example, if we want to exclude the entire 2008 period we can simply select "Year" as filter granularity, then input 2008 in the "Numerical Filter Input" setting.
Do note that "Sunday" uses the value 1 as a day of the week.
🔶 DETAILS
🔹 Supported Statistics
Users can apply different statistics to the grouped data to process. These include:
Mean
Median
Max
Min
Max-Min Average
Using the median allows for obtaining a measure more robust to outliers and potentially more representative of the actual central tendency of the data.
Max and Min do not express a general tendency but allow obtaining information on the highest/lowest value of the analyzed data for specific periods.
🔶 SETTINGS
Granularity: Periods used to group data.
From Data: Starting point where data starts being collected
🔹 Data
Analyze: Specific data to be processed by the seasonality widget.
SMA Length: Period of the simple moving average used for "Price - SMA" and "Volume - SMA" options in "Analyze".
Statistic: Statistic applied to the grouped data.
🔹 Filter
Filter Granularity: Period type to exclude in the processed data.
Numerical Filter Input: Determines which of the selected hour/day of week/day of month/month/year to exclude depending on the selected Filter Granularity. Only numerical inputs can be provided. Multiple values are supported and must be comma-separated.
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!
Session TimesDescription:
This indicator simply when enabled will draw dashed lines at each of the session openings. This is based on UTC+1 Time. There will be lines at 00:00 & 08:00 (Asian Session), lines at 08:00 & 13:00 (London Session) and finally lines at 13:00 & 00:00 (New York Session).
Potential Use:
There are many ways you could use this indicator to benefit your trading, but the best way I find is that it makes it clear where the previous highs and lows are of a session, which are potential areas you could trade off. Obviously, there are many other ways you can use this to help you.
How The Script Works:
The way the script works isn't too complicated as it is only a short script. Simply it firstly calculates what are the weekdays (Whenever it isn't Saturday or Sunday). Then from there simply finds the times which I mentioned above, and adds a vertical dashed line there.
Future Updates:
In the future I will mainly be looking to make the indicator more customisable. Firstly, I will look to make it so that the user can adjust the times that the lines are drawn at so it still works wherever you are in the world. I would also like to make it so the user can choose the colour of the lines. If you have any other additions you would like added to this, then feel free to message me.