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
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.