ATR GerchikAverage True Range ( ATR ) is a technical analysis indicator that measures market volatility. It is a moving average of the true range over a period of time. Originally developed by a market technician J. Welles Wilder Jr. in the 1970s, ATR was utilized to measure the average volatility of an asset over a given time period. Wilder realized that measuring volatility using only closing prices would not yield accurate results, necessitating a more complex system. To calculate the Average True Range, one must first determine the True Range (TR).
ATR calculation procedure:
1. Determine the true maximum - this is the highest of the current maximum and yesterday's closing price of the day.
2. Determine the true minimum - this is the smallest of the current minimum and yesterday's closing price.
3. Determine the true range - this is the distance between the true maximum and minimum.
4. Exclude extremely large candles and extremely small ones from the obtained true ranges.
5. Calculate the average for the selected period based on the remaining range.
6. Calculate the percentage of the current True Range relative to the average ATR value for the previous period.
Description:
If you analyze market movements, you will find that 75-80% of the time, an instrument moves only 1 ATR per day. Understanding this is crucial; for example, if an instrument has already moved 80% of its daily range, it is not advisable to enter a new position. This concept is similar to a car's fuel tank; if the tank is nearly empty, the car won’t go far. Many indicators include anomalous candles in their ATR calculations, which can yield unreliable results and lead to incorrect decisions. This is why many traders prefer to calculate ATR manually.
However, the Gerchik ATR indicator accounts for anomalous candles by filtering out extremely large and small candles. Users can set the coefficient for the upper and lower filtering thresholds. Experiment with these settings to find your criteria for filtering out abnormal candles. Personally, I filter out candles larger than 2x ATR and smaller than 0.5x ATR. Additionally, this indicator displays the consumed “fuel” of the instrument for the entire day and the current percentages, so you don’t have to calculate the distance traveled manually. The indicator also visually displays the boundaries of the average true range on the chart, enabling quick and informed decisions. When building any strategy, relying on the average true range movement is essential.
This extended version of the indicator includes a NATP indicator (Normalized ATR), a variation of the ATR that measures volatility as a percentage of the current price. It helps gauge market volatility levels and assists traders in making informed decisions.
Procedure for calculating NATR (Normalized ATR):
1. Determine the true maximum - the higher of the current high and the previous close.
2. Determine the true minimum - the lower of the current low and the previous close.
3. Determine the true range - the distance between the true maximum and minimum.
4. Filter out extremely large and small values from the obtained true ranges.
5. Calculate the average for n candles based on the remaining ranges.
Additionally in this version:
- Change table position
- Added NATP indicator
- Option to turn off the table description
- Option to turn off some indicators in the table
- Indication of the selected period in the table
- Changing coefficients for filtering abnormal candles
- Display of the number of invalid candles in the selected period
- Inclusion of labels with full ATR, NATR, candle range, and validity information
- Color-coding labels based on validity
- Selection of colors for valid and invalid candles
- Adjustable label size
- ATR graph display on the chart
- Customizable graph style, line thickness, and fill color
Detailed description:
Displays colored labels with detailed information. Labels can be color-coded based on validity and selected color. The text color will automatically adjust if a lighter color is chosen.
Panel of available settings
Graphic styles:
Line ATR graph style
Cross line ATR graph style
Step line ATR graph style
Step line diamond ATR graph style
Cross ATR graph style
Columns ATR graph style
Circles ATR graph style
Area ATR graph style
Cross area ATR graph style
Key Features:
- Anomalous Candle Filtering: Excludes extremely large and small candles for more reliable ATR values. Set filtering thresholds independently as coefficients.
- Consumed Fuel Indicator: Shows the percentage of the ATR consumed, aiding quick assessment of remaining movement potential.
- Daily Timeframe Focus: Designed for daily charts for accurate long-term analysis. The indicator is displayed on the daily timeframe if enabled, hiding it on lower timeframes.
- Visual Indicator Boundaries: Displays indicator boundaries on the chart with customizable styles and settings.
Practical Applications:
ATR helps traders predict potential future price movements, aiding in setting Stop Loss and Take Profit targets. Using ATR for SL/TP placement helps avoid market noise. ATR can also form an exit strategy by placing Trailing Stop Losses.
- Entry and Exit Points: Determine optimal entry and exit points by assessing market volatility and potential price movement.
- Stop-Loss Placement: Calculate stop-loss levels based on ATR to ensure appropriate placement, accounting for current market volatility.
- Trend Confirmation: Use ATR percentage consumption to confirm trend strength and decide on trade entries or exits.
Examples of Use:
- Trend Following: During strong trends, ATR identifies increased volatility periods, signaling potential breakouts or reversals.
- Range Trading: In ranging markets, ATR highlights low volatility periods, indicating consolidation and potential breakout zones.
Candlestick analysis
ICT opening price lineShows you the opening price of a certain time of day. I will show as line starting from the time selected and ending a few bars into the future. Available times are the ones ICT said are relevant for framing a premium and discount using opening prices: 00:00, 8:30 and 13:30. To show all 3 you have to add the indicator 3 times.
The script offers some customization on how the line should look line and if you want a label telling the time of it after the line.
BCA Candlestick Pattern Condition BuilderThe "Candlestick Pattern Condition Builder" is an indicator developed for traders who want to create and customize their own trading strategies based on candlestick patterns. It allows users to set specific conditions for entering and exiting trades, both long and short. By enabling traders to define up to five conditions based on various price points (Open, High, Low and Close) and logical operators, it provides a flexible framework for building complex trading strategies tailored to individual preferences and market behavior.
Now traders can easily configure their favorite candlestick patterns like Doji, three white soldiers, three black crows or any other pattern using this indicator.
Here are the settings to customize the indicator:
Intraday Setting:
The indicator supports time-based trading by allowing users to define specific intraday sessions. Traders can set the start and end times for trading activities, ensuring that the strategy only executes trades within the defined market hours. This feature is particularly useful for intraday traders who want to avoid overnight positions and focus on capturing intraday price movements. Users can toggle the time-based entry and exit settings on or off, providing additional flexibility in managing their trading sessions.
Long and Short Candle Configuration:
"Condition Builder" enables users to configure conditions for both long and short trades using historical candle data. Traders can select different price points (open, high, low, close) from the past five bars to create their conditions. Each condition can be set with logical operators such as greater than, less than, greater than or equal to, less than or equal to, and equal to. This allows for detailed and precise condition-building, enabling traders to tailor their strategies to specific market patterns and behaviors. Note that between any two candlestick conditions "AND" operator is used.
Candle number representation as follows:
0 - N candle (current candle)
1 - N-1 candle (previous candle)
2 - N-2 candle
3 - N-3 candle
4 - N-4 candle
Stoploss and Target Options:
The indicator allows users to set stop-loss and target levels based on various criteria. Traders can choose to set these levels as a percentage, a fixed number of points, or based on the highest or lowest prices of selected candles. Additionally, the indicator supports risk
targets, providing a method to calculate targets in relation to the stop-loss distance. These features help traders manage their risk effectively and ensure that their strategies have well-defined exit points.
Stoploss Options:
1. Percentage Stoploss:
This option allows traders to set a stop-loss level as a percentage of the entry price. For example, if the stop-loss is set at 2%, the trade will close if the price moves 2% against the entry price. This dynamic approach adjusts the stop-loss level based on the trade's entry price, providing flexibility and proportional risk management.
2. Points Stoploss:
With this option, traders specify a fixed number of points for the stop-loss. For instance, if the stop-loss is set to 50 points, the trade will close if the price moves 50 points against the entry price. This fixed approach is straightforward and easy to implement, offering a clear and consistent risk threshold.
3. Highest/Lowest of Selected Candles:
This stop-loss method uses the highest or lowest prices of selected historical candles to determine the stop-loss level. Traders can select specific past bars, and the stop-loss will be set at the highest high (for short trades) or the lowest low (for long trades) of those bars. This method is useful for incorporating recent price action into risk management.
Target Options:
1. Percentage Target:
Similar to the percentage stop-loss, this option sets the target level as a percentage of the entry price. If the target is set at 5%, the trade will aim to close when the price moves 5% in favor of the entry price. This approach ensures that the target is proportionally related to the entry price, aligning with the trader’s desired profit margin.
2. Points Target :
This target option allows traders to set a specific number of points as the target. For example, if the target is set to 100 points, the trade will aim to close when the price moves 100 points in favor of the entry price. This method provides a clear and fixed profit goal, making it easy to implement and understand.
3. Risk:Reward :
The Risk:Reward sets the target level based on a multiple of the stop-loss distance. For example, with a risk ratio of 1:2 and a stop-loss distance of 50 points, the target will be set at 100 points (2 times the stop-loss distance). This approach helps traders maintain a consistent risk profile, aiming for higher profits relative to the risk taken on each trade.
Best practice: Use it with other price action concepts or indicators to make it effective.
Time - Bar StatusCandlestick analysis
The Indicator "Bar Status" will display the current open candle state and the last three close candles state based on the logic below.
Abbreviations.
OC = Open Candle (if in no state listed below)
FB = False Break
BO = Break Out
IN = Inside Bar
FBR = False Break Reversal
Logic:
OC = This is the current open candle yet to close. Its status will change as it progresses through time until close.
Green False Break Revers (FBR) = bar Close is higher than previous bar Close AND bar High is higher than previous bar High AND bar Low is lower than previous bar Low.
Green False Break (FB) = bar Close is lower than previous bar High AND bar High is higher than previous bar High.
Green Breakout (BO) = bar Close is higher than previous bar Close AND bar High is higher than previous bar High.
Green Inside Bar (IN) = bar High is lower than previous bar High AND bar Low is higher than previous bar Low.
Red False Break Revers (FBR) = bar Close is lower than previous bar Close AND bar Low is lower than previous bar Low AND bar High is Higher than previous bar High.
Red False Break (FB) = bar Close is higher than previous bar Low AND bar Low is lower than previous bar Low.
Red Breakout (BO) = bar Close is lower than previous bar Close AND bar Low is lower than previous bar Low.
Red Inside Bar (IN) = bar High is lower than previous bar High AND bar Low is higher than previous bar Low.
The end column is the current open candle/bar.
The second from the end column is the last closed candle/bar.
The third from the end column is the second closed candle/bar.
The forth from the end column is the third closed candle/bar.
=============================================================
Also Includes candle countdown timer, of various candles. i.e. 4 hour, 1 hour, 15min, 5 min.
FVG & IFVG ICT [TradingFinder] Inversion Fair Value Gap Signal🔵 Introduction
🟣 Fair Value Gap (FVG)
To spot a Fair Value Gap (FVG) on a chart, you need to perform a detailed candle-by-candle analysis.
Here’s the process :
Focus on Candles with Large Bodies : Identify a candle with a substantial body and examine it alongside the preceding candle.
Check Surrounding Candles : The candles immediately before and after the central candle should have long shadows.
Ensure No Overlap : The bodies of the candles before and after the central candle should not overlap with the body of the central candle.
Determine the FVG Range : The gap between the shadows of the first and third candles forms the FVG range.
🟣 ICT Inversion Fair Value Gap (IFVG)
An ICT Inversion Fair Value Gap, also known as a reverse FVG, is a failed fair value gap where the price does not respect the gap. An IFVG forms when a fair value gap fails to hold the price and the price moves beyond it, breaking the fair value gap.
This marks the initial shift in price momentum. Typically, when the price moves in one direction, it respects the fair value gaps and continues its trend.
However, if a fair value gap is violated, it acts as an inversion fair value gap, indicating the first change in price momentum, potentially leading to a short-term reversal or a subsequent change in direction.
🟣 Bullish Inversion Fair Value Gap (Bullish IFVG)
🟣 Bearish Inversion Fair Value Gap (Bearish IFVG)
🔵 How to Use
🟣 Identify an Inversion Fair Value Gap
To identify an IFVG, you first need to recognize a fair value gap. Just as fair value gaps come in two types, inversion fair value gaps also fall into two categories:
🟣 Bullish Inversion Fair Value Gap
A bullish IFVG is essentially a bearish fair value gap that is invalidated by the price closing above it.
Here’s how to identify it :
Identify a bearish fair value gap.
When the price closes above this bearish fair value gap, it transforms into a bullish inversion fair value gap.
This gap acts as support for the price and drives it upwards, indicating a reduction in sellers' strength and an initial shift in momentum towards buyers.
🟣 Bearish Inversion Fair Value Gap
A bearish IFVG is primarily a bullish fair value gap that fails to hold the price, with the price closing below it.
Here’s how to identify it :
Identify a bullish fair value gap.
When the price closes below this gap, it becomes a bearish inversion fair value gap.
This gap acts as resistance for the price, pushing it downwards. A bearish inversion fair value gap signifies a decrease in buyers' momentum and an increase in sellers' strength.
🔵 Setting
🟣 Global Setting
Show All FVG : If it is turned off, only the last FVG will be displayed.
S how All Inversion FVG : If it is turned off, only the last FVG will be displayed.
FVG and IFVG Validity Period (Bar) : You can specify the maximum time the FVG and the IFVG remains valid based on the number of candles from the origin.
Switching Colors Theme Mode : Three modes "Off", "Light" and "Dark" are included in this parameter. "Light" mode is for color adjustment for use in "Light Mode".
"Dark" mode is for color adjustment for use in "Dark Mode" and "Off" mode turns off the color adjustment function and the input color to the function is the same as the output color.
🟣 Logic Setting
FVG Filter
When utilizing FVG filtering, the number of identified FVG areas undergoes refinement based on a specified algorithm. This process helps to focus on higher quality signals and eliminate noise.
Here are the types of FVG filters available :
Very Aggressive Filter : Introduces an additional condition to the initial criteria. For an upward FVG, the highest price of the last candle must exceed the highest price of the middle candle. Similarly, for a downward FVG, the lowest price of the last candle should be lower than the lowest price of the middle candle. This mode minimally filters out FVGs.
Aggressive Filter : Builds upon the Very Aggressive mode by considering the size of the middle candle. It ensures the middle candle is not too small, thereby eliminating more FVGs compared to the Very Aggressive mode.
Defensive Filter : In addition to the conditions of the Very Aggressive mode, the Defensive mode incorporates criteria regarding the size and structure of the middle candle. It requires the middle candle to have a substantial body, with specific polarity conditions for the second and third candles relative to the first candle's direction. This mode filters out a significant number of FVGs, focusing on higher-quality signals.
Very Defensive Filter : Further refines filtering by adding conditions that the first and third candles should not be small-bodied doji candles. This stringent mode eliminates the majority of FVGs, retaining only the highest quality signals.
Mitigation Level FVG and IFVG : Its inputs are one of "Proximal", "Distal" or "50 % OB" modes, which you can enter according to your needs. The "50 % OB" line is the middle line between distal and proximal.
🟣 Display Setting
Show Bullish FVG : Enables the display of demand-related boxes, which can be toggled on or off.
Show Bearish FVG : Enables the display of supply-related boxes along the path, which can also be toggled on or off.
Show Bullish IFVG : Enables the display of demand-related boxes, which can be toggled on or off.
Show Bearish IFVG : Enables the display of supply-related boxes along the path, which can also be toggled on or off.
🟣 Alert Setting
Alert FVG Mitigation : If you want to receive the alert about FVG's mitigation after setting the alerts, leave this tick on. Otherwise, turn it off.
Alert Inversion FVG Mitigation : If you want to receive the alert about Inversion FVG's mitigation after setting the alerts, leave this tick on. Otherwise, turn it off.
Message Frequency : This parameter, represented as a string, determines the frequency of announcements. Options include: 'All' (triggers the alert every time the function is called), 'Once Per Bar' (triggers the alert only on the first call within the bar), and 'Once Per Bar Close' (activates the alert only during the final script execution of the real-time bar upon closure). The default setting is 'Once per Bar'.
Show Alert time by Time Zone : The date, hour, and minute displayed in alert messages can be configured to reflect any chosen time zone. For instance, if you prefer London time, you should input 'UTC+1'. By default, this input is configured to the 'UTC' time zone.
Display More Info : The 'Display More Info' option provides details regarding the price range of the order blocks (Zone Price), along with the date, hour, and minute. If you prefer not to include this information in the alert message, you should set it to 'Off'.
Hourly Trading System (Zeiierman)█ Overview
The Hourly Trading System (Zeiierman) is designed to enhance your trading by highlighting critical price levels and trends on an hourly basis. This indicator plots the open prices of hourly and 4-hour candles, visualizes retests, displays average price lines, and overlays higher timeframe candlesticks. It is particularly beneficial for intraday traders seeking to capitalize on short-term price movements and volume patterns.
█ How It Works
This indicator works by plotting significant price levels and zones based on hourly and 4-hour candle opens. It also includes functionalities for identifying retests of these levels, calculating and displaying average prices, and showing high and low labels for each hour.
█ Timeframe
The Hourly Trading System is designed to be used on the 1-minute or 5-minute timeframe. This system is tailored for intraday trading, allowing traders to find optimal entries around hourly opening levels and providing an easy method to identify the hourly trend. It works effectively on any market.
█ How to Use
Trend Analysis
Quickly gauge where the current price stands relative to key hourly and 4-hour levels. The plotted lines and zones serve as potential support and resistance areas, helping traders identify crucial points for entry or exit.
Utilize the 1-hour average and higher timeframe candles to understand the overall market trend. Aligning intraday strategies with larger trends can enhance trading decisions.
Use the bar coloring to quickly gauge the 1-hour trend on a lower timeframe. The bar colors indicate whether the hourly trend is bullish (green) or bearish (red), helping traders make quicker decisions in alignment with the overall trend.
Retest Identification
Enable retest signals to see where the price retested the hourly open levels. These retest points often signal strong price reactions, offering opportunities for trades based on support/resistance flips.
One effective strategy to incorporate is looking for price flips when a new hour starts. This approach involves monitoring price action at the beginning of each hour. If the price breaks and retests the hourly open level with strong momentum, it could indicate a potential trend reversal or continuation. This strategy is effective in volatile markets where price movements are significant at the start of each new hour.
Liquidity Sweep Strategy
Another common and effective strategy is the liquidity sweep. This involves identifying key levels where liquidity is likely to accumulate, such as previous hour highs and lows, and observing how the price interacts with these price levels. When the price sweeps through these levels, triggering stop-loss orders or pending orders, it often results in a sharp price movement followed by a reversal. Traders can capitalize on these movements by entering trades in the direction of the reversal once the liquidity sweep has occurred.
Equal Highs and Lows Strategy
The Equal Highs and Lows strategy leverages the concept of identifying levels where the price forms multiple highs or lows at the same level over different hourly periods. These equal highs and lows often indicate strong support or resistance levels where liquidity is accumulated. When the price approaches these levels, it is likely to trigger stop-loss orders and lead to significant price movements. Traders can look for breakouts or reversals around these levels to enter trades with higher probability setups.
█ Settings
Zone Width: Specifies the width of the zone around the 1-Hour Open as a percentage. Adjust this to widen or narrow the zone.
Show Retests: Enables or disables the display of retest markers. Retest markers show where the price has retested the 1-Hour Open line.
Number of Retests: Sets the number of retests to display. Adjust this to see more or fewer retest markers.
Volume Filter: Enables or disables the volume filter for retests. Use this to highlight retests with significant volume.
Volume Filter Length: Sets the length of the volume filter, smoothing the volume data to reduce noise.
1-Hour Average Line: Enables or disables the 1-hour average price line. This line shows the average price over the past hour.
Hourly High & Low Labels: Enables or disables the display of hourly high and low labels, marking the highest and lowest prices within each hour.
Candlesticks: Enables or disables the display of candlesticks on the chart, providing a detailed view of price action.
Bar Color: Enables or disables bar coloring based on price direction, with up bars in green and down bars in red.
Timeframe: Sets the timeframe for higher timeframe candles. Adjust this to match the period you want to analyze.
Number of Candles: Sets the number of higher timeframe candles to display. Increase this to see more candles on the chart.
Location: Sets the location for higher timeframe candles, allowing you to position them left or right on the chart.
-----------------
Disclaimer
The information contained in my Scripts/Indicators/Ideas/Algos/Systems does not constitute financial advice or a solicitation to buy or sell any securities of any type. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
My Scripts/Indicators/Ideas/Algos/Systems are only for educational purposes!
Market Structure & Session Alerts### Market Structure & Session Alerts Indicator
#### Overview
The "Market Structure & Session Alerts" indicator is a comprehensive tool designed to assist traders in identifying key market structure levels, detecting liquidity sweeps, and receiving alerts for specific trading sessions. This indicator is particularly useful for traders who want to keep an eye on previous high and low levels and be alerted during pre-London and pre-New York sessions.
#### Features
1. **Previous High/Low Levels:**
- **Daily, Weekly, and Monthly Highs and Lows:** The indicator plots the previous day, week, and month high and low levels on the chart. These levels can be crucial for identifying support and resistance zones.
- **Toggle Display:** Users can choose to show or hide these levels using the "Show Previous Day/Week/Month High/Low" option.
2. **Liquidity Sweep Detection:**
- **Liquidity Sweep Identification:** The indicator detects liquidity sweeps when the current price closes above the previous day's high. This can signal potential reversals or continuations in the market.
- **Visual Alerts:** When a liquidity sweep is detected, a green triangle is plotted below the bar.
3. **Session Alerts:**
- **Session Timings:** Users can set specific start and end times for the pre-London and pre-New York sessions to match their timezone.
- **Visual Background Highlight:** The background of the chart is highlighted in yellow during the defined session times to provide a visual cue.
- **Alert Messages:** The indicator can generate alerts to notify traders when the market enters the pre-London or pre-New York session.
4. **Current Price Line:**
- The current price is plotted as a black line, providing a clear visual reference for the current market price.
#### How to Use
1. **Input Parameters:**
- `Show Previous Day/Week/Month High/Low`: Enable or disable the display of previous high/low levels.
- `Show Liquidity Sweep`: Enable or disable the detection and display of liquidity sweeps.
- `Show Session Alerts`: Enable or disable session alerts and background highlights.
2. **Session Timing Adjustments:**
- Set the `Pre-London Start`, `Pre-London End`, `Pre-New York Start`, and `Pre-New York End` times according to your timezone to ensure accurate session alerts.
3. **Alerts:**
- Make sure alerts are enabled in your TradingView settings to receive notifications when the market enters the pre-London or pre-New York sessions.
#### Example Use Cases
- **Day Traders:** Identify potential support and resistance levels using the previous day's high and low.
- **Swing Traders:** Use weekly and monthly high and low levels to determine significant market structure points.
- **Scalpers:** Detect liquidity sweeps to identify potential quick trades.
- **Session Traders:** Be alerted when the market enters key trading sessions to align your trading strategy with major market activities.
This indicator combines multiple market analysis tools into one, providing a robust system for traders to enhance their trading decisions and market awareness.
Relative Equal Highs/LowsThis Pine script indicator is designed to create a visual representation of the relative equal highs & lows formed and automatically removed mitigated ones. Unlike indicators designed to show exact equal high/lows this indicator allows a small, configurable degree of variance between price to identify areas where price stops.
Relevance:
Relative Equal highs and lows can serve as valuable tools in identifying potential shifts in trend direction. They come into play when the price hits a support or resistance level and can’t advance further, signaling a possible reversal or pivot point. When the price sufficiently retreats from these levels, relative equal highs and lows can also indicate liquidity draws where buy/sell stops might be positioned, in accordance with SMC/ICT concepts.
How It Works:
The indicator tracks all unmitigated highs & lows within the chart’s present timeframe, limited to the user-defined max bars lookback for optimal performance. If the prices are within the configured variance they are marked as relatively equal and at that point are visually identified by a horizontal line, which connects the two (or more) points of price. Depending on configuration of the indicator, a line is rendered from the 1st, last or both values within the relatively equal range of price. A unique feature of this indicator is its ability to remove the line once the price mitigates the relative equal high/low by falling below the lows or rising above highs. This ensures the chart remains uncluttered and highlights only the currently relevant levels, setting it apart from other indicators providing similar functionality.
Configurability:
The indicator offers five style settings for complete customization of the lines that represent equal highs/lows. These settings include line style, color, and width, along with an option to extend the lines to the right of the chart for enhanced visibility of equal high/low levels. To optimize performance, the indicator allows users to configure the lookback length, determining how far back the price history should be examined. In most instances, the default setting of 500 bars proves more than adequate. Additionally, you can set thresholds via separate configs for stocks & indices that will determine if the price is relatively equal and lastly allow you to configure where the indicator line should be drawn, the first, last or all the values.
Additional notes:
This uses a different approach then my “equal highs/lows” indicator to identify price levels and because it focuses specifically on relative as opposed to exact values it is entirely different and may show “weaker”, but still important levels of liquidity. This indicator is more suited for analysis of stocks and indices or higher-timeframes where price-action rarely forms exact equal values instead more frequently forming almost equal values. My other indicator is more suited for smaller (15m or less) timeframe on indices where exact equal prices are often identical. Depending on situation different indicators should be used.
Moving Average CyclesMoving Average Cycles Indicator
Description:
The Moving Average Cycles indicator is a versatile tool designed to help traders identify and analyze bullish and bearish cycles based on price movements relative to a moving average. This indicator offers valuable insights into market trends and potential reversal points.
Key Features:
Customizable Moving Average: Users can adjust the MA period and resolution (Daily, Weekly, Monthly) to suit their trading style.
Cycle Identification: The indicator tracks bull and bear cycles, providing visual cues through color-coded histograms.
Comprehensive Metrics: A detailed table displays crucial cycle statistics, including:
Current cycle information (candles and % distance from MA)
Maximum and average cycle lengths (in candles)
Maximum and average percentage distances from the MA
How to Use:
Apply the indicator to your chart and adjust the MA period and resolution as needed.
Green histograms represent bullish cycles, while red histograms indicate bearish cycles.
Use the metrics table to gain insights into historical cycle behavior and current market positioning.
This indicator is designed to complement your existing trading strategy by providing a clear visual representation of market cycles and detailed statistical information. It can be particularly useful for identifying potential trend reversals and gauging the strength of current trends compared to the past.
Note: Past performance does not guarantee future results. This indicator is meant for informational purposes only and should not be considered as financial advice. Always combine multiple analysis tools and conduct your own research before making trading decisions.
This script is published as open-source under the Mozilla Public License 2.0. Feel free to use and modify it, but please provide appropriate credit if you build upon this work.
I hope you find this Moving Average Cycles indicator helpful in your trading journey. If you have any questions or suggestions for improvement, please feel free to leave a comment below.
Symbols Correlation, built for pair tradingOverview:
This script is designed for pairs trading. If you are not familiar with pairs trading, I suggest learning about it, as it can be a profitable strategy in neutral markets (or neutral trends between two assets). The correlation between two assets is the foundation of pairs trading, and without it, the chances of making a profit are low.
Correlation can be described in two opposite ways:
1: Absolute positive correlation (meaning the asset prices move together).
-1: Absolute negative correlation (meaning the asset prices move in opposite directions).
Any value between 1 and -1 indicates some degree of correlation, but generally, values higher than 0.7 or lower than -0.7 are considered significant.
Features:
Typically, correlation is measured using the closing prices. This script adds three more correlation studies based on open, high, and low prices. By using all four lines, we can get a better understanding of the pair's correlation.
How to Read This Indicator:
To use this indicator effectively, you need to input your pair as a ratio. For example, if your pair is TSN and ZBH, enter it in the symbol search as: TSN/ZBH
Gray Area : This area indicates "no high correlation" (default is between -0.8 and 0.8, adjustable in the settings).
Gray Line : This represents the close correlation within the "no high correlation" range.
Green Line : This represents the close correlation within the "high correlation" range.
Dot Lines : These represent the open, high, and low correlations.
Example Interpretations:
A : All four lines are close together & the line is green – very good correlation!
B : The line is gray, and the dot lines are apart – not a strong correlation.
C : When the close correlation remains green for a long time, it signals a strong correlation.
Application in Pairs Trading:
In pairs trading, aim for the highest possible correlation, and it is important to have a sustained correlation over a long period. Pairs that correlate only part of the year but not consistently are less reliable for pairs trading.
This is an example for good correlation for pairs trading:
This is an example for bad correlation for pairs trading:
Here is a view of my full indicators when doing pairs trading:
Renko Bars for Forex by Darkoexe (no repainting)This indicator achieves plotting Renko bars with no repainting by resetting the open of the first Renko bar every market open after the FOREX market close. The indicator displays Renko bars for a timeframe chart which means multiple Renko bars can appear in the same timeframe as a single chart candle. This is because Renko bars aren't time bound, they are formed based on price movement. Whenever multiple Renko bars would appear in the timeframe of a single chart candle, the Renko bars will be displayed in a stacked manner meaning the Renko bars will be stacked on top of each other. If the Renko bars stacked are green, the top Renko bar close is the Renko close price of the timeframe. Whenever there's no Renko price movement for a specific candles timeframe, there will be a shadow of the color of the previous Renko bar displayed. These shadows can go on for a while if there's no significant price movement or if the Renko brick size input parameter is set too high.
There's 2 ways to calculate the size of each Renko bar. The first way (the default way) uses a fixed fixed brick size where you can choose the size of each brick. The second way uses a dynamic brick size which just uses the ATR with whatever length you would like to determine the brick size for each Renko bar. The dynamic option also has a factor input which would be multiplied with the calculated ATR to determine the brick size. To use the dynamic option, just check the box in the inputs section labeled "Dynamic Renko Box Size (uses the ATR for renko box size)".
Enjoy!!!
Engulfing Pattern @Ray_SP500NISAEngulfing Patterns
Bullish and bearish hugging candlesticks are powerful reversal formations that generate signals of potential reversals. These patterns are popular candlestick patterns because they are easy to spot and trade.
When the second candlestick completely wraps around the previous candlestick, it is a signal for a market reversal. A positive line encircled by a negative line may indicate a decline, while a negative line encircled by a positive line may indicate an upturn.
The system is simple enough to display these signs in red for a negative line and in green for a positive line. We hope this helps you in your investment life.
Translated with DeepL.com (free version)
Price Excess with Adjustable RecoveryIndicator: Price Excess with Adjustable Recovery
This indicator detects excessive price movements and displays a potential recovery level. It is particularly useful for identifying trading opportunities after significant market movements.
>> Key Features:
1. Detection of upward and downward price excesses
2. Display of an adjustable recovery level
3. Customizable parameters to adapt to different instruments and timeframes
>> Adjustable Parameters:
- Period: Number of candles for calculating the average and standard deviation (default: 14)
- Excess Threshold: Number of standard deviations to consider a movement as excessive (default: 1.5)
- Recovery Percentage: Recovery level as a percentage (default: 50%)
>> Usage:
1. Red triangles indicate a downward excess
2. Green triangles signal an upward excess
3. The blue line represents the potential recovery level
>> Possible Strategies:
- Counter-trend: Consider buying during downward excesses and selling during upward excesses
- Trend-following: Use the recovery level as a potential profit target
>> Usage Tips:
- Combine this indicator with other technical analysis tools to confirm signals
- Adjust the parameters according to the asset's volatility and your trading horizon
- Use appropriate risk management, as excessive movements can sometimes continue
Feel free to experiment with the parameters to find the configuration that best suits your trading style. Happy trading!
By DL INVEST
Capitulation Candle for Bitcoin and Crypto V1.0 [ADRIDEM]Overview
The Capitulation Candle for Bitcoin and Crypto script identifies potential capitulation events in the cryptocurrency market. Capitulation candles indicate a significant sell-off, often marking a potential market bottom. This script highlights such candles by analyzing volume, price action, and other technical conditions. Below is a detailed presentation of the script and its unique features.
Unique Features of the New Script
Volume-Based Analysis : Uses a volume multiplier to detect unusually high trading volumes, which are characteristic of capitulation events. The default multiplier is 5.0, but it can be adjusted to suit different market conditions.
Support Level Detection : Looks back over a customizable period (default is 150 bars) to find support levels, helping to identify significant price breaks.
ATR-Based Range Condition : Ensures that the price range of a capitulation candle is a multiple of the Average True Range (ATR), confirming significant price movement. The default ATR multiplier is 10.0.
Dynamic Dot Sizes : Plots dots of different sizes below capitulation candles based on volume thresholds, providing a visual indication of the volume's significance.
Visual Indicators : Highlights capitulation candles and plots support levels, offering clear visual cues for potential market bottoms.
Originality and Usefulness
This script uniquely combines volume analysis, support level detection, and ATR-based range conditions to identify capitulation candles. The dynamic dot sizes and clear visual indicators make it an effective tool for traders looking to spot potential reversal points in the cryptocurrency market.
Signal Description
The script includes several features that highlight potential capitulation events:
High Volume Detection : Identifies candles with unusually high trading volumes using a customizable volume multiplier.
Support Level Breaks : Detects candles breaking significant support levels over a customizable lookback period.
ATR Range Condition : Ensures the candle's range is significant compared to the ATR, confirming substantial price movement.
Dynamic Dot Sizes : Plots small, normal, and large dots below candles based on different volume thresholds.
These features assist in identifying potential capitulation events and provide visual cues for traders.
Detailed Description
Input Variables
Volume Multiplier (`volMultiplier`) : Detects high-volume candles using this multiplier. Default is 5.0.
Support Lookback Period (`supportLookback`) : The period over which support levels are calculated. Default is 150.
ATR Multiplier (`atrMultiplier`) : Ensures the candle's range is a multiple of the ATR. Default is 10.0.
Small Volume Multiplier Threshold (`smallThreshold`) : Threshold for small dots. Default is 5.
Normal Volume Multiplier Threshold (`normalThreshold`) : Threshold for normal dots. Default is 10.
Large Volume Multiplier Threshold (`largeThreshold`) : Threshold for large dots. Default is 15.
Functionality
High Volume Detection : The script calculates the simple moving average (SMA) of the volume and checks if the current volume exceeds the SMA by a specified multiplier.
```pine
smaVolume = ta.sma(volume, supportLookback)
isHighVolume = volume > smaVolume * volMultiplier
```
Support Level Detection : Determines the lowest low over the lookback period to identify significant support levels.
```pine
supportLevel = ta.lowest(low , supportLookback)
isLowestLow = low == supportLevel
```
ATR Range Condition : Calculates the ATR and ensures the candle's range is significant compared to the ATR.
```pine
atr = ta.atr(supportLookback)
highestHigh = ta.highest(high, supportLookback)
rangeCondition = (highestHigh - low ) >= (atr * atrMultiplier)
```
Combining Conditions : Combines various conditions to identify capitulation candles.
```pine
isHigherVolumeThanNext = volume > volume
isHigherVolumeThanPrevious = volume > volume
bodySize = math.abs(close - open )
candleRange = high - low
rangeBiggerThanPreviousBody = candleRange > bodySize
isCapitulationCandle = isHighVolume and isHigherVolumeThanPrevious and isHigherVolumeThanNext and isLowestLow and rangeCondition and rangeBiggerThanPreviousBody
```
Dynamic Dot Sizes : Determines dot sizes based on volume thresholds and plots them below the identified capitulation candles.
```pine
isSmall = volume > smaVolume * smallThreshold and volume <= smaVolume * normalThreshold
isNormal = volume > smaVolume * normalThreshold and volume <= smaVolume * largeThreshold
isLarge = volume > smaVolume * largeThreshold
plotshape(series=isCapitulationCandle and isSmall, location=location.belowbar, offset=-1, color=color.rgb(255, 82, 82, 40), style=shape.triangleup, size=size.small)
plotshape(series=isCapitulationCandle and isNormal, location=location.belowbar, offset=-1, color=color.rgb(255, 82, 82, 30), style=shape.triangleup, size=size.normal)
plotshape(series=isCapitulationCandle and isLarge, location=location.belowbar, offset=-1, color=color.rgb(255, 82, 82, 20), style=shape.triangleup, size=size.large)
```
Plotting : The script plots support levels and highlights capitulation candles with different sizes based on volume significance.
```pine
plot(supportLevel, title="Support Level", color=color.rgb(255, 82, 82, 50), linewidth=1, style=plot.style_line)
```
How to Use
Configuring Inputs : Adjust the volume multiplier, support lookback period, ATR multiplier, and volume thresholds as needed.
Interpreting the Indicator : Use the plotted support levels and highlighted capitulation candles to identify potential market bottoms and reversal points.
Signal Confirmation : Look for capitulation candles with high volumes breaking significant support levels and meeting the ATR range condition. The dynamic arrow sizes help to assess the volume's significance.
This script provides a detailed and visual method to identify potential capitulation events in the cryptocurrency market, aiding traders in spotting possible reversal points and making informed trading decisions.
ICT Balance Price Range [UAlgo]The "ICT Balance Price Range " indicator identifies and visualizes potential balance price ranges (BPRs) on a price chart. These ranges are indicative of periods where the market exhibits balance between bullish and bearish forces, often preceding significant price movements.
🔶 What is Balanced Price Range (BPR) ?
Balanced Price Range is a concept based on Fair Value Gap. Balanced price range (BPR) is the area on price chart where two opposite fair value gaps overlap.
When price approaches the Balanced Price Range (BPR), we assume that the price will react quickly and strongly here. This is because its the combination of two fair value gaps and being a good point of interest for smart money traders.
🔶 Key Features:
Bars to Consider: Determines the number of bars to evaluate for BPR conditions.
Threshold for BPR: Sets the minimum range required for a valid BPR to be identified.
Remove Old BPR: Option to automatically remove invalidated BPRs from the chart.
Bearish/Bullish Box Color: Customizable colors for visual representation of bearish and bullish BPRs.
🔶 Disclaimer
This indicator is provided for educational and informational purposes only.
It should not be considered as financial advice or a recommendation to buy or sell any financial instrument.
The use of this indicator involves inherent risks, and users should employ their own judgment and conduct their own research before making any trading decisions. Past performance is not indicative of future results.
🔷 Related Scripts
Fair Value Gaps (FVG)
Gap Finder with Horizontal LinesBecause I was tired of manually marking gaps, I coded a simple script to automatically mark all candle gaps.
To ensure that all gaps are displayed even when only the wicks of the next candles touch the previous candle, the condition for identifying gaps was adjusted. Now this indicator tracks all gaps live and highlights high-volume price changes, which is important for swing trading or day trading. The code checks if the previous candle is completely below or above the current candle, considering both the bodies and the wicks.
There are a few scenarios where I use this indicator:
Scenario 1:
When the price increases with gaps, there is a high chance the price will come down to fill the gap.
Scenario 2:
When you see a cluster of many gaps and indicator lines, there is a high chance that there was a lot of volume and possible support.
Settings:
Update: You can change the transparency of the Lines to keep your Chart clean.
In the picture above, I marked some gaps that were closed shortly after they appeared. I use this indicator in the 1M timeframe, where gaps are closed very quickly. Some gaps created by the next candle are closed right away.
The code can be used for your private use and benefit, but please don’t forget to like it if you find it useful.
Sniper Entry using RSI confirmationThis is a sniper entry indicator that provides Buy and Sell signals using other Indicators to give the best possible Entries (note: Entries will not be 100 percent accurate and analysis should be done to support an entry)
Moving Average Crossovers:
The indicator uses two moving averages: a short-term SMA (Simple Moving Average) and a long-term SMA.
When the short-term SMA crosses above the long-term SMA, it generates a buy signal (indicating potential upward momentum).
When the short-term SMA crosses below the long-term SMA, it generates a sell signal (indicating potential downward momentum).
RSI Confirmation:
The indicator incorporates RSI (Relative Strength Index) to confirm the buy and sell signals generated by the moving average crossovers.
RSI is used to gauge the overbought and oversold conditions of the market.
A buy signal is confirmed if RSI is below a specified overbought level, indicating potential buying opportunity.
A sell signal is confirmed if RSI is above a specified oversold level, indicating potential selling opportunity.
Dynamic Take Profit and Stop Loss:
The indicator calculates dynamic take profit and stop loss levels based on the Average True Range (ATR).
ATR is used to gauge market volatility, and the take profit and stop loss levels are adjusted accordingly.
This feature helps traders to manage their risk effectively by setting appropriate profit targets and stop loss levels.
Combining the information provided by these, the indicator will provide an entry point with a provided take profit and stop loss. The indicator can be applied to different asset classes. Risk management must be applied when using this indicator as it is not 100% guaranteed to be profitable.
Goodluck!
Hourly Opening PriceThe Inner Circle Trader has noted that the Opening Price of every Hourly candle can be used in a Power Of 3 (PO3) context.
If Bullish, buy BELOW the hourly open.
If Bearish, sell ABOVE the hourly open.
The Power of 3 ICT model also know as "AMD" is a transformative trading strategy, ingeniously designed to streamline your time analyzing charts by focusing on three pivotal phases in market behavior: accumulation, manipulation, and distribution.
The ICT Power of Three Model dissects the market maker’s algorithm for price delivery into three pivotal actions: Accumulation, Manipulation, and Distribution. Accumulation involves smart money gathering positions before a price surge, while manipulation sees the market creating deceptive movements to trigger stops. Finally, distribution occurs as smart money offloads positions, often catching less informed traders off-guard. This strategy is a critical tool for traders to understand market makers’ maneuvers and to strategically position themselves in the market.
This indicator plots a line at the opening price of each hour and extends it on the chart for the duration of the hour. Each hour starts a new line.
You also have the option of extending the midnight opening price line across the entire trading day.
CZ's Hybrid IndicatorCZ's Hybrid Indicator is designed to provide traders with key support and resistance levels, buy and sell signals, and trend analysis.
Functions and Usage:
Support and Resistance Calculation:
The indicator calculates support and resistance levels using the lowest and highest prices over a specified period (srLength), defaulted to 20 bars.
Usage: These levels help traders identify potential price reversal points.
Buy and Sell Levels Calculation:
Similar to support and resistance, buy and sell levels are calculated using the lowest and highest prices over a specified period (bsLength), defaulted to 20 bars.
Usage: These levels can be used to identify potential entry and exit points for trades.
Plotting Levels:
Support and resistance levels are plotted in green and red, respectively, with a specified offset to align them with the price bars.
Buy and sell levels are also plotted in green and red, with a smaller offset for immediate identification.
Usage: Visual aids on the chart for easy recognition of key levels.
EMA 200:
An Exponential Moving Average (EMA) over 200 bars is calculated and plotted, changing color based on whether the current price is above (green) or below (red) the EMA.
Usage: EMA 200 is a common trend-following indicator, helping traders determine the overall trend direction.
Trend Signal:
A trend signal is calculated using an EMA over a user-defined period (trend Length), defaulted to 50 bars. The trend is identified as either "Uptrend" or "Downtrend".
Usage: Helps traders understand the prevailing market trend.
Filling Areas:
The script fills the area between support and buy levels and resistance and sell levels with colors indicating the trend direction.
Usage: Enhances visual interpretation of support/resistance and buy/sell levels relative to the trend.
Buy and Sell Signals:
The script generates buy and sell signals when the price crosses the support/resistance or buy/sell levels.
Usage: Alerts traders to potential trading opportunities.
Labels for Trend Signal:
Labels indicating "Uptrend" or "Downtrend" are displayed on the chart based on the trend signal.
Usage: Provides clear trend information on the chart.
Trade Levels:
The script calculates and displays stop-loss, entry, and multiple take-profit levels for buy and sell signals.
Usage: Assists traders in setting up their trades with predefined risk management levels.
Alerts:
Alerts are set up for buy and sell signals, allowing traders to receive notifications when certain conditions are met.
Usage: Keeps traders informed of potential trading signals even when not actively monitoring the chart.
Dynamic Candle StrengthHow It Works
Initialization of Dynamic Levels:
The first candle's high and low are taken as the initial dynamic high and dynamic low levels.
If the next candle's close price is above the dynamic high, the candle is colored green, indicating bullish conditions.
If the next candle's close price is below the dynamic low, the candle is colored black, indicating bearish conditions.
If a candle's high and low crossed both the dynamic high and dynamic low, the dynamic high and low levels are updated to the high and low of that candle, but the candle color will continue with the same color as the previous candle.
Maintaining and Updating Dynamic Levels:
The dynamic high and low are only updated if a candle's close is above the current dynamic high or below the current dynamic low.
If the candle does not close above or below these levels, the dynamic high and low remain unchanged.
Visual Signals:
Green Bars: Indicate that the candle's close is above the dynamic high, suggesting bullish conditions.
Black Bars: Indicate that the candle's close is below the dynamic low, suggesting bearish conditions.
This method ensures that the dynamic high and low levels are adjusted in real-time based on the most recent significant price movements, providing a reliable measure of market sentiment.
Shadow Increase SignalThis indicator Calculates the average upper shadow of the previous 200 candles for issuing SELL signals.
And calculates the average lower shadow of the previous 200 candles for issuing BUY signals.
If the upper shadow of the new candle is %1000 greater than the average upper shadow of the previous 200 candles, a SELL signal is issued and a red arrow appears above the candle.
If the lower shadow of the new candle is %1000 greater than the average lower shadow of the previous 200 candles, a BUY signal is issued and a green arrow appears below the candle.
TrendVortex PowerThis Pine Script indicator in TradingView creates weekly labels for each trading day (Monday to Friday) and generates buy/sell signals based on a swing calculation:
Weekday Labels
Purpose: Labels each trading day of the week with different colors.
Implementation:
Initializes variables for labels (mondayLabel, tuesdayLabel, etc.).
Uses dayofweek function to determine the current day of the week.
Checks if the current day is different from the previous day to avoid redundant label creation.
Creates labels using label.new function with appropriate colors based on the day of the week.
Buy and Sell Signals:
Purpose: Identifies buy and sell signals based on swing high and swing low points.
Implementation:
Uses a specified number of bars (no) to determine swing highs (res) and lows (sup).
Determines the direction (avd) based on whether the close is above the previous swing high or below the previous swing low.
Tracks the last non-zero direction change (avn).
Calculates the trailing stop loss (tsl) based on whether the direction is bullish or bearish.
Generates buy signals (Buy) when the close crosses above the trailing stop loss (tsl), and sell signals (Sell) when the close crosses below.
Alerts:
Purpose: Alerts are generated when buy or sell signals occur.
Implementation:
Uses alertcondition function to trigger alerts when Buy or Sell conditions are met.
Optional: Remove labels on weekends
Purpose: Prevents labels from appearing on weekends or non-trading days.
Implementation: Checks if the current day (dayOfWeek) is Saturday or Sunday, and deletes the labels (mondayLabel, tuesdayLabel, etc.) if true.
Summary:
This indicator provides visual and alert-based indications of buy and sell signals based on swing highs and lows, alongside labeling each trading day of the week in a distinctive manner. It's designed to assist traders in identifying potential entry and exit points based on these technical signals. Adjustments can be made to parameters such as the swing number (no) and color schemes to fit specific trading strategies or preferences.
Energy ScriptEnergy Script Indicator
Description of Indicator
The Energy Script Indicator calculates the market's energy using the formula `Energy = Price * sqrt(Volume)`; providing insight into market activity by combining price movement and volume. This indicator is designed to help traders identify potential reversals and continuation points based on energy levels.
Features
Energy Calculation: Utilizes price and volume to compute market energy, highlighting significant activity changes.
Smoothing Options: Two customizable smoothing periods to filter out noise and highlight trends.
Threshold Alert: Set a threshold value to receive alerts when energy exceeds predefined levels, aiding in quick decision-making.
Customizable Colors: Choose colors for different plot lines to suit your charting preferences.
How to Use:
1. Smoothing Periods: Adjust `Smoothing 1` and `Smoothing 2` to control the sensitivity of the energy plots.
2. Threshold: Set the `Threshold` value to identify significant energy levels. Enable or disable threshold plotting as needed.
3. Volume Integration: Toggle `Use Volume` to include or exclude volume in energy calculations.
4. Alerts: Receive alerts when energy levels cross the defined threshold, signaling potential market movements.
This indicator is a powerful tool for analyzing market dynamics by combining price action with volume, providing a deeper understanding of market energy and potential trading opportunities.