Good Candles with Risk TableThis custom Pine Script indicator highlights bullish and bearish candles based on the highest and lowest close prices over the past specified number of candles (look-back period).
Bullish candles are marked with an orange color when the close is higher than the highest close from the previous candle.
Bearish candles are marked with a purple color when the close is lower than the lowest close from the previous candle.
The indicator also draws two lines for each colored candle:
Midline: A horizontal line drawn at the midpoint between the open and close of the candle, which helps visualize the candle's body.
Open line: A horizontal line drawn at the open price, offering an additional reference point for market action.
Lines are visible for the last 5 colored candles (either bullish or bearish), with old lines being removed to avoid clutter on the chart.
Additionally, the Risk Table at the top right of the chart shows the calculated units to buy for the specified risk amount (default value of $0.1), based on the distance between the candle’s close and its midpoint. This allows users to manage their risk effectively by knowing how many units they should purchase to match their desired risk level.
Cari dalam skrip untuk "candle"
Extended Engulfing CandleExtended Engulfing Candle Pattern Indicator
This indicator advances the standard engulfing candle pattern, capturing more reliable trend reversal signals in the market. Traditional engulfing candle patterns often lead to premature judgments of trend reversals, but the Extended Engulfing Indicator considers consecutive rising or falling candles to pinpoint more conservative trend reversal points.
Features:
Detection of Consecutive Rising/Falling Candles:
This indicator detects the occurrence of consecutive rising or falling candles, considering them when identifying extended engulfing candles. This creates a more potent reversal signal compared to single candle patterns.
Visual Display:
“U” and “D” labels are displayed at the top and bottom of the chart, clearly showing users the rising and falling engulfing patterns.
It only displays a label once, until a pattern in the opposite direction is shown.
Enhanced Accuracy:
By using the information from consecutive candles, the indicator captures trend reversals more conservatively and accurately. This reduces the number of false signals compared to traditional engulfing candle patterns.
How to Use:
When a rising engulfing candle pattern is displayed, it signifies the start of a potential upward trend. Conversely, when a falling engulfing candle pattern appears, it implies the beginning of a potential downward trend.
Caution:
Trading solely with this indicator has its limitations; hence users should cautiously integrate it with their trading strategies. Not all rising and falling engulfing patterns signify trend reversals.
Conclusion:
The Extended Engulfing Candle Pattern Indicator assists in identifying more reliable trend reversal points compared to the traditional engulfing candle patterns. By identifying the high and low points of consecutive candles, it minimizes false signals and helps traders make more accurate judgments on market movements.
확장 장악형 캔들 패턴 인디케이터
이 인디케이터는 표준 장악형 캔들 패턴을 발전시켜, 마켓에서 더 확실한 트렌드 전환 시그널을 포착합니다. 기존의 장악형 캔들 패턴은 종종 너무 이른 트렌드 전환 판단을 내리지만, 확장 장악형 인디케이터는 연속적인 상승 혹은 하락 캔들을 고려하여 더 보수적인 트렌드 전환점을 포착합니다.
특징:
연속 상승/하락 캔들 감지:
이 인디케이터는 연속적인 상승 또는 하락 캔들의 발생을 감지하여, 확장 장악형 캔들이 나타날 때 이를 고려합니다.
이는 단일 캔들 패턴보다 더 강력한 전환 시그널을 생성합니다.
시각적 표시:
차트의 상단과 하단에 “U”와 “D” 라벨을 표시하여, 사용자에게 상승 장악형 및 하락 장악형 패턴을 명확하게 보여줍니다.
반대 방향의 패턴이 나타날 때까지 라벨은 한 번만 표시됩니다.
개선된 정확도:
연속적인 캔들의 정보를 사용함으로써, 트렌드의 전환을 보다 보수적이고 정확하게 포착합니다.
이로 인해 기존의 장악형 캔들 패턴 대비 거짓 신호의 수가 줄어듭니다.
사용 방법:
상승 장악형 캔들 패턴이 표시되면, 이는 잠재적인 상승 트렌드의 시작을 나타냅니다.
반대로, 하락 장악형 캔들 패턴이 나타나면, 이는 잠재적인 하락 트렌드의 시작을 의미합니다.
주의사항:
이 지표만을 이용한 트레이딩에는 한계가 있을 수 있으므로 사용자는 본인의 트레이딩 전략과 결합하여 조심스럽게 사용해야 합니다. 모든 상승, 하락 장악형 패턴이 트렌드의 전환을 의미하지 않습니다.
결론:
확장 장악형 캔들 패턴 인디케이터는 기존의 장악형 캔들 패턴보다 더욱 신뢰할 수 있는 트렌드 전환 포인트를 식별할 수 있게 도와줍니다. 연속적인 캔들의 고점 및 저점을 식별함으로써 거짓 신호를 최소화하고, 트레이더들이 마켓의 움직임에 대해 보다 정확한 판단을 내릴 수 있게 합니다.
VWAP + Engulfing CandlesHere’s a clear breakdown of what your merged Pine Script does:
---
### 📌 **Indicator Name: VWAP + Engulfing Candles**
* This custom TradingView indicator **plots VWAP (Volume Weighted Average Price)** along with **up to 3 dynamic bands** around it.
* It also **detects Bullish and Bearish Engulfing Candlestick Patterns**, displaying visual markers and triggering alerts.
---
## 🔹 **1. VWAP Section**
### ➤ **Main Features:**
* Calculates VWAP anchored to a **customizable time period**:
* Options: Session, Week, Month, Quarter, Year, Decade, Century, Earnings, Dividends, Splits.
* Optional **hiding of VWAP on Daily/Weekly/Monthly charts** to reduce clutter.
### ➤ **Bands Around VWAP:**
* Up to **3 bands** can be plotted above and below the VWAP.
* Bands can be based on either:
* **Standard Deviation** of the price from VWAP (volatility-based), or
* **Percentage** deviation from VWAP (fixed range).
* You can control:
* Whether each band is shown
* Band width via multiplier (e.g., 1x, 2x, 3x)
### ➤ **Plot Colors:**
* VWAP: Blue
* Bands: Green (1x), Olive (2x), Teal (3x)
* Band fill areas are semi-transparent.
---
## 🔹 **2. Engulfing Candlestick Pattern Detector**
### ➤ **Bullish Engulfing Criteria:**
* Current candle opens **below** or **equal to** the close of the previous candle.
* Current candle opens **below** the previous candle's open.
* Current candle closes **above** the previous candle’s open.
### ➤ **Bearish Engulfing Criteria:**
* Current candle opens **above** or **equal to** the close of the previous candle.
* Current candle opens **above** the previous candle’s open.
* Current candle closes **below** the previous candle’s open.
### ➤ **Visual Signals:**
* 🔼 Green triangle **below bar** for **Bullish Engulfing**
* 🔽 Red triangle **above bar** for **Bearish Engulfing**
### ➤ **Alerts:**
* The script includes two alert conditions:
* One for Bullish Engulfing
* One for Bearish Engulfing
These alerts can be used to automate notifications for potential reversal points.
---
## 🛠️ **Use Cases**
* **Trend following or reversal spotting**: VWAP helps identify the average trading price; engulfing patterns often signal reversals.
* **Intraday and swing trading**: Works best on timeframes like 5m, 15m, 1h for intraday, or 4h, 1D for swing.
* **Mean reversion strategies**: Bands help spot overbought/oversold areas relative to VWAP.
KAI QUANTUM Candles Analysis - Yearly BreakdownThe "KAI QUANTUM Analysis – Yearly Breakdown" indicator offers a comprehensive, year-by-year examination of candlestick behavior, enabling traders and analysts to gauge market dynamics over extended periods. Key features include:
Yearly Aggregation:
The indicator groups candlestick data by year, providing a clear snapshot of market behavior for each period.
Dual-Color Analysis:
It categorizes candles as bullish (green) or bearish (red) and computes statistics separately for each, allowing you to assess both upward and downward market trends.
Average Body Size & Candle Count:
For each year, the indicator calculates the average body size of green and red candles and tracks the total number of each, helping you understand overall market volatility and momentum.
Top 10 Candle Analysis:
It identifies the ten largest candles (by body size) in each year and computes their average size, offering insight into the most significant market moves during that period.
Largest Candle Metrics:
The indicator determines the absolute size of the largest green and red candles in each year.
Percentage Move Calculation:
In addition to absolute values, it computes the largest move as a percentage of the open price for both green and red candles. This allows you to see not only which year experienced the biggest moves but also how those moves compare relative to the opening price.
Clear Tabular Display:
All the computed statistics are organized in an on-chart table, making it easy to compare yearly trends at a glance.
Ideal for daily and higher timeframes, this indicator is a valuable tool for long-term market analysis, enabling you to identify trends, assess volatility, and make informed trading decisions based on historical market behavior.
Dump CandleThe "Dump Candle" indicator is a tool designed to help traders visualise potential "dump" candles on a altcoin's price chart. A dump candle is a transparent candle with pink outline and it shows where the price experiences a significant drop from its high to its close, indicating a potential sell-off or market weakness. These are usually caused by relatively smaller moves on BTC.
Features:
Customizable Percentage Drop: Traders can input the desired percentage drop threshold to define what constitutes a dump candle. This allows for flexibility in adapting the indicator to different market conditions and trading styles.
Historical Dump Candle Highlighting: Traders have the option to highlight historical dump candles on the chart, making it easier to spot past instances of significant price drops and analyze their impact on the market.
Average Dump Percentage: The indicator can calculate the average percentage drop of the five most recent dump candles, giving traders a sense of the typical magnitude of price drops in the current market environment.
Informative Label: A label is displayed next to the most recent dump candle, providing key information such as the percentage drop, the number of candles since the last dump, and the average dump percentage. This helps traders quickly assess the significance and context of the identified dump candle.
Usage:
Use the dump candle to find where to set your bids/buys for the moment when BTC drops to wipe out leveraged traders. This can be very lucrative, as your orders get wicked into, and price very quickly heads north again, meaning you are instantly in profit, and the overall market generally continues being bullish from that point, as people buy the dip. I place by bids at the 4H or 12H RMA14 moving average, in Fair Value Gaps, and at orderblocks. Obviously make sure to use a stop loss too
Wickless Candle IndicatorIt is designed to identify and visually highlight wickless candles on trading charts. A wickless candle is defined as a candle where the high equals either the open or close, and the low equals either the open or close, indicating no wicks.
Key features of the script include:
Customizable Line Width: Users can adjust the width of the lines drawn over wickless candles.
Wickless Candle Detection: A function isWickless is used to determine whether a candle is wickless based on its open, close, high, and low values.
Line Drawing and Management: The script draws lines over wickless candles and extends these lines as long as consecutive wickless candles are detected. The lines are terminated when a candle with a wick is encountered or when the line extends beyond one bar.
Visual Indicators: Wickless candles are marked with a cross shape above them, and lines are colored black for clear visibility.
Efficient Line Handling: The script uses variables to store and update line information, ensuring efficient management of the drawn lines as new price data comes in.
This indicator is particularly useful for traders who consider wickless candles significant in their analysis, providing an automated and visually clear way to identify these candles on a chart.
Highlight Large Candles// 🔍 Highlight Large Candles Indicator
// 🇬🇧 This indicator highlights candles where the full candle size (high - low) exceeds a user-defined percentage of the opening price (e.g., 1%).
// 🟠 When detected, the candle is colored orange and a label appears showing:
// - Body size
// - Upper wick size
// - Lower wick size
// - Open → Close distance (in price and %)
//
// 🔧 The minimum candle size threshold can be customized in the Settings.
// Ideal for identifying strong momentum or breakout candles.
Strong Engulfing Candlestick (With Alerts)Detect only Strong Bullish and Strong Bearish Engulfing candle patterns and provide visual signals along with alerts.
Key Features
Bullish Engulfing Detection:
Conditions:
Current candle's close > open (bullish).
Previous candle's close < open (bearish).
Current candle's high ≥ Previous candle's high (includes wicks).
Current candle's low ≤ Previous candle's low (includes wicks).
The body of the current bullish candle is stronger than the previous bearish candle.
Signal: Plots a green upward arrow below the bar when conditions are met.
Bearish Engulfing Detection:
Conditions:
Current candle's close < open (bearish).
Previous candle's close > open (bullish).
Current candle's high ≥ Previous candle's high (includes wicks).
Current candle's low ≤ Previous candle's low (includes wicks).
The body of the current bearish candle is stronger than the previous bullish candle.
Signal: Plots a red downward arrow above the bar when conditions are met.
Alerts:
Custom alerts are included for both bullish and bearish engulfing patterns:
Bullish Alert Message: "Strong Bullish Engulfing detected!"
Bearish Alert Message: "Strong Bearish Engulfing detected!"
ROBO STB Custom Weekly Candle (Fri-Thu)Description:
This indicator creates custom weekly candles that start on Friday and end on Thursday, instead of the standard Monday–Friday weekly structure in TradingView. It aggregates the open, high, low, and close (OHLC) values from Friday to Thursday and displays them as candlesticks on the chart.
Features:
✅ Custom weekly candles from Friday to Thursday
✅ Dynamic calculation of open, high, low, and close
✅ Works on any timeframe
✅ Helps traders analyze market structure differently
How It Works:
Identifies the custom weekly session based on Friday's start and Thursday's end.
Aggregates OHLC values within this time range.
Resets the values when a new custom week begins.
Plots the calculated weekly candles on the chart.
Use Case:
This indicator is useful for traders who prefer to analyze weekly price movements based on a non-standard start and end day, especially those focusing on forex, crypto, or commodities where trading hours differ.
Notes:
This script does not modify existing candles but overlays new custom weekly candles on the chart.
It does not repaint and updates in real-time.
If you find this useful, like and share! 🚀
Astro-CandlesThis script is just for fun.
It generates a Planet and a Zodiac Sign at the close of each candle.
The candle is "sliced" into 7 sections, one for each Planet and the close lands in one of those sections.
The candle is "sliced" into 12 sections, one for each Zodiac and the open lands in one of those sections.
You could use it to generate a quick "answer" to a question.
You could use to contemplate your day if you use the daily candle.
You could even try to use it to trade and make some money, somehow.
Every combination should be possible, Moon in Aries, Mars in Capricorn, whatever.
Since it's based on candle structure, it might yield some interesting information.
Or not!
Enjoy!
Price action: candlestick trend painter This script paints bars in different colors based on whether they are trending up or down.
It shows you if a candle is bearish or bullish based on the high and low of the previous candle.
Bull candles form higher highs (HH) and higher lows (HL) from the previous candle and are painted green.
Bear candles form lower highs (LH) and lower lows (LL) from the previous candle and are painted red.
Disclaimer
Copyright by Drbondsbody.
The information contained in my scripts/indicators/ideas 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, 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 are only for educational purposes!
Wick to Candle Ratio with Multiple ColorsThe display in question likely provides visual representations or data related to the concept of the dot-based wick-to-body ratio. This ratio is a term often used in financial markets, particularly in the context of candlestick charts.
In candlestick charts, each candlestick represents a specific time period (such as a minute, hour, day, etc.) and provides four pieces of price data: the opening price, closing price, highest price, and lowest price of an asset within that timeframe. The "body" of the candlestick is the area between the opening and closing prices, while the "wicks" (or shadows) are the lines extending from the body, representing the highest and lowest prices during the period.
The dot-based wick-to-body ratio refers to a method of quantifying the relative lengths of the wicks compared to the body using dots or points. In this context, a display illustrating this ratio might show different candlesticks with highlighted dots representing the ratio between the length of the wick and the body. A higher ratio could indicate more volatility in price movements during that timeframe, while a lower ratio might suggest comparatively stable price action.
Single Candle Entry with Multi-Timeframe [Wang Indicators]
Single candle entry
Overview : The "Single Candle Entry Model" indicator is designed to help traders through a simple yet effective trading strategy. This indicator automatically detects candles that encompass both the high and low of the previous candle, creating key price zones for potential market entries.
- This indicator was developed with the help of @DaveTeaches -
How does it works ?
Detects when a candle trade above the high and below the low of the previous candle
When it occur, the indicator write "SCE" on the candle
The text will be in different color if its bearish or bullish (customizable by user)
Higher Timeframes
Users can enable up to 3 HTF SCE detection to enhance multi timeframe analysis.
Users can select which timeframe he want to use
Boxes will be displayed around High time frame SCE to highlight the HTF candle.
As regular SCE, the indicator will write "SCE" above or under the box
How does it helps users ?
Once the SCE is created, it can be used as a zone.
Levels (30, 50 and 70%) are displayed
Users can customize their apparence as they see fit
The 30 - 50 - 70 levels are support/resistance that the price tend to bounce of off
You might find some success looking for an entry inside the zone at a level if price gives further confirmations such as a lower time frame flip or using other indicators
Alert can be setup on any timeframe
Period Counter CandleDescription:
The Period Candle Counter is a Pine Script v6 indicator designed to track and display candle statistics within a user-defined time range. This tool provides valuable insights into market movement by counting green (bullish) and red (bearish) candles within the selected period, along with their respective percentages.
Additionally, it calculates the total duration of the selected candles based on the current chart timeframe. This allows traders to understand how much actual market time has passed during the analyzed period.
Features & Functionality:
✅ Custom Time Selection:
Users can define a start and end time for the analysis.
The indicator automatically identifies and tracks candles within this period.
✅ Candle Count & Percentages:
Total Candles in the selected period.
Green Candle Count & Percentage (bullish candles).
Red Candle Count & Percentage (bearish candles).
✅ Time Calculation:
Multiplies the number of candles by the chart timeframe.
Converts the total time into hours and minutes (e.g., "2h 30m").
✅ User-Friendly Display:
Data is neatly organized in a panel positioned in the top-right corner of the chart.
Background highlighting is applied during the selected period for easy visualization.
Use Cases:
📊 Trend Analysis – Helps traders identify whether a session was bullish or bearish.
⏳ Market Session Timing – Understand how long a specific trend or movement lasted.
📉 Backtesting Strategy Support – Evaluate historical periods efficiently.
Three Candle Breakout Marker**Title: Three Candle Breakout Marker**
**Description:**
The **Three Candle Breakout Marker** is a powerful trading indicator designed for traders who want to identify significant price movements based on recent price action. This script marks candles that break above the highest high or below the lowest low of the previous three candles, providing clear visual signals for potential trading opportunities.
### Key Features:
- **Visual Indicators**: The indicator uses upward blue triangles to signify when a candle closes above the highest high of the last three candles, indicating a bullish breakout. Conversely, it uses downward orange triangles to mark when a candle closes below the lowest low of the last three candles, signaling a bearish breakout.
- **Customizable Alerts**: Traders can easily customize this indicator to suit their trading strategies by adjusting colors and sizes for better visibility on their charts.
- **Enhanced Chart Analysis**: With optional horizontal lines drawn at the breakout levels, traders can quickly assess key support and resistance areas, enhancing their decision-making process.
### How to Use:
1. **Add to Chart**: Simply add the indicator to your TradingView chart for any asset or timeframe you are analyzing.
2. **Identify Breakouts**: Look for blue triangles above candles for bullish breakout signals and orange triangles below candles for bearish breakout signals.
3. **Combine with Other Tools**: Use this indicator in conjunction with other technical analysis tools and indicators to confirm signals and improve your trading strategy.
### Conclusion:
The **Three Candle Breakout Marker** is an essential tool for traders looking to capitalize on momentum shifts in the market. By clearly marking breakout points, it helps traders make informed decisions and enhances their ability to react swiftly to changing market conditions.
Feel free to explore and customize this indicator to fit your trading style! Happy trading!
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.
Bullish Candlestick with No or Small Bottom Wickthis indicator highlights bullish candles with no lower wick of with a very small lower wick. the idea is that when this occurs, price will sooner or later get back to this area. you could use it for a strategy that sets up shorts just below the bullish candle.
Micro Daily CandlesThis helps me visualize the daily candles on a micro scale by looking at the intraday chart.
The open and close are filled red and green making the body of the daily candle. The current day high and low are marked and represents the daily candle wick.
Rocket Engulfing Candles🚀 Rocket Engulfing Candles — Bullish & Bearish Detection
This script highlights powerful engulfing candles that resemble rockets — perfect for identifying potential reversals or momentum shifts.
Bullish Rocket (Green Triangle Up)
Fully engulfs the previous candle (higher high, lower low)
Closes higher (bullish body)
Has a longer lower wick (blast-off tail)
Bearish Rocket (Red Triangle Down)
Fully engulfs the previous candle
Closes lower (bearish body)
Has a longer upper wick (crash tail)
These patterns suggest strong buying/selling pressure with possible trend reversals. Ideal for traders looking to spot high-impact candle formations with a visual edge.
Open Equals Low/High Candles
This Indicator basically helps us to get the candles where Open = Low & Open =High.
Significance:
1) Open = Low Candles
----> Such candles are very powerful, as the Open = Low marks that there aren't any sellers left below the price on that day. Denoting BULLS power and aggression.
2) Open = High Candles
----> Open = High Candles signify that as soon as the markets opened, Bears were very strong, and no buyers left above the opening price for that candle. Denoting Strong BEARISH sentiment and aggression.
PS: This indicator can be used across all timeframes and indices. As it is purely based on Price-Action study.
4 Candle AnalysisThis script looks at 4 candles at a time.
If the first 3 candles in the pattern are BEARISH and the 4th candle BULLISH engulfs the 3rd candle then a GREEN triangle UP will display BELOW the 4th candle
If the first 3 candles in the pattern are BULLISH and the 4th candle BEARISH engulfs the 3rd candle then a RED triangle DOWN will display ABOVE the 4th candle
Three Candle Bullish Engulfing StrategyThe Three Candle Bullish Engulfing Strategy is a versatile, multi-mode trading system designed for TradingView, combining classic candlestick patterns with momentum confirmation and dynamic risk management. This script supports both swing trading and intraday approaches, as well as an optional RSI-based breakout mode for additional signal filtering.
Key Features:
Three Candle Pattern Detection:
The strategy identifies potential trend reversal points using a three-candle pattern:
The first candle is a strong bullish (or bearish) move.
The second candle is a doji or small-bodied candle, indicating indecision.
The third candle is a bullish (or bearish) engulfing candle that closes above (or below) the previous high (or low), confirming the reversal.
Flexible Trading Modes:
Swing Long Only: Enter long trades on bullish three-candle setups.
Intraday Long & Short: Trade both long and short based on bullish and bearish three-candle patterns, with automatic session-end exits.
RSI Breakout Mode: Enter long trades when the 1-hour RSI exceeds a user-defined threshold (default 80) and a bullish candle forms, with breakout confirmation and a fixed-percentage stop loss.
Visual Aids:
Plots the RSI breakout trigger price and stop loss on the chart for easy monitoring.
How It Works:
Three Candle Pattern Entries:
Long Entry: Triggered when a bullish candle is followed by a doji, then a bullish engulfing candle closes above the previous high.
Short Entry (Intraday only): Triggered by the inverse pattern—bearish candle, doji, then bearish engulfing candle closing below the previous low.
RSI Breakout Entries:
When the RSI on a higher timeframe (default 1 hour) exceeds the set threshold and a bullish candle forms, the script records a trigger price.
A long trade is entered if the price breaks above this trigger, with a stop loss set a fixed percentage below.
Exits:
Positions are closed if the trailing stop is hit, the session ends (for intraday mode), or the stop loss is triggered in RSI breakout mode.
In RSI breakout mode, positions are also closed if a new breakout trigger forms while in position.
[TehThomas] - Displacement CandlesOverview:
This PineScript is designed to detect and visualize significant price movements, called displacements, on a trading chart. It's particularly useful for traders who want to identify potential trend changes or strong market sentiment quickly.
How the Script Works
User Input:
The script allows users to set a custom threshold for displacement detection and choose colors for bullish and bearish movements.
Displacement Detection Function:
isDisplacement(series, threshold) =>
percentage_change = math.abs(series - series ) / series * 100
percentage_change > threshold
This function calculates the percentage change between the current and previous price.
If the change exceeds the set threshold, it's considered a displacement.
Bullish and Bearish Detection:
bullish_displacement = isDisplacement(close, threshold) and close > close
bearish_displacement = isDisplacement(close, threshold) and close < close
Identifies whether the displacement is bullish (price increase) or bearish (price decrease).
Candle Coloring:
barcolor(bullish_displacement ? bullish_color : bearish_displacement ? bearish_color : na)
Changes the color of candles based on the detected displacement type.
Usefulness and Applications:
Trend Identification: Helps in quickly spotting potential trend changes or continuations.
Volatility Analysis: Provides a visual representation of market volatility.
Entry and Exit Signals: Can be used to identify potential entry or exit points for trades.
Market Sentiment: Offers insights into the strength of bullish or bearish sentiment.
Customizable Sensitivity: The adjustable threshold allows traders to fine-tune the indicator based on the asset's typical volatility.
Visual Clarity: By changing candle colors, it provides a clear, at-a-glance view of significant price movements.
Complementary Tool: Can be used alongside other technical indicators for confirmation of signals.
Multiple Timeframe Analysis: Applicable across different timeframes to suit various trading styles (day trading, swing trading, etc.).
Educational Purpose: Helps new traders understand and visualize significant price movements in the market.
Backtesting: Can be incorporated into strategy backtests to assess its effectiveness in different market conditions.
This script is particularly handy for traders who want to cut through market noise and focus on significant price movements. It's versatile enough to be used across different trading strategies and can be a valuable addition to a trader's technical analysis toolkit.
It's a very easy script and not alot to mention. If you see any improvements please let me know.