OPEN-SOURCE SCRIPT
Zen Always-In v1

# **Zen Always-In v1**
**A clean Always-In detector built for discretionary price-action traders.**
This tool highlights moments when the market is moving strongly enough to justify a directional “Always-In” bias — based on consecutive bar strength, position relative to a moving average, internal bar strength (IBS), and bar-range expansion.
---
## **How it Works**
The indicator identifies two types of sequences:
### **1. Bullish Always-In**
Triggered when:
* Two consecutive bull bars
* Both closing above the selected moving average (EMA or SMA)
* IBS on both bars is **above a user-defined threshold** (default 65)
* At least **one** of the two bars has a range larger than the average bar range
Bars are highlighted **green**, and an optional **triangle-up** marker is displayed.
---
### **2. Bearish Always-In**
Triggered when:
* Two consecutive bear bars
* Both closing below the moving average
* IBS on both bars is **below a user-defined threshold** (default 35)
* At least one bar exceeds the average bar range
Bars are highlighted **red**, and an optional **triangle-down** marker is displayed.
---
## **Inputs**
### **Trend Filter**
* **MA Length**
* **MA Source**
* **Use EMA or SMA**
### **Strength Filters**
* **Bull IBS Minimum**
* **Bear IBS Maximum**
* **Average Range Lookback**
### **Display Options**
* **Show Bar Colours**
* **Show Arrows**
* **Show Moving Average**
---
## **Why It’s Useful**
This tool is designed for traders who want a simple, rule-based way to identify when the market is likely Always-In long or Always-In short.
It gives fast visual confirmation of:
* Strength relative to a trend
* Bar expansion beyond typical volatility
* Internal strength/weakness inside each bar
* Momentum that’s strong enough to matter for scalps, swings, or Always-In framing
It does **not** generate trade signals or mechanical entries.
It’s a visual decision aid for traders who already understand price action behaviour.
---
## **Notes**
* Works on any timeframe and instrument
* Designed for real-time discretionary use
* Highlights only *clear* sequences — no “maybe” signals
* All thresholds are fully user-adjustable
**A clean Always-In detector built for discretionary price-action traders.**
This tool highlights moments when the market is moving strongly enough to justify a directional “Always-In” bias — based on consecutive bar strength, position relative to a moving average, internal bar strength (IBS), and bar-range expansion.
---
## **How it Works**
The indicator identifies two types of sequences:
### **1. Bullish Always-In**
Triggered when:
* Two consecutive bull bars
* Both closing above the selected moving average (EMA or SMA)
* IBS on both bars is **above a user-defined threshold** (default 65)
* At least **one** of the two bars has a range larger than the average bar range
Bars are highlighted **green**, and an optional **triangle-up** marker is displayed.
---
### **2. Bearish Always-In**
Triggered when:
* Two consecutive bear bars
* Both closing below the moving average
* IBS on both bars is **below a user-defined threshold** (default 35)
* At least one bar exceeds the average bar range
Bars are highlighted **red**, and an optional **triangle-down** marker is displayed.
---
## **Inputs**
### **Trend Filter**
* **MA Length**
* **MA Source**
* **Use EMA or SMA**
### **Strength Filters**
* **Bull IBS Minimum**
* **Bear IBS Maximum**
* **Average Range Lookback**
### **Display Options**
* **Show Bar Colours**
* **Show Arrows**
* **Show Moving Average**
---
## **Why It’s Useful**
This tool is designed for traders who want a simple, rule-based way to identify when the market is likely Always-In long or Always-In short.
It gives fast visual confirmation of:
* Strength relative to a trend
* Bar expansion beyond typical volatility
* Internal strength/weakness inside each bar
* Momentum that’s strong enough to matter for scalps, swings, or Always-In framing
It does **not** generate trade signals or mechanical entries.
It’s a visual decision aid for traders who already understand price action behaviour.
---
## **Notes**
* Works on any timeframe and instrument
* Designed for real-time discretionary use
* Highlights only *clear* sequences — no “maybe” signals
* All thresholds are fully user-adjustable
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.