OPEN-SOURCE SCRIPT

Breakdown Hold (1m) - Manual Level

61
//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
// =============================================================================

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.