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

Script open-source

In pieno spirito TradingView, l'autore di questo script lo ha pubblicato open-source, in modo che i trader possano comprenderlo e verificarlo. Un saluto all'autore! È possibile utilizzarlo gratuitamente, ma il riutilizzo di questo codice in una pubblicazione è regolato dal nostro Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.

Vuoi usare questo script sui tuoi grafici?


Anche su:

Declinazione di responsabilità