OPEN-SOURCE SCRIPT
CAHOLD / CBLOHD

CAHOLD (Close Above Highest Low Day) and CBLOHD (Close Below Lowest High Day)
The logic is based on identifying pullbacks followed by strength in the direction of the trend, making it useful as a trend-continuation entry signal rather than a reversal tool.
⸻
How CAHOLD Works (Bullish)
1. A sequence of red candles forms (a pullback).
2. The first green candle appears.
3. The script identifies the highest high of the prior red-candle sequence (HOLD).
4. A CAHOLD signal triggers when a green candle closes above that HOLD level.
5. A small green arrow is plotted below the candle.
⸻
How CBLOHD Works (Bearish)
1. A sequence of green candles forms (a bounce).
2. The first red candle appears.
3. The script identifies the lowest low of the prior green-candle sequence (LOHD).
4. A CBLOHD signal triggers when a red candle closes below that LOHD level.
5. A small red arrow is plotted above the candle.
⸻
Optional Filters
• EMA / SMA Trend Filter
Only shows CAHOLDs in uptrends and CBLOHDs in downtrends.
• Minimum Pullback Depth
Requires a minimum number of red/green candles before a signal can trigger.
• ATR Breakout Filter
Requires price to break the level by a volatility-adjusted amount.
The logic is based on identifying pullbacks followed by strength in the direction of the trend, making it useful as a trend-continuation entry signal rather than a reversal tool.
⸻
How CAHOLD Works (Bullish)
1. A sequence of red candles forms (a pullback).
2. The first green candle appears.
3. The script identifies the highest high of the prior red-candle sequence (HOLD).
4. A CAHOLD signal triggers when a green candle closes above that HOLD level.
5. A small green arrow is plotted below the candle.
⸻
How CBLOHD Works (Bearish)
1. A sequence of green candles forms (a bounce).
2. The first red candle appears.
3. The script identifies the lowest low of the prior green-candle sequence (LOHD).
4. A CBLOHD signal triggers when a red candle closes below that LOHD level.
5. A small red arrow is plotted above the candle.
⸻
Optional Filters
• EMA / SMA Trend Filter
Only shows CAHOLDs in uptrends and CBLOHDs in downtrends.
• Minimum Pullback Depth
Requires a minimum number of red/green candles before a signal can trigger.
• ATR Breakout Filter
Requires price to break the level by a volatility-adjusted amount.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que la republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como asesoramiento o recomendaciones financieras, de inversión, de trading o de otro tipo proporcionadas o respaldadas por TradingView. Más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que la republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como asesoramiento o recomendaciones financieras, de inversión, de trading o de otro tipo proporcionadas o respaldadas por TradingView. Más información en Condiciones de uso.