adridem

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.

Скрипт с открытым кодом

В истинном духе TradingView автор этого скрипта опубликовал его с открытым исходным кодом, чтобы трейдеры могли понять, как он работает, и проверить на практике. Вы можете воспользоваться им бесплатно, но повторное использование этого кода в публикации регулируется Правилами поведения. Вы можете добавить этот скрипт в избранное и использовать его на графике.

Отказ от ответственности

Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.

Хотите использовать этот скрипт на графике?