OPEN-SOURCE SCRIPT

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[1] > smaVolume * volMultiplier
```

Support Level Detection : Determines the lowest low over the lookback period to identify significant support levels.

```pine
supportLevel = ta.lowest(low[1], supportLookback)
isLowestLow = low[1] == 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[1]) >= (atr * atrMultiplier)
```

Combining Conditions : Combines various conditions to identify capitulation candles.

```pine
isHigherVolumeThanNext = volume[1] > volume
isHigherVolumeThanPrevious = volume[1] > volume[2]
bodySize = math.abs(close[1] - open[1])
candleRange = high[1] - low[1]
rangeBiggerThanPreviousBody = candleRange > bodySize[1]
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[1] > smaVolume * smallThreshold and volume[1] <= smaVolume * normalThreshold
isNormal = volume[1] > smaVolume * normalThreshold and volume[1] <= smaVolume * largeThreshold
isLarge = volume[1] > 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.
Candlestick analysisChart patternsPivot points and levels

오픈 소스 스크립트

진정한 TradingView 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

차트에 이 스크립트를 사용하시겠습니까?


또한 다음에서도:

면책사항