Market Structure HH, HL, LH and LLit calculates zig zag.This indicator identifies key market structure points — Higher Highs (HH), Higher Lows (HL), Lower Highs (LH), and Lower Lows (LL) — using a configurable Zigzag approach. When a new HL or LH forms, it generates:
A suggested Entry level
A calculated Stop Loss (SL)
Three Take Profit (TP1, TP2, TP3) levels based on user-defined risk-reward ratios
The script shows only the most recent trade setup to keep the chart clean, and includes visual labels and alert options for both buy and sell conditions.
指標和策略
Supply/Demand Zones - Fixed v3 (Cross YES Only)This Pine Script indicator creates Supply/Demand Zones with specific filtering criteria for TradingView. Here's a comprehensive description:
Supply/Demand Zones -(Cross YES Only)
Core Functionality
Session-Based Analysis: Identifies and visualizes price ranges during user-defined time sessions
Cross Validation Filter: Only displays zones when the "Cross" condition is met (Open and Close prices cross the mid-range level)
Real-Time Monitoring: Tracks price action during active sessions and creates zones after session completion
Key Features
Time Range Configuration
Customizable session hours (start/end time with minute precision)
Timezone support (default: Europe/Bucharest)
Flexible scheduling for different trading sessions
Visual Elements
Range Border: Dotted outline showing the full session range (High to Low)
Key Levels: Horizontal lines for High, Low, and Mid-range levels
Sub-Range Zones: Shaded areas showing Open and Close price zones
Percentage Labels: Display the percentage of range occupied by Open/Close zones
Active Session Background: Blue background highlighting during active sessions
Smart Filtering System
Cross Condition: Only creates zones when:
Open < Mid AND Close > Mid (bullish cross), OR
Open > Mid AND Close < Mid (bearish cross)
This filter ensures only significant price movements that cross the session's midpoint are highlighted
Customization Options
Display Controls: Toggle visibility for borders, lines, zones, and labels
Color Schemes: Full color customization for all elements
Transparency Settings: Adjustable transparency for zone fills
Text Styling: Configurable label colors and information display
Technical Specifications
Maximum capacity: 500 boxes, 500 lines, 200 labels
Overlay indicator (draws directly on price chart)
Bar-time based positioning for accurate historical placement
Use Cases
Supply/Demand Trading: Identify key price levels where institutions may have interest
Session Analysis: Understand price behavior during specific trading hours
Breakout Detection: Focus on sessions where price crosses significant levels
Support/Resistance: Use range levels for future trade planning
What Makes It Unique
The "Cross YES Only" filter ensures that only meaningful price sessions are highlighted - those where the market shows directional bias by crossing from one side of the range to the other, indicating potential institutional interest or significant market sentiment shifts.
Liquidity Trap Zones [PhenLabs]📊 Liquidity Trap Zones
Version: PineScript™ v6
📌 Description
The goal of the Liquidity Trap Zones indicator is to try and help traders identify areas where market liquidity appears abundant but is actually thin or artificial, helping traders avoid potential fake outs and false breakouts. This advanced indicator analyzes the relationship between price wicks and volume to detect “mirage” zones where large price movements occur on low volume, indicating potential liquidity traps.
By highlighting these deceptive zones on your charts, the indicator helps traders recognize where institutional players might be creating artificial liquidity to trap retail traders. This enables more informed decision-making and better risk management when approaching key price levels.
🚀 Points of Innovation
Mirage Score Algorithm: Proprietary calculation that normalizes wick size relative to volume and average bar size
Dynamic Zone Creation: Automatically generates gradient-filled zones at trap locations with ATR-based sizing
Intelligent Zone Management: Maintains clean charts by limiting displayed zones and auto-updating existing ones
Scale-Invariant Design: Works across all assets and timeframes with intelligent normalization
Real-Time Detection: Identifies trap zones as they form, not after the fact
Volume-Adjusted Analysis: Incorporates tick volume when available for more accurate detection
🔧 Core Components
Mirage Score Calculator: Analyzes the ratio of price wicks to volume, normalized by average bar size
ATR-Based Filter: Ensures only significant price movements are considered for trap zone creation
EMA Smoothing: Reduces noise in the mirage score for clearer signals
Gradient Zone Renderer: Creates visually distinct zones with multiple opacity levels for better visibility
🔥 Key Features
Real-Time Trap Detection: Identifies liquidity mirages as they develop during live trading
Dynamic Zone Sizing: Adjusts zone height based on current market volatility (ATR)
Smart Zone Management: Automatically maintains a clean chart by limiting the number of displayed zones
Customizable Sensitivity: Fine-tune detection parameters for different market conditions
Visual Clarity: Gradient-filled zones with distinct borders for easy identification
Status Line Display: Shows current mirage score and threshold for quick reference
🎨 Visualization
Gradient Trap Zones: Purple gradient boxes with darker centers indicating trap strength
Mirage Score Line: Orange line in status area showing current liquidity quality
Threshold Reference: Gray line showing your configured detection threshold
Extended Zone Display: Zones automatically extend forward as new bars form
📖 Usage Guidelines
Detection Settings
Smoothing Length (EMA) - Default: 10 - Range: 1-50 - Description: Controls responsiveness of mirage score. Lower values make detection more sensitive to recent price action
Mirage Threshold - Default: 5.0 - Range: 0.1-20.0 - Description: Score above this level triggers trap zone creation. Higher values reduce false positives but may miss subtle traps
Filter Settings
ATR Length for Range Filter - Default: 14 - Range: 1-50 - Description: Period for volatility calculation. Standard 14 works well for most timeframes
ATR Multiplier - Default: 1.0 - Range: 0.0-5.0 - Description: Minimum bar range as multiple of ATR. Higher values filter out smaller moves
Display Settings
Zone Height Multiplier - Default: 0.5 - Range: 0.1-2.0 - Description: Controls trap zone height relative to ATR. Adjust for visual preference
Max Trap Zones - Default: 5 - Range: 1-20 - Description: Maximum zones displayed before oldest are removed. Balance clarity vs. history
✅ Best Use Cases
Identifying potential fakeout levels before entering trades
Confirming support/resistance quality by checking for liquidity traps
Avoiding stop-loss placement in trap zones where sweeps are likely
Timing entries after trap zones are cleared
Scalping opportunities when price approaches known trap zones
⚠️ Limitations
Requires volume data - less effective on instruments without reliable volume
May generate false signals during news events or genuine volume spikes
Not a standalone system - combine with price action and other indicators
Zone creation is based on historical data - future price behavior not guaranteed
💡 What Makes This Unique
First indicator to specifically target liquidity mirages using wick-to-volume analysis
Proprietary normalization ensures consistent performance across all markets
Visual gradient design makes trap zones immediately recognizable
Combines multiple volatility and volume metrics for robust detection
🔬 How It Works
1. Wick Analysis: Calculates upper and lower wicks for each bar. Normalizes by average bar size to ensure scale independence
2. Mirage Score Calculation: Divides total wick size by volume to identify thin liquidity. Applies EMA smoothing to reduce noise. Scales result for optimal visibility
3. Zone Creation: Triggers when smoothed score crosses threshold. Creates gradient boxes centered on trap bar. Sizes zones based on current ATR for market-appropriate scaling
💡 Note: Liquidity Trap Zones works best when combined with traditional support/resistance analysis and volume profile indicators. The zones highlight areas of deceptive liquidity but should not be the sole factor in trading decisions. Always use proper risk management and confirm signals with price action.
Gabriel's Weibull Stdv. SuperTrend📈 Gabriel's Weibull Stdv. SuperTrend
Description:
Gabriel’s Weibull Stdv. SuperTrend is a custom trend-following indicator that blends the statistical rigor of the Weibull Moving Average with the adaptive nature of the Standard Deviation-based SuperTrend.
This hybrid system dynamically adjusts its trend bands using a Weibull-weighted average, emphasizing more recent price action while allowing the curve to flexibly adapt based on two key Weibull parameters: Shape (k) and Scale (λ). The bands themselves are shifted by a multiple of standard deviation, offering a volatility-sensitive approach to trend detection.
🔧 Key Components:
Weibull Moving Average (WMA):
A smoothing function that assigns weights to historical prices using the Weibull distribution, controlled via Shape and Scale parameters.
SuperTrend Logic with Adaptive Bands:
Standard deviation is calculated over a user-defined length and scaled with a factor to set upper and lower thresholds around the WMA.
Trend Direction Detection:
The algorithm identifies bullish or bearish states based on crossover logic relative to the dynamic bands.
Visual Enhancements:
Bright green/red lines for SuperTrend direction.
Midpoint overlay and color-coded candles for clarity.
Filled zones between price and trend for visual emphasis.
⚙️ User Inputs:
Source: Price data to analyze (default: close).
Stdv. Length: Period for calculating standard deviation.
Factor: Multiplier to widen or narrow the SuperTrend bands.
Window Length: Lookback period for the Weibull MA.
Shape (k): Controls the skewness of the Weibull distribution.
Scale (λ): Stretches or compresses the weighting curve.
🔔 Alerts:
Long Entry Alert: Triggered when the trend flips bullish.
Short Entry Alert: Triggered when the trend flips bearish.
🧠 Use Cases:
Catch early reversals using custom-tailored smoothing.
Identify high-confidence trend shifts with dynamic volatility.
Combine with other confirmation indicators for enhanced entries.
Fear Volatility Gate [by Oberlunar]The Fear Volatility Gate by Oberlunar is a filter designed to enhance operational prudence by leveraging volatility-based risk indices. Its architecture is grounded in the empirical observation that sudden shifts in implied volatility often precede instability across financial markets. By dynamically interpreting signals from globally recognized "fear indices", such as the VIX, the indicator aims to identify periods of elevated systemic uncertainty and, accordingly, restrict or flag potential trade entries.
The rationale behind the Fear Volatility Gate is rooted in the understanding that implied volatility represents a forward-looking estimate of market risk. When volatility indices rise sharply, it reflects increased demand for options and a broader perception of uncertainty. In such contexts, price movements can become less predictable, more erratic, and often decoupled from technical structures. Rather than relying on price alone, this filter provides an external perspective—derived from derivative markets—on whether current conditions justify caution.
The indicator operates in two primary modes: single-source and composite . In the single-source configuration, a user-defined volatility index is monitored individually. In composite mode, the filter can synthesize input from multiple indices simultaneously, offering a more comprehensive macro-risk assessment. The filtering logic is adaptable, allowing signals to be combined using inclusive (ANY), strict (ALL), or majority consensus logic. This allows the trader to tailor sensitivity based on the operational context or asset class.
The indices available for selection cover a broad spectrum of market sectors. In the equity domain, the filter supports the CBOE Volatility Index ( CBOE:VIX VIX) for the S&P 500, the Nasdaq-100 Volatility Index ( CBOE:VXN VXN), the Russell 2000 Volatility Index ( CBOEFTSE:RVX RVX), and the Dow Jones Volatility Index ( CBOE:VXD VXD). For commodities, it integrates the Crude Oil Volatility Index ( CBOE:OVX ), the Gold Volatility Index ( CBOE:GVZ ), and the Silver Volatility Index ( CBOE:VXSLV ). From the fixed income perspective, it includes the ICE Bank of America MOVE Index ( OKX:MOVEUSD ), the Volatility Index for the TLT ETF ( CBOE:VXTLT VXTLT), and the 5-Year Treasury Yield Index ( CBOE:FVX.P FVX). Within the cryptocurrency space, it incorporates the Bitcoin Volmex Implied Volatility Index ( VOLMEX:BVIV BVIV), the Ethereum Volmex Implied Volatility Index ( VOLMEX:EVIV EVIV), the Deribit Bitcoin Volatility Index ( DERIBIT:DVOL DVOL), and the Deribit Ethereum Volatility Index ( DERIBIT:ETHDVOL ETHDVOL). Additionally, the user may define a custom instrument for specialized tracking.
To determine whether market conditions are considered high-risk, the indicator supports three modes of evaluation.
The moving average cross mode compares a fast Hull Moving Average to a slower one, triggering a signal when short-term volatility exceeds long-term expectations.
The Z-score mode standardizes current volatility relative to historical mean and standard deviation, identifying significant deviations that may indicate abnormal market stress.
The percentile mode ranks the current value against a historical distribution, providing a relative perspective particularly useful when dealing with non-normal or skewed distributions.
When at least one selected index meets the condition defined by the chosen mode, and if the filtering logic confirms it, the indicator can mark the trading environment as “blocked”. This status is visually highlighted through background color changes and symbolic markers on the chart. An optional tabular interface provides detailed diagnostics, including raw values, fast-slow MA comparison, Z-scores, percentile levels, and binary risk status for each active index.
The Fear Volatility Gate is not a predictive tool in itself but rather a dynamic constraint layer that reinforces discipline under conditions of macro instability. It is particularly valuable when trading systems are exposed to highly leveraged or short-duration strategies, where market noise and sentiment can temporarily override structural price behavior. By synchronizing trading signals with volatility regimes, the filter promotes a more cautious, informed approach to decision-making.
This approach does not assume that all volatility spikes are harmful or that market corrections are imminent. Rather, it acknowledges that periods of elevated implied volatility statistically coincide with increased execution risk, slippage, and spread widening, all of which may erode the profitability of even the most technically accurate setups.
Therefore, the Fear Volatility Gate acts as a protective mechanism.
Oberlunar 👁️⭐
RSI with Two BenchmarksRSI with Two Benchmark
Usage: To check Relative Momentum
Any Stock Chart With 2 Different Banchmarks ( It can be Nifty , Banknifty of any Index or Sector Index )
RSI Shift Zone [ChartPrime]OVERVIEW
RSI Shift Zone is a sentiment-shift detection tool that bridges momentum and price action. It plots dynamic channel zones directly on the price chart whenever the RSI crosses above or below critical thresholds (default: 70 for overbought, 30 for oversold). These plotted zones reveal where market sentiment likely flipped, helping traders pinpoint powerful support/resistance clusters and breakout opportunities in real time.
⯁ HOW IT WORKS
When the RSI crosses either the upper or lower level:
A new Shift Zone channel is instantly formed.
The channel’s boundaries anchor to the high and low of the candle at the moment of crossing.
A mid-line (average of high and low) is plotted for easy visual reference.
The channel remains visible on the chart for at least a user-defined minimum number of bars (default: 15) to ensure only meaningful shifts are highlighted.
The channel is color-coded to reflect bullish or bearish sentiment, adapting dynamically based on whether the RSI breached the upper or lower level. Labels with actual RSI values can also be shown inside the zone for added context.
⯁ KEY TECHNICAL DETAILS
Uses a standard RSI calculation (default length: 14).
Detects crossovers above the upper level (trend strength) and crossunders below the lower level (oversold exhaustion).
Applies the channel visually on the main chart , rather than only in the indicator pane — giving traders a precise map of where sentiment shifts have historically triggered price reactions.
Auto-clears the zone when the minimum bar length is satisfied and a new shift is detected.
⯁ USAGE
Traders can use these RSI Shift Zones as powerful tactical levels:
Treat the channel’s high/low boundaries as dynamic breakout lines — watch for candles closing beyond them to confirm fresh trend continuation.
Use the midline as an equilibrium reference for pullbacks within the zone.
Visual RSI value labels offer quick checks on whether the zone formed due to extreme overbought or oversold conditions.
CONCLUSION
RSI Shift Zone transforms a simple RSI threshold crossing into a meaningful structural tool by projecting sentiment flips directly onto the price chart. This empowers traders to see where momentum-based turning points occur and leverage those levels for breakout plays, reversals, or high-confidence support/resistance zones — all in one glance.
VectorTraderMBK 714 vertical linesVectorTraderMBK 714 vertical lines.
This TradingView indicator allows you to mark two customizable times on your chart with vertical red lines. Designed to work seamlessly on 5-minute timeframes, it draws precise vertical lines at the exact UTC times you specify in the indicator’s settings.
Key Features:
User-friendly inputs to set the hour and minute for two separate vertical lines
Automatically plots vertical lines at the selected UTC times every trading day
Compatible with charts set to the UTC timezone (UTC+0)
Lines extend vertically across the entire visible chart for easy visual reference
Ideal for marking important market sessions, news events, or specific trading windows
Use this indicator to visually track critical time points on your charts and improve your trading timing
How it works.
To setup the 714 Method,
1.Go to Indicator settings
2. Change Value of First Line Hour to 7
3. Change Value of Secound Line Hour to 8
4. Save as defaults.
HMA Trend Line (Croc Signal Line)HMA Trend Line (Croc Signal Line) — The Ultimate Hull Moving Average Trend Indicator
Full English description here:
What is the HMA Trend Line (Croc Signal Line)?
The HMA Trend Line (Croc Signal Line) is a powerful, adaptive trend indicator for TradingView, based on the Hull Moving Average (HMA). This indicator is designed to help traders identify real market trends with less lag and reduced noise compared to traditional moving averages like SMA (Simple Moving Average) and EMA (Exponential Moving Average).
Why use the HMA Trend Line?
+ Faster Trend Detection: The Hull Moving Average (HMA) responds more quickly to price action, giving you earlier buy and sell signals.
+ Smoother and Cleaner: It provides a visually clean trend line that avoids the choppiness of classic EMAs and SMAs.
+ Reduced Lag: The HMA Trend Line follows the market closer, helping you avoid late entries or exits and spot trend reversals sooner.
+ Dynamic Support and Resistance: Use the line as a dynamic support or resistance to manage trades and identify pullbacks or breakouts.
What does “Croc Signal Line” mean?
The “Croc” in Croc Signal Line stands for:
+ Clean
+ Responsive
+ Optimized
+ Curve
This highlights the unique advantage of this indicator: a curve that is both fast-reacting and smooth, helping traders focus on real trends and filter out market noise.
How does the Hull Moving Average (HMA) work?
The HMA was developed by Alan Hull and uses weighted moving averages and a unique calculation to deliver both responsiveness and smoothness. Unlike standard moving averages, the HMA reacts faster to new price moves and avoids false signals in ranging or volatile markets.
How to use the HMA Trend Line (Croc Signal Line) on TradingView?
+ Watch for price crossing above the trend line for potential bullish signals, and below for bearish signals.
+ Use on any timeframe: from 1-minute scalping to daily, weekly, or even monthly charts.
+ Works with all asset classes: Forex, stocks, indices, cryptocurrencies, commodities, and futures.
+ Combine with other indicators (like Stochastics, RSI, or volume) for confirmation and to build your unique trading strategy.
+ Adjust the Signal Line Period for your market and style: shorter periods for faster markets, longer for smoother trends.
Who should use this indicator?
+ Day traders, swing traders, and long-term investors looking for reliable, actionable trend signals.
+ Anyone seeking a cleaner, more responsive alternative to the classic moving averages.
+ Traders who want a simple, visually clear way to filter out market noise and see real price direction.
Disclaimer:
This indicator is for educational and study purposes only. Please perform your own backtesting and analysis before using it in live trading. This script does not constitute financial advice. Use at your own risk.
--------
Fibonacci Sequence Moving Average [BackQuant]Fibonacci Sequence Moving Average with Adaptive Oscillator
1. Overview
The Fibonacci Sequence Moving Average indicator is a two‑part trading framework that combines a custom moving average built from the famous Fibonacci number set with a fully featured oscillator, normalisation engine and divergence suite. The moving average half delivers an adaptive trend line that respects natural market rhythms, while the oscillator half translates that trend information into a bounded momentum stream that is easy to read, easy to compare across assets and rich in confluence signals. Everything from weighting logic to colour palettes can be customised, so the tool comfortably fits scalpers zooming into one‑minute candles as well as position traders running multi‑month trend following campaigns.
2. Core Calculation
Fibonacci periods – The default length array is 5, 8, 13, 21, 34. A single multiplier input lets you scale the whole family up or down without breaking the golden‑ratio spacing. For example a multiplier of 3 yields 15, 24, 39, 63, 102.
Component averages – Each period is passed through Simple Moving Average logic to produce five baseline curves (ma1 through ma5).
Weighting methods – You decide how those five values are blended:
• Equal weighting treats every curve the same.
• Linear weighting applies factors 1‑to‑5 so the slowest curve counts five times as much as the fastest.
• Exponential weighting doubles each step for a fast‑reacting yet still smooth line.
• Fibonacci weighting multiplies each curve by its own period value, honouring the spirit of ratio mathematics.
Smoothing engine – The blended average is then smoothed a second time with your choice of SMA, EMA, DEMA, TEMA, RMA, WMA or HMA. A short smoothing length keeps the result lively, while longer lengths create institution‑grade glide paths that act like dynamic support and resistance.
3. Oscillator Construction
Once the smoothed Fib MA is in place, the script generates a raw oscillator value in one of three flavours:
• Distance – Percentage distance between price and the average. Great for mean‑reversion.
• Momentum – Percentage change of the average itself. Ideal for trend acceleration studies.
• Relative – Distance divided by Average True Range for volatility‑aware scaling.
That raw series is pushed through a look‑back normaliser that rescales every reading into a fixed −100 to +100 window. The normalisation window defaults to 100 bars but can be tightened for fast markets or expanded to capture long regimes.
4. Visual Layer
The oscillator line is gradient‑coloured from deep red through sky blue into bright green, so you can spot subtle momentum shifts with peripheral vision alone. There are four horizontal guide lines: Extreme Bear at −50, Bear Threshold at −20, Bull Threshold at +20 and Extreme Bull at +50. Soft fills above and below the thresholds reinforce the zones without cluttering the chart.
The smoothed Fib MA can be plotted directly on price for immediate trend context, and each of the five component averages can be revealed for educational or research purposes. Optional bar‑painting mirrors oscillator polarity, tinting candles green when momentum is bullish and red when momentum is bearish.
5. Divergence Detection
The script automatically looks for four classes of divergences between price pivots and oscillator pivots:
Regular Bullish, signalling a possible bottom when price prints a lower low but the oscillator prints a higher low.
Hidden Bullish, often a trend‑continuation cue when price makes a higher low while the oscillator slips to a lower low.
Regular Bearish, marking potential tops when price carves a higher high yet the oscillator steps down.
Hidden Bearish, hinting at ongoing downside when price posts a lower high while the oscillator pushes to a higher high.
Each event is tagged with an ℝ or ℍ label at the oscillator pivot, colour‑coded for clarity. Look‑back distances for left and right pivots are fully adjustable so you can fine‑tune sensitivity.
6. Alerts
Five ready‑to‑use alert conditions are included:
• Bullish when the oscillator crosses above +20.
• Bearish when it crosses below −20.
• Extreme Bullish when it pops above +50.
• Extreme Bearish when it dives below −50.
• Zero Cross for momentum inflection.
Attach any of these to TradingView notifications and stay updated without staring at charts.
7. Practical Applications
Swing trading trend filter – Plot the smoothed Fib MA on daily candles and only trade in its direction. Enter on oscillator retracements to the 0 line.
Intraday reversal scouting – On short‑term charts let Distance mode highlight overshoots beyond ±40, then fade those moves back to mean.
Volatility breakout timing – Use Relative mode during earnings season or crypto news cycles to spot momentum surges that adjust for changing ATR.
Divergence confirmation – Layer the oscillator beneath price structure to validate double bottoms, double tops and head‑and‑shoulders patterns.
8. Input Summary
• Source, Fibonacci multiplier, weighting method, smoothing length and type
• Oscillator calculation mode and normalisation look‑back
• Divergence look‑back settings and signal length
• Show or hide options for every visual element
• Full colour and line width customisation
9. Best Practices
Avoid using tiny multipliers on illiquid assets where the shortest Fibonacci window may drop under three bars. In strong trends reduce divergence sensitivity or you may see false counter‑trend flags. For portfolio scanning set oscillator to Momentum mode, hide thresholds and colour bars only, which turns the indicator into a heat‑map that quickly highlights leaders and laggards.
10. Final Notes
The Fibonacci Sequence Moving Average indicator seeks to fuse the mathematical elegance of the golden ratio with modern signal‑processing techniques. It is not a standalone trading system, rather a multi‑purpose information layer that shines when combined with market structure, volume analysis and disciplined risk management. Always test parameters on historical data, be mindful of slippage and remember that past performance is never a guarantee of future results. Trade wisely and enjoy the harmony of Fibonacci mathematics in your technical toolkit.
calculate_quantityLibrary "calculate_quantity"
calcualate quantity for each kind of a chart
calculate_position(entry_level, lowest_low, rr)
Parameters:
entry_level (float)
lowest_low (float)
rr (int)
Marwatian TraderHello! I’m Muhammad Nauman Khan, the developer behind this binary‑trading indicator. Below is a detailed description of its purpose, underlying methodology and key features:
1. Overview
This indicator is designed specifically for Fixed‑Time Binary Trading. By analyzing incoming price data in real time, it generates a prediction—“Up” or “Down”—for the very next candle. You can apply it to any timeframe (from 1 min to 30 min), or focus on whichever timeframe yields the highest accuracy for your strategy.
2. Core Prediction Engine
To forecast the next candle’s direction, we combine multiple analytical “tools” into a unified confidence model.
3. Risk Warning
No indicator can guarantee 100 % accuracy. Always combine signals with sound money‑management rules—risk only a small percentage of your capital per trade, and never trade more than you can afford to lose.
Custom MA Crossover with Labels/*
This indicator displays two customizable moving averages (Fast and Slow),
defaulting to 10-period and 100-period respectively.
Key Features:
- You can choose between Simple Moving Average (SMA) or Exponential Moving Average (EMA).
- When the Fast MA crosses above the Slow MA, a green "BUY" label appears below the candle.
- When the Fast MA crosses below the Slow MA, a red "SELL" label appears above the candle.
- Alerts are available for both Buy and Sell crossovers.
Usage:
- Helps identify trend direction and potential entry/exit points.
- Commonly used in trend-following strategies and crossover systems.
- Suitable for all timeframes and assets.
Tip:
- You can adjust the Fast and Slow MA periods to fit your trading strategy.
- Try using this with volume or momentum indicators for confirmation.
*/
Customizable Donchian Channel with Offset Lines What makes it special for you:
- You control the offset percentages, so if someday 60/40 makes more sense—just tweak it!
- All line colors are fully customizable to suit your visual styling or layer coordination.
- Built for clarity and flexibility, right in line with your scripting ethos!
Want to add dashed lines or scale price markers in lakhs and crores next? Let’s keep sculpting!
RSI Overbought/Oversold MTFRSI Overbought / Oversold MTF — Dashboard & Alerts
What it does
This script scans up to 13 symbols at once and shows their RSI readings on three lower‑time‑frames (1 min, 5 min, 15 min).
If all three RSIs for a symbol are simultaneously above the overbought threshold or below the oversold threshold, the script:
Prints the condition (“Overbought” / “Oversold”) in a color‑coded dashboard table.
Fires a one‑per‑bar alert so you never miss the move.
Key features
Feature Details
Multi‑symbol Default list includes BTC, ETH, SOL, BNB, XRP, ADA, AVAX, AVAAI, DOGE, VIRTUAL, SUI, ALCH, LAYER (all Binance pairs). Replace or reorder in the inputs.
Triple‑time‑frame check RSI is calculated on 1 m, 5 m, 15 m for each symbol.
Customizable thresholds Set your own RSI Period, Overbought and Oversold levels. Defaults: 14 / 70 / 30.
Color‑coded dashboard Top‑right table shows:
• Symbol name
• RSI 1 m / 5 m / 15 m (red = overbought, green = oversold, white = neutral)
• Overall Status column (“Overbought”, “Oversold”, “Mixed”).
Alerts built in Triggers once per bar whenever a symbol is overbought or oversold on all three time‑frames simultaneously.
Typical use cases
Scalp alignment — Enter when all short TFs agree on overbought/oversold extremes.
Mean‑reversion spotting — Identify stretched conditions across multiple coins without switching charts.
Quick sentiment scan — Glance at the dashboard to see where momentum is heating up or cooling down.
How to use
Add to chart (overlay = false; it sits in its own pane).
Adjust symbols & thresholds in the Settings panel.
Create alerts → choose “RSI Overbought/Oversold MTF” → “Any Alert() Function Call” to receive push, email, or webhook notifications.
Note: The script queries many symbols each bar; use on lower time‑frames only if your data limits allow.
For educational purposes only — not financial advice. Always test on paper before trading live.
FVG 9:31–10:00 AM ETFVG 9:31–10:00 AM ET - Script Description
What This Script Does
This indicator finds **Fair Value Gaps (FVGs)** that form during the first 29 minutes of the U.S. stock market (9:31 AM to 10:00 AM Eastern Time). A Fair Value Gap is a price imbalance where there's a gap between candles that often becomes an important support or resistance level.
Key Features:
- **Time Window**: Only looks for FVGs between 9:31-10:00 AM ET (most important opening period)
- **One Per Day**: Finds only the first FVG that forms in this time window each day
- **Visual Display**: Draws a purple box around the gap with a clear "FVG" label
- **Price Tracking**: Monitors when price comes back to test the gap level
- **Alert System**: Sends notifications when price returns to the FVG zone
How FVGs Are Detected:
- **Bullish FVG**: When there's a gap up (low of middle candle is above high of 3rd candle back)
- **Bearish FVG**: When there's a gap down (high of middle candle is below low of 3rd candle back)
The 9:31-10:00 AM window is chosen because this is when institutions and algorithms create their biggest price moves right after market open, making these gaps very reliable.
Customization Options
User Settings
Extend FVG Box (Bars)
- **What it does**: Makes the purple box longer to the right
- **Default**: 0 (box ends right after the gap forms)
- **Options**: Any number from 0 to 100+
- **When to use**:
- Keep at 0 for clean historical view
- Set to 10-20 to track the gap during the current session
- Set higher for longer reference
Code Settings (Can Be Changed)
Time Window
- **Start**: 9:31 AM Eastern Time
- **End**: 10:00 AM Eastern Time
- **Can modify**: Change the hour/minute numbers in the code
Visual Style
- **Color**: Purple with see-through background
- **Label**: Shows "FVG" text in white
- **Can modify**: Change colors and transparency in the code
How to Use:
Setup
Chart Settings
1. Use 1-minute, 5-minute, or 15-minute charts (works best on these timeframes)
2. Apply to liquid markets like ES, NQ, major stocks, or forex pairs
3. Set the "Extend FVG Box" to your preference (start with 0 or 10)
What You'll See
- A purple box appears when an FVG forms during 9:31-10:00 AM
- Box shows the exact price levels of the gap
- "FVG" label appears on the box
- Only one FVG per day will be marked
Trading Strategies
Basic FVG Trading
1. **Wait for Formation**: Let the purple box appear during 9:31-10:00 AM
2. **Watch Price Movement**: See if price moves away from the gap
3. **Enter on Retest**: When price comes back to the purple box area, consider entering
4. **Trade Direction**:
- Bullish FVG = look for long opportunities when price retests
- Bearish FVG = look for short opportunities when price retests
Entry Methods
- **Bounce Play**: Enter when price touches the FVG box and bounces away
- **Break Play**: Enter if price strongly breaks through the FVG box
- **Rejection Play**: Enter opposite direction if price gets rejected at the FVG
Risk Management
Stop Losses
- Place stops just outside the FVG box (a few ticks beyond the gap)
- If trading a bounce, stop goes on opposite side of the gap
- If trading a break, stop goes back inside the gap
Position Sizing
- Start small until you understand how FVGs work in your market
- Bigger gaps = smaller position size (more risk)
- Smaller gaps = can use larger position size
Profit Targets
- Take profits at obvious levels like round numbers, previous highs/lows
- Consider taking half profits at 1:1 risk/reward ratio
- Let some position run if the move is strong
Best Practices
When It Works Best
- High-volume stocks and futures (ES, NQ work great)
- Normal market days without major news during the 9:31-10:00 window
- When there's clear institutional activity in the opening period
When to Be Careful
- Low-volume stocks or markets
- Major economic news releases during the time window
- Market holidays when volume is low
- Very choppy or sideways days
Alert Usage
- The script will alert you when price comes back to test the FVG
- Don't trade the alert blindly - always check the current market situation
- Use the alert as a heads-up to start watching the setup more closely
Tips for Success
- The earlier the FVG forms in the 9:31-10:00 window, often the more significant it is
- FVGs that form with high volume are usually more reliable
- Always consider the overall market direction - don't fight the main trend
- Practice on paper first to understand how FVGs behave in your chosen market
🔗 Works Best With:
✅ Liquidity Levels — Smart Swing Lows: Spot key structural lows that can fuel stop hunts and reversals.
✅ ICT Turtle Soup — Liquidity Reversal: Add a classic reversal pattern to your toolkit to catch fakeouts cleanly.
✅ ICT SMC Liquidity Grabs and OBs- Liquidity Grabs, Order Block Zones, and Fibonacci OTE Levels, allowing traders to identify institutional entry models with clean, rule-based visual signals.
This script is most valuable for day traders who want to catch institutional moves right after market open, but it can also help swing traders identify important intraday levels.
✅ ICT Macro Zones (Grey Box Version)- It tracks real-time highs and lows for each Silver Bullet session.
✅ Weekly Opening Gap (cryptonnnite)
Midnight 30min High/LowMidnight 30min High/Low — Overnight Liquidity Range Tracker
Capture the Overnight Session: A Strategic Level Identification Tool from Professional Trading Methodology
This indicator captures the high and low prices during the critical 30-minute midnight session (12:00-12:30 AM EST) and projects these levels forward as key support and resistance zones. These overnight ranges often contain significant liquidity and serve as crucial reference points for intraday price action, representing areas where institutional activity may have established important levels.
🔍 What This Script Does:
Identifies Critical Overnight Session Levels
- Automatically detects the 12:00-12:30 AM EST session window
- Captures the highest and lowest prices during this 30-minute period
- Projects these levels forward for multiple trading days
Creates Dynamic Support/Resistance Zones
- Extends midnight high/low levels as horizontal lines with customizable projection periods
- Fills the area between high and low to create a visual trading range
- Updates automatically each trading day with new overnight levels
Provides Clear Visual Reference Points
- Optional session start markers (●) highlight when the midnight session begins
- Color-coded lines distinguish between high and low levels
- Transparent fill area creates an easy-to-identify trading zone
Real-Time Level Tracking
- Updates levels in real-time during the active midnight session
- Maintains historical levels for reference and backtesting
- Compatible with data window for precise level values
⚙️ Customization Options:
Extend Days (1-30):** Control how many days forward the levels are projected (default: 5 days)
High Line Color:** Customize the midnight high line color (default: blue)
Low Line Color:** Customize the midnight low line color (default: orange)
Fill Color:** Adjust the transparency and color of the range area (default: light aqua, 80% transparency)
Show Session Markers:** Toggle yellow session start indicators on/off (default: enabled)
💡 How to Use:
Deploy on lower timeframes (1m-15m) for precise level identification and reaction monitoring**
Watch for key price interactions:
- Rejection at midnight high levels (potential resistance)
- Bounce from midnight low levels (potential support)
- Range-bound trading between the high and low levels
Combine with liquidity concepts:
- Monitor for stop hunts above/below these levels
- Look for false breakouts that snap back into the range
- Use as confluence with other ICT concepts like FVGs and Order Blocks
Strategic Applications:
- Range trading between midnight levels
- Breakout confirmation when price closes decisively outside the range
- Support/resistance validation for entry and exit planning
🔗 Combine With These Tools for Complete Market Structure Analysis:
✅ First FVG — Opening Range Fair Value Gap Detector.
✅ ICT Turtle Soup (Liquidity Reversal)— Spot stop hunts and false breakout scenarios.
✅ ICT Macro Zones (Grey Box Version)- It tracks real-time highs and lows for each Silver Bullet session.
✅ ICT SMC Liquidity Grabs and OBs- Liquidity Grabs, Order Block Zones, and Fibonacci OTE Levels, allowing traders to identify institutional entry models with clean, rule-based visual signals.
Together, these tools create a comprehensive Smart Money Concepts (SMC) framework — helping traders identify, anticipate, and capitalize on institutional-level price movements with precision and confidence during critical overnight sessions. Also, dont forget to not over-trade.
Midnight 30min High/LowMidnight 30min High/Low — Overnight Liquidity Range Tracker
Capture the Overnight Session: A Strategic Level Identification Tool from Professional Trading Methodology
This indicator captures the high and low prices during the critical 30-minute midnight session (12:00-12:30 AM EST) and projects these levels forward as key support and resistance zones. These overnight ranges often contain significant liquidity and serve as crucial reference points for intraday price action, representing areas where institutional activity may have established important levels.
🔍 What This Script Does:
Identifies Critical Overnight Session Levels
- Automatically detects the 12:00-12:30 AM EST session window
- Captures the highest and lowest prices during this 30-minute period
- Projects these levels forward for multiple trading days
Creates Dynamic Support/Resistance Zones
- Extends midnight high/low levels as horizontal lines with customizable projection periods
- Fills the area between high and low to create a visual trading range
- Updates automatically each trading day with new overnight levels
Provides Clear Visual Reference Points
- Optional session start markers (●) highlight when the midnight session begins
- Color-coded lines distinguish between high and low levels
- Transparent fill area creates an easy-to-identify trading zone
Real-Time Level Tracking
- Updates levels in real-time during the active midnight session
- Maintains historical levels for reference and backtesting
- Compatible with data window for precise level values
⚙️ Customization Options:
Extend Days (1-30):** Control how many days forward the levels are projected (default: 5 days)
High Line Color:** Customize the midnight high line color (default: blue)
Low Line Color:** Customize the midnight low line color (default: orange)
Fill Color:** Adjust the transparency and color of the range area (default: light aqua, 80% transparency)
Show Session Markers:** Toggle yellow session start indicators on/off (default: enabled)
💡 How to Use:
Deploy on lower timeframes (1m-15m) for precise level identification and reaction monitoring**
Watch for key price interactions:
- Rejection at midnight high levels (potential resistance)
- Bounce from midnight low levels (potential support)
- Range-bound trading between the high and low levels
Combine with liquidity concepts:
- Monitor for stop hunts above/below these levels
- Look for false breakouts that snap back into the range
- Use as confluence with other ICT concepts like FVGs and Order Blocks
Strategic Applications:
- Range trading between midnight levels
- Breakout confirmation when price closes decisively outside the range
- Support/resistance validation for entry and exit planning
🔗 Combine With These Tools for Complete Market Structure Analysis:
✅ First FVG — Opening Range Fair Value Gap Detector.
✅ ICT Turtle Soup (Liquidity Reversal)— Spot stop hunts and false breakout scenarios.
✅ ICT Macro Zones (Grey Box Version)- It tracks real-time highs and lows for each Silver Bullet session.
✅ ICT SMC Liquidity Grabs and OBs- Liquidity Grabs, Order Block Zones, and Fibonacci OTE Levels, allowing traders to identify institutional entry models with clean, rule-based visual signals.
Together, these tools create a comprehensive Smart Money Concepts (SMC) framework — helping traders identify, anticipate, and capitalize on institutional-level price movements with precision and confidence during critical overnight sessions. Also, dont forget to not over-trade.
Midnight 30min High/LowMidnight 30min High/Low — Overnight Liquidity Range Tracker
Capture the Overnight Session: A Strategic Level Identification Tool from Professional Trading Methodology
This indicator captures the high and low prices during the critical 30-minute midnight session (12:00-12:30 AM EST) and projects these levels forward as key support and resistance zones. These overnight ranges often contain significant liquidity and serve as crucial reference points for intraday price action, representing areas where institutional activity may have established important levels.
🔍 What This Script Does:
Identifies Critical Overnight Session Levels
- Automatically detects the 12:00-12:30 AM EST session window
- Captures the highest and lowest prices during this 30-minute period
- Projects these levels forward for multiple trading days
Creates Dynamic Support/Resistance Zones
- Extends midnight high/low levels as horizontal lines with customizable projection periods
- Fills the area between high and low to create a visual trading range
- Updates automatically each trading day with new overnight levels
Provides Clear Visual Reference Points
- Optional session start markers (●) highlight when the midnight session begins
- Color-coded lines distinguish between high and low levels
- Transparent fill area creates an easy-to-identify trading zone
Real-Time Level Tracking
- Updates levels in real-time during the active midnight session
- Maintains historical levels for reference and backtesting
- Compatible with data window for precise level values
⚙️ Customization Options:
Extend Days (1-30):** Control how many days forward the levels are projected (default: 5 days)
High Line Color:** Customize the midnight high line color (default: blue)
Low Line Color:** Customize the midnight low line color (default: orange)
Fill Color:** Adjust the transparency and color of the range area (default: light aqua, 80% transparency)
Show Session Markers:** Toggle yellow session start indicators on/off (default: enabled)
💡 How to Use:
Deploy on lower timeframes (1m-15m) for precise level identification and reaction monitoring**
Watch for key price interactions:
- Rejection at midnight high levels (potential resistance)
- Bounce from midnight low levels (potential support)
- Range-bound trading between the high and low levels
Combine with liquidity concepts:
- Monitor for stop hunts above/below these levels
- Look for false breakouts that snap back into the range
- Use as confluence with other ICT concepts like FVGs and Order Blocks
Strategic Applications:
- Range trading between midnight levels
- Breakout confirmation when price closes decisively outside the range
- Support/resistance validation for entry and exit planning
🔗 Combine With These Tools for Complete Market Structure Analysis:
✅ First FVG — Opening Range Fair Value Gap Detector.
✅ ICT Turtle Soup (Liquidity Reversal)— Spot stop hunts and false breakout scenarios
✅ ICT Macro Zones (Grey Box Version)- It tracks real-time highs and lows for each Silver Bullet session
✅ ICT SMC Liquidity Grabs and OBs- Liquidity Grabs, Order Block Zones, and Fibonacci OTE Levels, allowing traders to identify institutional entry models with clean, rule-based visual signals.
Together, these tools create a comprehensive Smart Money Concepts (SMC) framework — helping traders identify, anticipate, and capitalize on institutional-level price movements with precision and confidence during critical overnight sessions.
📊 Bot-Activated Signal OverlayThis script blends momentum, volume confirmation, and trend analysis to make signals more reliable — especially for flagged tickers you’re watching closely. You could even layer in alerts or refine the thresholds if you want a tighter grip on signal quality.
Days Since –1% Down Close“Days since last down 1% close” indicator
This is a useful tool for investors and analysts to gauge market momentum, volatility, and potential risk:
1. Measuring Market Stability and Momentum
2. Identifying Potential Overbought Conditions
3. Volatility Assessment
4. Contextualizing Seasonal or External Factors
5. Risk Management and Timing
Actionable Insight: Combine this with real-time data (e.g., VIX levels or economic releases like tomorrow’s potential market-moving news)
In summary, the "Days since last down 1% close" indicator helps investors monitor market health, spot overextension, and manage risk by providing a historical benchmark for volatility.
EMA9 vs EMA20 (Estilo MACD, eje acotado)🔷 What does it do?
Plots a moving line that represents the difference between the 9-period EMA and the 20-period EMA.
The zero level acts as the baseline (i.e., EMA20).
Every time the line crosses zero:
📈 Bullish crossover → EMA9 crosses above EMA20.
📉 Bearish crossover → EMA9 crosses below EMA20.
🔒 Visual clarity:
The chart is locked between -600 and +600, making crossovers easy to see without scaling issues.
Perfect for confirming trend direction or momentum shifts.
🔔 Built-in alerts:
You can set alerts for both bullish and bearish crossovers directly in TradingView.
🧠 MACD-inspired, but cleaner:
Instead of multiple lines and a histogram, you get one clean line moving around a fixed axis. Simple and powerful.
⚙️ Works with:
✅ TradingView (Pine Script v5)
✅ Any asset and any timeframe
📩 Want the source code? DM me and I’ll send it to you 🔧
Let me know if you'd like me to make a flyer or visual version of this too!
Gravity Trend Line with ±10% Bands🌌 Law of Gravity in Stock Trading — by Hu Liyang (胡立阳)—often called the “Godfather of Asian Stock Markets”
✦ Conceptual Origin
The “Law of Gravity” was developed by Mr. Hu Liyang, drawing an analogy between the gravitational pull in physics and the relationship between stock prices and moving averages. It is a medium-term mean reversion theory that helps traders identify rebound opportunities when prices deviate too far from their trend lines.
📈 Indicator Summary: Gravity Trend Line with ±10% Bands
🔧 How It's Calculated:
Gravity Trend Line = Average of SMA(30) and SMA(70)
Represents the fair value zone or center of gravity for price over a medium-term period.
Upper Band = Gravity Line + 10%
Lower Band = Gravity Line - 10%
A shaded zone shows the space between the upper and lower bands — your "gravity channel."
🧭How to Use It for Swing Trading (1H and 4H Charts)
1. Trend Bias Filter
If price is consistently above the Gravity Line, the trend bias is bullish.
If price is below the Gravity Line, the bias is bearish.
Use this to align your trades with the prevailing direction on 4H (macro view) and fine-tune entries on 1H.
2.Trade Entry Zones
Long Setup (buy):
Look for price near or just below the lower band (oversold zone).
Combine with bullish candles or reversal indicators (e.g., MACD bullish crossover, RSI < 30 turning up).
Confirmation: price reclaims the lower band or moves toward gravity line.
Short Setup (sell):
Look for price near or just above the upper band (overbought zone).
Combine with bearish confirmation (e.g., MACD bearish crossover, RSI > 70 turning down).
Confirmation: price starts rejecting from upper band toward gravity line.
3. Take Profit / Exit Zones
Partial TP: At the Gravity Line (mean reversion level).
Final TP: At opposite band (if price has strong momentum).
Alternatively, exit on crossback below gravity line after a long, or above it after a short.
4. Avoiding Traps
Avoid entering trades in the middle of the band (around the Gravity Line) unless there's strong breakout confirmation.
Use 4H for trend context, and 1H for entry precision.
Avoid trading against the broader gravity slope:
If gravity line is clearly sloping up, favor longs.
If sloping down, favor shorts.
📘 Example Strategy Workflow:
Timeframe:
Use 4H for directional bias
Use 1H for entries and exits
Example Long Setup (1H Chart):
Price dips below lower band while 4H trend is up.
Bullish candle forms or RSI/MACD confirms momentum shift.
Entry: price closes back above the lower band.
TP1: near gravity line.
TP2: near upper band.
Or, exit when gain hits +8% to +15%, depending on risk appetite.
📌 Final Notes:
This is a mean-reversion + trend confirmation tool — best used with additional confluence (candlestick patterns, volume, divergence).
It works well in ranging to gently trending markets — not ideal for sharp breakouts unless combined with breakout filters.
This indicator is for educational and reference purposes only.
It is not intended to be a recommendation or signal to buy or sell any security.
Use at your own discretion. Always perform your own due diligence before trading.