Minervini TT + IBD RS + ENTRY What this script does (overall)
This indicator implements a Minervini-style stock selection and entry system with mechanical risk control:
Trend Template (TT)
Uses 50 / 150 / 200 SMA alignment
Requires price to be above key moving averages
Ensures the stock is sufficiently above its 52-week low and not too far from its 52-week high
Relative Strength (IBD-style proxy vs TOPIX)
Compares the stock’s performance against TOPIX
Requires RS to be rising and making new relative highs
Detects RS breakdowns as “no-add / exit watch” warnings
ENTRY conditions (Pivot + Volume + VCP)
Breakout above a pivot high
Volume expansion on breakout
Volatility contraction using ATR% (VCP-like behavior)
Visual signals
BUY label: quality conditions pass
ENTRY label: valid breakout entry
RS BREAK label: relative strength deterioration
What was newly added / updated (important)
🔴 Mechanical stop-loss logic (NEW)
After each ENTRY signal, the script now:
Draws two horizontal stop-loss lines
SL -5% from the ENTRY bar’s high
SL -8% from the ENTRY bar’s high
Lines extend to the right automatically
Detects stop-loss touches
When price (low or close, configurable) crosses below:
SL -5% → SL5 trigger
SL -8% → SL8 trigger
Displays an upward arrow on the bar where each SL is touched
Sends alerts with fixed (const) messages
Handles multiple trades cleanly
If a stop-loss was hit and a new ENTRY appears later:
The previous SL lines are grayed out and dotted
Past exit markers (arrows) remain visible
Prevents inconsistent calculations by evaluating crossunders on every bar
👉 This enables fully mechanical, Minervini-style loss control without discretionary judgment.
Candlestick analysis
PSP with Color ThemesPSP (Price State Parity) Indicator
This indicator identifies Price State Parity between the current trading instrument and a reference asset. It visually highlights candles where price movements show significant correlation patterns.
Key Features:
Dual Mode Operation:
Divergence Mode (Default): Highlights candles where current and reference assets move in opposite directions
Convergence Mode (Inverse): Highlights candles where both assets move in the same direction
Customizable Visualization:
Separate color selection for bullish and bearish PSP candles
Adjustable transparency for optimal chart visibility
Non-PSP candles remain unchanged for clear price action reading
Flexible Reference Asset:
Compare against any TradingView symbol (crypto, forex, stocks, indices)
Default: ETH/USDT for crypto correlation analysis
Use Cases:
Crypto Correlation Trading: Spot divergence/convergence between crypto pairs
Inter-Market Analysis: Compare stocks with sector ETFs or indices
Forex Pairs Correlation: Analyze currency pair relationships
Hedging Opportunities: Identify when correlated assets decouple
How to Use:
Select your reference symbol in settings
Choose between Divergence or Convergence mode
Customize colors to match your trading style
Watch for highlighted candles indicating PSP signals
Indicator Logic:
Bullish PSP: Current candle bullish + Reference candle bearish (or same in inverse mode)
Bearish PSP: Current candle bearish + Reference candle bullish (or same in inverse mode)
PSP CANDLES PSP (Price State Parity) Indicator
This indicator identifies Price State Parity between the current trading instrument and a reference asset. It visually highlights candles where price movements show significant correlation patterns.
Key Features:
Dual Mode Operation:
Divergence Mode (Default): Highlights candles where current and reference assets move in opposite directions
Convergence Mode (Inverse): Highlights candles where both assets move in the same direction
Customizable Visualization:
Separate color selection for bullish and bearish PSP candles
Adjustable transparency for optimal chart visibility
Non-PSP candles remain unchanged for clear price action reading
Flexible Reference Asset:
Compare against any TradingView symbol (crypto, forex, stocks, indices)
Default: ETH/USDT for crypto correlation analysis
Use Cases:
Crypto Correlation Trading: Spot divergence/convergence between crypto pairs
Inter-Market Analysis: Compare stocks with sector ETFs or indices
Forex Pairs Correlation: Analyze currency pair relationships
Hedging Opportunities: Identify when correlated assets decouple
How to Use:
Select your reference symbol in settings
Choose between Divergence or Convergence mode
Customize colors to match your trading style
Watch for highlighted candles indicating PSP signals
Indicator Logic:
Bullish PSP: Current candle bullish + Reference candle bearish (or same in inverse mode)
Bearish PSP: Current candle bearish + Reference candle bullish (or same in inverse mode)
Perfect for traders analyzing inter-market relationships, correlation strategies, or looking for divergence/convergence signals between related assets.
Bullmart VWAP [LTF STR]Bullmart Discounted Momentum in conjunction with VWAP is an indicator for identifying areas of increased liquidity on lower timeframes, where stop losses and liquidations are most likely to occur.
The indicator is not designed to search for entry points "by signal". Its main task is to provide a context in which it is possible to understand where the price is moving due to liquidity.
Use Bullmart VWAP only in conjunction with Bullmart Discounted momentum
Clean EMA VWAP Trend Pullback - SrPyeA clean, confirmation-based trend pullback indicator using EMA and VWAP alignment.
Designed to reduce noise and highlight high-probability continuation setups.
Best used on 1–2 minute charts during high-liquidity sessions.
This indicator is designed as a confirmation tool, not a standalone trading system.
Good For NY Session 9:30am - 11:00am - After Lunch 1:00pm- 3:00pm
OR Optional Alerts
- Sr.Pye
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.
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
Candle Close CounterThis indicator counts how many candles have closed above, below, or exactly at a user-defined price level
starting from a specified time. It provides real-time statistics to help traders analyze price behavior
around key levels.
HOW IT WORKS:
The indicator begins counting at your chosen start time and tracks each candle's closing price relative
to your specified price level. It maintains running totals of candles that close above, below, and at
the price level, displaying this information both in a chart label and a statistics table.
PRACTICAL APPLICATIONS:
1. CONSOLIDATION ANALYSIS:
Use this tool to identify and measure consolidation patterns by placing the price level at the midpoint
of a trading range. A balanced count of candles closing above and below the midpoint suggests genuine
consolidation with no directional bias.
2. RANGE MIDPOINT MONITORING:
During consolidation phases, set the price level to the 50% retracement of the range midpoint between
the high and low. Monitor how price interacts with this level over time.
3. SUPPORT/RESISTANCE VALIDATION:
Place the price level at a key support or resistance zone and start counting from a significant market
event (news release, session open, etc.). The distribution of closes helps validate whether the level
is holding or weakening.
4. SESSION ANALYSIS:
Set the start time to the beginning of a trading session (e.g., 9:30 AM ET for regular hours) and place
the level at the opening price or previous day's close.
Evil MACD Trading System (Pine Script v6)Indicator Overview
The Evil MACD Trading System is an enhanced version of the classic MACD indicator, optimized for TradingView with Pine Script v6. It integrates trend filtering, volume confirmation, and precision signal positioning to reduce false signals and improve trading decision accuracy—distinguishing itself from the traditional 12/26/9 MACD by focusing on trend-aligned entries and exits.
Core Logic & Features
1. Enhanced MACD Calculation
Departing from the standard MACD parameters, this system uses customizable fast (default:14), slow (default:28), and signal (default:8) periods to adapt to different market volatility and asset types (stocks, futures, cryptos). The core DIF, DEA, and histogram are retained while optimized for better sensitivity to medium-term trends.
2. Trend Filtering Mechanism
A 60-period EMA (adjustable) acts as the primary trend filter, ensuring buy signals only trigger in uptrends (price above EMA) and sell signals in downtrends (price below EMA). This avoids counter-trend trades and minimizes exposure to sideways market noise.
3. Volume Confirmation (Toggleable)
The optional volume filter validates signals by requiring trading volume to exceed 120% of the 20-period average volume. This ensures entries/exits are supported by capital flow, reducing false breakouts/breakdowns.
4. Precision Signal Positioning
Signals are overlaid directly on the price chart (not the subwindow) for intuitive price correlation. Buy signals (green upward triangles + "Buy" label) attach to the bottom of candlesticks, while sell signals (red downward triangles + "Sell" label) align with candlestick highs—adjustable offset parameters let users fine-tune signal proximity to price.
Usage Guidelines
- Buy Signal: Triggered when DIF crosses above DEA, price stays above the 60-period EMA, and volume (if enabled) meets the 120% threshold.
- Sell Signal: Triggered when DIF crosses below DEA, price stays below the 60-period EMA, and volume (if enabled) meets the 120% threshold.
- Customization: Adjust MACD periods, trend filter length, volume sensitivity, and signal offset to match your trading style (scalping, swing trading) and target assets.
Compatibility & Notes
Built for Pine Script v6 (latest TradingView version) with no syntax errors. The indicator supports all timeframes and asset classes. For best results, combine with additional technical tools (support/resistance, RSI) for multi-factor confirmation. Disable the volume filter in low-liquidity markets to avoid missing valid signals.
Volume Delta Highlighted (Pane)A simple volume delta indicator that highlights blue when the bar has no wicks and white with it has only opposite end wicks ,a good confluence and visual
note :
not as accurate as the paid tradingview indicator since it uses chart data
N Option Selling 2
---
## 📌 Script Description
**NIFTY Weekly Option Seller – Regime-Based Risk-Controlled System**
This indicator is designed for **systematic weekly option selling on NIFTY**, using a **rule-based regime and scoring framework** to decide **what to sell, how aggressively to sell, and when to defend or harvest**.
The script does **not generate buy/sell signals**.
Instead, it acts as a **decision and risk-management engine** for option sellers.
---
## 🔹 Core Idea
The market is always in one of three regimes:
1. **Iron Condor (IC)** → Range / mean-reverting market
2. **Put Credit Spread (PCS)** → Bullish trending market
3. **Call Credit Spread (CCS)** → Bearish trending market
This script **scores all three regimes (0–5)** on the current chart timeframe and automatically selects the **dominant regime**.
---
## 🔹 How Scoring Works (High Level)
Each regime score is built using **price structure + volatility + momentum context**:
### PCS (Bullish bias)
* EMA alignment (8 > 13 > 34)
* ADX trend strength
* Price above VWAP
* CPR breakout
* RSI sanity checks (size is reduced in extremes)
* Daily trend confirmation
### CCS (Bearish bias)
* EMA alignment (8 < 13 < 34)
* ADX trend strength
* Price below VWAP
* CPR breakdown
* RSI sanity checks (size is reduced in extremes)
* Daily trend confirmation
### IC (Range bias)
* Low ADX (both intraday & daily)
* Price inside CPR
* Price near VWAP
* Price inside Camarilla H3–L3
* RSI near equilibrium (45–55)
A **cross-penalty system** ensures that strong trends suppress IC scores and vice-versa, preventing conflicting signals.
Scores are **smoothed** to reduce noise and avoid over-trading.
---
## 🔹 Regime Selection Logic
* The regime with the **highest score** is selected.
* If scores tie:
* **Trending markets → PCS / CCS**
* **Non-trending markets → IC**
This ensures **trend takes priority over range** when volatility expands.
---
## 🔹 Strike Selection (ATR-Based)
The script suggests **volatility-adjusted strike distances** using ATR:
* **Iron Condor:** ±1.0 × ATR
* **PCS / CCS:** ±1.25 × ATR
This adapts automatically to changing volatility instead of using fixed point distances.
---
## 🔹 Risk-First Trade Management
The script provides **three actionable alerts only**:
### 🔴 DEFEND
Triggered when:
* Price approaches short strike
* Trend breaks beyond Camarilla levels
* Volatility expansion threatens the position
→ Signals the need to **roll, widen, or convert**
### 🟢 HARVEST
Triggered when:
* Adequate price cushion exists
* Market remains range-bound or stable
→ Signals opportunity to **book profits or roll closer**
### 🔵 REGIME CHANGE
Triggered when:
* Market structure flips decisively
→ Signals need to **switch strategy bias**
A **cooldown system** prevents alert spam.
---
## 🔹 Position Sizing Philosophy
* Scores determine **directional conviction**
* RSI-based **size multiplier** automatically reduces exposure in extreme momentum conditions
* Optional **minimum lot floor** ensures participation without over-risking
* Designed to support **Risk:Reward frameworks (1:2 or 1:3)** through premium-based stop discipline
---
## 🔹 Visual & UX Features
* Background color reflects active regime and conviction
* On-chart panel displays:
* Active strategy
* Scores (IC / PCS / CCS)
* ADX & RSI
* VWAP, CPR, Camarilla levels
* Clean, non-repainting levels (previous day data)
---
## 🔹 Intended Use
* Weekly option selling (IC / PCS / CCS)
* Works best on **30m–1h charts**
* Designed for **rule-based traders**, not discretionary scalpers
* Focused on **capital preservation, consistency, and disciplined adjustments**
---
## ⚠️ Disclaimer
This script is **not financial advice**.
It is a **decision-support and risk-management tool** for experienced option sellers who already understand spreads, adjustments, and margin dynamics.
SMT + BOS + RR This indicator implements a Smart Money Theory (SMT) + Break of Structure (BOS) strategy with a fixed risk/reward ratio, synchronized between two assets. The main idea is to detect discrepancies in the movements of two symbols to identify potential accumulation and reversal zones driven by institutional activity.
Key Features:
SMT Signals:
Automatically identifies divergences between two assets (e.g., BTC and ETH), highlighting potential smart money activity.
Detects trend direction through sweeps of recent highs and lows.
BOS (Break of Structure):
Filters signals based on structure break: higher highs/lower lows.
Additional ATR-based candle size check to avoid false signals.
Entry & Position Management:
Supports long, short, or both directions.
Entry type selection: on candle close (bos_close) or retest (bos_retest).
Automatic calculation of Stop Loss at the last extreme and Take Profit based on the specified risk/reward ratio (RR).
Visualization:
Arrows displayed on the chart for buy and sell signals.
SL and TP lines for clear risk management.
SMT signals marked at the top and bottom of the chart.
Settings:
Symbol A / Symbol B — choose assets for SMT analysis.
Side — trading direction: long, short, or both.
Swing Size — pivot size for detecting local highs and lows.
Risk/Reward — RR ratio for automatic TP calculation.
Min BOS Body ATR — minimum candle body size for BOS confirmation.
Best Suited For:
Traders following Smart Money concepts and looking for market structure-based signals with controlled risk.
Hisham&Wissamsuper heroes only can use it, super heroes only can use it super heroes only can use it, super heroes only can use it super heroes only can use it, super heroes only can use it super heroes only can use it, super heroes only can use it super heroes only can use it, super heroes only can use it super heroes only can use it, super heroes only can use it super heroes only can use it, super heroes only can use it super heroes only can use it, super heroes only can use it super heroes only can use it, super heroes only can use it super heroes only can use it, super heroes only can use it super heroes only can use it, super heroes only can use it super heroes only can use it, super heroes only can use it super heroes only can use it, super heroes only can use it
LIVE PRICE + TIMER v2LIVE PRICE + CANDLE TIMER Indicator
The Live Price + Candle Timer indicator displays the current market price in a clear, fixed on-screen panel, combined with a real-time countdown to the candle close.
It is designed to help traders improve timing, discipline, and entry precision, especially on fast-moving markets like XAU/USD (Gold).
Key Features
Live Price Display
Shows the current price continuously in a clean, easy-to-read panel.
Bullish / Bearish Color Coding
Green background when the current candle is bullish
Red background when the current candle is bearish
This provides instant market sentiment at a glance.
Candle Close Countdown (mm:ss)
Displays the remaining minutes and seconds until the current candle closes, helping you avoid early entries and wait for confirmation.
Adjustable Panel Size
Choose between Small, Medium, or Large panel sizes to match your screen layout and trading style.
Candle Close Alert (Optional)
An optional alert that triggers when the candle closes, ideal for traders who enter only after candle confirmation.
Fixed Screen Position
The panel stays visible on the chart without overlapping candles, making it perfect for active intraday trading.
Best Use Cases
Gold (XAU/USD) trading
Lower timeframes (1m – 15m)
Traders who wait for candle close confirmation
Avoiding FOMO and premature entries
This indicator acts as a simple but powerful trading HUD, keeping the most important information — price direction and time — always in sight.
Anchored VWAPThe Anchored VWAP Indicator: A Dynamic Reference for Pivotal Market Events
This script implements a specialized and highly customizable trading tool known as an Anchored Volume-Weighted Average Price (VWAP). Its core innovation and primary utility lie not in a novel mathematical formula, but in its temporal flexibility. Unlike the standard VWAP, which resets at the fixed start of each trading day, this indicator allows the trader to manually define the precise moment from which the calculation begins. This transforms it from a generic daily benchmark into a powerful, event-specific dynamic support and resistance level.
What It Does and How It Works
The indicator plots a single, continuous line on the price chart. This line represents the average price paid for an asset over a specified period, weighted by trading volume, but crucially, starting from a user-chosen timestamp. The calculation follows this logic:
Anchor Point Definition: The user specifies a "Start Time" (e.g., "2024-05-22 11:45:00"). This is the anchor—the moment deemed significant for a new market phase.
Initialization: On the very first candle at or immediately after the anchor time, the indicator initializes its calculation. It uses the candle's high price and volume to set an initial value, establishing a starting point for the cumulative calculation.
Cumulative Calculation: For every subsequent candle, the script calculates the Typical Price (High + Low + Close) / 3 for that period. It then:
Adds (Typical Price * Volume) to a running cumulative total.
Adds the Volume to a running cumulative volume total.
VWAP Plotting: The anchored VWAP line for each candle is simply the cumulative total price-value divided by the cumulative total volume up to that point. The line is only plotted for the period on and after the user-defined anchor time.
How to Use It: The Strategic Application
The power of this tool is unlocked through strategic anchor point selection. It is not a standalone signal generator but a dynamic reference framework for price action. It belongs to the family of Price Action-Based, Event-Driven Analysis and Dynamic Support/Resistance methodologies. Traders use it to contextualize price movement relative to a key market "reset" event.
Common anchor points include:
Major Economic News Releases: Anchor at the exact time of a CPI, FOMC, or jobs report to see the fair-value price discovery after the news, filtering out prior, irrelevant noise.
Significant Technical Breaks: Anchor at the moment a price conclusively breaks a major trendline, a multi-month high/low, or a key chart pattern (like the neckline of a head and shoulders). The VWAP then acts as a dynamic gauge of momentum following the breakout.
Session or Shift Changes: For 24-hour markets, anchor at the open of a specific session (e.g., London Open, US Open) to analyze intra-session flow.
Instrument-Specific Events: Anchor at the start of a merger announcement, earnings call, or product launch.
Once anchored, traders interpret price interaction with the line:
Trend Validation: Price sustaining above a rising anchored VWAP (anchored at a breakout point) confirms bullish momentum. Conversely, holding below a falling VWAP confirms bearish momentum.
Dynamic Support/Resistance: In a trending move, pullbacks towards the anchored VWAP often find support (in uptrends) or resistance (in downtrends). This makes it a potential area for trend-continuation entries.
Mean Reversion & Exhaustion Signals: A sharp, high-volume move far away from the anchored VWAP may signal an overextended market, prompting watch for a reversion back to the mean (the VWAP line).
The Core Philosophy and Rationale
The underlying principle is that volume-confirmed price action following a defining event establishes a new, more relevant fair-value equilibrium. The standard daily VWAP includes all overnight or pre-event noise, which can distort the relevant average for the new market regime initiated by the event.
This anchored approach:
Filters Irrelevance: It isolates analysis to the market structure after the catalyst, providing a cleaner analytical canvas.
Respects Market Microstructure: By weighting price by volume, it acknowledges that high-volume price levels are more significant than low-volume spikes, creating a more robust and "traded" average.
Provides a Self-Adjusting Baseline: It creates a moving benchmark that evolves with the new trend, offering a continuous, objective measure of whether prices are becoming relatively "expensive" or "cheap" within the current move, not compared to the entire day.
In essence, this Anchored VWAP shifts the perspective from a fixed, time-based cycle (the trading day) to a flexible, event-based cycle. It empowers traders to draw a dynamic line in the sand at their chosen moment of structural shift, turning a simple average into a sophisticated gauge of post-event market sentiment and momentum.
Son Fiyat, Limitler ve RVOL (Garantili)This script shows you the status/condition of the latest (current) bar and the previous bar.
If your platform/package includes RVOL (Relative Volume) data, it also displays that information
Crypto RSI AdvancedThe Crypto RSI Advanced Indicator: A Multi-Dimensional Market Assessment Tool
This document outlines the unique features, functionality, implementation, and theoretical foundation of the "Crypto RSI Advanced" indicator. It is designed to be far more than a simple oscillator; it is a comprehensive analytical suite that enhances the classic Relative Strength Index (RSI) by incorporating trend-filtered signals, visual context, and real-time market state diagnostics.
Core Originality & Unique Value Proposition
The primary innovation of this script lies in its multi-layered, context-aware approach to momentum analysis. While traditional RSI indicators often generate signals based solely on crossing static levels (like 30/70), leading to false signals in strong trends, this script synthesizes four critical dimensions of information:
Momentum Value: The raw RSI reading.
Momentum Trend: The direction of the RSI itself, determined by its short-term trajectory.
Zone Persistence: Whether the RSI is coming from an overbought/oversold condition, adding conviction to breakouts.
Integrated Signal Confirmation: The use of a smoothed signal line (EMA of RSI) for additional validation.
This synthesis transforms the RSI from a standalone oscillator into a cohesive trading system framework that helps distinguish between potential reversal points and mere pauses within a strong trend.
What It Does & How It Achieves It
The indicator performs several interconnected functions, presented in a single pane below the price chart:
Enhanced RSI & Signal Line Plotting:
It calculates the standard RSI based on a user-defined source and length.
It plots a smoothed Signal Line (an EMA applied to the RSI values), which acts as a dynamic filter. Crosses between the RSI and this signal line can provide earlier or more refined entry clues than static level crosses alone.
Dynamic Visual Context and Alerts:
Colored Background Bands: The plot area is dynamically shaded to visually telegraph the market state at a glance: blue for oversold, orange for overbought, and white for the neutral zone.
Conditional RSI Line Coloring: The RSI line itself changes color based on its zone and position relative to the 50 mid-line, providing instant visual feedback on momentum strength and bias.
Multi-Tiered Signal Detection: The script identifies four distinct signal types:
Buy/Sell Signal: Triggered when the RSI crosses back inside the oversold/overbought band from an extreme. This aims to catch early reversals as momentum exits an extreme state.
Strong Buy/Strong Sell Signal: A higher-conviction signal triggered when the RSI crosses the oversold/overbought level from within the extreme zone. This suggests a more powerful shift in momentum as the market exits a deeply overextended condition.
Integrated Market Intelligence Panel:
A key original feature is the fixed information table in the top-right corner. This panel synthesizes all calculations into a concise, actionable snapshot for the latest bar, including:
Current precise RSI value.
Market State (e.g., Overbought, Bullish Bias, Neutral).
RSI Trend (Rising, Falling, Consolidating), assessing the oscillator's own momentum.
Active Signal Status (e.g., "Strong Buy", "No Signal").
Zone Intensity (e.g., "Extreme Overbought", "Normal").
Clear Level Annotation:
On the final bar, it draws labeled markers at the key levels (Oversold, Mid, Overbought) for a clean and permanent reference on the chart.
How to Use It
Application: This tool is designed for momentum confirmation, divergence spotting, and identifying potential reversal zones within a broader trend context. It is particularly useful for swing traders and position traders looking for higher-probability entry points, rather than for pure, high-frequency scalping.
Usage Guidelines:
Parameter Setup: Adjust the core RSI Length and Signal Length to match the volatility of your asset and trading timeframe. The default (14, 9) offers a balanced approach.
Signal Hierarchy: Prioritize "Strong" signals over regular signals, as they carry the added context of a zone breakout. A "Strong Buy" signal appearing in an overall uptrend on the higher timeframe presents a high-conviction scenario.
Synthesize Information: Do not trade on signals alone. Use the Information Panel for context. For example, a "Buy Signal" occurring while the panel shows "Market State: Oversold" and "RSI Trend: Rising" offers a congruent, multi-factor setup.
Visual Context: Use the colored bands and line colors for quick assessment. A blue (bullish) RSI line forming in the blue (oversold) shaded area provides immediate visual congruence for a potential long setup.
Confirmation: As with any oscillator, use this tool in conjunction with price action analysis (support/resistance, chart patterns) and other non-correlated indicators (e.g., a trend-following indicator like a moving average) to filter trades and avoid whipsaws in ranging markets.
Underlying Computational Philosophy
The script's logic is built upon the principle of "Contextual Momentum Analysis." The core premise is that the absolute value of the RSI is less important than its behavior relative to its recent state and trajectory.
Trend-Filtered Momentum: By analyzing the RSI's own trend (rsi_trend_up/down), the script introduces a crucial filter. A sell signal occurring while the RSI's internal trend is still rising may be less reliable, warning of a potential false signal.
Zone-Based Conviction: The distinction between a regular and a "Strong" signal is philosophically significant. It applies the concept of "impulse from an extreme." A reversal signal that originates from deep inside an extreme zone is considered to have more kinetic energy (conviction) than one that forms near the boundary.
Synthesis Over Isolation: The script deliberately avoids providing a single "answer." Instead, it presents multiple, simultaneous data points (value, trend, zone, signal line interaction, historical state) and presents them together in the information panel. This empowers the trader to make a reasoned decision based on a confluence of factors, mimicking the analytical process of a seasoned chartist.
In essence, this indicator automates and visualizes a sophisticated, multi-step analytical process that a trader would otherwise have to perform manually, thereby enhancing speed, consistency, and depth of market analysis.
My script// @version=6
indicator("ORB-FVG-Sweep Alert", overlay=true)
start = input.session("2300-2330", title="ORB session UTC")
level = input.float(2.0, "Min FVG size ($)")
// ---- ORB box ----
t = time(timeframe.period, start)
inRange = not na(t)
h = ta.valuewhen(inRange, high, 0)
l = ta.valuewhen(inRange, low, 0)
plot(inRange ? h : na, color=color.gray, style=plot.style_linebr)
plot(inRange ? l : na, color=color.gray, style=plot.style_linebr)
// ---- FVG detection (simplified) ----
fvg = (high < low and close < open ) or (low > high and close > open )
plotshape(fvg and math.abs(high -low ) >= level, style=shape.triangleup, location=location.belowbar, color=color.green, size=size.tiny, title="Bull FVG")
plotshape(fvg and math.abs(low -high ) >= level, style=shape.triangledown,location=location.abovebar, color=color.red, size=size.tiny, title="Bear FVG")
// ---- Sweep of ORB high/low ----
sweepHigh = high > h and close < h and high <= h
sweepLow = low < l and close > l and low >= l
plotshape(sweepHigh, style=shape.arrowdown, location=location.abovebar, color=color.maroon, size=size.small, title="Sweep High")
plotshape(sweepLow, style=shape.arrowup, location=location.belowbar, color=color.green, size=size.small, title="Sweep Low")
// ---- Combined alert condition ----
alertcondition(sweepHigh and fvg, title="Short setup", message="ORB sweep+FVG short")
alertcondition(sweepLow and fvg, title="Long setup", message="ORB sweep+FVG long")
FADE GIGA CANDLE STRAT# 🔥 FADE GIGA CANDLE STRATEGY
## Overview
The **Fade Giga Candle Strategy** is a contrarian trading indicator designed to identify extreme price movements (called "Giga Candles") and predict mean reversion opportunities. This strategy is specifically optimized for Polymarket's 15-minute crypto prediction markets (BTC, ETH, SOL, XRP) but can be applied to any timeframe.
**Core Concept:** When price makes an unusually large move with extreme RSI and high volume, it often reverses in the next period. This indicator detects those moments and signals to "fade" (bet against) the move.
---
## 📊 What Does It Do?
### Signal Generation
- **FADE BEARISH (📉)**: Detects massive green candles → Predicts price will go DOWN next
- **FADE BULLISH (📈)**: Detects massive red candles → Predicts price will go UP next
### Real-Time Stats
- Win Rate tracking
- Total Return calculation
- Expected Value (EV) analysis
- Breakeven threshold display (57.14% for 75% win / 100% loss structure)
### Visual Alerts
- Chart labels showing predictions
- Background highlighting on signal candles
- Stats table in top-right corner
- RSI indicator with overbought/oversold zones
---
## ⚙️ How It Works
### 1. Giga Candle Detection
The indicator analyzes the last 500 candles and identifies "Giga Candles" based on:
- **Body Size Percentile** (default 93rd): Only the top 7% largest candles qualify
- **Minimum Body %** (default 0.5%): Filters out noise on small moves
### 2. Confirmation Filters
Before generating a signal, the indicator checks:
**RSI Filter (Optional)**
- RSI must be ≥70 (overbought) OR ≤30 (oversold)
- Indicates price is at an extreme level
**Volume Filter (Optional)**
- Current volume must be ≥1.5x the 20-period average
- Confirms the move has conviction
### 3. Fade Logic
```
IF Giga Green Candle + RSI Extreme + High Volume
→ FADE BEARISH (predict DOWN)
IF Giga Red Candle + RSI Extreme + High Volume
→ FADE BULLISH (predict UP)
```
---
## 🎛️ Settings & Parameters
### Giga Candle Detection
| Parameter | Default | Range | Description |
|-----------|---------|-------|-------------|
| **Giga Candle Percentile** | 93.0 | 80-99 | Top X% of candles by body size. 93 = only top 7% qualify as "giga" |
| **Min Body % (Safety)** | 0.5 | 0.1-2.0 | Minimum body size as % of price. Prevents false signals on low volatility |
### RSI Filter
| Parameter | Default | Range | Description |
|-----------|---------|-------|-------------|
| **Use RSI Filter** | ON | ON/OFF | Require RSI to be extreme before signaling |
| **RSI Length** | 14 | 5-50 | Period for RSI calculation |
| **RSI Overbought** | 70 | 60-85 | Threshold for overbought condition |
| **RSI Oversold** | 30 | 15-40 | Threshold for oversold condition |
### Volume Filter
| Parameter | Default | Range | Description |
|-----------|---------|-------|-------------|
| **Use Volume Filter** | ON | ON/OFF | Require high volume before signaling |
| **Volume SMA Length** | 20 | 10-50 | Period for average volume calculation |
| **Volume Multiplier** | 1.5 | 1.0-3.0 | Current volume must be X times the average |
### Display Options
- **Show Signal Labels**: Display prediction labels on chart
- **Highlight Signal Candles**: Background color on signal bars
- **Show Stats Table**: Performance statistics in top-right
- **Enable Alerts**: Push notifications when signals occur
---
## 🚀 How to Use
### For Polymarket Trading (Recommended)
1. **Set timeframe to 15 minutes** (matches Polymarket market duration)
2. **Apply to BTC, ETH, SOL, or XRP charts**
3. **Wait for signal:**
- 📉 FADE BEARISH → Buy "DOWN" on Polymarket
- 📈 FADE BULLISH → Buy "UP" on Polymarket
4. **Hold until market resolves** (15 minutes)
5. **Track your performance** using the stats table
### For Regular Trading
1. Use on any liquid crypto market
2. When signal appears, consider entering a mean-reversion trade
3. Set stop-loss at 100% of entry (built into expected value calculation)
4. Take profit at 75% gain (matches the 57.14% breakeven math)
### Understanding the Stats Table
**Win Rate**: Your prediction accuracy percentage
- **Target: >57.14%** (breakeven for 75% win / 100% loss structure)
- Green if profitable, red if unprofitable
**Expected Value (EV)**: Average % return per trade
- **Positive EV** = Strategy is profitable long-term
- **Negative EV** = Strategy is losing long-term
- Formula: `(WinRate% × 75) - (LossRate% × 100)`
**Total Return**: Cumulative % gain/loss across all signals
---
## 📈 Interpretation Guide
### Strong Signals
✅ Large giga candle (top 3-5%)
✅ RSI >75 or <25 (very extreme)
✅ Volume >2x average
✅ Signal appears after sustained trend
✅ Win rate >60% in recent trades
### Weak Signals (Consider Skipping)
⚠️ Borderline giga candle (barely above threshold)
⚠️ RSI only slightly extreme (71 or 29)
⚠️ Volume just meets minimum (1.5x)
⚠️ Signal appears during choppy/sideways market
⚠️ Win rate <50% in recent trades
---
## 💡 Pro Tips
### 1. Timeframe Matters
- **15-min**: Best for Polymarket, captures intraday exhaustion
- **1-hour**: Better for swing trading
- **5-min**: Too noisy, not recommended
### 2. Market Context
- Works best in **trending markets** that overextend
- Less effective in **tight ranges** (consolidation)
- Avoid during **low liquidity** hours (weekends, holidays)
### 3. Filter Tuning
**More Aggressive (More Signals)**
- Lower Giga Percentile (90th)
- Disable RSI filter
- Lower volume multiplier (1.2x)
**More Conservative (Fewer, Higher Quality)**
- Raise Giga Percentile (95th)
- Tighter RSI thresholds (75/25)
- Higher volume multiplier (2.0x)
### 4. Bankroll Management
- **Never bet >5% of capital** on a single signal
- Maintain 20+ bet bankroll minimum
- Use Kelly Criterion: `Bet% = (WinRate - LossRate) / 2`
- Example: 60% win rate → Bet ~10% of bankroll
### 5. Track Your Performance
- Monitor the stats table actively
- If win rate drops below 55% for 20+ trades, **stop trading**
- If EV goes negative, **reassess filters or market conditions**
- Keep a trading journal outside the indicator
---
## ⚠️ Risk Disclosure
### Important Warnings
1. **Past performance ≠ future results**: Backtested win rates may not hold in live trading
2. **Market conditions change**: Strategy may stop working if market dynamics shift
3. **Gambler's ruin risk**: Even profitable strategies can lose multiple trades in a row
4. **Polymarket specific**:
- Carries smart contract risk
- Subject to liquidity constraints
- Markets can resolve unexpectedly
5. **Not financial advice**: This is an educational tool, not a recommendation to trade
### Best Practices
- Start with **small position sizes** to test
- Track at least **50 signals** before evaluating performance
- Consider **paper trading** first (simulated trades)
- Never trade with money you can't afford to lose
- Understand the **57.14% breakeven** requirement
---
## 🔧 Troubleshooting
### "No signals appearing"
- Check if filters are too strict (try disabling RSI/Volume filters temporarily)
- Reduce Giga Percentile to 90th
- Ensure sufficient chart history loaded (>500 candles)
### "Too many signals"
- Increase Giga Percentile to 95th
- Enable both RSI and Volume filters
- Raise volume multiplier to 2.0x
### "Win rate seems low"
- Check if you're trading during low liquidity periods
- Verify you're using 15-min timeframe for Polymarket
- Consider market is in tight consolidation (strategy works best in trends)
---
## 📚 Technical Details
### Calculations
- **Body Size**: `|close - open|`
- **Body %**: `(bodySize / open) × 100`
- **Giga Threshold**: `percentile_nearest_rank(last 500 candles, 93rd)`
- **RSI**: Standard 14-period RSI
- **Volume Ratio**: `current_volume / SMA(volume, 20)`
### Performance Tracking
- Checks if previous signal was correct after 1 bar
- Win = +75% to total return
- Loss = -100% to total return
- Win Rate = `(correct_predictions / total_signals) × 100`
---
## 🎯 Ideal Use Cases
### ✅ Perfect For:
- Polymarket 15-minute crypto prediction markets
- Mean-reversion trading on liquid crypto pairs
- Contrarian traders who fade extremes
- Systematic traders who follow rules-based signals
### ❌ Not Ideal For:
- Trend-following strategies (this is contrarian)
- Low volatility assets (needs large moves)
- Illiquid markets (won't have "giga" candles)
- Sub-5-minute scalping (too much noise)
---
## 📞 Support & Updates
**Version**: 6.0
**Last Updated**: January 2025
**Compatible With**: TradingView Pine Script v6
### Feedback Welcome
If you find this indicator useful or have suggestions for improvement, please:
- ⭐ Leave a rating
- 💬 Comment with your results
- 🚀 Share your settings for different markets
**Good luck, and trade responsibly!** 🎯
---
## Quick Start Checklist
- Set timeframe to 15 minutes
- Load BTC, ETH, SOL, or XRP chart
- Verify stats table shows in top-right
- Enable alerts for signal notifications
- Start with paper trading to validate
- Track at least 20 signals before going live
- Never bet more than 5% of bankroll per trade
- Monitor win rate and stop if <55%
**Remember: The goal is >57.14% win rate for profitability!**
Optimal Day Trading System🚥 How to Trade with ODTS
The indicator provides visual cues on the chart (triangles) and a real-time Status Table to help you make decisions.
Signal Definitions
Buy Signal (Green Triangle): Price is above the Sunya line and the Primary Cycle is trending up.
Strong Buy (Lime Triangle): All criteria are met, plus the Secondary Cycle has also turned bullish. This indicates "confluence".
Sell Signal (Red Triangle): Price is below the Sunya line and the Primary Cycle is trending down.
Strong Sell (Maroon Triangle): Both Primary and Secondary cycles are aligned with a price break below the Sunya line.
Real-Time Status Table
Located at the top right, this table gives you an instant "health check" of the current asset:
Price > Sunya: Confirms if the current price is above or below the FLD.
Cycle Dir: Shows the slope of the primary trend.
Position: Tells you if price is "Inside" the envelope (ranging) or "Above/Below" (overextended).
📈 Best Practices
Confluence is Key: The strongest trades occur when the Signal column in the table shows "STRONG BUY" or "STRONG SELL," meaning multiple cycles are in agreement.
Envelope Extremes: If the Status Table shows the Position as "ABOVE" or "BELOW" the envelope, be cautious about entering new trades, as the price may be overextended and due for a reversion to the Basis (mean).
Timeframe Synergy: Use the 15-minute timeframe for swing trade entries and the 1-minute or 5-minute for precise day trading executions.
[uxo] Delta Heatmap - Open Sourcedtheres genuinely no reason that a delta heatmap should be closed source
MA4 Alignment with Forward ProjectionThis indicator is a moving-average alignment and projection overlay built on a simple core idea:
MA4 (a 4-period moving average) represents the current short-term mean of price.
MA4 is the prior value of that same moving average, used as a 1-bar delayed reference.
From those two series, the script provides four layers of information:
Live alignment (MA4 vs MA4 )
A forward projection of a sampled historical MA pattern
Projected cross markers (vertical lines) when the projected MA4 would cross projected MA4
A compact table summarizing current alignment and the most recent live cross event
This is designed to help traders visualize:
whether short-term mean behavior is strengthening or weakening, and
where a future cross could plausibly occur if a selected historical pattern repeats.
This script is informational only and does not place trades.
Chart Setup Note (Important)
Because this tool samples a historical pattern window and projects it forward, it is important to let the chart fully load/merge historical data before interpreting the projection.
If the chart history is not fully loaded, the sampled window may be incomplete, which can shift the projection and projected cross markers.
Once the chart is fully merged, the projection remains stable and consistent during scrolling and replay.
What Makes It Different
This is not a basic “MA crossover” indicator. The core differentiator is:
The script extracts a historical MA4 pattern from a user-defined window,
shifts it forward into the future, and
marks projected future crosses between the projected MA4 and projected MA4 .
It also builds projected deviation envelopes from the sampled window and uses those envelopes for optional stretch/invalidation alerts.
How the Projection Works (Concept)
1) Sample a historical MA “pattern window”
You define a window in the past using:
Pattern Start (bars back)
Pattern End (bars back)
The script collects MA4 values across that window into an internal pattern array.
2) Shift the pattern forward
Shift Pattern Forward (bars) controls how far into the future the sampled pattern is plotted.
3) Delta-anchor projection (optional)
If Delta-anchor projection is enabled, the script projects the shape of the pattern while re-centering it around the current MA4 level.
This keeps the projection visually relevant to current price scale instead of “pasting” old absolute values.
Projected Cross Vertical Lines
When projection is enabled, the script checks for projected cross events:
Bull projected cross: projected MA4 rises through projected MA4
Bear projected cross: projected MA4 falls through projected MA4
When a projected cross occurs, a vertical line marks that projected bar as a possible timing point.
Vertical line visibility is made more consistent by using a deviation-based height (with ATR fallback) so the marker remains readable across different symbols and volatility regimes.
Projected Deviation Envelopes + Alerts (Band 3 / Band 4)
The script measures historical deviation from MA4 within the sampled window using the standard deviation of:
(close − MA4)
That deviation is then applied to the projected MA4 path to form projected envelopes:
Band 3 (Stretch): ±(StDev × 1.618 by default)
Band 4 (Invalidation): ±(StDev × 2.618 by default)
Optional alerts can trigger when price breaches these projected envelopes:
Band 3 Breach: price stretched outside the projected range
Band 4 Breach: price exceeded the larger projected boundary (often treated as invalidation context)
Alerts can be set to use wicks or close.
Table: What It Shows
The table summarizes the current state at a glance:
MA4 value
MA4 value
Alignment: Bullish / Bearish / Neutral
Most recent live cross event:
BUY (MA4 crossed above MA4 )
SELL (MA4 crossed below MA4 )
This helps confirm what you’re seeing without relying on visual estimation.
How to Use It (Simple Workflow)
Read live alignment
MA4 above MA4 = bullish bias
MA4 below MA4 = bearish bias
Enable projection for timing awareness
Turn on Projection
Watch projected cross VLines as “possible next inflection timing” markers
Use Band 3 / Band 4 as context
Band 3 breach can indicate stretch vs the projected path
Band 4 breach can indicate the projected path is less reliable (invalidation context)
Use the table for quick confirmation
It summarizes alignment and the latest live cross state.






















