OPEN-SOURCE SCRIPT
Breakdown Hold (1m) - Manual Level

//version=6
// =============================================================================
// EN — Script Overview
// Name: Breakdown Hold (1m) - Manual Level
// Purpose:
// Detect a simple pattern: price breaks below a manually set level, then
// stabilizes ("holds") within ~1 minute (default) without further dumping.
// When confirmed, it prints "HOLD OK" and triggers an alert.
//
// How it works:
// 1) You input a fixed price Level.
// 2) On the FIRST break below Level (LOW sweep by default), the script "arms".
// 3) For the next N bars on the 1-minute stream (default N=1):
// - If price drops too deep (beyond Max Further Drop), it fails.
// 4) When the window ends:
// - If it did NOT drop too deep AND it bounced from the window low by at
// least Min Bounce (and optional reclaim above Level), it confirms HOLD.
//
// Recommended usage:
// - Works best on a 1-minute chart.
// - If you are on another timeframe, keep "Force 1m Evaluation" enabled
// so the logic still evaluates on 1-minute data.
//
// Alert:
// - Condition title: breakdown_hold_confirm
//
// =============================================================================
// 中文 — 脚本说明
// 名称:Breakdown Hold (1m) - Manual Level
// 用途:
// 识别一个非常简单的“跌破手动固定价位后,约 1 分钟内踩住不再继续下跌”的形态。
// 确认后在图上打出 “HOLD OK”,并触发提醒。
//
// 原理:
// 1) 手动输入固定价位 Level。
// 2) 当价格第一次跌破 Level(默认按 LOW 刺破)后进入监测(armed)。
// 3) 在接下来 N 根 1分钟K(默认 N=1)内:
// - 若继续下探太深(超过允许最大继续下跌幅度),判定失败,不触发。
// 4) 窗口结束时:
// - 若未下探过深,且从窗口最低点出现至少 Min Bounce 的反弹
// (可选要求收盘站回 Level 上方),则判定“踩住确认”。
//
// 推荐用法:
// - 最推荐 1分钟图使用。
// - 如果你在其他周期图上用,请保持 “Force 1m Evaluation” 开启,
// 让判断仍然基于 1分钟数据进行。
//
// 提醒条件:
// - breakdown_hold_confirm
// =============================================================================
// =============================================================================
// EN — Script Overview
// Name: Breakdown Hold (1m) - Manual Level
// Purpose:
// Detect a simple pattern: price breaks below a manually set level, then
// stabilizes ("holds") within ~1 minute (default) without further dumping.
// When confirmed, it prints "HOLD OK" and triggers an alert.
//
// How it works:
// 1) You input a fixed price Level.
// 2) On the FIRST break below Level (LOW sweep by default), the script "arms".
// 3) For the next N bars on the 1-minute stream (default N=1):
// - If price drops too deep (beyond Max Further Drop), it fails.
// 4) When the window ends:
// - If it did NOT drop too deep AND it bounced from the window low by at
// least Min Bounce (and optional reclaim above Level), it confirms HOLD.
//
// Recommended usage:
// - Works best on a 1-minute chart.
// - If you are on another timeframe, keep "Force 1m Evaluation" enabled
// so the logic still evaluates on 1-minute data.
//
// Alert:
// - Condition title: breakdown_hold_confirm
//
// =============================================================================
// 中文 — 脚本说明
// 名称:Breakdown Hold (1m) - Manual Level
// 用途:
// 识别一个非常简单的“跌破手动固定价位后,约 1 分钟内踩住不再继续下跌”的形态。
// 确认后在图上打出 “HOLD OK”,并触发提醒。
//
// 原理:
// 1) 手动输入固定价位 Level。
// 2) 当价格第一次跌破 Level(默认按 LOW 刺破)后进入监测(armed)。
// 3) 在接下来 N 根 1分钟K(默认 N=1)内:
// - 若继续下探太深(超过允许最大继续下跌幅度),判定失败,不触发。
// 4) 窗口结束时:
// - 若未下探过深,且从窗口最低点出现至少 Min Bounce 的反弹
// (可选要求收盘站回 Level 上方),则判定“踩住确认”。
//
// 推荐用法:
// - 最推荐 1分钟图使用。
// - 如果你在其他周期图上用,请保持 “Force 1m Evaluation” 开启,
// 让判断仍然基于 1分钟数据进行。
//
// 提醒条件:
// - breakdown_hold_confirm
// =============================================================================
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.