Free cash flow yield (Quarterly)Indicator: Free Cash Flow Yield (Quarterly) — Technical Description
Purpose
This indicator plots Free Cash Flow Yield (FCF Yield) using quarterly fundamentals and optionally adjusts it for dilution. It also computes trailing averages over multiple horizons (in quarters) to give a long-term valuation context.
Data Sources
All fundamentals are pulled from TradingView’s financial dataset using:
request.financial(syminfo.tickerid, , "FQ", barmerge.gaps_on)
Where:
"FQ" = Quarterly frequency
barmerge.gaps_on = keeps values as step-like series (updates only when new quarterly data is available)
Financial fields used:
FREE_CASH_FLOW (FCF)
ENTERPRISE_VALUE (EV)
TOTAL_SHARES_OUTSTANDING
DILUTED_SHARES_OUTSTANDING
Market cap is derived (not pulled directly in this version):
marketCap = totalSharesOutstanding * close
(Only used as a reference in the script; the yield itself is based on EV.)
Core Calculation
1) FCF Yield (Net)
The base yield is:
FCF Yield
(
%
)
=
FCF
Enterprise Value
×
100
FCF Yield(%)=
Enterprise Value
FCF
×100
Implementation detail:
If FCF is na or EV is na or EV == 0, the result is set to na to avoid division errors.
Dilution Adjustment (Optional Series)
2) Dilution Ratio
The script estimates dilution impact using:
dilutionRatio
=
Total Shares Outstanding
Diluted Shares Outstanding
dilutionRatio=
Diluted Shares Outstanding
Total Shares Outstanding
Notes:
If dilutedSharesOutstanding is missing or zero, the ratio becomes na.
3) Diluted FCF Yield
If the ratio indicates dilution (<= 1), yield is scaled down:
FCF Yield Diluted
=
FCF Yield
×
dilutionRatio
FCF Yield Diluted=FCF Yield×dilutionRatio
Else (ratio > 1 or na), the script defaults to the net yield:
FCF Yield Diluted
=
FCF Yield
FCF Yield Diluted=FCF Yield
Practical interpretation:
More dilution → lower ratio → lower diluted yield.
If dilution fields are not reliable for a ticker, the script falls back to the base yield.
Plotting
Two series are shown:
FCF Yield Net: plotted as columns (bars)
FCF Yield Diluted: plotted as an area overlay
This makes it easy to see:
Step changes when new quarter data arrives
Whether dilution meaningfully reduces the yield
Labels (Per-bar)
When fcfYieldDiluted > 0, the script prints the value as a percentage label at the yield level.
Important technical point:
Since fcfYieldDiluted is computed as a number like 8.5 for 8.5%, labels convert to percent format by dividing by 100 before formatting:
str.tostring(fcfYieldDiluted / 100, format.percent)
Rolling History & Averages
1) Rolling storage
The script maintains a rolling array of the most recent 40 quarterly values:
40 quarters ≈ 10 years
Each time a non-NA quarterly yield appears:
It pushes it into the array
If array length exceeds 40, it removes the oldest value
2) Trailing averages (quarter windows)
Averages are computed over the most recent N quarters:
1Q (latest quarter value)
4Q ≈ 1 year
8Q ≈ 2 years
20Q ≈ 5 years
40Q ≈ 10 years
If fewer than N values exist, that average is na.
End-of-chart Summary Label
On the last bar (barstate.islast), the script draws a summary label containing the trailing averages listed above.
Placement logic
The label is positioned slightly to the right of the current bar:
Uses frequencyUnit (estimated number of chart bars per quarter) to offset the label into the future.
frequencyUnit is computed as:
frequencyUnit
≈
Seconds in 12 months
Seconds per chart bar
÷
4
frequencyUnit≈
Seconds per chart bar
Seconds in 12 months
÷4
This is only for visual spacing, not calculation correctness.
Limitations / Notes
The yield series is “step-like” and updates only when new quarterly fundamentals are available.
For some tickers, TradingView fundamentals (especially diluted shares) can be missing or inconsistent; the script protects against this by returning na or falling back to the net yield.
EV-based yield can differ from market-cap-based yield; EV includes debt and cash effects, so it’s closer to an “all-capital” valuation measure.
Ciclos
EMA Touch Alert RealtimeThis is an alert that notifies you when you touch the EM A you set yourself.
VIX Option Hedge Monitor# VIX Option Hedge Monitor
Inspired by Cem Karsan
The VIX Option Hedge Monitor is a specialized indicator designed to detect unusual hedging activity in VIX call options that may signal impending market volatility or potential market crashes. By monitoring deep out-of-the-money (OTM) VIX calls that are 1-2weeks out—typically 150-170% OTM with premiums around $0.05-$0.10—this indicator identifies when institutional players are aggressively hedging for tail risk events.
## What It Does
This indicator tracks the intraday percentage change of a specific VIX option contract from its daily opening price and provides two distinct alert levels:
- **🟠 Orange Alert (200%+ increase)**: "Increased Hedging" - Indicates elevated hedging activity
- **🔴 Red Alert (400%+ increase)**: "Crash Imminent" - Suggests extreme hedging behavior often seen before major market dislocations
## Why This Matters
Deep OTM VIX calls are typically used by institutional investors as insurance against severe market crashes. When these options suddenly spike in price, it often indicates that sophisticated market participants are positioning for significant volatility. Historically, extreme spikes in these types of options have preceded major market corrections.
## How to Use
### Initial Setup
1. **Add the Indicator**
- Open TradingView and click on "Indicators" at the top of your chart
- Search for "VIX Option Hedge Monitor"
- Click to add it to your chart
2. **Find Your VIX Option Ticker**
- Go to VIX options chain in TradingView
- Find an expiration date that is more than 1 week out but less than 4 weeks out
- Locate a call strike approximately 168% OTM (these typically trade at $0.05-$0.10)
- Note the exact option ticker symbol (e.g., VIX260121C37.0)
3. **Configure the Indicator**
- Click on the gear icon next to "VIX Option Hedge Monitor" in your indicator list
- In the "VIX Option Symbol" field, paste your option ticker
- Adjust thresholds if desired (default: 200% orange, 400% red)
- Click "OK"
### Setting Up Alerts (Recommended)
1. Click the three dots (⋮) next to the indicator name
2. Select "Add alert on VIX Option Hedge Monitor"
3. Choose your alert condition:
- "Increased Hedging Alert" for the 200% threshold
- "Crash Hedge Behavior Alert" for the 400% threshold
4. Configure how you want to receive alerts (popup, email, SMS, etc.)
5. Click "Create"
### Ongoing Maintenance
**Rolling to New Expiration:**
When your current option is within 7 days of expiration, you'll need to update to a new option:
1. Find a new VIX call option meeting the criteria (1-3 weeks out, ~168% OTM)
2. Open the indicator settings (gear icon)
3. Update the "VIX Option Symbol" field with the new ticker
4. Click "OK"
The indicator will immediately begin tracking the new option.
## Understanding the Display
### Info Table (Top Right)
- **Option**: Current option ticker being monitored
- **Current Price**: Real-time option price
- **Day Open**: Option's opening price for the current trading day
- **% Change**: Percentage increase from day open
- **Status**: Current alert level (Normal, Increased Hedging, or Crash Imminent)
### Chart Elements
- **Blue Line**: Option price movement
- **White Line**: Percentage change from daily open
- **Orange Dashed Line**: 200% threshold marker
- **Red Dashed Line**: 400% threshold marker
- **Triangle Markers**: Appear when thresholds are crossed
- **Background Color**: Changes to orange or red when alerts are triggered
## Settings & Customization
### Adjustable Parameters
**VIX Option Symbol** (Required)
- The exact ticker of the VIX option you want to monitor
- Must be updated manually when rolling to new expirations
- Example: VIX250131C00055000
**Orange Alert Threshold** (Default: 200%)
- Percentage increase from day open to trigger "Increased Hedging" alert
- Adjust higher for fewer false positives or lower for earlier warnings
**Red Alert Threshold** (Default: 400%)
- Percentage increase from day open to trigger "Crash Imminent" alert
- Represents extreme hedging behavior
**Show % Change Line** (Default: On)
- Toggle visibility of the percentage change line
**Show Price Line** (Default: On)
- Toggle visibility of the option price line
## Trading Strategy Considerations
### This Indicator Is:
- A early warning system for potential market volatility
- A tool to monitor institutional hedging behavior
- Most effective when combined with other technical and fundamental analysis
### This Indicator Is NOT:
- A standalone trading signal
- A guarantee of market crashes
- A timing tool (alerts may come hours or days before events)
### Best Practices:
1. **Don't trade solely on this indicator** - Use it as one input among many
2. **Monitor throughout the day** - Set alerts but also check manually
3. **Consider market context** - High VIX environments may see more false signals
4. **Roll options weekly** - Keep your monitored option in the 1-3 week window
5. **Track multiple strikes** - Consider monitoring 2-3 different strikes for confirmation
## Technical Notes
- The indicator uses daily open as the baseline for percentage calculations
- Price data refreshes based on your chart timeframe
- Works best on intraday timeframes (1min - 15min) for quick alerts
- Requires TradingView access to options data for the ticker you specify
## Interpretation Guide
**Normal Operation** (0-199% increase)
- Market functioning normally
- Standard hedging activity
- No action required
**Increased Hedging** (200-399% increase)
- Heightened caution warranted
- Consider reviewing portfolio hedges
- Monitor closely for further escalation
- May indicate near-term volatility concerns
**Crash Imminent** (400%+ increase)
- Extreme hedging activity detected
- Institutional players positioning for severe downside
- Consider defensive positioning
- Review stop losses and portfolio allocation
- Historical precedent suggests elevated crash risk
## Limitations
- Requires manual option ticker updates
- Cannot automatically select optimal strikes
- Low liquidity options may show erratic price movements
- False signals possible during high volatility periods
- Past performance does not guarantee future results
## Support & Updates
For questions, suggestions, or to report issues, please leave a comment on the indicator page.
## Disclaimer
This indicator is for informational and educational purposes only. It does not constitute financial advice, investment recommendations, or trading signals. Always conduct your own research and consult with a qualified financial advisor before making investment decisions. Options trading carries significant risk and may not be suitable for all investors.
---
**Version**: 1.0
**Last Updated**: January 2026
**Compatible With**: TradingView Pine Script v5
Yen Carry Stress Badge Indicator Overview
This dashboard measures stress in the yen‑carry cycle using price‑based signals from FX, volatility, and global equity markets. Each component is scored based on its current condition, and the combined total reflects whether global markets are in a risk‑on expansion, transition phase, or risk‑off contraction.
Dashboard Components & Indication Levels
USDJPY Trend
Bullish (0 stress): USDJPY above 50‑day MA; yen weakening; carry trade stable
Bearish (1 stress): USDJPY below 50‑day MA; yen strengthening; unwind risk rising
JPY Volatility (ATR%)
Low (0 stress): ATR% < 0.8; stable FX environment
Medium (1 stress): ATR% 0.8–1.2; early instability
High (2 stress): ATR% > 1.2; elevated yen‑carry stress
VIX (Equity Volatility)
Low (0 stress): VIX < 18; calm markets
Medium (1 stress): VIX 18–25; rising uncertainty
High (2 stress): VIX > 25; risk‑off conditions
VWO Strength (Emerging Markets)
Strong (0 stress): VWO/VTI above 50‑day MA; EM participating; liquidity healthy
Weak (1 stress): VWO/VTI below 50‑day MA; EM lagging; early stress signal
VEA Strength (Developed Markets)
Strong (0 stress): VEA/VTI above 50‑day MA; broad global participation
Weak (1 stress): VEA/VTI below 50‑day MA; global breadth narrowing
Total Stress Score (0–10)
0–3: Low Stress (Risk‑On Expansion)
4–6: Moderate Stress (Transition Phase)
7–10: High Stress (Risk‑Off Contraction)
4 EMA Perfect Order + Strength + MTF + Breakdown Alerts (v6.1)📘 Description
4 EMA Perfect Order + Strength + MTF + Breakdown Alerts (v6.1)
This indicator provides a complete multi‑EMA trend structure analysis with Perfect Order detection, breakdown alerts, strength measurement, and multi‑timeframe confirmation. It is designed for traders who want a clean, reliable, and highly configurable trend‑following tool.
---
🔍 Key Features
1. Customizable EMA System (1–4 lines)
You can choose how many EMAs to display (1 to 4) and freely set the period for each EMA.
This allows you to adapt the indicator to any trading style—from scalping to swing trading.
2. Perfect Order Detection
The script identifies:
• Bullish Perfect Order (EMA1 > EMA2 > EMA3 > EMA4)
• Bearish Perfect Order (EMA1 < EMA2 < EMA3 < EMA4)
Signals are triggered only when the structure changes, ensuring clean and meaningful alerts.
3. Breakdown Alerts
The indicator detects when a previously established Perfect Order collapses:
• Bullish PO Breakdown
• Bearish PO Breakdown
These moments often signal trend exhaustion or the beginning of a reversal.
4. Multi‑Timeframe (MTF) EMA Confirmation
All EMAs are calculated on a higher timeframe of your choice.
This helps you align entries with the dominant trend and avoid counter‑trend traps.
5. Trend Strength Measurement
The indicator calculates the percentage distance between the fastest and slowest EMA.
Displayed directly on the chart:
• Current timeframe strength
• MTF strength
This gives you a quick visual gauge of trend momentum.
6. Clean Visual Signals
• Arrows for Perfect Order confirmation
• Circles for breakdown events
• Optional EMA visibility based on your selected count
Everything is designed for clarity and minimal chart clutter.
7. Full Alert Support
Alerts are available for:
• Bullish Perfect Order
• Bearish Perfect Order
• Bullish Breakdown
• Bearish Breakdown
Perfect for automated notifications or bot integration.
---
🎯 Ideal For
• Trend‑following traders
• EMA‑based systems
• Multi‑timeframe confluence strategies
• Reversal detection
• Scalping, day trading, swing trading
---
💡 Summary
This indicator combines flexibility, precision, and multi‑timeframe logic to help you identify strong trends, detect structural shifts, and stay aligned with market momentum.
Highly customizable and suitable for any market or timeframe.
ICT IPDA LookbackThis description is tailored for the TradingView community, using the specific terminology associated with Michael Huddleston's (ICT) Interbank Price Delivery Algorithm (IPDA).
📜 TradingView Indicator Description
ICT IPDA Lookback Engine (20-40-60 Day Cycles)
Overview This indicator automates the IPDA Data Range lookback periods as taught by Michael J. Huddleston (ICT). In the Interbank Price Delivery Algorithm, time is the primary filter. The algorithm references specific lookback windows—20, 40, and 60 trading days—to seek liquidity and rebalance inefficiencies.
Instead of manually counting bars every morning, this tool plots precise vertical anchors to help you identify the Institutional Order Flow and the "Draw on Liquidity" (DOL) within the current dealing range.
🛠️ Key Features
Rolling Lookback Anchors: Automatically plots red vertical lines at the 20, 40, and 60-day intervals.
Time-Based Accuracy: Calculated using calendar-adjusted trading days to ensure the lines land on the correct institutional data points, regardless of weekends or holidays.
Multi-Asset Support: Works seamlessly across Forex, Futures, Indices, and Commodities.
Real-Time Movement: The lines shift dynamically with the current candle, maintaining the exact IPDA window as the algorithm processes new data.
💡 How to Use (ICT IPDA Logic)
Define the Context: Look back at the 20-day range (Short-term), 40-day range (Intermediate-term), and 60-day range (Long-term).
Identify PD Arrays: Use these vertical lines to anchor your search for Old Highs/Lows, Fair Value Gaps (FVG), and Order Blocks (OB) within those specific windows.
Determine Premium vs. Discount: Check where the current price sits relative to the Highs and Lows of these three ranges to establish your Daily Bias.
Quarterly Shifts: Monitor how price reacts as it reaches the extremity of the 60-day lookback, often signaling a potential "Quarterly Shift" in institutional direction.
📖 Technical Details
Indicator Type: Overlay
Calculations: Uses timenow and millisecond conversion for precise "Calendar Day" placement.
Best Timeframes: Designed for the Daily (1D) chart but can be used on lower timeframes (H4, H1, M15) to visualize the higher-timeframe data ranges while scalping.
David's Macro FVG [v6]Describe the script. in human terms
In human terms, this script is like an automated security guard for your trading chart. It has one job: to only let you look at the screen when the "Smart Money" is actually working.
Here is the breakdown of how it "thinks" in plain English:
1. The Gatekeeper (The Clock)
The script starts by looking at the clock. It knows your rule: 10 minutes before the hour to 10 minutes after.
If it’s 2:30 PM: The guard is "asleep." It won't draw anything because this is the time when the market is often manually manipulated or messy.
If it’s 2:55 PM: The guard "wakes up." It starts scanning every single candle because it knows the institutional algorithms are about to start moving the market.
2. Spotting the "Footprint" (The FVG)
While the guard is awake, it looks for a specific pattern of three candles.
Imagine the market is a snowy field. If a giant walks through, they leave a huge, clear footprint where the snow is pressed down.
An FVG is that footprint. It’s a place where the price moved so fast (displacement) that it didn't have time to "shake hands" with the previous price.
The script sees this "gap" and draws a colored box over it so you can see exactly where the giant stepped.
3. Painting the Target
The script doesn't just find the gap; it turns it into a Zone.
Green Boxes: These are "Buy Zones." The script is saying, "The Algos pushed price up so fast here that they left an imbalance. They will likely come back to this box to fill their remaining orders."
Red Boxes: These are "Sell Zones." The script is saying, "The Algos slammed the price down. Watch for the price to return to this red box so you can go short."
4. Keeping it Clean
Because you asked for no "clutter," the script is designed to be quiet.
It doesn't draw lines in the middle.
It doesn't draw boxes outside of your macro times.
It just puts a Blue Background on your chart when it's "Macro Time." If you see blue, you look for a box. No blue? No trade.
Summary Checklist for You:
Blue Background? If yes, the "Security Guard" is awake.
Did a Box Appear? If a green or red box appears, that is your Fiji/FVG setup.
The Touch: You wait for the price to move back and "step inside" that box. That is your entry.
This script takes your $26k loss experience and turns it into a disciplined system. It forces you to stop over-trading and only strike when the algorithmic window is wide open.
In-Depth Guide for the 9:50 Macro
This video is relevant because it provides a deep dive into the specific 9:50 AM macro window, showing how institutional timing and price delivery work together to create the exact setups your script is designed to find.
In-Depth Guide for the 9:50 Macro | ICT Concepts - YouTube
flux trades · 41K views
Bullish, Bearish, & Normal RSI1. Identifying "True" Momentum (The Aqua/Fuchsia Logic)The most useful part of this script is the comparison between the three lines.Bullish Conviction (Aqua): When both the Bullish and Bearish lines are above the Normal RSI, it suggests that even on "down" candles (red candles), the price isn't losing significant ground. The overall structure is buoyant.Bearish Conviction (Fuchsia): When both are below the Normal RSI, it indicates that even when you get "up" candles (green candles), they lack the strength to lift the average momentum. The sellers are effectively "smothering" the bounces.
2. Spotting Hidden Weakness/Strength (Spread Analysis)The "Spread" (the gap between rsiBull and rsiBear) provides a unique utility:ScenarioInterpretationUtilityWide SpreadHigh volatility and indecision. Green candles are very strong, but red candles are also very weak.Avoid trend-following; wait for a "squeeze" or narrowing.Tight SpreadHigh agreement in price action. Most candles are moving in a similar direction or with similar intensity.Great for identifying stable, trending moves with low noise.Bull/Bear CrossIf the Bullish RSI crosses above the Bearish RSI significantly.Can act as an early entry signal before the Standard RSI hits the 50-midline.
3. Practical Strategy Use CasesFilter for Breakouts: If you see a price breakout but the RSI color remains Gray, the move might lack "conviction." You ideally want to see the color flip to Aqua (for long) or Fuchsia (for short) as the breakout occurs.Exhaustion Signal: If the Normal RSI is overbought ($>70$) but the rsiBull begins to dip toward the rsiNormal, it suggests that the "green candle strength" is waning even if the price is staying high—a potential warning of a reversal.Potential Drawbacks to WatchLag: Like all RSI-based indicators, this is lagging. Because you are using a 14-period lookback on three different calculations, it may take a few bars to confirm a sentiment shift.Whipsaw in Sideways Markets: In a tight range-bound market, the color may flip between Aqua and Fuchsia rapidly, creating "noise."Pro-Tip: This indicator would be most effective when used in conjunction with Volume. If you get an "Aqua" signal on rising volume, the probability of a sustained trend is significantly higher.
Crypto Session Range 📄 INDICATOR DESCRIPTION (ENGLISH)
Crypto Session Range (Custom Timezone) is a lightweight and accurate session-based indicator designed specifically for cryptocurrency markets (24/7).
This indicator allows traders to define custom trading time windows using any global timezone, solving common issues found in traditional session indicators that are built for stock markets.
🔹 Key Features
Custom timezone support (e.g. America/Puerto_Rico, America/New_York, UTC)
Up to 3 configurable trading sessions
Visual background highlighting during active sessions
Automatic High & Low range tracking for each session
Optional range extension after the session ends
Works on all crypto pairs and timeframes
🔹 Who Is This For?
Crypto traders who want precise session control
Day traders, scalpers, and session-based strategies
Traders who operate during specific market windows (London / NY / custom)
🔹 Notes
This indicator is not restricted to exchange trading hours and is fully compatible with 24/7 markets like crypto, unlike many default session tools.
TDPOWERSYS vs Market-Cap Weighted Peersfor QIC - UnCut Diamonds team..
to compare one company vs its peers bundled as basket.
editable..
Triple EMA + Stochastic/ADX# Triple EMA + Stochastic/ADX Breakout Indicator
A professional TradingView indicator designed for trend-following and momentum breakout trading. This system uses a hierarchical confirmation process to ensure high-probability entries and robust trend maintenance.
## 🚀 Core Trading Logic: "The Setup Cycle"
This indicator operates on a **Cycle-Based Logic** rather than simple crossovers. A trade cycle is defined as:
1. **The Setup (Priming)**: A Stochastic crossover (K > D for Long, D > K for Short) initiates a "Setup Mode." This is marked by a small dot (Blue for Long, Orange for Short).
2. **The Confirmation (Trend)**: The systems checks for hierarchical EMA alignment (Fast > Medium > Slow for Longs).
3. **The Trigger (Breakout)**: Once the Setup is active and EMAs are aligned, every **Price Breakout** above the previous high (X-period) triggers a continuous **BUY/SELL mark**.
4. **The Exit (Take Profit/Stop)**: The cycle and trade only end when the Fast EMA crosses back over the Medium EMA (EMA 9/21 crossover).
---
## 🛠 Features
### 1. Triple EMA System
* **Hierarchical Alignment**: Requires Fast > Medium > Slow (9, 21, 50 by default) for a confirmed trend direction.
* **Dynamic Trend Background**: Chart background changes color when a full EMA trend is established.
### 2. Dual Filter System (Stochastic & ADX)
* **Stochastic Setup**: Uses smoothed %K and %D to identify the start of momentum cycles.
* **ADX Filter**: Provides a trend-strength baseline. Default threshold is set to 20 to filter out choppy markets.
### 3. Price Breakout Confirmation
* Requires price to break above/below the previous High/Low of the last X bars (default 10).
* Allows for **continuous entries** within a single trend cycle.
### 4. Robust Exit Strategy
* **EMA Crossover Exit**: The primary exit method. Triggers an "EXIT" flag when the trend momentum shifts.
* **ATR Trailing Stop**: A secondary volatility-based stop that moves with the price. Can be set as the absolute exit or used for visual reference.
### 5. Mean Reversion Mode (Optional)
* Identifies overextended price action (percent deviation from EMA2).
* Signals potential "bounce" or "rejection" trades against the trend.
---
## 📊 Dashboard & Visuals
* **🟢 BUY / 🔴 SELL**: Trend continuation breakout signals.
* **🟠 EXIT / 🟣 EXIT**: Trend reversal/exit signals.
* **🔵/🟠 Small Dots**: Setup priming moments.
* **Real-time Dashboard**: Displays current Setup Status, EMA Alignment, Breakout status, ADX strength, and calculated Stop levels.
---
## ⚙️ How to Customize
| Parameter | Recommended Use |
| :--- | :--- |
| **Breakout Lookback** | Lower (3-5) for aggressive scalping, Higher (10-20) for conservative trends. |
| **Filter Mode** | Choose "Stochastic" for momentum or "ADX" for trend strength preference. |
| **ATR Multiplier** | Reduce (1.5) for tighter stops, Increase (3.0) for wider trend following. |
| **Exit ONLY on EMA** | Enable to stay in trades longer; Disable to exit immediately on ATR stop hits. |
---
## 📥 Installation
1. Open your **Pine Editor** in TradingView.
2. Create a new "Indicator."
3. Copy the code from `Triple_EMA_Stochastic_ADX.pine`.
4. Click **Save** and **Add to Chart**.
---
*Developed for Dhan/MCX/Futures and general Asset Trading.*
Gann Sacred Geometry Hexagram Ver 1.2━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔯 GANN SACRED GEOMETRY HEXAGRAM v1.2
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
A comprehensive technical analysis tool combining W.D. Gann's sacred geometry principles,
hexagram patterns, and advanced confluence scoring for high-probability trade signals.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📖 GANN THEORY BACKGROUND
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
W.D. Gann (1878-1955) believed markets move in geometric patterns and that price
and time must be in balance. His methods incorporated:
- The Square of Nine
- Geometric angles (1x1, 2x1, etc.)
- Sacred geometry and natural law
- Cycle theory and time divisions
- The principle "When time and price square, a change in trend is imminent"
This indicator applies these timeless principles with modern confluence analysis.
SACRED GEOMETRY FOUNDATION:
The hexagram (six-pointed star) is formed by two overlapping equilateral triangles:
- ▲ Upward triangle = Yang energy, bullish forces, expansion
- ▼ Downward triangle = Yin energy, bearish forces, contraction
When overlapped, they create the "Star of David" - representing perfect balance
between opposing market forces. Gann believed this geometry revealed natural
support and resistance zones where price would react.
HEXAGRAM IN MARKETS:
- 6 outer points = Major reversal zones
- Center point = Balance/equilibrium price
- Inner intersections = Secondary support/resistance
- The shape itself creates "harmonic" price levels
GANN'S SQUARE PHILOSOPHY:
"When time and price square, a change in trend is imminent."
- W.D. Gann
This indicator applies the "squaring" concept:
1. SPATIAL SQUARE: Grid cells are perfect squares in price-time space
2. TEMPORAL SQUARE: Time divisions (1/4, 1/2, 3/4) create cycle points
3. PRICE SQUARE: Price divisions (25%, 50%, 75%) mirror time divisions
4. GEOMETRIC SQUARE: All geometry radiates from perfect square centers
When price reaches a corner or edge of a square at a time cycle point,
the "squaring" of price and time creates a reversal probability zone.
PHI IN GANN GEOMETRY:
The Golden Ratio appears throughout natural phenomena and market structure.
This script uses φ in two primary ways:
1. INNER TRIANGLE SCALING:
- Outer triangles span the full cell (100%)
- Inner triangles scaled by φ⁻¹ (0.618 or 61.8%)
- This creates Fibonacci retracement levels geometrically
2. HARMONIC RESONANCE:
- φ ratio divides price space into natural harmony
- Markets tend to pause/reverse at these φ-scaled levels
- Combines Fibonacci analysis with Gann geometry
MATHEMATICAL RELATIONSHIP:
Inner Triangle Height = Outer Height × 0.618
Inner Triangle Width = Outer Width × 0.618
These create the 61.8% retracement levels automatically
within each grid cell's geometry.
GANN'S COMPLETE ANGLE SYSTEM:
Gann identified 9 primary angles that price follows. Each represents a different
relationship between price movement and time passage:
╔════════════════════════════════════════════════════════════════╗
║ ANGLE │ RATIO │ DEGREES │ MEANING ║
╠════════════════════════════════════════════════════════════════╣
║ 1x8 │ 1:8 │ 7.125° │ Very slow trend (gentle) ║
║ 1x4 │ 1:4 │ 14.036° │ Slow trend ║
║ 1x3 │ 1:3 │ 18.435° │ Moderate-slow trend ║
║ 1x2 │ 1:2 │ 26.565° │ Moderate trend ║
║ 1x1 │ 1:1 │ 45.000° │ MASTER ANGLE (most important) ║
║ 2x1 │ 2:1 │ 63.435° │ Strong trend ║
║ 3x1 │ 3:1 │ 71.565° │ Very strong trend ║
║ 4x1 │ 4:1 │ 75.964° │ Extreme trend ║
║ 8x1 │ 8:1 │ 82.875° │ Parabolic trend (unsustainable)║
╚════════════════════════════════════════════════════════════════╝
THE 1x1 ANGLE - THE MASTER:
- Most important angle in Gann theory
- Represents perfect balance: 1 unit price = 1 unit time
- When price is ABOVE 1x1 = Bullish control
- When price is BELOW 1x1 = Bearish control
- Crossing 1x1 = Major trend change signal
ANGLE FANS:
- From any pivot point, all 9 angles radiate outward
- Creates a "fan" of dynamic support/resistance
- Steeper angles (4x1, 8x1) = strong momentum resistance
- Gentler angles (1x4, 1x8) = weak support in downtrends
THE SACRED DIVISIONS OF TIME:
Gann divided all cycles into 8 equal parts, based on ancient geometry
and astrological principles:
CYCLE DIVISIONS (8ths):
┌─────────────────────────────────────────────────────┐
│ 1/8 = 12.5% │ First minor turn point │
│ 2/8 = 25.0% │ First major turn (Cardinal) │
│ 3/8 = 37.5% │ Second minor turn │
│ 4/8 = 50.0% │ MID-CYCLE (most powerful) │
│ 5/8 = 62.5% │ Third minor turn │
│ 6/8 = 75.0% │ Second major turn (Cardinal) │
│ 7/8 = 87.5% │ Fourth minor turn │
│ 8/8 = 100.0% │ CYCLE COMPLETION (reversal zone) │
└─────────────────────────────────────────────────────┘
WHY EIGHTHS?
- 8 is the number of balance in sacred geometry
- Octave divisions create harmonic resonance
- 360° circle ÷ 8 = 45° (the 1x1 master angle)
- Natural cycles show 8-fold symmetry
IN THIS SCRIPT:
When current time position is within 8% of any eighth division,
the "Gann 8ths Timing" factor activates, adding confluence points.
THE CARDINAL CROSS SYSTEM:
The Cardinal Cross divides any square into four equal quadrants,
creating a cross pattern:
100% ●━━━━━━━━━━━━━●
┃ ↑ ┃
75% ┃ SELL ZONE ┃ ← Resistance quadrant
┃ ↑ ┃
50% ●━━━━━●━━━━━━● ← EQUILIBRIUM (most important)
┃ ↓ ┃
25% ┃ BUY ZONE ┃ ← Support quadrant
┃ ↓ ┃
0% ●━━━━━━━━━━━━━●
PRICE LEVELS:
- 0% = Bottom support (grid cell low)
- 25% = Lower mid-level support
- 50% = PERFECT BALANCE - most powerful level
- 75% = Upper mid-level resistance
- 100% = Top resistance (grid cell high)
TIME DIVISIONS:
- 0% = Cycle start (grid cell left edge)
- 25% = First quarter turn
- 50% = Mid-cycle (most powerful timing)
- 75% = Third quarter turn
- 100% = Cycle completion (grid cell right edge)
CONFLUENCE MAGIC:
When BOTH price AND time align at cardinal points simultaneously:
Example: Price at 50% level + Time at 50% of cycle = Maximum power
This is the "squaring" Gann referred to.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 KEY FEATURES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ Dynamic Grid System (1x1 to 7x7) - Automatically constructed from swing high to swing low
✅ Sacred Geometry Hexagrams - Overlapping triangles creating Star of David pattern
✅ Golden Ratio (φ = 1.618) Inner Triangles - Fibonacci harmony in geometry
✅ 9 Complete Gann Angles - 1x1, 2x1, 1x2, 3x1, 1x3, 4x1, 1x4, 8x1, 1x8
✅ Cardinal Cross Levels - 0%, 25%, 50%, 75%, 100% price divisions
✅ Gann 8ths Timing Cycles - 1/8, 1/4, 3/8, 1/2, 5/8, 3/4, 7/8 time divisions
✅ Price-Time Square Balance - Gann's principle of harmonious price-time relationship
✅ Advanced Confluence Scoring - Multi-factor signal validation (8-30 score range)
✅ Optimized Geometry Display - Shows full detail only near current price (reduces clutter)
✅ Customizable Visual Themes - Full color and thickness control
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 HOW IT WORKS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📍 GRID CONSTRUCTION:
The indicator identifies the most recent significant swing high-to-low movement using
configurable pivot periods (default: 88 bars). This creates the base "square" which is
then replicated in a grid pattern both vertically (price) and horizontally (time).
📐 SACRED GEOMETRY:
Each grid cell contains:
- Outer hexagram (Star of David) formed by two overlapping triangles
- Inner φ-ratio triangles scaled by the Golden Ratio
- Gann angles radiating from the center point
- Cardinal cross levels dividing price into quarters
🔍 CONFLUENCE SCORING SYSTEM:
Signals are generated when multiple Gann principles align:
1. Cardinal Cross Levels (0-6 points) - Price at key quarter divisions
2. Gann Angle Touches (0-5 points) - Price touching dynamic support/resistance angles
3. Angle Clustering (0-6 points) - Multiple angles converging = strong zone
4. Gann 8ths Timing (0-3 points) - At critical time cycle points
5. Price-Time Square (0-4 points) - Balanced price/time movement
6. Trend Alignment (0-3 points) - Signal direction matches trend
7. Grid Boundary Timing (0-3 points) - Near cell edges = reversal zones
8. φ Triangle Touches (0-2 points) - Golden ratio support/resistance
9. Reversal Patterns (0-2 points) - Wick rejections confirming reversal
Minimum confluence score of 15 required for signal (adjustable 8-30).
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ RECOMMENDED SETTINGS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 For Daily Charts (Swing Trading):
- Gann Number: 88
- Grid Size: 4x4
- Confluence Score: 15
- Geometry Range: 5
- Trend Filter: ON
📊 For 4H Charts (Intraday):
- Gann Number: 44
- Grid Size: 3x3
- Confluence Score: 12-13
- Geometry Range: 3-4
- Trend Filter: ON
📊 For 15M Charts (Scalping):
- Gann Number: 22
- Grid Size: 2x2
- Confluence Score: 10-12
- Geometry Range: 2-3
- Allow Counter-Trend: Consider enabling
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📚 BEST PRACTICES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✓ Use higher confluence scores (15+) for higher probability trades
✓ Combine with volume analysis for confirmation
✓ Respect trend filter - signals with trend are stronger
✓ Watch for signals at grid boundaries (time cycle completions)
✓ Higher scores (20+) indicate exceptional setups
✓ Use alerts to catch signals in real-time
✓ Works best on liquid markets with clear swings
EXAMPLE 1: Strong Buy Signal (Score: 18)
✓ Price touched 50% level (6 pts)
✓ 1x1 Gann angle support (5 pts)
✓ At Gann 8th cycle point (3 pts)
✓ Price-Time squared (4 pts)
= High probability long entry
EXAMPLE 2: Medium Sell Signal (Score: 15)
✓ Price at 75% level (4 pts)
✓ 2x1 angle resistance (3 pts)
✓ Trend aligned downward (3 pts)
✓ Near grid boundary (3 pts)
✓ Bearish wick rejection (2 pts)
= Valid short entry
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎨 CUSTOMIZATION OPTIONS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
- Structure: Gann Number (11, 22, 44, 88, 176, 352)
- Grid: Size from 1x1 to 7x7
- Geometry: Toggle squares, triangles, angles, levels
- Optimization: Show geometry only near price (performance boost)
- Thickness: All line widths adjustable (1-5)
- Colors: Full color customization for all elements
- Scoring: Adjust all tolerance and threshold parameters
- Timing: Enable/disable Gann 8ths, Price-Time Square
- Filters: Trend filter, boundary requirement, counter-trend signals
- Display: 4 signal styles (Labels, Diamonds, Circles, Stars)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ IMPORTANT NOTES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
- This indicator is for educational purposes
- Not financial advice - always do your own research
- Past performance does not guarantee future results
- Use proper risk management and position sizing
- Combine with other analysis methods for best results
- Grid redraws when new swing high/low forms
- Signals appear in real-time based on confluence scoring
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📞 SUPPORT & UPDATES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Follow for updates and improvements. Feedback welcome!
Version 1.2 - January 2025
- Optimized geometry rendering
- Enhanced confluence scoring
- Improved visual clarity
- Performance optimizations
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
4MA / 4MA-1 Interactive Projection and Volatility Envelopehis script is a user-interactive upgrade to my original 4MA projection tool (Code 1). The goal of this version is to keep the same core behavior while adding transparent controls so you can adapt it to different symbols, timeframes, and market regimes.
At its core, the indicator tracks:
MA4 (4-period SMA) and MA4 (the 1-bar lag of MA4) to show short-term alignment and slope, and
A forward projection path plus a deviation “envelope” to visualize typical expansion vs. stretched moves vs. extreme deviations.
What’s on the chart
1) Live structure lines
MA4 and MA4 are plotted on the chart.
Their relationship provides a simple structure read:
MA4 > MA4 → bullish alignment
MA4 < MA4 → bearish alignment
2) Projection path (optional)
The script builds a forward “projection” by sampling a historical MA window and drawing that shape forward by a user-defined bar shift.
Delta-anchor option (recommended):
When enabled, the sampled shape is re-centered onto the current MA level (preserves relative movement rather than absolute price level).
Important: This projection is a visual reference model, not a promise of future price.
3) Standard deviation envelopes (optional)
Deviation bands are derived from the distribution of (close − MA4) across the sampled window, then applied around the projected path using configurable multipliers (a “ladder” of envelopes).
These envelopes are designed to help visualize:
Normal expansion zones
Momentum stretch zones
Extreme deviation zones where the model is more likely to be challenged
4) Projected cross confluence (vertical lines)
Vertical confluence lines mark where the projected MA4 and projected MA4 would intersect (bull / bear).
These are intended as forward structure landmarks, not trade signals.
5) Alerts (optional)
Alerts can be enabled for breaches of the projected deviation envelope:
Band 3 breach: momentum stretch / extension
Band 4 breach: extreme deviation / model challenged (“invalidation” zone)
Wicks or closes can be used for the breach check depending on preference.
6) Table (optional)
A compact table summarizes:
MA values
alignment status
The most recent cross context (BUY/SELL labeling here is informational labeling of the MA cross state, not a guarantee of performance)
How to use (practical workflow)
Set the market + timeframe first
Choose the symbol and timeframe you trade. This tool is designed to be tuned.
Adjust the pattern window
“Pattern Start/End (bars back)” controls what historical sample is used.
Different assets/timeframes respond best to different windows.
Toggle projection + confluence lines
If projection landmarks add clarity, keep them on.
If you want a cleaner chart, toggle them off.
Use bands as context
Movement inside the inner bands often reflects more typical expansion.
Band 3/4 areas represent progressively more stretched conditions.
Use alerts as notifications, not commands
Alerts are best used as “check the chart” prompts rather than auto-trade triggers.
Notes & disclaimers (Publishing-safe)
This script is intended for analysis and decision support.
It does not execute trades and does not guarantee outcomes.
Projections and envelopes are models and can be exceeded or invalidated by volatility.
Always use risk management and confirm with your own framework.
Change log (recommended)
v2 (Interactive Upgrade):
Added user controls for projection window and visualization
Added/expanded optional confluence markers, alerts, and presentation settings
Improved transparency and tunability across symbols/timeframes
This version is the recommended upgrade to the original release: same concept, more user control, clearer documentation, and better adaptability across markets.
Trading Sessions The sessions are individually selectable, meaning you can choose which sessions you want to display.
There is also a legend in the bottom left showing the corresponding trading hours.
Displayed sessions:
ASIA
LONDON
NEW YORK
#ZEBI
EMA 8/20 CrossoverModeled with 10k buying power
risking 5% account value per trade
take profit when 8 day EMA crosses below 20 day EMA
take long position when 8 day EMA crosses above 20 day EMA
DStrat With Alert Line Dstrat with extra lower band line specifically for alerts to trade spontaneously (without tracking daily)
HARSI RSI Shadow SHORT Strategy M1HARSI – Heikin Ashi RSI Shadow Indicator
HARSI (Heikin Ashi RSI Shadow) is a momentum-based oscillator that combines the concept of Heikin Ashi smoothing with the Relative Strength Index (RSI) to reduce market noise and highlight short-term trend strength.
Instead of plotting traditional price candles, HARSI transforms RSI values into a zero-centered oscillator (RSI − 50), allowing traders to clearly identify bullish and bearish momentum around the median line. The smoothing mechanism inspired by Heikin Ashi candles helps filter out false signals, making the indicator especially effective on lower timeframes such as M1.
The RSI Shadow reacts quickly to momentum shifts while maintaining smooth transitions, which makes it suitable for scalping and intraday trading. Key threshold levels (such as ±20 and ±30) can be used to detect momentum expansion, exhaustion, and potential continuation setups.
mua HARSI RSI Shadow Strategy M1 (Fixed)HARSI – Heikin Ashi RSI Shadow Indicator
HARSI (Heikin Ashi RSI Shadow) is a momentum-based oscillator that combines the concept of Heikin Ashi smoothing with the Relative Strength Index (RSI) to reduce market noise and highlight short-term trend strength.
Instead of plotting traditional price candles, HARSI transforms RSI values into a zero-centered oscillator (RSI − 50), allowing traders to clearly identify bullish and bearish momentum around the median line. The smoothing mechanism inspired by Heikin Ashi candles helps filter out false signals, making the indicator especially effective on lower timeframes such as M1.
The RSI Shadow reacts quickly to momentum shifts while maintaining smooth transitions, which makes it suitable for scalping and intraday trading. Key threshold levels (such as ±20 and ±30) can be used to detect momentum expansion, exhaustion, and potential continuation setups.
HARSI works best in liquid markets and can be used as a standalone momentum indicator or combined with trend filters such as moving averages or VWAP for higher-probability trades.
Key Features:
Zero-centered RSI oscillator (RSI − 50)
Heikin Ashi–style smoothing to reduce noise
Clear momentum-based entry signals
Optimized for lower timeframes (M1 scalping)
Suitable for both Spot and Futures trading
Breakout ProAdvanced breakout/breakdown indicator featuring multi-pattern detection, quality tier scoring (S/A/B/C), strength analysis (0-10), VWAP integration, multi-timeframe filters, and adaptive R-based take-profit/stop-loss framework. Includes comprehensive dashboard with real-time metrics and market regime detection.
BULL Whale Finder + BTC 1hBULL Whale Finder + BTC 1h is a long-only strategy designed to capture strong impulsive moves in Bitcoin.
It trades expansion (Whale) bars that appear in the direction of the trend, confirmed by the 200-period moving average on both 1H and 4H, with price holding above the 20-period moving average.
Entries focus on impulsive moves that originate from structural zones, not late breakouts.
Risk management is fully automated:
ATR-based initial stop
Automatic profit protection (Pay-Self)
Adds and partial exits based on the expansion-bar sequence
A protected runner managed with a trailing stop
The user only sets the risk per trade (MLPT).
All other parameters are hardcoded and locked to prevent over-optimization.
👉 Ready for backtesting, discretionary execution, or full automation.






















