TTM SqueezeUpdated TTM Squeeze — Correct AND Logic
John Carter’s classic TTM Squeeze.
There is one on here already, but it is using an OR‑based condition. The proper logic is AND for a true volatility squeeze. Both the Keltner Channel lower band and upper band must sit fully inside the Bollinger Bands. Using AND logic ensures the squeeze only triggers when volatility is genuinely compressed, producing a more accurate and reliable signal than the default implementation.
Göstergeler ve stratejiler
Mean Deviation Loop | Lyro RSThe MAD Bollinger Bands + Loops is a sophisticated technical analysis tool designed to identify and quantify market trends by combining dynamic moving averages with robust statistical dispersion measures. This indicator employs a multi-model approach, integrating Bollinger-style MAD bands, for-loop momentum scoring, and a hybrid signal system to provide traders with adaptive insights across varying market conditions.
Indicator Modes
Bollinger-Style MAD Bands
This mode calculates dynamic volatility bands around price using Mean Absolute Deviation (MAD) instead of standard deviation or RMSE. MAD offers a smoother and more outlier-resistant measure of price dispersion.
Upper Band = Dynamic Moving Average + (MAD × Multiplier)
Lower Band = Dynamic Moving Average − (MAD × Multiplier)
These bands expand and contract with market volatility, helping to identify potential breakout and breakdown zones with reduced sensitivity to extreme price spikes.
For-Loop Momentum Scoring
Momentum is evaluated by analyzing recent price behavior through a loop-based comparison system applied to a MAD-weighted price series.
A rising momentum score indicates strengthening bullish pressure
A declining momentum score signals increasing bearish dominance
This method emphasizes directional consistency rather than short-term noise.
Hybrid Combined Signal
This mode combines the outputs of the MAD Bands and For-Loop Momentum Scoring into a unified directional signal.
+1 indicates bullish conditions (green)
−1 indicates bearish conditions (red)
An average of these scores is calculated to generate a combined signal, providing a clearer and more reliable indication of overall market trend.
Practical Application
Signal Interpretation
A buy signal is generated when both the MAD Bands and For-Loop Momentum align bullishly.
A sell signal is generated when both components align bearishly.
Trend Confirmation
The Hybrid Combined Signal serves as a confirmation layer, helping traders validate trend direction and reduce the likelihood of false signals during choppy or low-volatility conditions.
⚠️ Disclaimer
This indicator is a technical analysis tool and does not guarantee results. It should be used in conjunction with additional analysis methods and proper risk management strategies. The creators of this indicator are not responsible for any financial decisions made based on its signals.
Dual MA Trendline with Angle Lock"Dual MA Trendline with Angle Lock + Multiplier Bands" is a trend-following overlay indicator that combines two moving averages (MAs), each with a special "angle lock" mechanism.
Key mechanics: Instead of plotting the raw MA directly as the main trend line, it creates a piecewise-linear trendline for each MA.
The trendline locks its slope (angle) and starting value whenever the MA's recent slope changes significantly (more than the user-defined angleThreshold).
Between these "slope reset" points, the trendline continues with constant slope (straight line segments), producing flatter, more persistent trend representations than a curving MA.
Around the locked trendline, it draws symmetric bands:Base band (1×) — always shown
Optional multiplier bands (2×, 4×, 8×) — configurable
Bands can be in percentage (volatility-adaptive) or fixed points (useful for forex/crypto with small price units or tick-based instruments).
It also plots fills between the two MAs' bands/trendlines → visually highlights:Upper zone (greenish fill)
Middle zone (blueish fill)
Lower zone (reddish fill)
In short: two independent "locked-angle trend ribbons" with multiplier deviation bands + inter-ribbon fills.
Main Use Cases
Trend direction & strength visualization
The locked-slope trendlines stay straighter and change direction less frequently than normal MAs → clearer visual read of the prevailing trend (especially useful on noisy charts).
Dynamic support/resistance zones
1× bands act as near-term dynamic S/R.
2× / 4× / 8× bands serve as progressively stronger support/resistance or "overextended" levels.
→ Many traders watch for price rejection, bounces, or acceleration once price reaches 2×–4× bands.
Mean-reversion / pullback entries (especially in ranging or mildly trending markets)
Price touching or exceeding outer multiplier bands + returning toward the trendline often signals good mean-reversion setups.
Trend-continuation / breakout filtering Price riding above the upper bands in uptrend → strong momentum continuation. Price breaking and closing outside 4×–8× bands → potential acceleration or trend exhaustion signal.
Dual-timeframe / dual-speed MA comparison MA 1 is usually longer/slower (default 128), MA 2 is shorter/faster (default 14).
The fills between them act like a "trend tunnel" — wide middle fill = strong trend, narrowing = consolidation, color changes = possible reversal.
Clean chart alternative to channels / regression / envelopes
The angle-locking creates straighter, less whipsaw-prone lines than typical Bollinger Bands, Keltner Channels, or regression channels, while still adapting to price.
Typical settings example MA1: longer period (50–200), small angle threshold → persistent major trend
MA2: shorter period (9–34), larger angle threshold → more responsive minor trend
Use percentage bands on stocks/indices, fixed points on forex/crypto with small pip values.
Overall → very popular style among traders who like clean, low-repaint trend + deviation band systems (similar spirit to SuperTrend + envelopes, but with custom slope-locking logic).
KPRSI - Hidden DivergenceThis indicator does the following steps.
1) Plots EMA(20) and checks its slope (trend)
2) Detects RSI divergence (with tolerance)
It checks divergence between the last two pivots:
3) Adds filters to create “DivBuy / DivSell” signals
A divergence alone isn’t enough. It also requires EMA alignment:
DivBuy
• Bullish divergence
• EMA slope up (emaUp)
• Price above EMA (close > ema20)
DivSell
• Bearish divergence
• EMA slope down (emaDown)
• Price below EMA (close < ema20)
LiveTracker by N&MLiveTracker is a real-time trade execution and accounting engine built on top of statistically validated backtest states.
It mirrors live trading conditions with precise fee modeling, partial take-profits, trailing stops, and liquidation logic.
Each trade is tracked with both mark-to-market PnL and “net if closed now” metrics for full transparency.
Designed as a modular Pine Script® library, it enables reliable, state-driven live execution without repainting.
EMA VWAP Pro StrategyEMA VWAP Pro Strategy - Quick Summary
What it does: Generates CALL/PUT signals for day trading (designed for SPY options on 1-5 min charts)
Entry Criteria:
EMA 9 crosses above EMA 20 → CALL
EMA 9 crosses below EMA 20 → PUT
Must be confirmed by VWAP (price above for calls, below for puts)
Requires elevated volume (1.2x average)
Needs 3 candles of confirmation
Optional: 15-min timeframe must agree
Time Filters:
Trades: 10am-12pm ET & 3-3:45pm ET only
Avoids: First 15 min after open & lunch hours
Quality Score (1-5 stars):
Higher score = stronger setup
Only shows signals rated 3+ stars
4-5 star signals highlighted as "strong"
Best for: Scalping SPY 0DTE options during high-probability windows with multiple confirmations.
historicalEngine by N&M🇬🇧 English Introduction
historicalEngine is a Pine Script library designed for advanced state-based backtesting.
It does not test a single strategy, but evaluates full market configurations (trend, structure, momentum, multi-TF context).
Each trade is linked to a unique state hash, revealing which conditions truly perform over time.
The engine computes professional metrics: PnL, win rate, expectancy, Sharpe, drawdown, reliability.
It includes dynamic TP/SL, liquidation logic, early exits, realistic fees and slippage.
Built to be modular, extensible, and efficient, it plugs into any indicator.
Goal: turn historical data into a statistical trading edge.
V1 – a solid foundation for adaptive and data-driven trading systems.
EMA Crossover Candle Color - 9/21A simple visual trend highlighter for intraday/day trading. This overlay indicator plots a fast 9-period EMA (orange) and a slower 21-period EMA (blue). Candles turn green on the exact bar where the 9 EMA crosses above the 21 EMA (bullish momentum shift), and red when the 9 EMA crosses below the 21 EMA (bearish shift). Otherwise, candles remain default. Great for spotting quick trend changes, momentum entries, or filtering chop on 5-min charts (or any timeframe). Pairs well with VWAP, volume, or price action for confluence.
Momentium Tracker with Noiuse filtersynthetic baskets scored against a rolling baseline. Can use it to track momentium up to the minute without noise from session open sor historic session impulses
MTF Session Range FibonacciMTF Session Range Fibonacci is a multi-timeframe indicator designed to map high-probability price reaction levels using a fixed intraday session range and Fibonacci projections.
The indicator first identifies a user-defined session window and records the session high and low. Once the session completes, it builds a complete Fibonacci structure from that range, including retracements and extensions above and below the session boundaries. These levels act as support, resistance, targets, and extreme reaction zones, commonly used for intraday and swing trading.
All calculations can be sourced from a higher or custom timeframe, allowing traders to project higher-timeframe structure onto lower-timeframe charts. This helps align entries with broader market context rather than relying on isolated chart data.
To provide trend confirmation, the indicator includes:
A Parabolic Weighted Moving Average (PWMA) to highlight directional bias and momentum strength.
A 50 / 200 EMA crossover system to identify potential trend shifts and dominant market direction.
Visual elements such as color-coded Fibonacci levels, informative tooltips, crossover markers, and optional fills between price and PWMA improve readability while keeping the chart structured.
This indicator is best suited for traders who rely on session-based structure, Fibonacci reactions, and multi-timeframe trend alignment, particularly in indices, forex, and futures markets.
FVG (stormbey)
📊 Overview
This indicator automatically detects and displays Fair Value Gaps (FVG) across multiple timeframes simultaneously on a single chart. FVGs are imbalances in price action that often act as support/resistance zones where price tends to return.
🎯 Key Features
• Multi-Timeframe Analysis: Monitor up to 5 different timeframes at once (Chart, 15m, 1H, 4H, Daily)
• Smart Timeframe Filtering: Automatically hides FVGs from lower timeframes than your current chart (e.g., on Daily chart, only Daily FVGs are shown)
• Inverse FVG Detection (iFVG): Optionally display inverse FVGs when original gaps are filled
• Customizable Labels: Labels displayed inside boxes showing timeframe origin
• Auto-Delete on Fill: Boxes automatically removed when price fills the gap
• Flexible Fill Detection: Choose between Close or Wick-based fill detection
⚙️ Settings
TIMEFRAMES
- Enable/disable each of the 5 timeframes independently
- Default: Chart, 15m, 1H, 4H, Daily
FVG SETTINGS
- Wait for candle close to identify FVGs
- Hide FVGs lower than current chart timeframe
- Show/Hide regular FVG and inverse FVG (iFVG)
- Filled FVG Type: Close, Wick, or None
- Max bars back to search for FVGs
LABEL SETTINGS
- Show/Hide labels
- Customize label text for each timeframe
- Label distance adjustment for extended boxes
BOX SETTINGS
- Delete boxes after fill
- Extend boxes to current bar
- Adjustable box length
- Separate colors for Bullish/Bearish FVG and iFVG
BORDER SETTINGS
- Border style: Solid, Dashed, Dotted, None
- Border width customization
- Separate border colors for FVG and iFVG
📈 How to Use
1. Add the indicator to your chart
2. Enable the timeframes you want to monitor
3. FVG boxes will automatically appear showing imbalances
4. Green boxes = Bullish FVG (potential support)
5. Red boxes = Bearish FVG (potential resistance)
6. Use these zones for potential entry/exit points
💡 Trading Tips
- Higher timeframe FVGs are generally more significant
- FVGs often get "filled" before price continues in the original direction
- Combine with other confluence factors (S/R levels, order blocks, trend)
- Use iFVG feature to spot when gaps flip from support to resistance (or vice versa)
⚠️ Disclaimer
This indicator is for educational purposes only. Always do your own research and use proper risk management. Past performance does not guarantee future results.
---
If you find this indicator helpful, please leave a like and follow for more trading tools!
Tom's Session Lows & HighsJust a simple indicator showing previous day, Asian Session & London Session lows and highs.
Mag 7 VWAP TableThe **Mag 7 VWAP Table** is a real-time monitoring dashboard for the "Magnificent Seven" stocks. It provides a clean, professional table on your chart showing whether each stock is trading above or below its daily VWAP, its current price, and its intraday performance compared to yesterday's close.
---
## **Indicator Overview**
This script acts as a **market health dashboard**. By tracking the seven most influential stocks in the NASDAQ (AAPL, MSFT, GOOGL, AMZN, NVDA, META, TSLA), it gives traders an immediate sense of market sentiment. If the majority of these stocks are "ABOVE VWAP" and green, the broader market is likely in a strong bullish state.
### **Core Utility & Value**
* **Institutional Alignment:** VWAP (Volume Weighted Average Price) is the primary benchmark used by institutional traders. Knowing if the Mag 7 are above or below this level tells you if big money is buying or selling the "generals" of the market.
* **Screen Real Estate Efficiency:** Instead of opening seven different charts, you can monitor the most important tickers in the corner of your main trading screen.
* **Performance Tracking:** Real-time percentage change allows you to spot which of the tech giants is leading or lagging during the session.
---
## **Key Technical Features**
| Feature | Description |
| --- | --- |
| **Multi-Symbol Data** | Uses `request.security` to pull live data for all seven tickers simultaneously. |
| **Precision VWAP** | Calculates VWAP from a **1-minute base** (configurable). This ensures the "Daily VWAP" is hyper-accurate and resets exactly at the session open. |
| **Visual Alerts** | Uses a color-coded system (Teal/Red) for instant visual recognition of VWAP status. |
| **Zero-Lag Table** | Built using the `table` object, which remains fixed on your screen regardless of where you scroll on the chart. |
| **Version 6 Optimized** | Written in the latest **Pine Script v6**, ensuring maximum performance and compatibility with new TradingView features. |
---
## **How to Read the Table**
1. **Stock:** The ticker symbol (NASDAQ prefix removed for cleanliness).
2. **Price:** The current live market price of the asset.
3. **VWAP Status:** * **ABOVE VWAP (Teal):** Bullish. The stock is trading higher than the average price paid by all traders today, weighted by volume.
* **BELOW VWAP (Red):** Bearish. The stock is underperforming its daily average.
4. **% Change:** The net gain or loss since yesterday's 4:00 PM EST close. Includes dynamic arrows (**▲/▼**) for quick reading.
---
## **Pro Tip for Usage**
Since these stocks represent over **40% of the NASDAQ-100's weight**, use this table as a **confluence filter**. For example, if you are looking to take a "Long" trade on the QQQ or NQ futures, you would ideally want to see at least 5 out of the 7 stocks in this table showing **"ABOVE VWAP"**.
Mag 7 VWAP TableThe **Mag 7 VWAP Table** is a real-time monitoring dashboard for the "Magnificent Seven" stocks. It provides a clean, professional table on your chart showing whether each stock is trading above or below its daily VWAP, its current price, and its intraday performance compared to yesterday's close.
---
## **Indicator Overview**
This script acts as a **market health dashboard**. By tracking the seven most influential stocks in the NASDAQ (AAPL, MSFT, GOOGL, AMZN, NVDA, META, TSLA), it gives traders an immediate sense of market sentiment. If the majority of these stocks are "ABOVE VWAP" and green, the broader market is likely in a strong bullish state.
### **Core Utility & Value**
* **Institutional Alignment:** VWAP (Volume Weighted Average Price) is the primary benchmark used by institutional traders. Knowing if the Mag 7 are above or below this level tells you if big money is buying or selling the "generals" of the market.
* **Screen Real Estate Efficiency:** Instead of opening seven different charts, you can monitor the most important tickers in the corner of your main trading screen.
* **Performance Tracking:** Real-time percentage change allows you to spot which of the tech giants is leading or lagging during the session.
---
## **Key Technical Features**
| Feature | Description |
| --- | --- |
| **Multi-Symbol Data** | Uses `request.security` to pull live data for all seven tickers simultaneously. |
| **Precision VWAP** | Calculates VWAP from a **1-minute base** (configurable). This ensures the "Daily VWAP" is hyper-accurate and resets exactly at the session open. |
| **Visual Alerts** | Uses a color-coded system (Teal/Red) for instant visual recognition of VWAP status. |
| **Zero-Lag Table** | Built using the `table` object, which remains fixed on your screen regardless of where you scroll on the chart. |
| **Version 6 Optimized** | Written in the latest **Pine Script v6**, ensuring maximum performance and compatibility with new TradingView features. |
---
## **How to Read the Table**
1. **Stock:** The ticker symbol (NASDAQ prefix removed for cleanliness).
2. **Price:** The current live market price of the asset.
3. **VWAP Status:** * **ABOVE VWAP (Teal):** Bullish. The stock is trading higher than the average price paid by all traders today, weighted by volume.
* **BELOW VWAP (Red):** Bearish. The stock is underperforming its daily average.
4. **% Change:** The net gain or loss since yesterday's 4:00 PM EST close. Includes dynamic arrows (**▲/▼**) for quick reading.
---
## **Pro Tip for Usage**
Since these stocks represent over **40% of the NASDAQ-100's weight**, use this table as a **confluence filter**. For example, if you are looking to take a "Long" trade on the QQQ or NQ futures, you would ideally want to see at least 5 out of the 7 stocks in this table showing **"ABOVE VWAP"**.
EMA CloudEMA Cloud
Description
EMA Cloud is a clean, highly customizable indicator that visualizes the relationship between 8-period and 21-period moving averages as a dynamic cloud overlay. Perfect for identifying trends, momentum shifts, and potential entry/exit zones at a glance.
🔑 Key Features
Dual EMA Support – Choose between EMA or SMA for both moving averages
Visual Cloud Overlay – Shaded cloud between EMA 8 and EMA 21 with customizable colors:
🟢 Bullish Cloud (green) when EMA 8 > EMA 21
🔴 Bearish Cloud (red) when EMA 8 < EMA 21
Adjustable Parameters – Customize EMA lengths, line widths, and cloud transparency
Toggle Display Options – Show/hide the cloud or EMA lines independently
Comprehensive Alert System – Get notified on:
EMA 8 crossing above/below EMA 21
Price crossing above/below EMA 8
Price crossing above/below EMA 21
📈 How to Use
Trend Identification – Green cloud indicates bullish momentum; red cloud signals bearish momentum
Entry Signals – Look for cloud color changes (crossovers) as potential entry points
Support/Resistance – The EMA lines within the cloud can act as dynamic support/resistance levels
Confirmation Tool – Combine with price action or other indicators for confluence
⚙️ Settings
Setting Description
EMA Type EMA or SMA
EMA 8 & 21 Length Customizable period lengths
Cloud Transparency Adjust opacity (0-100%)
Line Width Thickness of EMA lines
Colors Fully customizable bullish/bearish colors
Alerts 6 configurable alert conditions
💡 Best Practices
Works on all timeframes and all assets (stocks, forex, crypto, futures)
Lower timeframes: Use for scalping and intraday trades
Higher timeframes: Ideal for swing trading and trend following
Combine with volume analysis for stronger signals
Trade TrackerThis indicator is a lightweight trade P/L monitor that takes a manual entry price, direction (long/short), position size, and a configurable dollar value per point/tick.
It computes real-time profit/loss by comparing the current close to the entry price, converting the move into points and then dollars based on your size and tick value.
On the last bar, it draws an entry line at the specified price and renders a stacked label at that level showing Buy/Sell, size, dollar P/L (green/red), and the point P/L.
It continuously deletes and redraws the line/labels to keep the chart clean, and it also plots the entry price so the value is visible in the data window and price scale.
Z-Score STDEMA BandsZ-Score STDEMA Bands is a mean-reversion and regime-strength indicator built on normalized price deviation.
The indicator converts price into a Z-Score, measuring how many standard deviations the current price is from its moving average over a configurable lookback. This makes signals comparable across assets and timeframes.
On top of the Z-Score, the script applies an EMA of the Z-Score and dynamically builds upper and lower STDEMA bands using the rolling standard deviation of the Z-Score itself. These bands adapt to volatility in deviation, not price.
How to read it:
Z-Score (orange line): Distance from mean in standard deviations.
Horizontal levels (±1, ±2, ±3): Statistical extremes and mean-reversion zones.
Green/Red bands: EMA-based dynamic deviation envelopes.
Blue bars: Strong positive deviation (bullish expansion beyond statistical expectation).
Yellow bars: Strong negative deviation (bearish expansion beyond statistical expectation).
Use cases:
Identify overextended price conditions in a normalized framework.
Detect trend strength vs. mean-reversion (expansion outside bands).
Filter trades by statistical significance, not raw price movement.
Noise Filtererwhere is the money following/reallocating? Filterers out noise from other currencies. for example if USD is dominating, you can remove it and compare the others.
AI-Enhanced MSS HunterAI-Enhanced MSS Hunter
This indicator is a hybrid trading system that merges Mechanical Price Action (ICT Concepts) with Statistical Machine Learning (K-Nearest Neighbors). It is designed to assist traders in identifying high-probability reversals after liquidity sweeps, as well as trend-continuation entries during specific "Kill Zone" sessions.
How It Works
The script operates on a strict 3-step validation process to filter out false signals during choppy market conditions.
1. Liquidity Sweep (The Trigger) The system automatically plots the Previous Day High (PDH) and Previous Day Low (PDL).
The logic begins only when price "sweeps" (breaks) one of these key levels.
State Persistence: Once a level is swept, the system remembers this event for the remainder of the session (or until a signal fires), waiting for the market to reverse.
2. Market Structure Shift (The Setup) After a sweep, the indicator hunts for a Market Structure Shift (MSS).
It tracks dynamic Swing Highs and Swing Lows.
A signal is prepared only if price breaks a recent structural swing point in the opposite direction of the sweep (e.g., Sweep PDL -> Break Swing High).
3. AI / Machine Learning Filter (The Confirmation) To reduce false positives, the signal must be confirmed by a K-Nearest Neighbors (KNN) algorithm.
The Logic: The script analyzes the current values of RSI (14), CCI (14), and ROC (10).
The Comparison: It looks back at the last ~1,000 bars of history to find similar market conditions (neighbors).
The Prediction: If the majority of those historical "neighbors" resulted in a favorable move, the AI confirms the trade. If historical data suggests chop or reversal, the signal is blocked.
Key Features
🎯 Primary Reversal Signals (Circles)
Green Circle: Price swept PDL + Bullish MSS + AI Confirmation.
Red Circle: Price swept PDH + Bearish MSS + AI Confirmation.
♻️ Golden Zone Re-Entries (Triangles) Once a Primary Signal is active, the script tracks the new trend leg.
It automatically draws a dynamic Golden Zone (0.5 – 0.618 Fibonacci Retracement).
If price pulls back into this zone and forms a new MSS, a Re-Entry Triangle is plotted.
Invalidation: If the pullback breaks the original setup's low/high, the zone is removed to prevent bad trades.
⏰ Kill Zone Time Filters Signals are filtered by time to ensure you are trading during high-volume sessions.
Default AM Session: 08:30 – 10:00 (New York Time)
Default PM Session: 14:00 – 15:00 (New York Time)
Fully customizable in settings.
Settings Guide
Key Levels: Toggle PDH/PDL lines and customize colors.
Kill Zones: Enable/Disable time filtering and highlight background colors.
AI Settings:
K-Nearest Neighbors (k): Number of historical neighbors to compare (Default: 5).
Training Window: How far back the AI looks for patterns (Default: 1000 bars).
Visuals: Turn on/off the Golden Zone fib clouds or text labels.
Disclaimer
This tool is for educational purposes only. The "AI" component is a statistical classification algorithm based on historical momentum and does not guarantee future results. Always manage risk and use this indicator as part of a comprehensive trading plan.
All OB + FVG + Overlap Zones + Alerts (v6 safe)//@version=6
indicator(
"All OB + FVG + Overlap Zones + Alerts (v6 safe)",
overlay = true
)
// === USER INPUTS ===
maxBarsBack = input.int(500, "Max Bars Back to Display OB/FVG", minval = 1)
extendBars = input.int(10, "Extend OB/FVG Boxes Forward", minval = 1)
// === COLORS ===
bullOBColor = color.rgb(139, 0, 0) // Deep Red
bearOBColor = color.rgb(75, 0, 130) // Deep Purple
bullFVGColor = color.rgb(0, 100, 0) // Deep Green
bearFVGColor = color.rgb(184, 134, 11) // Deep Yellow
overlapColor = color.rgb(0, 255, 255) // Cyan for OB+FVG overlap
// === HELPER FUNCTION ===
inRange(offset) =>
bar_index - offset >= last_bar_index - maxBarsBack
// === ORDER BLOCK LOGIC ===
bullOB = close < open and close > open
bearOB = close > open and close < open
// === COLOR OB CANDLE ===
barcolor(
bullOB and inRange(1) ? bullOBColor :
bearOB and inRange(1) ? bearOBColor :
na,
offset = -1
)
// === DRAW EXTENDED OB BOXES ===
if bullOB and inRange(1)
box.new(
left = bar_index - 1,
right = bar_index - 1 + extendBars,
top = high ,
bottom = low ,
bgcolor = color.new(bullOBColor, 70),
border_color = bullOBColor
)
if bearOB and inRange(1)
box.new(
left = bar_index - 1,
right = bar_index - 1 + extendBars,
top = high ,
bottom = low ,
bgcolor = color.new(bearOBColor, 70),
border_color = bearOBColor
)
// === FVG LOGIC (3-candle imbalance) ===
bullFVGFormed = low > high
bearFVGFormed = high < low
// === DRAW FVG BOXES AND STORE TOP/BOTTOM ===
var float bullFVGTop = array.new_float()
var float bullFVGBot = array.new_float()
var float bearFVGTop = array.new_float()
var float bearFVGBot = array.new_float()
var box bullFVGBoxes = array.new_box()
var box bearFVGBoxes = array.new_box()
if bullFVGFormed and inRange(2)
fvgBox = box.new(
left = bar_index - 2,
right = bar_index - 2 + extendBars,
top = low,
bottom = high ,
bgcolor = color.new(bullFVGColor, 80),
border_color = bullFVGColor
)
array.push(bullFVGBoxes, fvgBox)
array.push(bullFVGTop, low)
array.push(bullFVGBot, high )
if bearFVGFormed and inRange(2)
fvgBox = box.new(
left = bar_index - 2,
right = bar_index - 2 + extendBars,
top = high,
bottom = low ,
bgcolor = color.new(bearFVGColor, 80),
border_color = bearFVGColor
)
array.push(bearFVGBoxes, fvgBox)
array.push(bearFVGTop, high)
array.push(bearFVGBot, low )
// === CHECK AND HIGHLIGHT OB + FVG OVERLAPS ===
var float overlapLevelsTop = array.new_float()
var float overlapLevelsBot = array.new_float()
if bullOB and inRange(1) and array.size(bullFVGBoxes) > 0
for i = 0 to array.size(bullFVGBoxes) - 1
obTop = high
obBot = low
fvgTop = array.get(bullFVGTop, i)
fvgBot = array.get(bullFVGBot, i)
overlapTop = math.min(obTop, fvgTop)
overlapBot = math.max(obBot, fvgBot)
if overlapTop > overlapBot
box.new(
left = bar_index - 1,
right = bar_index - 1 + extendBars,
top = overlapTop,
bottom = overlapBot,
bgcolor = color.new(overlapColor, 80),
border_color = overlapColor
)
array.push(overlapLevelsTop, overlapTop)
array.push(overlapLevelsBot, overlapBot)
if bearOB and inRange(1) and array.size(bearFVGBoxes) > 0
for i = 0 to array.size(bearFVGBoxes) - 1
obTop = high
obBot = low
fvgTop = array.get(bearFVGTop, i)
fvgBot = array.get(bearFVGBot, i)
overlapTop = math.min(obTop, fvgTop)
overlapBot = math.max(obBot, fvgBot)
if overlapTop > overlapBot
box.new(
left = bar_index - 1,
right = bar_index - 1 + extendBars,
top = overlapTop,
bottom = overlapBot,
bgcolor = color.new(overlapColor, 80),
border_color = overlapColor
)
array.push(overlapLevelsTop, overlapTop)
array.push(overlapLevelsBot, overlapBot)
// === ALERT CONDITIONS ===
overlapAlert = false
for i = 0 to array.size(overlapLevelsTop) - 1
if close <= array.get(overlapLevelsTop, i) and close >= array.get(overlapLevelsBot, i)
overlapAlert := true
// === ALERTCONDITION (v6 compatible) ===
alertcondition(overlapAlert, "OB + FVG Overlap", "⚡ Price entered an OB + FVG overlap zone! ⚡")
alertcondition(bullOB, "Bullish OB Formed", "🔴 Bullish OB formed!")
alertcondition(bearOB, "Bearish OB Formed", "🟣 Bearish OB formed!")
gilgamesh v8A simple strategy indicator ,works based on orb and other confluence ,to be traded at newyork open ,the session is from 9:30 - 11: 15
BUY SIGNAL - Green candle + Green arrow
SELL SIGNAL - Red candle + Red arrow
is momentum and impulse based day trading so tight sl and short targets but feel free to mess around or find your own edge or approach ,during development 20 pips sl , 1: 2 target (40 pips tp) looked good on GBPUSD but yet to backtest, and since it is based on Ny open should work good on indices too
NOTE
candle is always green and red above or below range and arrow always show when there is volume and momentum so taking 1 trade at a time ,adding to winner and all is up to you, its
momentum based so choppy market conditions will to rough bad days but depending on utilization the edge and setup is actually profitable
P/E Ratio (TTM)This indicator plots the trailing P/E ratio (TTM) using GAAP EPS (TTM) sourced directly from TradingView’s fundamental data. It includes valuation‑zone color coding, yearly labels, and a clean, compressed visual layout suitable for most equities.
The goal is to provide a fast, intuitive view of how expensive or cheap a stock is relative to its historical earnings power.
Note:
The indicator caps P/E values around 120 for visual clarity.
Negative P/E ratios are intentionally excluded, since P/E is undefined when EPS is negative.
You can adjust the cap or remove it entirely if you prefer a full‑range view.
This tool is especially useful for identifying periods when a company is trading at historically elevated or discounted valuation levels.






















