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
---
Indikator dan strategi
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.
Auto Chart Patterns- Market AdaptedAuto Chart Patterns - Code Description
This Pine Script v5 indicator is a sophisticated automated chart pattern detection system that identifies geometric price patterns using zigzag analysis. Here's a comprehensive breakdown:
🎯 Purpose
Automatically detects and visualizes classic chart patterns (channels, wedges, triangles) on any timeframe by analyzing price pivot points.
📦 Dependencies (Imports)
text
- HeWhoMustNotBeNamed/utils/1 → Utility functions (theme colors)
- Trendoscope/ohlc/1 → OHLC data handling
- Trendoscope/LineWrapper/1 → Line drawing utilities
- Trendoscope/ZigzagLite/2 → Zigzag pivot detection
- Trendoscope/abstractchartpatterns/5 → Pattern definitions
- Trendoscope/basechartpatterns/6 → Pattern recognition logic
⚙️ Input Parameters
1. Source Settings
Custom OHLC sources (default: standard OHLC)
2. Zigzag Settings (4 Independent Zigzags)
Zigzag Enabled Length Depth Purpose
ZZ1 ✅ 8 55 Primary - catches larger swings
ZZ2 ✅ 13 34 Secondary - medium swings
ZZ3 ❌ 21 21 Tertiary - balanced
ZZ4 ❌ 34 13 Quaternary - smaller swings
3. Scanning Parameters
Parameter Default Description
numberOfPivots 5 Points needed for pattern (5 or 6)
errorThreshold 30% Tolerance for trendline validation
flatThreshold 20% Slope ratio for "flat" determination
lastPivotDirection both Filter by final pivot direction
checkBarRatio false Validate time proportionality
avoidOverlap true Prevent overlapping patterns
repaint true Use real-time or confirmed bars
4. Pattern Groups
Geometric Shapes:
✅ Channels
✅ Wedges
✅ Triangles
Direction:
✅ Rising
✅ Falling
✅ Flat/Bi-Directional
Formation Dynamics:
✅ Expanding
✅ Contracting
✅ Parallel
📊 Detected Pattern Types (14 Total)
text
INDEX | PATTERN TYPE | CATEGORY
------|--------------------------------|------------------
1 | Ascending Channel | Parallel/Rising
2 | Descending Channel | Parallel/Falling
3 | Ranging Channel | Parallel/Flat
4 | Rising Expanding Wedge | Expanding/Rising
5 | Falling Expanding Wedge | Expanding/Falling
6 | Diverging Triangle | Expanding/Flat
7 | Ascending Expanding Triangle | Expanding/Rising
8 | Descending Expanding Triangle | Expanding/Falling
9 | Rising Contracting Wedge | Contracting/Rising
10 | Falling Contracting Wedge | Contracting/Falling
11 | Converging Triangle | Contracting/Flat
12 | Descending Contracting Triangle| Contracting/Falling
13 | Ascending Contracting Triangle | Contracting/Rising
🏗️ Core Architecture
Scanner Type (Custom Object)
JavaScript
type Scanner
bool enabled
string ticker
string timeframe
ScanProperties sProperties // Scanning configuration
DrawingProperties dProperties // Visual settings
array patterns // Detected patterns storage
array zigzags // Zigzag pivots storage
Key Methods
getZigzagAndPattern()
Calculates zigzag pivots from price data
When new pivot detected → scans for patterns
Requires minimum 6 pivots in buffer
Uses multi-level zigzag analysis
Validates patterns against allowed configurations
scan()
Creates OHLC array from sources
Iterates through enabled zigzags (1-4)
Calls pattern detection for each zigzag configuration
🔄 Execution Flow
text
1. Initialize Scanner with all properties
2. On each bar (confirmed or real-time based on 'repaint'):
│
├─→ Build OHLC array
│
├─→ For each enabled Zigzag:
│ ├─→ Calculate pivots
│ ├─→ If new pivot detected:
│ │ ├─→ Scan for valid patterns
│ │ ├─→ Draw pattern if found
│ │ ├─→ Store in patterns array
│ │ ├─→ Trim old patterns (if > maxPatterns)
│ │ └─→ Trigger alert
│ └─→ Move to next zigzag level
│
└─→ Repeat on next bar
🎨 Display Features
Theme: Light/Dark mode
Pattern lines: Customizable width
Labels: Pattern name + pivot labels (with size options)
Zigzag: Optional display with custom color
Pattern limit: Auto-deletes oldest when exceeding max (default: 20)
⚡ Alerts
Triggers 'New Pattern Alert' when any valid pattern is detected.
💡 "Market Adapted" Features
Dual zigzag enabled by default (ZZ1 + ZZ2) for multi-timeframe sensitivity
Higher error threshold (30%) for volatile markets
Flexible pivot direction filtering per pattern type
Overlap avoidance to reduce noise
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.
daily reversalindicator that marks when the current daily candle (bullish or bearish) closes beyond the previous day’s High or Low.
Logic implemented
Bullish condition → Today closes above yesterday’s High
Bearish condition → Today closes below yesterday’s Low
Works only on Daily timeframe
Plots labels/arrows on the chart
PK_Volume Delta Candles [LuxAlgo]The inside candle colour where the candle color and delta are opposite, has been converted into yellow color.
Tokyo Sessions HighlighterOverview
This indicator provides a clean, visual representation of the Asian (Tokyo) trading session by highlighting its specific price range. It is designed to help traders identify the initial intraday range and key liquidity levels established during the Tokyo open.
Features
Dynamic Range Box: Automatically plots a box from the session's highest high to its lowest low.
Real-Time Updates: The box height and price labels update live as new session extremes are reached during the designated hours.
Professional Aesthetic: Features a minimalist gray fill, solid black borders, and black text for a clean, professional look on both light and dark chart themes.
Instant Data: Displays a label at the bottom of the box showing the exact price range in the format: Tokyo (Lowest Value - Highest Value).
How To Use
Settings: Adjust the Tokyo Session Time and Timezone in the indicator inputs to match your broker's server time or local requirements.
Strategy: Use the highlighted range to identify potential breakouts or to treat the session high and low as institutional liquidity zones for the London and New York sessions.
Customization: You can adjust the colors and transparency of the box through the script settings menu.
PaisaPani - Nifty Demo PerformanceThis chart shows a market structure view using the PaisaPani framework.
The table visible on the chart is a DEMO performance representation.
This idea does NOT provide live Buy/Sell signals.
🔒 The complete PaisaPani strategy is Invite-Only.
Shared for educational purposes only.






















