3 Day Lookback [TFO]This 3 Day Lookback indicator aims to display key information about price with respect to its previous 3 day highs and lows. It was built with the intention of being compact in order to not take up a lot of chart space.
The core component of this indicator is the table. From this table, we look at price with respect to the ranges from 1, 2, and 3 days ago, and assign it a color code. By default, we use 🟢, 🟡, and 🔴 to indicate that price is above, stuck inside, or below these ranges, respectively.
Take the following chart as an example. We manually drew these boxes to encompass the range of each day, from high to low. The leftmost box from 3 days ago is colored red to reflect the fact that price is below that day's low. This is why the table indicates a state of 🔴 for the range from 3 days ago. Then, the following two days are colored yellow to indicate that price is currently trading inside their ranges, which is why the state for both of those days is indicated as 🟡 in the table.
In a similar example below, we can see that price is clearly above the high from 3 days ago and the high from 2 days ago, which is reflected in the table with a state of 🟢 for both. However, since price is currently trading within the range from 1 day ago, it is assigned a state of 🟡 in the table.
As you may have noticed in the above examples, each day's high and low is indicated with labels (ex. "2H" and "2L" for the high and low from 2 days ago). These are optional and can be turned off in the indicator's settings. The lines tracking the previous 3 day highs and lows may also be turned off so that you're just left with the table, as is shown in the below example.
With this minimalistic table, users can get a quick glance at how price is trading with respect to the last few days of price action. Hopefully this proves useful for mobile users as well, since the indicator can be reduced to a simple table that doesn't take up much chart space.
Candlestick analysis
CRT Hourly/15m dividers and opensRange Separator is a unique tool designed to help traders visualize critical price levels and ranges on their charts. This script employs the innovative concepts of "Candles Are Ranges" and the "Power of 3 (PO3)" to enhance trading strategies by marking key time intervals and price levels.
What the Script Does:
Hourly Lines:
Automatically draws vertical lines at the start of each hour.
Provides an option to display only the current hour's line for a cleaner visual.
Allows customization of line color, width, and style.
15-Minute Lines:
Adds vertical lines at 15-minute intervals to highlight smaller time ranges.
Includes an option to draw horizontal lines at the 15-minute interval prices.
Offers customization for line color, width, and style.
Horizontal Lines:
Draws horizontal lines based on the opening, high, or low price of the selected timeframe.
Customizable options for line color, width, and style.
How the Script Works:
Candles Are Ranges: Each candle represents a price range (OHLC) on any timeframe. The script visually emphasizes these ranges, helping traders understand price action better.
Power of 3 (PO3): This concept divides price delivery into three stages: formation, turtle soup (stop hunting), and distribution/expansion. The script marks these intervals, aiding in identifying potential key levels for entries and exits.
How to Use the Script:
Adding the Script:
Apply the script to your chart and adjust the settings in the input menu.
Customize the appearance of hourly and 15-minute lines to suit your preference.
Analyzing the Chart:
Observe the hourly lines to determine higher timeframe biases.
Use 15-minute lines to identify more granular price movements.
Pay attention to horizontal lines that mark significant price levels based on your chosen criteria (open, high, low).
Trading Strategy:
Combine the script's visual aids with your understanding of the "Candles Are Ranges" and "Power of 3" concepts.
Use these visual cues to make informed decisions about potential entry and exit points.
What Makes it Original:
Integration of Candles Are Ranges and PO3 Concepts: Unlike traditional scripts that merely plot lines, this script uniquely integrates two powerful trading theories to provide a comprehensive view of price action.
Customizable Visual Aids: Offers extensive customization options for line colors, widths, and styles, allowing traders to tailor the script to their specific needs.
Enhanced Timeframe Analysis: By marking both hourly and 15-minute intervals, the script provides a detailed view of price ranges across multiple timeframes, enhancing the trader's ability to make informed decisions.
- Key script Parameters
Show Hourly Lines: Toggles the display of vertical lines marking each hour.
Hourly Lines Color: Sets the color of the hourly vertical lines.
Hourly Lines Width: Chooses the width of the hourly vertical lines (1, 2, or 3).
Hourly Lines Style: Selects the style of the hourly lines (Solid, Dashed, or Dotted).
Horizontal Line Color: Defines the color of the horizontal lines drawn at hourly intervals.
Horizontal Line Width: Determines the width of the horizontal lines (1, 2, or 3).
Horizontal Line Style: Sets the style of the horizontal lines (Solid, Dashed, or Dotted).
Horizontal Line Start Price: Specifies which price (Open, High, Low) the horizontal lines will start from.
Show Current Hour Only: Limits the display to only the current hour's horizontal line.
Show 15-Minute Lines: Toggles the display of vertical lines marking each 15-minute interval.
15-Minute Lines Color: Sets the color of the 15-minute vertical lines.
15-Minute Lines Width: Chooses the width of the 15-minute vertical lines (1, 2, or 3).
15-Minute Lines Style: Selects the style of the 15-minute lines (Solid, Dashed, or Dotted).
Show 15-Minute Horizontal Lines: Toggles the display of horizontal lines at 15-minute intervals.
15-Minute Horizontal Lines Color: Defines the color of the horizontal lines drawn at 15-minute intervals.
15-Minute Horizontal Lines Width: Determines the width of the horizontal lines (1, 2, or 3).
15-Minute Horizontal Lines Style: Sets the style of the horizontal lines (Solid, Dashed, or Dotted).
Important Notes:
- Credit to @Yazdanian and his basic "Hourly separators" indicator that plots a simple vertical line every hour which provided the idea for this version and expanded on
- This script is designed to complement your trading strategy by providing visual aids and should be used alongside other technical analysis tools.
It is not intended to issue buy or sell signals but to help you understand price ranges and potential key levels.
Disclaimer: The script is provided as-is, and the authors are not responsible for any trading losses incurred using this script. Always perform your own analysis and use proper risk management.
Advanced Fully Reversed Candles with Reversed IchimokuThe "Advanced Fully Reversed Candles with Reversed Ichimoku" indicator is a sophisticated tool designed for traders who seek a unique perspective on market dynamics. This innovative indicator not only reverses the traditional candlestick chart but also inverts the Ichimoku Cloud components, providing a comprehensive view of the market's inverted behavior.
Key Features:
Reversed Candlestick Chart:
The indicator recalculates the OHLC (Open, High, Low, Close) prices by reversing them along the price axis. This means that what typically would be an upward movement is displayed as a downward movement, and vice versa. This reversal provides an alternative view that can help traders identify hidden patterns and potential reversal points that might not be obvious on a standard chart.
Reversed Ichimoku Cloud:
All components of the Ichimoku Cloud indicator are recalculated based on the reversed price data. This includes:
Tenkan-sen (Conversion Line): Reversed based on the highest and lowest prices over the specified period.
Kijun-sen (Base Line): Reversed in a similar manner to the Tenkan-sen, providing a medium-term perspective on price trends.
Senkou Span A (Leading Span A): Reversed to form one boundary of the Kumo (cloud), offering insight into future support and resistance levels.
Senkou Span B (Leading Span B): Reversed to form the other boundary of the Kumo, complementing Senkou Span A.
Chikou Span (Lagging Span): Reversed and plotted backward for additional confirmation of trend direction and strength.
Dynamic Price Range Calculation:
The indicator dynamically calculates the maximum and minimum prices over the last 500 bars (or the available range if fewer bars are present). This ensures that the reversal is always based on the most relevant data, providing accurate and up-to-date visualizations.
Visual Enhancements:
The reversed candlesticks are color-coded for easy interpretation: green for upward movements and red for downward movements, based on the reversed data.
The Ichimoku Cloud is filled with semi-transparent colors to clearly distinguish between bullish and bearish conditions even in its reversed state.
Debugging Aids:
For transparency and accuracy, the indicator plots the maximum and minimum price lines used for the reversal calculations. This allows users to verify the internal workings of the indicator and ensure the reversal logic is correctly applied.
Usage:
This indicator is ideal for advanced traders and analysts who want to explore market behavior from an unconventional angle. By reversing both the candlestick chart and the Ichimoku Cloud, it provides a unique perspective that can uncover new trading opportunities and enhance market analysis.
Customization:
Users can customize the periods for the Tenkan-sen, Kijun-sen, and Senkou Span B, as well as the displacement for the Ichimoku Cloud. This flexibility allows traders to adapt the indicator to their specific trading strategies and timeframes.
Conclusion:
The "Advanced Fully Reversed Candles with Reversed Ichimoku" indicator is a powerful tool that transforms traditional market analysis. By inverting both price movements and key technical indicators, it opens up a new dimension of trading insights, helping traders to see the market in a completely different light.
Parameters:
Tenkan-sen period (default: 9)
Kijun-sen period (default: 26)
Senkou Span B period (default: 52)
Displacement (default: 26)
How to Apply:
Add the script to your TradingView account via the Pine Editor.
Customize the parameters according to your trading strategy.
Analyze the reversed candlestick chart and Ichimoku Cloud to gain unique insights into market trends and potential reversal points.
Volume Gaps and ImbalancesThis Pine script indicator is designed to visually depict price inefficiencies, as identified by Volume Imbalances (VI) or Gaps. A Volume Gap is a scenario where the wicks of two successive candles don’t intersect, while an Imbalance occurs when only the wicks overlap, leaving the bodies apart. These zones of inefficiency frequently act as magnets for price, with the market striving rebalance in accordance with ICT principles.
Relevance:
Volume Gaps/Imbalances are zones of highly inefficient price delivery as per ICT concepts and represent a very strong draw to price. Price will often seek to rebalance those zones to ensure efficient price delivery. Consequently, these zones can provide good targets for entries in the opposite direction or take profit targets for previous entries in the direction of the Gap/Imbalance.
How It Works:
The indicator keeps track of all Gaps/Imbalances from the beginning of the available history. It automatically removes all mitigated Gaps/Imbalances, which are situations where the price has at least reached the bottom of a bullish gap or the top of a bearish gap.
On the last bar, the most recent valid gaps are highlighted with a box drawn from the start to the end of the gap. The start of a bullish gap is determined by the highest price of the previous candle’s open or close, while for bearish gaps, it’s the lowest price of the previous candle’s open or close. Conversely, the end of a bullish gap is the lowest price of the current candle’s open or close, and for bearish gaps, it’s the highest price of the current candle’s open or close.
To enhance the indicator’s speed and minimize chart noise, only the most recent gaps will be displayed, up to the limit set in the indicator settings.
Each displayed VI/GAP will indicate the size of the imbalance in ticks. For imbalances greater than 3 ticks, which represent stronger draws of liquidity, the color transparency will be reduced, and the text will be made more prominent. Volume Gaps are also marked with a 🧲 emoji for easy visual identification.
The indicator will automatically extend the boxes representing valid imbalances to the current bar for as long as the imbalance is not mitigated.
If an imbalance has been tapped, but not mitigated, the indicator will append 🚩emoji to denote that the imbalance has been partially mitigated and may no longer have as strong of a draw for price.
Configurability:
A user may configure the number of imbalances to show, the setting applies to bullish/bearish imbalances individually. This setting can be set to any value from 1 – 50.
Appearance wise, color, style and color transparency of each box representing an imbalance can be configured. The imbalance box label can be configured by setting the text size, along with the vertical & horizontal alignment.
What makes this indicator different:
Designed with high performance in mind, to reduce impact on chart render time.
Only keeps valid imbalances on the chart, with a limit on the # drawn
Indicates the size of the gap and provides visual markets to denote stronger, weaker and partially mitigated gaps
Improved Volume Based Indicator# Improved Volume Based Indicator
## Overview
The Improved Volume Based Indicator is a technical analysis tool designed to identify potential trading opportunities based on volume patterns, price action, and trend direction. This indicator combines volume analysis with moving averages and the Average True Range (ATR) to generate buy and sell signals.
## Key Components
1. Volume Analysis
- Tracks consecutive volume direction (up or down) for 3 periods
- Calculates volume ratio compared to a short-term moving average
2. Trend Direction
- Uses a 200-period Exponential Moving Average (EMA) to determine overall trend
3. Volatility Measurement
- Incorporates the Average True Range (ATR) for stop-loss and take-profit calculations
## Signal Generation
### Buy Signal Criteria
1. Three consecutive periods of up volume (close > open)
2. Volume ratio > 1.5 (current volume is 50% higher than the short-term average)
3. Current price is above the 200 EMA
### Sell Signal Criteria
1. Three consecutive periods of down volume (close < open)
2. Volume ratio > 1.5 (current volume is 50% higher than the short-term average)
3. Current price is below the 200 EMA
## Risk Management
The indicator calculates stop-loss and take-profit levels based on the ATR:
- Stop Loss: ATR * 1.5 (default)
- Take Profit: ATR * 2.5 (default)
These levels are adjustable through input parameters.
## Usage
1. Add the indicator to your chart
2. Adjust input parameters as needed:
- Volume Period (2-5)
- ATR Period (default 14)
- ATR Multipliers for Stop Loss and Take Profit
- EMA Period (default 200)
3. Monitor for buy and sell signals
4. Use the provided stop-loss and take-profit levels for risk management
## Interpretation
- Buy signals suggest potential upward price movement
- Sell signals suggest potential downward price movement
- Always consider other factors and perform additional analysis before making trading decisions
## Limitations
- This indicator may generate false signals in choppy or ranging markets
- It's best used in conjunction with other technical analysis tools and fundamental analysis
- Past performance does not guarantee future results
Remember to thoroughly test this indicator on historical data and in various market conditions before using it in live trading.
---
# 改進的基於交易量的指標
## 概述
改進的基於成交量的指標是一種技術分析工具,旨在根據成交量模式、價格行為和趨勢方向識別潛在的交易機會。此指標將成交量分析與移動平均線和平均真實波動幅度 (ATR) 結合起來,以產生買入和賣出訊號。
## 關鍵部件
1. 成交量分析
- 追蹤 3 個週期的連續成交量方向(向上或向下)
- 計算與短期移動平均線相比的成交量比率
2. 趨勢方向
- 使用 200 週期指數移動平均線 (EMA) 來確定整體趨勢
3. 波動率測量
- 納入平均真實波動範圍 (ATR) 以進行停損和停盈計算
## 訊號生成
### 購買訊號標準
1. 連續三個週期的成交量上漲(收盤>開盤)
2.成交量比率>1.5(目前成交量較短期平均高50%)
3. 當前價格高於200 EMA
### 賣出訊號標準
1.連續三個週期的成交量下跌(收盤<開盤)
2.成交量比率>1.5(目前成交量較短期平均高50%)
3. 目前價格低於200 EMA
## 風險管理
此指標根據 ATR 計算停損和止盈水準:
- 停損:ATR * 1.5(預設)
- 止盈:ATR * 2.5(預設)
這些等級可透過輸入參數進行調整。
## 用法
1. 將指標加入您的圖表中
2. 根據需要調整輸入參數:
- 卷期 (2-5)
- ATR 週期(預設 14)
- 用於停損和止盈的 ATR 乘數
- EMA 週期(預設 200)
3. 監控買賣訊號
4. 使用提供的停損和停利水準進行風險管理
## 解釋
- 買進訊號表示價格可能上漲
- 賣出訊號表示價格可能下跌
- 在做出交易決策之前始終考慮其他因素並進行額外分析
## 限制
- 此指標可能會在波動或波動的市場中產生錯誤訊號
- 最好與其他技術分析工具和基本面分析結合使用
- 過去的表現並不能保證未來的結果
請記住,在實際交易中使用該指標之前,請根據歷史數據和各種市場條件徹底測試該指標。
Fibo Level DailyOverview
The "Fibo Level Daily" strategy is designed for trading Bitcoin (BTC) using the 1-hour timeframe. This strategy relies on Fibonacci levels calculated from the previous day's range and determines entry and exit points based on whether the previous daily candle was bullish or bearish.
How It Works
Fibonacci Levels Calculation:
The indicator calculates Fibonacci levels (0.8, 0.5, and 0.2) based on the high and low of the previous day.
The levels are calculated as follows:
0.8: This level is calculated by multiplying the difference between the previous day's high and low by 0.8 and adding the result to the previous day's low.
0.5: This is the midpoint of the previous day's range.
0.2: This level is calculated by multiplying the difference between the previous day's high and low by 0.2 and adding the result to the previous day's low.
Identifying the Previous Day's Trend:
The indicator checks if the previous daily candle closed bullish (close greater than open) or bearish (close less than open).
Setting Entry and Take Profit Levels:
If the previous daily candle was bearish:
Sell Entry: Wait for the price to rise to the 0.5 level (midpoint of the previous day's range) to enter a sell position.
Take Profit: The profit target is set at the 0.2 level.
If the previous daily candle was bullish:
Buy Entry: Wait for the price to drop to the 0.5 level (midpoint of the previous day's range) to enter a buy position.
Take Profit: The profit target is set at the 0.8 level.
Visual Representation on the Chart:
The indicator draws horizontal lines on the chart representing the Fibonacci levels (0.8, 0.5, and 0.2) from the previous day. These lines help visualize entry and exit points clearly.
Additionally, the last 15 minutes of the daily session are highlighted with a light red background to indicate the session's end.
Conditions of Use:
Timeframe: This indicator is specifically designed for use on the 1-hour timeframe.
Assets: While it can be used on any asset, it is optimized for trading Bitcoin (BTC).
Steps to Use the Indicator
Add the Indicator:
Insert the "Fibo Level Daily" indicator script into your trading platform (such as TradingView).
Select Timeframe:
Change the chart timeframe to 1 hour.
Interpret the Levels:
Observe the horizontal lines drawn on the chart representing the Fibonacci levels.
Identify whether the previous daily candle was bullish or bearish.
Wait for the Entry Price:
For a bearish previous daily candle: Wait for the price to rise to the 0.5 level to enter a sell position.
For a bullish previous daily candle: Wait for the price to drop to the 0.5 level to enter a buy position.
Set the Profit Target:
For a sell: Set your profit target at the 0.2 level.
For a buy: Set your profit target at the 0.8 level.
Execute the Trade:
Initiate the trade once the price reaches the entry level and set your take profit according to the identified trend from the previous day.
Conclusion
The "Fibo Level Daily" strategy provides a clear and precise methodology for identifying entry and exit points in Bitcoin using Fibonacci levels. By following this step-by-step guide, any trader can take advantage of market movements based on the previous day's price action, optimizing their trading opportunities on the 1-hour timeframe.
Bearish 3 Bars Reversal PatternThis TradingView Pine Script indicator identifies and highlights a bearish 3-bar reversal pattern on your chart. The script also calculates the percentage difference between the current low and the previous high, displaying this value on the chart when the pattern is detected.
Features:
Pattern Detection:
The script detects a bearish 3-bar reversal pattern when the high of the previous bar is higher than the high of the bar before it, and the current high is lower than the previous high.
Percentage Difference Calculation:
When the pattern is detected, the script calculates the percentage difference between the current low and the previous high. This percentage is displayed on the chart.
Visual Indicators:
When a bearish 3-bar reversal pattern is detected, a label is created on the chart showing the calculated percentage difference. The label is styled with a downward arrow, red color, and white text for clear visibility.
Alerts:
An alert condition is set up to notify users when the bearish 3-bar reversal pattern is detected. This allows traders to take timely action based on the pattern.
Bullish 3 Bars Reversal PatternThis TradingView Pine Script indicator identifies and highlights a bullish 3-bar reversal pattern on your chart. The script also calculates the percentage difference between the current high and the previous low, displaying this value on the chart when the pattern is detected.
Features:
Pattern Detection:
The script detects a bullish 3-bar reversal pattern when the low of the previous bar is lower than the low of the bar before it, and the current low is higher than the previous low.
Percentage Difference Calculation:
When the pattern is detected, the script calculates the percentage difference between the current high and the previous low. This percentage is displayed on the chart.
Visual Indicators:
When a bullish 3-bar reversal pattern is detected, a label is created on the chart showing the calculated percentage difference. The label is styled with an upward arrow, green color, and white text for clear visibility.
Alerts:
An alert condition is set up to notify users when the bullish 3-bar reversal pattern is detected. This allows traders to take timely action based on the pattern.
The Magic LineThis script is based on the simple 2 or 3 candle entry model taught by Armando "The Professor".
This strategy will work best on the 1hr timeframe or higher and you can also add a MA on your chart to identify direction of trend and trade with the trend. For example, if price is above the 50 SMA, you can opt to only look for 'buy' signals. If price is below the 50 SMA, you can opt to only look for 'sell' signals.
The default setting is to wait for 3 consecutive candles of either bullish or bearish sentiment before printing a buy or sell signal. This can be changed to any number you would like but typically 3 works best, as long as you're using the 1hr timeframe or higher.
Ex: If there are 3 green (bullish) candles print in a row, a 'sell' signal will print, and the entry line will be one tick below the open of the previous green candle. You can use that line as your entry.
For your stop loss, you can try to use the most recent swing high (for sells) or swing low (for buys). You can also use nearby support/resistance levels, or even the PSAR as another way to determine your stop loss.
If there are more than 3 consecutive candles with the same sentiment, signals will continue to print until the streak ends at which point the counter will restart, and the idea is to take the most recent signal as your entry. Limit/Stop entries work best as you can just let price come down to the signal line that is drawn.
Comment below if you have any questions! Good luck!
ABC PatternThe indicator, named "ABC Pattern," is designed to identify specific bullish and bearish patterns on a price chart. Here's a simple explanation of what it does:
What the Indicator Does:
1. Identifies Bullish Patterns:
- The indicator looks for a sequence of candles where certain conditions are met to form a bullish pattern.
- When it detects a bullish pattern, it colors the candle that occurred three periods ago in gold.
2. Identifies Bearish Patterns:
- Similarly, it looks for a sequence of candles where certain conditions are met to form a bearish pattern.
- When it detects a bearish pattern, it colors the candle that occurred three periods ago in pinkish.
3. Creates Alerts:
- Whenever a bullish or bearish pattern is identified, the indicator generates an alert.
- The alert message includes the type of pattern (bullish or bearish), the price level at the time of detection, and the date and time of the pattern formation.
Detailed Conditions:
- Bullish Pattern:
- The current candle closes higher than it opened.
- The previous candle also closes higher than it opened.
- Two candles ago, the candle closed lower than it opened.
- Three candles ago, the candle closed higher than it opened.
- The highest price of two candles ago is below the current close.
- The lowest price of three candles ago is above the close of two candles ago.
- The highest price of three candles ago is below the current close.
- Bearish Pattern:
- The current candle closes lower than it opened.
- The previous candle also closes lower than it opened.
- Two candles ago, the candle closed higher than it opened.
- Three candles ago, the candle closed lower than it opened.
- The lowest price of two candles ago is above the current close.
- The highest price of three candles ago is below the close of two candles ago.
- The lowest price of three candles ago is above the current close.
Visual Representation:
- Gold Color: Indicates a detected bullish pattern.
- Pinkish Color: Indicates a detected bearish pattern.
Alerts:
- Alert Message: "ABC Pattern has appeared!"
- Detailed Alerts: Include the type of pattern, price level, and timestamp for better analysis and decision-making.
This indicator helps traders visually and audibly detect potential bullish and bearish patterns on their charts, aiding in making more informed trading decisions.
Variable Index Dynamic Average (VIDYA) with HistperThe Variable Index Dynamic Average (VIDYA) is a unique and adaptive moving average indicator designed to respond dynamically to market volatility. It adjusts its smoothing factor based on the standard deviation of price changes, making it more responsive during periods of high volatility and smoother during periods of low volatility. This version includes two key parameters:
Period: The number of bars used to calculate the VIDYA.
HistPer: The number of historical bars used to calculate the standard deviation, affecting the smoothness and responsiveness of the indicator.
Features:
Dynamic Adaptation: VIDYA adjusts its responsiveness based on market conditions, providing a balance between smoothness and responsiveness.
Customizable Parameters: Users can customize the Period and HistPer to fit their specific trading style and asset characteristics.
Overlay on Price Chart: The VIDYA is plotted directly on the price chart for easy visualization and integration with other technical analysis tools.
Usage:
Trend Identification: Use VIDYA to identify the prevailing trend. A rising VIDYA line indicates an uptrend, while a falling VIDYA line indicates a downtrend.
Entry and Exit Signals: Combine VIDYA with other indicators and trading strategies to confirm entry and exit signals.
Volatility Analysis: Adjust the HistPer to see how the indicator responds to different levels of market volatility.
Weekly & Daily High/Low AnalyzerOverview
The Weekly & Daily High/Low Analyzer indicator is designed to analyze the likelihood of achieving the High or Low of the day or week based on user-specified parameters. This tool is ideal for traders who want to identify potential turning points in the market by examining historical data.
Features
Weekly High/Low Analysis: Available exclusively on the daily timeframe, this feature allows users to analyze past weeks to determine the probability of reaching the weekly high or low. Users can specify the number of weeks to analyze via the "Number of Weeks to Calculate" input field. Setting this field to 0 includes all available historical data. Note that the current week is excluded from the analysis as it is incomplete, and weekends (Saturdays and Sundays) are not analyzed.
Daily High/Low Analysis: Available exclusively on the 1-hour timeframe, this feature analyzes past days to determine the probability of reaching the daily high or low. Users can specify the number of days to analyze via the "Number of Days to Calculate" input field. Setting this field to 0 includes all available historical data. The current day is excluded from the analysis as it is incomplete, and weekends (Saturdays and Sundays) are not analyzed.
Visualization
A table is displayed in the top right corner of the chart, showing the results of the analysis. The table highlights the hours or days with the highest probabilities in darker colors for easy identification.
How It Works
Weekly Analysis: On the daily timeframe, the script analyzes each week's high and low points. It differentiates between bullish and bearish weeks and calculates the probability of reaching the high or low on each day of the week (Monday to Friday).
Daily Analysis: On the 1-hour timeframe, the script examines the high and low points of each trading day. It differentiates between bullish and bearish days and calculates the probability of reaching the high or low at each hour of the trading day.
Inputs
Number of Weeks to Calculate: An integer input that determines the number of past weeks to include in the analysis. Setting this to 0 includes all historical data.
Number of Days to Calculate: An integer input that determines the number of past days to include in the analysis. Setting this to 0 includes all historical data.
Calculation and Display
The indicator uses arrays to count the occurrences of highs and lows on bullish and bearish weeks and days.
Probabilities are calculated and displayed in a table, with each row representing a day (for weekly analysis) or an hour (for daily analysis).
Colors in the table indicate the strength of the probability, making it easy to identify significant patterns.
Implementation
The script includes detailed logic for resetting values at the start of a new week or day, capturing opening and closing prices, and counting occurrences of highs and lows. The table displays data in a user-friendly format, with gradient colors indicating the probability strength.
Example Usage
Swing Traders: Can use the weekly analysis to identify potential high or low points for the week, aiding in setting entry or exit points.
Day Traders: Can use the daily analysis to determine the most likely hours for reaching the high or low of the day, optimizing intraday trading strategies.
Additional Information
This indicator is inspired by the knowledge shared by Omor and aims to provide traders with a statistical edge in predicting market movements.
FVG Instantaneous Mitigation Signals [LuxAlgo]The FVG Instantaneous Mitigation Signals indicator detects and highlights "instantaneously" mitigated fair value gaps (FVG), that is FVGs that get mitigated one bar after their creation, returning signals upon mitigation.
Take profit/stop loss areas, as well as a trailing stop loss are also included to complement the signals.
🔶 USAGE
Instantaneous Fair Value Gap mitigation is a new concept introduced in this script and refers to the event of price mitigating a fair value gap one bar after its creation.
The resulting signal sentiment is opposite to the bias of the mitigated fair value gap. As such an instantaneously mitigated bearish FGV results in a bullish signal, while an instantaneously mitigated bullish FGV results in a bearish signal.
Fair value gap areas subject to instantaneous mitigation are highlighted alongside their average level, this level is extended until reached in a direction opposite to the FVG bias and can be used as a potential support/resistance level.
Users can filter out less volatile fair value gaps using the "FVG Width Filter" setting, with higher values highlighting more volatile fair value gaps subject to instantaneous mitigation.
🔹 TP/SL Areas
Users can enable take-profit/stop-loss areas. These are displayed upon a new signal formation, with an area starting from the mitigated FVG area average to this average plus/minus N ATRs, where N is determined by their respective multiplier settings.
Using a higher multiplier will return more distant areas from the price, requiring longer-term variations to be reached.
🔹 Trailing Stop Loss
A trailing-stop loss is included, increasing when the price makes a new higher high or lower low since the trailing has been set. Using a higher trailing stop multiplier will allow its initial position to be further away from the price, reducing its chances of being hit.
The trailing stop can be reset on "Every Signal", whether they are bullish or bearish, or only on an "Inverse Signal", which will reset the trailing when a signal of opposite bias is detected, this will preserve an existing trailing stop when a new signal of the same bias to the present one is detected.
🔶 DETAILS
Fair Value Gaps are ubiquitous to price action traders. These patterns arise when there exists a disparity between supply and demand. The action of price coming back and filling these imbalance areas is referred to as "mitigation" or "rebalancing".
"Instantaneous mitigation" refers to the event of price quickly mitigating a prior fair value gap, which in the case of this script is one bar after their creation. These events are indicative of a market more attentive to imbalances, and more willing to correct disparities in supply and demand.
If the market is particularly sensitive to imbalances correction then these can be excessively corrected, leading to further imbalances, highlighting a potential feedback process.
🔶 SETTINGS
FVG Width Filter: Filter out FVGs with thinner areas from returning a potential signal.
🔹 TP/SL
TP Area: Enable take-profit areas for new signals.
Multiplier: Control the distance from the take profit and the price, with higher values returning more distant TP's.
SL Area: Enable stop-loss areas for new signals.
Multiplier: Control the distance from the stop loss and the price, with higher values returning more distant SL's.
🔹 Trailing Stop
Reset Trailing Stop: Determines when the trailing stop is reset.
Multiplier: Controls the initial position of the trailing stop, with higher values returning more distant trailing stops.
Brooks 18 Bars [KintsugiTrading]Brooks 18 Bars
Overview:
This indicator allows traders to specify a time frame within each trading day and plots lines at the highest and lowest prices recorded during that period. It is particularly useful for identifying key levels of support and resistance within a specified time range.
Features:
User-Defined Time Frame: Traders can input their desired start and end times in a 24-hour format, allowing flexibility to analyze different market sessions.
High and Low Price Levels: The indicator plots lines representing the highest and lowest prices observed within the specified time frame each day.
Clear Visual Representation: The high and low lines are color-coded for easy identification, with the high & low prices in Kintsugi Trading Gold.
How to Use:
Set the Time Frame:
Adjust the "Start Time Hour" and "Start Time Minute" to define the beginning of your desired time frame.
Adjust the "End Time Hour" and "End Time Minute" to define the end of your desired time frame.
Analyze Key Levels:
Al Brooks popularized the following idea and basis for creating this indicator:
On a 5-minute chart, Bar 1 has a 20-30% chance of being the High or Low of the day.
Bar 12 has a 50% chance.
Bar 18 has an 80-90% chance.
Use the plotted lines to identify significant support and resistance levels within your specified time frame. These levels can help inform your trading decisions, such as entry and exit points.
Good luck with your trading!
Liquidity Swings & SweepsThis Pine script indicator is designed to create a visual representation liquidity as identified by swing Highs/Lows along with an indication of the liquidity level that was swept, optionally rating the strength of the sweep based on time & price.
Relevance:
Liquidity levels & sweeps are crucial for many SMC/ICT setups and can indicate a point at which the price changes direction or may re-trace in an opposite direction to provide additional liquidity for continued move in the original direction. Additionally, liquidity levels may provide targets for setups, as price action will often seek to take out those levels as they main contain many buy/sell stops.
How It Works:
The indicator tracks all swing points, as identified using user-defined strength of the swing. Once a swing is formed that meets the criteria, it is represented by a horizontal line starting at the price of the current swing until the last bar on the chart. While the swing is valid, this line will continue to be extended until the swing is invalid or a new swing is formed. Upon identifying a new swing, the indicator then scans the earlier swings in the same direction looking for a point of greatest liquidity that was taken by the current swing. This level is then denoted by dashed horizontal line, connecting earlier swing point to the current. At the same time any liquidity zones between the two swings are automatically removed from the chart if they had previously been rendered on the chart. If the setting to enable scan for maximum liquidity is enabled, then while looking back, the indicator will look for lowest low or highest high that was taken by the current swing point, which may not be a swing itself, however, is a lowest/highest price point taken (mitigated) by the current swing, which in many cases will be better price then then the one represented by previous swing. If the option to render sweep label is enabled, the sweep line will also be completed by a label, that will score the sweep and a tooltip showing the details of the level swept and the time it took to sweep it. The score explained further in configurability section ranks the strength of the sweep based on time and is complemented by price (difference in price between the two liquidity levels).
Configurability:
A user may configure the strength of the swing using both left/right strength (number of bars) as well as optionally instruct the indicator to seek the lowest/highest price point which may not be previous swing that was taken out by newly formed swing.
From appearance perspective liquidity level colors & line width presenting the liquidity/swing can be configured. There is also an option to render the liquidity sweep label that will generate an icon-based rating of the liquidity sweep and a tooltip that provides details on the scope of the swing, which includes liquidity level swept and when it was formed along with the time it took to sweep the liquidity.
Rating is of sweeps is primarily based on time with a secondary reference to price
💥- Best rating, very strong sweep with an hourly or better liquidity sweep
🔥- Second rating, strong sweep with 15 – 59 minute liquidity sweep, or 5+ minute sweep of 10+ points
✅- Third rating, ok sweep with 5 - 15 minute liquidity sweep, or lower-time-frame sweep of 10+ points
❄️ - Weakest sweep, with liquidity of 5 or less minutes swept
What makes this indicator different:
Designed with high performance in mind, to reduce impact on chart render time.
Only keeps valid liquidity levels & sweeps on the chart
Automatically removes previously taken liquidity levels
Ranks liquidity sweeps to indicate strength of the sweep
Heads UpAn indicator that gives you the "heads up" that that bullish/ bearish strength is increasing.
I wanted an indicator that could give me the "heads up" that bullish/ bearish strength is increasing. This would help me get into a breakout early or avoid entering a breakout that had a high probability of failure.
Here are my definitions for this indicator:
My bull bar definition:
- A green candle that closes above 75% of it's candle range.
- The candle's body does not overlap the previous candle's body. Tails/ wicks CAN overlap.
My bear bar definition:
- A red candle that closes below 75% of it's candle range.
- the candle's body does not overlap the previous candle's body. Tails/ ticks CAN overlap.
Bullish strength increasing (arrow up):
- Bull bars are increasing in size (the candle's range) compared to previous 5 bars.
- 2 consecutive bull bars.
Bearish strength increasing (arrow down):
- Bear bars are increasing in size (the candle's range) compared to previous 5 bars.
- 2 consecutive bear bars.
You will not see this indicator trigger very often but when it does - it's because there is a change in bullish bearish strength.
Things to be aware of:
Use the indicator in line with the context of the previous trend. You will get triggers that fail. These are usually because they appear counter trend. When in doubt zoom out.
It will not call every successful breakout. If you understand the definitions you'll understand why it appears.
This is my first indicator and used for my personal use. Feedback and other ideas are welcome.
Average Candle Range [UkutaLabs]█ OVERVIEW
The Average Candle Range is a powerful indicator that compares the size of the current bar to past bars. This comparison can be used in a wide variety of trading strategies, allowing traders to understand at a glance the relative size of each candle.
█ USAGE
As each candlestick forms, two bars will be plotted on the indicator. The grey bar represents the total range of the candle from the high to the low, and the second bar represents the body of the bar from the open to the close. Depending on whether the bar is bullish or bearish, the second bar will be colored green or red respectively.
Two averages will also be drawn over these bars that represent the average size of the two bar types over a period that is specified by the user. These averages can be toggled in the indicator settings.
█ SETTINGS
Configuration
• Period: Determines how many bars to use in the calculation of the averages.
• Show Bar Average: Determines whether or not the average for the full bar size is displayed.
• Show Body Average: Determines whether or not the average for the body is displayed.
First 5-Minute Candle BoxTitle: "First 5-Minute Candle Box Indicator"
Description:
Introducing the "First 5-Minute Candle Box" indicator for TradingView! This powerful script is designed to help traders visualize and analyze the high and low prices of the first 5-minute candle of each trading day. By clearly marking this crucial price range, traders can gain valuable insights into potential support and resistance levels right from the start of the trading session.
Features:
First 5-Minute Candle High and Low: Automatically captures and displays the high and low prices of the first 5-minute candle of the trading day, providing key levels for intraday trading strategies.
Daily Reset: Resets the high and low variables at the beginning of each new trading day to ensure accurate data capture for the current session.
Visual Box Representation: Draws a visual rectangle box on the chart from the start of the trading day to the end, highlighting the range between the high and low of the first 5-minute candle.
Customizable Appearance: The box is drawn with a customizable border color and background color, allowing traders to personalize the indicator to their chart's aesthetic.
Usage:
Add the indicator to your TradingView chart to automatically display the high and low of the first 5-minute candle of each trading day.
Utilize these levels as potential support and resistance zones for your intraday trading strategies.
Gain an early edge in your trading day by identifying key price levels right from the market open.
Code Explanation:
Variable Initialization: The script initializes variables to store the high and low prices of the first 5-minute candle.
Daily Reset Logic: At the start of a new day, the variables are reset to ensure they capture the correct data for the new trading session.
Price Capture Logic: The high and low prices of the first 5-minute candle are captured and stored.
Box Drawing Logic: The script defines the start and end times for the visual box and draws the rectangle if the high and low prices are set.
Customizable Box: The box is drawn with specified colors and border properties, providing a clear visual representation on the chart.
Enhance your trading analysis with the "First 5-Minute Candle Box" indicator. Add it to your TradingView chart today and start leveraging the power of early price action!
Heikin Ashi Price DetectionThis script performs custom calculations for both bullish and bearish bars, providing a numerical result that can be used to gauge price movements and potential trading signals.
How It Works
Bullish Bars:
Calculates the absolute difference between the open and low prices (BullOpenLow).
Calculates the absolute difference between the high and close prices (BullHighClose).
Compares BullOpenLow and BullHighClose:
If BullOpenLow is greater, the difference is divided by BullOpenLow.
If BullHighClose is greater, the difference is divided by BullHighClose.
The result is normalized to a percentage and subtracted from 100 to produce a final value.
Bearish Bars:
Calculates the absolute difference between the close and low prices (BearCloseLow).
Calculates the absolute difference between the high and open prices (BearHighOpen).
Compares BearCloseLow and BearHighOpen:
If BearCloseLow is greater, the difference is divided by BearCloseLow.
If BearHighOpen is greater, the difference is divided by BearHighOpen.
The result is normalized to a percentage and subtracted from 100 to produce a final value.
Key Features
Bullish and Bearish Calculations: The script identifies bullish and bearish bars and applies separate calculations to each.
Normalized Results: The calculations provide a normalized result that can be easily interpreted.
Visual Representation: Results are plotted on the chart for quick visual reference.
BooBee Digital - Enhanced Buy & Sell Alerts Suite
BooBee Digital - Enhanced Buy & Sell Alerts Suite
Introduction:
The “BooBee Digital - Enhanced Buy & Sell Alerts Suite” is a comprehensive trading tool designed to provide traders with precise buy and sell signals by integrating the Average True Range (ATR) trailing stop technique and the Volume Weighted Average Price (VWAP) indicator. This script is tailored to help traders make informed decisions by considering both market volatility and trading volume.
How It Works:
1. ATR Calculation:
• Purpose: Measures market volatility to set dynamic stop levels.
• Details: The Average True Range (ATR) is calculated over a user-defined period. The ATR value reflects the average range of price movements over the specified period, which is crucial for assessing market volatility.
2. ATR Trailing Stop:
• Purpose: Identifies potential trend reversals by setting trailing stops based on market volatility.
• Details: The ATR trailing stop is dynamically adjusted using the ATR value and a user-defined sensitivity factor. This trailing stop level helps identify trend reversals by moving in accordance with price fluctuations.
3. VWAP Calculation:
• Purpose: Provides a volume-weighted average price to benchmark fair value.
• Details: The VWAP is calculated by taking the sum of the product of price and volume, divided by the total volume. This indicator gives traders a reference point for the average price at which the asset has traded throughout the day, considering trading volume.
4. EMA Crossover:
• Purpose: Adds a confirmation layer for buy and sell signals.
• Details: A 1-period Exponential Moving Average (EMA) is used to identify short-term price movements. Buy and sell signals are generated based on the crossover of the EMA and the ATR trailing stop, adding an extra layer of confirmation for trade entries and exits.
Signal Generation:
Buy Signal:
• Generated when the price is above the ATR trailing stop and there is a bullish crossover of the EMA and ATR trailing stop.
• Indicator: Green label below the bar with “Buy” text.
Sell Signal:
• Generated when the price is below the ATR trailing stop and there is a bearish crossover of the EMA and ATR trailing stop.
• Indicator: Red label above the bar with “Sell” text.
VWAP Line:
• The VWAP line is plotted on the chart to help traders identify significant price levels based on trading volume.
• Indicator: Blue line representing the VWAP.
How to Use:
• Chart Type: The script is designed for use on standard chart types such as Candlestick and OHLC. It does not support non-standard chart types like Heikin Ashi, Renko, Kagi, Point & Figure, and Range, as they may produce unrealistic results.
• Clean Chart: Ensure your chart is clean and free of other indicators to avoid confusion. The signals and colors plotted by the script should be easily identifiable.
• Trade Confirmation: Use the buy and sell signals generated by the script in conjunction with other analysis methods to confirm trades.
Key Concepts:
• ATR Trailing Stop: This technique sets dynamic stop levels based on market volatility, helping to identify trend reversals.
• VWAP: This indicator provides a benchmark for the average price considering trading volume, helping traders identify fair value.
• EMA Crossover: This adds a layer of confirmation for buy and sell signals, improving the accuracy of trade entries and exits.
Candle Patterns with Volume ValidationHey Guys !
█ This indicator shows validated Hammer and Shooting Star candle patterns based on volume.
This indicator identifies Hammer and Shooting Star patterns and validates them using volume analysis.
Hammer and Shooting Star patterns are candlestick patterns that signal potential reversals in the market.
█ Usages:
A hammer is formed when in a session, the price has fallen, only to reverse and recover to close back near the opening price. This is a sign of strength with the selling having been absorbed in sufficient strength for the buyers to overwhelm the sellers, allowing the market to recover. The hammer is so called as it is ‘hammering out a bottom’, and just like the shooting star, is immensely powerful when combined with Volume Price Analysis (VPA).
The shooting star is a bearish reversal pattern that appears at the top of uptrends. It signifies that prices have peaked and a downward reversal is likely. The presence of high volume strengthens this signal, indicating that the insiders are offloading their positions.
When combined with volume analysis, these patterns become powerful signals. The volume provides context to the price action, helping traders confirm the validity of the pattern. For example, a hammer with high volume suggests strong buying interest, whereas a shooting star with high volume indicates strong selling pressure.
█ Features:
• Detects Hammer and Shooting Star patterns.
• Validates patterns with volume thresholds.
• Color codes patterns based on volume validation.
• Allows customization of volume thresholds and pattern criteria.
• Option to show or hide signals.
█ Parameters:
• Volume Average Period: The period used to calculate the average volume.
• Higher Volume Multiplier: Multiplier to define higher volume threshold.
• Much Higher Volume Multiplier: Multiplier to define much higher volume threshold.
• Enormous Volume Multiplier: Multiplier to define enormous volume threshold.
• Body/Shadow Ratio for Hammer and Shooting Star: Ratio of body to shadow for pattern validation.
• Upper Shadow Limit for Hammer: Upper shadow limit for Hammer pattern.
• Lower Shadow Limit for Shooting Star: Lower shadow limit for Shooting Star pattern.
• Show Hammer Signals: Display signals for Hammer patterns.
• Show Shooting Star Signals: Display signals for Shooting Star patterns.
Enjoy !
Jobinsabu014This Pine Script code is for an advanced trading indicator that displays enhanced moving averages with buy and sell labels, trend probability, and support/resistance levels. Here’s a detailed description of its components and functionality:
### Description:
1. **Indicator Initialization**:
- The indicator is named "Enhanced Moving Averages with Buy/Sell Labels and Trend Probability" and is set to overlay on the chart.
2. **Input Parameters**:
- **Moving Averages**: Four different moving averages (short and long periods for default and enhanced) with customizable periods.
- **Probability Threshold**: Determines the threshold for trend probability.
- **Support/Resistance Lookback**: Number of bars to look back for calculating support and resistance levels.
- **Signals Valid From**: Timestamp from which the signals are considered valid.
3. **Moving Averages Calculation**:
- **Default Moving Averages**: Calculated using simple moving averages (SMA) for the specified periods.
- **Enhanced Moving Averages**: Calculated using SMAs for different specified periods.
4. **Plotting Moving Averages**:
- Plots the default and enhanced moving averages with different colors for distinction.
5. **Crossover Detection**:
- Detects when the short moving average crosses above or below the long moving average for default moving averages.
6. **Buy/Sell Signal Labels**:
- Adds "BUY" and "SELL" labels on the chart when crossovers are detected after the specified valid timestamp.
- Tracks entry prices for buy/sell signals and adds labels when the price moves +100 points.
7. **Trend Detection for Enhanced Indicator**:
- Detects uptrend or downtrend based on the enhanced moving averages.
- Calculates a simple probability of trend based on price movement and EMA.
- Determines buy and sell signals based on trend conditions and volume-based buy/sell pressure.
8. **Plot Buy/Sell Signals for Enhanced Indicator**:
- Plots buy/sell signals based on the enhanced conditions.
9. **Background Color for Trends**:
- Changes the background color to green for uptrend and red for downtrend.
10. **Trend Lines**:
- Draws imaginary trend lines for uptrend and downtrend based on enhanced moving averages.
11. **Support and Resistance Levels**:
- Calculates and plots support and resistance levels using the specified lookback period.
- Stores and plots previous support and resistance levels with dashed lines.
12. **Expected Trend Labels**:
- Adds labels indicating expected uptrend or downtrend based on buy/sell signals.
13. **Alerts**:
- Sets alert conditions for buy and sell signals, triggering alerts when these conditions are met.
14. **Demand and Supply Zones**:
- Draws and extends horizontal lines for demand (support) and supply (resistance) zones.
### Summary:
This script enhances traditional moving average crossovers by adding trend probability calculations, volume-based pressure, and support/resistance levels. It visualizes expected trends and provides comprehensive buy/sell signals with corresponding labels, background color changes, and alerts to help traders make informed decisions.
Prometheus OscillatorThis oscillator is a tool meant to determine an up or down trend using a measure of volatility and what skews the market has.
Calculation
The first thing to do is normalize the price to have a 0 handle and be a decimal. The reason to do this is to get the 0 line for every asset.
After the source value has been normalized calculate standard deviation and skew.
Standard Deviation
To calculate standard deviation Prometheus uses Pinescript's built-in function.
standard_dev = ta.stdev(src, len, true)
Standard deviation is a decent and quick estimation of historical volatility over a period of time specified by the user.
Skew
Skew is calculated as follows:
mean = ta.sma(src, len)
m3 = math.sum(math.pow(src - mean, 3), len) / len
m2 = math.pow(math.sum(math.pow(src - mean, 2), len) / len, 1.5)
skew = m3 / m2
Skew is a value used to determine how far on one side of a distribution a value is. When the market is aggressively moving higher the skew will be a bigger positive number. When it is moving lower, a negative number. When the values are small, still either positive or negative, is when the market is moving calmly in either direction.
Adding these two values together provides us with our oscillator.
Trade Examples
A simple way to use this tool is to use 0-line crosses as bullish or bearish alerts
Step 1: Cross above 0 line, long alert. The price proceeds to move up.
Step 2: Cross below 0 line, short alert. The Price moves down.
Step 3: Cross above 0 line, long alert. The price chops then the price proceeds to move up.
0 line crosses can work but may not always be reliable.
Step 1: Cross above 0 line, long alert. The price proceeds to move up.
Step 2: Cross below 0 line, short alert. The Price bounces as the downtrend is signaled, but then continues to sell off.
Step 3: Cross above 0 line, long alert. The price chops at the high and then reverses.
Step 4: Cross below 0 line, short alert. proceeds to move down.
Step 5: Cross above 0 line, long alert. The price proceeds to move up.
Not every alert will be perfect, we encourage traders to use tools as well as their own discretion.
Previous highs and lows may be a good tell if the alert will be true.
Step 1: Cross above 0 line, long alert. The price proceeds to move up.
Step 2: Cross below 0 line, short alert. The Price bounces as the downtrend is signaled, false alert.
Step 3: Cross above 0 line, long alert. The price chops at the high and then moves up.
Step 4: Cross below 0 line, short alert. The price chops a lot with a false break to the upside, the oscillator itself does not move fast or high which could have been a sign it was false.
Step 5: Step 3's downtrend continues.
Step 6: Cross above the 0 line. A new up trend emerges.
The indicator has more than one use. Detecting false moves in a greater trend is advantageous to not get faked out.
Step 1: Price moves up, however, the oscillator does not break 0, and the trend remains bearish before a true break of 0 line and moves up.
Step 2: While the oscillator is below the 0 line the price moves up. The oscillator does not change its sign and the downtrend continues until a true break of 0 line and moves up.
Inputs:
Len: Lookback length for how many bars back to go to calculate the oscillator.
No indicator is 100% accurate, use them along with your own discretion.