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
// =============================================================================
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。