Monthly Seasonality AnalyzerThis indicator analyzes historical performance/seasonality of a chosen month, from date of inception to present. Users can choose any calendar month via dropdown menu.
For each historical month selected, it will calculate the monthly percentage gain/loss, range(volatility), and average gain/loss percentage, average range percentage across all recorded years. Positive returns are colored green and negative returns are red. Also, calculates if the selected month was bullish(open>close) or bearish.
When current chart month matches the selected month, it shows the in-progress range as well.
Data is collected from 1930 to present. Results are shown in vertical and horizontal tables. If the vertical table exceeds a 36 years, the script automatically switches to horizontal table to display all the data, with option to change table position.
Overall this tool is valuable for seasonality research, such as Santa Rally, May Go Away and swing trading/ position trading to capture the monthly PO3 range.
Most seasonality indicators show all 12 months at once or use daily bars. This one zooms in deeply on one month only, providing detailed per-year breakdowns, accurate completed-month stats, and a practical live range display.
The script uses arrays to store years, gains, and ranges. Uses table.new(), table.cell(), table.merge_cells() for easily readable result display. Code handles the current in-progress month separately (shows live range without including it in historical averages).
**Script will not run on any timeframe other than monthly and displays error otherwise. Script is best used on spot and not futures.
지표 및 전략
200W SMA Dynamic Extension Bands (MTF, Auto Asset)Summary
200W SMA Dynamic Extension Bands is a multi-timeframe TradingView indicator that plots extension bands (multiples) around the 200-week simple moving average. It’s designed to work on any chart timeframe (1m → 1D → 1W) while anchoring the bands to the latest confirmed weekly data, so the long-term reference is consistent and non-repainting across timeframes.
This is a macro “valuation/temperature gauge” style tool: it helps you quickly see when the price is cheap vs. the 200W mean and when it is extended/expensive.
What it plots
The indicator always computes:
200-week SMA (weekly)
Band m2
Band m3
Band m4
Bands are defined as:
Bandk(t)=SMA200W(t)⋅mk
Where the multipliers mk are chosen automatically depending on the asset type (or manually via input).
Key features
Works on any timeframe: weekly SMA is fetched via request.security(..., "W", ...).
Non-repainting weekly anchor: uses barmerge.lookahead_off to avoid peeking into future weekly bars.
Auto asset presets:
Crypto: wider extensions (bigger cycles)
Gold: moderate extensions
Equities: tighter than crypto
FX: very tight extensions
Futures: moderate fallback
Zone coloring (optional):
Cheap zone (below 1×)
Fair zone (1× → m2)
Hot zone (m2 → m3)
Expensive zone (m3 → m4)
Info table (optional): shows selected preset, current multiple, and % extension vs 200W SMA.
Alerts (optional): “entered cheap” and “entered expensive” style triggers.
Presets (default multipliers)
These are intentionally conservative templates (tune to your market):
Crypto: 1.0,1.5,2.0,3.0
Gold: 1.0,1.2,1.5,2.0
Equities: 1.0,1.15,1.30,1.60
FX: 1.0,1.05,1.10,1.20
Futures: 1.0,1.25,1.50,2.00
Auto mode uses syminfo.type plus a simple heuristic for Gold tickers containing XAU / GOLD (because some platforms classify XAUUSD as forex).
How to use (practical)
Macro context / cycle temperature
Price below 1× (200W SMA): historically “cheap zone” for highly cyclical assets (especially BTC).
Price above m3: often “expensive/extended” and higher risk of mean reversion.
Not a standalone trading system
Use with trend confirmation (market structure), volume, and risk management.
Extensions can persist in strong trends—treat bands as regime context, not precise reversal points.
Settings you can change
SMA Length (Weeks): default 200
Band preset: Auto / Crypto / Gold / Equities / FX / Futures
Toggle:
Zone fills
Info table
Alerts
Included alertconditions:
Cross below 1× (entered cheap zone)
Cross above m3 (entered expensive zone)
High level guideline:
Green Zone: BUY (Below 1.0× - Undervalued)
Yellow Zone: HOLD (1.0× - 1.5× - Fair Value)
Orange Zone: CAUTION (1.5× - 2.0× - Getting Hot)
Red Zone: SELL (2.0× - 3.0× - Overvalued)
Notes / limitations
The “cheap/expensive” zones are heuristics. They do not guarantee future returns.
Auto classification is best-effort; if your symbol is unusual, set the preset manually.
For newly listed assets with limited weekly history, the 200W SMA may be na until enough data exists.
Minervini Trend Template Screener (v5)This script is a screening tool based on Mark Minervini’s “Trend Template.”
It is designed to identify stocks that are in a strong, institutional-quality uptrend.
It checks whether:
Price is above the 50-day, 150-day, and 200-day moving averages
Moving averages are aligned 50 > 150 > 200, with the 200-day MA trending upward
Price is at least 30% above the 52-week low
Price is within 25% of the 52-week high
The stock shows strong relative performance vs a benchmark (e.g., SPY)
Only stocks that pass all conditions are highlighted, helping to focus on
high-quality trend leaders favored by momentum and growth investors.
このスクリプトは、**マーク・ミネルビニの「Trend Template(トレンド・テンプレート)」**に基づいて、
**強い上昇トレンドにある銘柄だけを自動で抽出(スクリーニング)**するためのものです。
主に以下を確認しています:
株価が 50日・150日・200日移動平均線の上 にある
50日 > 150日 > 200日 の並びで、200日線も上向き
株価が 52週安値から30%以上上昇している
株価が 52週高値から25%以内に位置している
ベンチマーク(例:SPY)と比べて 相対的に強い値動きをしている
すべての条件を満たした銘柄にだけシグナルを出し、
**「機関投資家が買いやすい、教科書的な強トレンド銘柄」**を見つける目的のスクリプトです。
Shiva Zone Indicator (True Consolidation Detection)---
# ⭐ **1. Script Title**
**Shiva Zone Indicator — True Consolidation Detection**
This will appear in the indicator marketplace and search.
---
# ⭐ **2. Short Description (shown in search list)**
**Automatically detects true consolidation zones using shrinking-range logic, avoiding oversized ranges and highlighting high-probability breakout zones.**
---
# ⭐ **3. Full Description (for the Publishing Page)**
Copy–paste the entire block below into the “Description” section while publishing:
---
## 🔱 **Shiva Zone Indicator — True Consolidation Detection**
The **Shiva Zone Indicator** identifies true consolidation phases in any market using a powerful shrinking-range algorithm. Instead of relying on fixed ranges or ATR compression alone, this model detects **micro-consolidation** by comparing tightening volatility windows, ensuring only **high-quality, compact zones** are plotted.
Most consolidation indicators produce long, extended boxes.
**Shiva Zone does not.**
It only marks consolidation when price tightens *locally*, making it ideal for breakout traders.
---
## 🔍 **How the Indicator Works**
A *Shiva Zone* is detected when:
* The recent price range is **shrinking** compared to the previous one
* Volatility compresses naturally
* Price stays within a narrow percentage threshold
* Expansion stops the zone (no endless boxes)
This ensures consolidation is identified **precisely where traders need it**, not over hundreds of candles.
When consolidation ends, volatility expansion triggers a zone closure.
Breakouts above or below the box can lead to explosive moves.
---
## ⚡ **Included Alerts**
The indicator includes 4 powerful, actionable alerts:
1. **Shiva Zone Started** – A new consolidation zone is forming
2. **Shiva Zone Ended** – Volatility begins expanding
3. **Bullish Breakout** – Price breaks above the Shiva Zone
4. **Bearish Breakout** – Price breaks below the Shiva Zone
These alerts make it easy to automate breakout entries or monitor compression zones across markets.
---
## 🎯 **Best Use Cases**
* Breakout Trading
* Scalping
* Intraday Structure Trading
* Swing Breakout Analysis
* Compression / Expansion Mapping
* Multi-Timeframe Structure Tracking
Works perfectly on **Forex, Indices, Crypto, Commodities, and Stocks**.
---
## 📌 **Recommended Settings**
* Lookback: **8–20**
* Max % Range: **0.4–0.8**
* Minimum Bars Inside Zone: **4–6**
Shorter settings → more sensitive
Longer settings → stronger zones
---
## 🧠 **Why It's Called “Shiva Zone”**
In market mythology:
* **Brahma** = Creation of momentum
* **Vishnu** = Sustaining the trend
* **Shiva** = Compression before transformation
The **Shiva Zone** is the phase where the market contracts its energy before a structural shift or breakout.
---
## ⚠️ **Disclaimer**
This indicator is for educational purposes only and not financial advice.
Always conduct your own analysis.
---
# ⭐ **4. Suggested Tags**
Use these exact tags on TradingView for best reach:
```
consolidation
price-action
volatility
range
breakout
compression
supply-and-demand
forex
scalping
trend-analysis
```
---
# ⭐ **5. Script Category**
Choose one:
### Recommended:
➡ **Technical Indicators → Volatility**
or
➡ **Technical Indicators → Price Action**
---
# ⭐ **6. Icon / Cover Image Suggestions**
(Create or upload manually — TradingView requires an image)
Theme suggestions:
* Clean minimalistic yellow/orange box with text **“Shiva Zone Indicator”**
* A sample chart screenshot showing a tight consolidation zone
* A symbolic icon of contraction/expansion inspired by Shiva (simple geometry, not religious imagery)
---
# ⭐ **7. Developer Credits (Optional)**
Created by **Dr. Sudhir Khollam**
Astrologer & Market Analyst
Creator of the SALSA© Method
---
SMA Convergence Finder (7, 25, 50)This to detect and show the three SMAs(7,25,50)convergence's point.
small orange cicle is showed at the point.
Brahma Creation Field (SALSA Edition)
# ⭐ **1. INDICATOR TITLE**
Use a clear, branded, professional name:
### **Brahma Creation Field (BCF) — SALSA© Market Imbalance Indicator**
---
# ⭐ **2. SHORT DESCRIPTION (appears in search results)**
**Identifies Brahma Creation Fields (BCFs) using SALSA© Market Logic. A rewritten, original imbalance tool inspired by displacement zones, with Creation Strength Line (CSL), integrity breaks, and optional actionable alerts.**
---
# ⭐ **3. FULL DESCRIPTION (for the script page)**
### **TradingView-Ready**
---
## **Brahma Creation Field (BCF) — SALSA© Edition**
The **Brahma Creation Field (BCF)** Indicator is an *original* SALSA©-based imbalance model designed to identify areas where price rapidly expands with strong intent and leaves behind a “Creation Field.”
This indicator is an entirely proprietary rewrite based on **Vedic + SALSA© Interpretation of Market Birth**, and does **not reuse or copy** any external code. It is not affiliated with or derived from any other indicator.
---
## 🔱 **What Is a Brahma Creation Field (BCF)?**
In SALSA© Market Dynamics:
* **Brahma** = Creation
* **Vishnu** = Continuation
* **Shiva** = Transformation (destruction/reset)
A **BCF** is the *birth moment* of a new price narrative —
a zone created when price displaces strongly enough to leave a gap between the candle and the candle two bars earlier.
This is interpreted as:
* **Bullish BCF** → A strong upward creation event
* **Bearish BCF** → A strong downward creation event
These “Creation Fields” often act as **reaction points, continuation areas, or reversal zones**.
---
## 🔰 **Key Features**
### **✔ Automatic Detection of Brahma Creation Fields**
Identifies both bullish and bearish creation zones using clean imbalance structure.
### **✔ Creation Strength Line (CSL)**
A midline through the BCF used to confirm strength, bias, and equilibrium.
### **✔ Integrity Break Logic**
When price invalidates the BCF, the zone fades and becomes inactive.
### **✔ Real-Time Updates**
BCFs extend automatically as long as they are active.
### **✔ Alerts Included**
* Bullish BCF Formed
* Bearish BCF Formed
* BCF Integrity Broken
* Price Inside Active BCF
* CSL Cross (Midline Cross)
### **✔ 100% Original Codebase**
Fresh, clean Pine Script v6 logic reflecting SALSA© philosophy.
---
## 🔬 **Use Cases**
* Forecasting continuation after displacement
* Identifying strong zones of liquidity imbalance
* Spotting trend birth points
* Assessing whether narrative pressure is bullish or bearish
* Establishing intraday bias
* Creating entry/exit signals
* Building automated strategies
---
## ⚠ **License Notice**
This indicator is an **original work** created for TradingView,
based on **SALSA© Market Theory**.
You may NOT resell or rehost the code without explicit permission.
If you adapt this script, please give proper credit.
---
## 🙏 **Credits / Attribution**
The concepts here are influenced by general imbalance and displacement theory in trading.
The code itself is **100% original**, written entirely from scratch.
---
# ⭐ **4. TAGS TO USE (Very Important for Visibility)**
Add exactly these tags in TradingView:
* **imbalance**
* **fvg**
* **liquidity**
* **supplydemand**
* **trend**
* **intraday**
* **bias**
* **zones**
* **supportresistance**
* **marketstructure**
* **smartmoney**
These tags rank extremely well.
---
# ⭐ **5. CATEGORIES**
Choose:
✔ **“Technical”**
✔ **“Indicators”**
✔ **“Price Action”** (optional but recommended)
---
# ⭐ **6. LICENSE**
Choose:
### **© Copyright — Open for Personal Use**
or
### **Custom License**
Recommended text:
> This script is © protected.
>
> You may use it freely on TradingView for personal analysis,
> but you may NOT redistribute, publish variations, or sell this code.
---
# ⭐ **7. OPTIONAL – AUTHOR BIO**
Include:
> Dr. Sudhir Khollam
> SALSA© Market Dynamics • Vedic + Financial Astrology
> Creator of the SALSA© Method, Astro SALSA© Pro, and SALSA© Prediction Cards
---
# ⭐ **8. WHAT TO PUT IN “EXTERNAL SOURCE” SECTION**
This is optional, but if you want to be completely transparent:
```
This indicator is a fresh, original rewrite created from scratch.
It does not contain or reuse code from any third-party indicator.
Conceptually inspired by classical imbalance/displacement logic,
translated into a SALSA© creation-phase model.
```
---
# ⭐ **9. SCREENSHOT GUIDELINES (Important for Approval)**
Use a chart showing:
✔ At least one Bullish BCF
✔ At least one Bearish BCF
✔ CSL line clearly visible
✔ Integrity break (if possible)
✔ Clean chart (no clutter)
✔ Label arrows added manually (optional)
Upload **3 screenshots**, TradingView always prefers multi-angle examples.
---
# ⭐ **10. SEO-OPTIMIZED SUMMARY (for search engines)**
**SALSA© BCF Indicator is an imbalance-based price action tool that highlights Brahma Creation Fields — the birth of market intent. Featuring CSL midlines, integrity break detection, real-time zone extension, and a full alert suite. Ideal for traders using smart money concepts, FVGs, SMC, or Vedic-based price analysis.**
---
# ⭐ **11. PUBLISHING CHECKLIST**
### ✔ Code compiles
### ✔ Description added
### ✔ Screenshot added
### ✔ Tags added
### ✔ License selected
### ✔ Public or Protected selected
### ✔ Test alerts
### ✔ Save + Publish
---
Yield Curve RegimesOverview
The Yield Curve Regime Histogram transforms yield curve spread analysis into an intuitive visual framework by classifying rate movements into six distinct regimes. Rather than simply displaying the spread between two maturities, this indicator analyzes how that spread is changing relative to the underlying yields themselves, providing insight into market expectations for growth, inflation, and liquidity conditions.
How It Works
The indicator calculates the spread between two user-selected government bond yields (default: 2-year and 10-year US Treasuries) and compares both the spread and the individual yields to their values n periods ago (default lookback: 20 bars). Based on whether the spread is steepening or flattening, and whether the short-term and long-term yields are rising or falling, the algorithm classifies each bar into one of six regimes:
The Six Regimes
Steepening Regimes (spread increasing):
1. Bull Steepener (Cyan): Both yields falling, long-end falling slower
Market pricing: Growth concerns, but long-end supported
Typically risk-on if Fed not cutting due to severe economic weakness
2. Bear Steepener (Blue): Both yields rising, long-end rising faster
Market pricing: Growth acceleration, inflation pressures building
Typically risk-on regime
3. Steepener Twist (Yellow): Short-end falling, long-end rising
Market pricing: Liquidity injection, mixed growth signals
Neutral/transition regime
Flattening Regimes (spread decreasing):
4. Bull Flattener (Pink): Both yields falling, long-end falling faster
Market pricing: Growth slowdown, disinflation, potential inversion ahead
Typically risk-off regime
5. Bear Flattener (Purple): Both yields rising, short-end rising faster
Market pricing: Central bank tightening, growth concerns emerging
Typically risk-off regime, can lead to inversion
6. Flattener Twist (Orange): Short-end rising, long-end falling
Market pricing: Aggressive policy tightening, recession risk building
Typically risk-off regime, highest inversion risk
Practical Application
By visualizing which regime is active, traders can:
Anticipate risk appetite shifts: Steepening regimes generally coincide with risk-on sentiment, while flattening regimes (especially with falling long-end yields) often precede risk-off periods
Gauge growth and inflation expectations: The combination of spread direction and yield levels reveals what markets are pricing for economic trajectory
Identify liquidity conditions: Twist regimes highlight periods of central bank intervention or significant policy shifts
Time entries and exits: Regime transitions can signal turning points in equity, commodity, and currency markets before they fully materialize in price action
Customization
The indicator offers full flexibility for cross-market analysis:
Maturity selection: Choose any two yield curves (e.g., 2Y/10Y, 5Y/30Y, or international equivalents like German Bunds)
Lookback period: Adjust sensitivity by changing how far back the comparison is made
Color scheme: Customize each regime's color in the Style tab to match your chart preferences
Legend display: Toggle the regime legend table on/off for cleaner visuals
Timeframe: Apply the indicator to any timeframe, from intraday to monthly charts
Display
The spread is plotted as a histogram, with each bar colored according to its regime classification. A black line overlay (also customizable) traces the raw spread value, allowing you to see both the regime structure and the actual spread level simultaneously. An optional legend in the top-right corner provides a quick reference for regime identification.
This indicator is designed to function as a standalone "yield curve dashboard" that can be stacked beneath equity indices, commodities, or FX pairs, helping traders align their positioning with the underlying rates environment without needing to interpret complex macro data manually.
Note: This indicator analyzes government bond yields and is most effective when paired with liquid, benchmark instruments such as US Treasuries, German Bunds, or UK Gilts. Regime classifications reflect market expectations embedded in the yield curve, not guaranteed outcomes.
Trade Pro - Tops and BottomsCredit to the creator, theehoganator. This is great for confirming an already good setup for finding tops and bottoms of pullbacks in line with the htf trend.
GS Quantum Radar [Elite Aesthetic - Bilingual]GS Quantum Radar / GS 量子雷達
Overview / 概述
Inspired by the quantum physics concept of "Ghostly action at a distance," the GS Quantum Radar is a high-end quantitative tool designed to capture the hidden correlations between two entangled assets (e.g., 2330.TW vs. TSM, or NVDA vs. AI sector). It identifies "Quantum Tension"—statistical deviations that signal imminent mean reversion or breakout opportunities.
受量子力學中**「幽靈般的遠距作用」**啟發,GS 量子雷達是一款專為捕捉資產間隱藏關聯而設計的高階量化工具(例如台積電與 TSM ADR,或 NVDA 與 AI 類股)。它能識別「量子張力」——即統計學上的異常偏離,預示著即將到來的均值回歸或突破機會。
Core Logic / 核心邏輯
The indicator operates on Statistical Arbitrage principles using a dynamic Z-Score model:該指標基於統計套利原理,採用動態 Z-Score 模型:
Entanglement Strength (Correlation) / 糾纏強度(相關性): It measures how synchronized the two assets are. Signals are only valid when the correlation is high, ensuring you aren't trading noise.衡量兩項資產的同步程度。僅在相關性高時訊號才有效,確保您避開市場雜訊。
Quantum Tension (Z-Score) / 量子張力 (Z-Score): Using the formula $Z = \frac{x - \mu}{\sigma}$, it calculates the price ratio deviation.透過公式 $$Z = \frac{x - \mu}{\sigma}$$
計算價差比率的偏離值。
$Z > +2$ (Red Column / 紅色柱狀): Particle A is overstretched (Overvalued). / 資產 A 擴張過度(相對高估)。
$Z < -2$ (Green Column / 綠色柱狀): Particle A is compressed (Undervalued). / 資產 A 壓縮過度(相對低估)。Shutterstock探索
Key Features / 主要功能
Bilingual Cyberpunk Dashboard / 中英雙語賽博龐克儀表板: Real-time monitoring of network status, entanglement strength, and tension levels with intuitive scale bars.即時監控網路狀態、糾纏強度與張力水平,配備直觀的比例尺進度條。
Aesthetic UI / 視覺美學: Designed with a Neon-Tokyo palette. Optimized for Dark Mode with a focus on high-density information display.採用霓虹東京配色。專為深色模式優化,專注於高密度資訊顯示。
Taiwan Style Color / 台股配色慣例: Red for Bullish/Up, Green for Bearish/Down.符合台股習慣:紅漲、綠跌。
How to Use / 如何使用
Select your pair / 選擇對象: Load the script on your primary chart (e.g., 2330.TW) and input the "Entangled Particle" (e.g., NASDAQ:TSM) in settings.在主圖表(如 2330.TW)掛載腳本,並在設定中輸入「糾纏對象」(如 NASDAQ:TSM)。
Monitor the Status / 監控狀態: Look for "STRONG BUY" or "TAKE PROFIT" advisories on the dashboard.觀察儀表板上的「強力買進 (STRONG BUY)」或「獲利了結 (TAKE PROFIT)」建議。
Execute / 執行交易: Enter when the "Quantum Tension" hits the $\pm 2.0$ thresholds while "Entanglement" is full.當「量子張力」達到 $\pm 2.0$ 臨界點且「糾纏強度」滿格時進場。
Disclaimer / 免責聲明Trading involves significant risk. This indicator is a statistical tool for decision support and does not guarantee profits. Use with proper risk management.交易涉及重大風險。本指標為輔助決策的統計工具,不保證獲利。請配合適當的風險管理使用。
EMA 9, 20, 30, 200 (Buy Trend Filter Only)EMA 9, 20, 30, 200 (Buy Trend Filter Only) simple ema crossing analysis
SMC Pro : OB Longues + FVGHow does this indicator work?
Fair Value Gaps (FVG): It identifies price imbalances (gaps between the wick of candle 1 and candle 3). They appear as small, light-colored rectangles.
Order Blocks (OB): It marks "Smart Money" candles that precede a strong impulse. These areas are extended to the right because they often act as future support or resistance.
Signals (BUY/SELL): The indicator displays a signal when it detects a confluence (for example, a bullish OB appearing right after an FVG).
Some friendly trading tips:
Timeframe: This indicator works best on higher timeframes (15m, 1h, 4h) to avoid market "noise."
Confirmation: Don't take a "BUY" signal on its own. Check if the overall trend (on a higher timeframe) is also bullish.
Risk management: Always place your Stop Loss just below the identified Order Block.
Gemini Clean OB AlertPivot Point Usage: Instead of detecting each candle of an opposite color, the script uses `ta.pivothigh/low`. This means it only marks a Pivot Point if the price has actually made a significant high or low relative to the 10 preceding and following candles.
Dynamic Cleanup (Mitigation): As soon as the price returns to "fill" the area (depending on your choice: simple contact or close), the box disappears from the chart. This keeps your view clean and focused on the remaining untouched areas.
Period Setting: You can increase the "Detection Period" (e.g., from 10 to 20) in the settings to filter out even more noise and keep only the major areas.
FUND HOUSE 2026This indicator plots a moving averages SMS,EMA,DEMA,VWMA,RMA AND WMA.
WITH different moving averges also FIBONACHI demand area supply area both.
Bitget Pro Sinyal [Optimized v2]11 gösterge onaylı sinyaller yatırım tavsiyesi değildir kendi kullandıgım sinyaller
Clean SMC: Filtered OB + FVGHow does this indicator work?
Fair Value Gaps (FVG): It identifies price imbalances (gaps between the wick of candle 1 and candle 3). They appear as small, light-colored rectangles.
Order Blocks (OB): It marks "Smart Money" candles that precede a strong impulse. These areas are extended to the right because they often act as future support or resistance.
Signals (BUY/SELL): The indicator displays a signal when it detects a confluence (for example, a bullish OB appearing right after an FVG).
Some friendly trading tips:
Timeframe: This indicator works best on higher timeframes (15m, 1h, 4h) to avoid market "noise."
Confirmation: Don't take a "BUY" signal on its own. Check if the overall trend (on a higher timeframe) is also bullish.
Risk management: Always place your Stop Loss just below the identified Order Block.
Strong Daily Reversal Arrows / Labels
🔁 Reversal indicator on the daily time frame
Bullish Reversal
✔ Previous day was bearish
✔ Today is bullish
✔ Today closes above previous day close
Bearish Reversal
✔ Previous day was bullish
✔ Today is bearish
✔ Today closes below previous day close
Clean SMC: Filtered OB + FVGHow does this indicator work?
Fair Value Gaps (FVG): It identifies price imbalances (gaps between the wick of candle 1 and candle 3). They appear as small, light-colored rectangles.
Order Blocks (OB): It marks "Smart Money" candles that precede a strong impulse. These areas are extended to the right because they often act as future support or resistance.
Signals (BUY/SELL): The indicator displays a signal when it detects a confluence (for example, a bullish OB appearing right after an FVG).
Some friendly trading tips:
Timeframe: This indicator works best on higher timeframes (15m, 1h, 4h) to avoid market "noise."
Confirmation: Don't take a "BUY" signal on its own. Check if the overall trend (on a higher timeframe) is also bullish.
Risk management: Always place your Stop Loss just below the identified Order Block.
BERNA (Boundary-Encoded Resonance Network Architecture)BERNA — Boundary-Encoded Resonance Network Architecture
BERNA is a research-grade indicator that estimates the remaining structural capacity of the current market regime.
Unlike trend, volatility, or momentum tools, BERNA does not measure price direction — it measures how much of the regime’s internal capacity has already been consumed.
This script implements the BERNA model published on Zenodo (Bülent Duman, 2026).
It is intentionally minimal and uses only OHLC data.
What BERNA measures
BERNA outputs a structural capacity state:
τ = Σ / Θ (normalized structural stress)
Λ = Θ − Σ (remaining structural capacity)
Interpretation:
High Λ / low τ → the regime has structural endurance
Rising τ → capacity is being consumed
τ → 1 (Λ → 0) → rupture proximity (capacity exhaustion)
This makes BERNA a forward-looking structural capacity variable, not a price oscillator.
What is inside this script
This implementation contains the following components:
Efficiency proxy (DERYA-like, but not the full public DERYA)
BERNA uses a simple microstructure efficiency proxy computed as:
E = |close − open| / (high − low)
This is conceptually “DERYA-like” but it is not the full DERYA framework.
No external/public DERYA source code is embedded here.
Standard technical primitives used
This script uses only basic primitives commonly found in technical analysis:
Absolute value and range normalization
Thresholding (regime binning)
Power transform on range (rng^p)
There is no EMA, RSI, MACD, ATR, ADX, Fisher, Kaufman, or other indicator embedded.
All computations are internal and deterministic.
3-state structural regime binning (K = 3)
The efficiency proxy E is discretized into three regimes using user thresholds:
Low efficiency
Mid efficiency
High efficiency
Each regime has its own capacity Θ and stress multiplier β.
Structural stress accumulation (Σ) and rupture proximity
Stress increment is defined as:
dΣ = β · (1 − E) · (range^p)
Σ accumulates inside a regime and is capped by Θ.
In this prototype, Σ resets on regime change by construction (regime-gated accumulation).
The rupture proximity is expressed through τ and Λ.
How to use BERNA
BERNA is designed as a regime-health and fragility overlay, not a buy/sell trigger.
Typical uses:
Detect when an ongoing move is structurally late-stage (τ high, Λ low)
Avoid initiating trades when capacity is nearly exhausted
Compare structural resilience across assets and regimes
Use alongside price/trend/volume systems for context
Do not use BERNA alone as a trading signal.
BERNA tells you “how much structure is left”, not “where price will go.”
Visuals
Efficiency (E) shows the bar-level microstructure efficiency proxy
τ shows normalized structural stress (capacity consumption)
Λ shows remaining structural capacity
Dotted lines mark warning and critical rupture proximity levels
Important notes
BERNA is not RSI, MACD, ATR, ADX, Fisher, Kaufman, or a volatility model
BERNA does not predict price direction
BERNA does not issue entry/exit signals
BERNA is a structural capacity diagnostic
This script does not embed any external/public indicator code; all logic is implemented directly in Pine.
Risk and disclaimer
This script is provided for research and analytical purposes only.
It is not financial advice and must not be used as a standalone trading system.
Markets are uncertain.
All trading decisions and risks remain entirely the responsibility of the user.
BERNA: Boundary-Encoded Resonance Network Architecture
A Structural Failure Theory of Financial Regimes Based on Endogenous Capacity Depletion
Author: Duman, Bülent
Affiliation: Independent Researcher
Reference: zenodo.org
MAD Supertrend [Alpha Extract]A sophisticated SuperTrend implementation that replaces traditional ATR calculations with Mean Absolute Deviation methodology for adaptive volatility measurement and band construction. Utilizing SMA baseline with MAD-based deviation bands and optional adaptive factor adjustments, this indicator delivers institutional-grade trend detection with strength-based filtering and dynamic visual feedback. The system's MAD approach provides superior noise reduction compared to ATR while maintaining responsiveness to genuine volatility changes, combined with momentum-based strength calculations for high-conviction signal generation.
🔶 Advanced MAD-Based Band Construction
Implements Mean Absolute Deviation calculation as volatility proxy, measuring absolute price deviations from mean and smoothing for stable band generation without ATR dependency. The system calculates SMA baseline, computes MAD from configurable lookback period, applies factor multipliers to create upper and lower bands, then implements classic SuperTrend ratcheting logic where bands only adjust when price violates previous levels or calculations warrant updates.
// Core MAD SuperTrend Framework
SMA_Value = ta.sma(src, SMA_Length)
Mean = ta.sma(src, MAD_Length)
Abs_Deviation = abs(src - Mean)
MAD_Value = ta.sma(Abs_Deviation, MAD_Length)
// Band Construction with Ratcheting
Upper_Band = SMA_Value + MAD_Factor * MAD_Value
Lower_Band = SMA_Value - MAD_Factor * MAD_Value
// Ratcheting logic prevents premature band adjustments
🔶 Adaptive Factor Adjustment Engine
Features optional adaptive multiplier system that modulates MAD factor based on normalized MAD magnitude relative to recent extremes, creating bands that automatically expand during high-volatility regimes and contract during consolidation. The system applies min-max normalization to MAD values over configurable lookback, multiplies by adaptation parameter, and adds to base factor for dynamic volatility sensitivity without manual recalibration.
🔶 Momentum-Based Strength Filter
Implements sophisticated strength calculation measuring price momentum relative to baseline divided by volatility-adjusted MAD bands, producing normalized 0-1 strength scores with exponential smoothing. The system calculates distance from SMA baseline, normalizes by MAD-derived band width, and applies configurable minimum threshold requiring sufficient momentum before trend signals activate, filtering weak or choppy market conditions.
🔶 SuperTrend Direction Logic
Utilizes classic SuperTrend methodology adapted for MAD bands where trend direction flips on opposite band violations with state persistence until confirmation. The system tracks whether price closes above upper band (bearish flip to bullish) or below lower band (bullish flip to bearish), maintains directional state until opposing violation occurs, and generates binary +1/-1 trend signals suitable for systematic position management.
🔶 Intelligent Candle Sticking System
Provides advanced line positioning option that anchors SuperTrend line to candle wicks or bodies rather than pure calculation values for enhanced visual clarity. The system supports two modes: Wick (positions at high/low extremes based on trend direction) and Body (constrains line between calculation and candle extremes), creating cleaner chart presentation while maintaining mathematical integrity of underlying signals.
🔶 Dynamic Gradient Visualization Framework
Implements color intensity modulation based on smoothed strength calculations, transitioning from muted to vivid hues as momentum conviction increases. The system applies gradient interpolation using strength ratio, creating visual feedback where strong trending moves display intense colors while weak or consolidating conditions show faded tones across trend line, channel bands, and candle coloring for immediate regime assessment.
🔶 MAD Channel Architecture
Features volatility-adjusted channel bands centered on baseline or candle-stuck line with configurable multiplier for support/resistance visualization. The system calculates upper and lower bounds using MAD values scaled by adaptive factors and channel multipliers, applies dynamic transparency based on trend strength, and creates filled regions that intensify during strong trends and fade during weak conditions.
🔶 Multi-Layer Glow Effect System
Provides sophisticated line rendering with triple-layer plot system creating glow effect through progressively wider and more transparent outer layers. The system plots core trend line at specified width with full color intensity, adds inner glow layer at +2 width with moderate transparency, and outer glow at +4 width with higher transparency, creating visual depth and emphasis without cluttering chart space.
🔶 Strength-Based State Management
Implements intelligent trend state logic requiring both directional signal and minimum strength threshold breach before confirming trend transitions. The system calculates raw SuperTrend direction, evaluates smoothed strength against configurable minimum, generates filtered trend state that can be bullish (+1), bearish (-1), or neutral (0), and maintains state persistence using hold logic that prevents oscillation during ambiguous conditions.
🔶 Comprehensive Alert Integration
Generates trend flip alerts when filtered state transitions from bearish to bullish or bullish to bearish with full confirmation requirements satisfied. The system detects state changes through comparison with previous bar, triggers single alert per transition rather than continuous notifications, and provides customizable message templates for automated trading system integration or manual notification preferences.
🔶 Performance Optimization Architecture
Utilizes efficient calculation methods with null value handling, nz() functions preventing errors during initialization bars, and optimized gradient calculations. The system includes intelligent state persistence minimizing recalculation overhead, streamlined MAD computation avoiding redundant mean calculations, and smooth visual updates maintaining consistent performance across extended historical periods.
This indicator delivers sophisticated SuperTrend analysis through Mean Absolute Deviation methodology providing superior statistical properties compared to traditional ATR-based approaches. MAD calculations offer more robust volatility measurement resistant to extreme outliers while maintaining sensitivity to genuine market regime changes. The system's adaptive factor adjustment, momentum-based strength filtering, and dynamic visual feedback make it essential for traders seeking reliable trend-following signals with reduced false breakouts during choppy conditions. The combination of MAD bands, candle-sticking options, gradient strength visualization, and comprehensive filtering creates institutional-grade trend detection suitable for systematic approaches across cryptocurrency, forex, and equity markets with clear entry/exit signals and comprehensive alert capabilities.
3 Sessions Box (ON/OFF)📖 The Story of the Three Gatekeepers (English Version)
Every trading day is a journey through three different worlds.
The chart is like a city, and price is like a crowd that never stops moving.
To bring structure into this movement, I built a script that summons three gatekeepers — each one guarding a different trading session, drawing a box that marks the boundaries of that time period.
These boxes are not just visuals.
They represent the true ranges where liquidity is built, tested, and finally released.
🌙 Session 1 — The Midnight Shadow
From 00:00 to 08:00 (MYT), the market enters its quietest state.
This is the time when price moves slowly, but it often sets the foundation for the entire day.
The first gatekeeper observes every candle, recording the highest high and lowest low, then seals it into a blue box.
This box becomes the “silent range” — a zone that later sessions may break, retest, or manipulate.
☀️ Session 2 — The Daylight Order
From 08:00 to 16:00 (MYT), the market wakes up.
Liquidity begins to flow, and structure starts to form.
The second gatekeeper draws a green box to capture this session’s true range.
He does not chase price.
He protects order — because real trends often begin here.
🔥 Session 3 — The Night Battlefield
From 16:00 to 23:59 (MYT), the market becomes a battlefield.
Volatility increases, and decisive moves are made.
The third gatekeeper draws a red box, locking in the highs and lows of the final session.
Red means war:
breakouts, fakeouts, liquidity sweeps, and explosive continuations.
This is often where winners and losers are separated.
🎛️ The Most Powerful Feature — You Control the Switch
This script is not fixed.
You can decide:
Focus only on Session 1 ✅
Turn off Session 2 completely ✅
Trade only Session 3 breakouts ✅
Because you are the commander.
The gatekeepers simply execute your rules.






















