Volume ROC (smoothed)Description
The Volume ROC (Rate of Change) indicator is designed to measure the momentum of trading volume over a user-defined period, adjusted for the trading session length of the symbol (e.g., 8.5 hours for the FTSEMIB index). This makes it particularly useful for intraday charts where standard daily calculations might not align with actual trading days.
By focusing on volume changes rather than price, it helps identify potential shifts in market participation, such as accumulation, distribution, or unusual activity that could precede price movements.
How It Works:
Session Adjustment:
The indicator calculates the number of candles per trading day based on the input session duration (in hours) and the chart's timeframe. This ensures that the ROC and other calculations are based on "trading days" rather than calendar days, making it adaptable to markets with non-standard hours like European indices (e.g., FTSEMIB).
Daily Data Fetch:
It retrieves daily high, low, close, and volume data using "request.security" to ensure consistency across timeframes.
ROC Calculation:
The Rate of Change (ROC) is computed on volume using "ta.change" over the specified length (in days), multiplied by the candles-per-day factor for timeframe independence. By chosing the subtraction method instead of the division method we avoid distortions of the ROC below the zero line (method ok for timespans inferior to two years).
Smoothing with SMA:
A Simple Moving Average (SMA) is applied to the ROC to reduce noise and highlight trends in volume momentum.
Standard Deviation Bands:
The standard deviation of the smoothed ROC is calculated over a lookback period. Bands are plotted at +2σ (overbought) and -2σ (oversold) to provide context for extreme volume changes, similar to Bollinger Bands but applied to volume ROC.
Key Plots:
SMA Line (Orange): The smoothed ROC value. Positive values indicate increasing volume momentum; negative values suggest decreasing momentum.
Zero Line (Black Dotted): A reference line at 0, separating positive and negative ROC territories.
+2σ Band (Red Dotted): Upper overbought threshold. Crossings above this may signal excessive buying volume.
-2σ Band (Green Dotted): Lower oversold threshold. Dips below this could indicate capitulation or low interest.
Usage and Interpretation:
Trend Confirmation:
Use the SMA crossing above/below zero to confirm price trends with volume backing. For example, a rising price with positive Volume ROC suggests strong conviction.
Divergences:
Look for divergences between price and Volume ROC (e.g., price making new highs but ROC weakening), which can signal reversals.
Overbought/Oversold Signals:
The ±2σ bands act as dynamic levels. Volume ROC spiking above +2σ might precede pullbacks, while below -2σ could indicate buying opportunities.
Best Applied To:
European indices (like FTSEMIB or DAX), stocks, or futures with defined session hours. Test on intraday (e.g., 2h) and combine with price-based indicators like RSI or MACD for confluence.
Customization:
Adjust the ROC/SMA lengths for sensitivity (shorter for scalping, longer for swings). The STDEV lookback affects band width—longer periods create smoother bands.
Limitations:
Volume data can be noisy in low-liquidity symbols. This indicator assumes consistent session lengths; irregular holidays may affect accuracy. Always backtest and use with risk management.
This indicator is original and built for educational/trading purposes.
지표 및 전략
OKXJsonLibrary "OKXJson"
f_buildId(prefix, instrument)
Parameters:
prefix (string)
instrument (string)
f_utcTimestamp()
f_investmentType(internalAction, entryType, closeType)
Parameters:
internalAction (string)
entryType (string)
closeType (string)
f_build(id, okxAction, marketPosition, prevMarketPosition, instrument, signalToken, timestampUtc, investmentType, amount, maxLagSeconds)
Parameters:
id (string)
okxAction (string)
marketPosition (string)
prevMarketPosition (string)
instrument (string)
signalToken (string)
timestampUtc (string)
investmentType (string)
amount (string)
maxLagSeconds (string)
RS of long term KSTDescription
Relative Strength of KST (Know Sure Thing) momentum between a stock and a reference index (e.g., Intesa San Paolo vs. FTSEMIB).
This indicator computes the KST oscillator separately for the chart symbol and the comparative symbol, then plots the difference (stock KST minus index KST). A positive or rising value indicates the stock has stronger momentum than the benchmark.
Best used on weekly timeframes.
Features:
- Fully configurable KST parameters (ROC lengths, SMA smoothing, weights).
- Signal line (SMA of the RS of KST) for potential crossover signals.
- Zero line for reference.
Rising values or crossings above the signal line may suggest improving relative momentum.
What the Script Does
This indicator calculates the Relative Strength of the KST momentum oscillator between the current chart symbol (e.g., a stock) and a comparative symbol (default: FTSEMIB).
KST Calculation (Know Sure Thing oscillator, originally developed by Martin Pring), computes four Rate-of-Change (ROC) values with different lengths (10, 13, 15, 20 by default). Each ROC is smoothed with its own SMA. The four smoothed ROCs are weighted (weights 1, 2, 3, 4 by default) and summed to create the final KST value.
This is done separately for: The chart symbol → kst
The comparative symbol → kstSymbol
Relative Strength of KST res = kst - kstSymbol
This is a subtraction-based relative strength (difference) of the two KST values, not a ratio, as to avoid singularity (division by zero).
A rising line or value above zero means the stock’s momentum (KST) is stronger than the index’s momentum.
Plotting Plots the RS of KST as a blue line.
Overlays a gray SMA (default length 10) with cross style (acts as a signal line).
Horizontal line at zero for reference.
This is best used on weekly charts (as KST is typically a longer-term momentum indicator).
Triple EMA// Triple EMA indicator designed for TradingView free users.
// Displays 3 standard EMAs in one indicator slot.
PCR Sentiment & Max Pain by Rakesh Sharma🎯 PCR + SENTIMENT + MAX PAIN INDICATOR
Track options market sentiment to catch reversals before they happen! See where smart money is positioning through Put-Call Ratio analysis.
✨ KEY FEATURES:
- PCR (Put-Call Ratio) with visual zones
- Market Sentiment Analysis (Bullish/Bearish/Neutral)
- Max Pain Level calculation (expiry day advantage)
- Automatic Buy/Sell signals at extreme levels
- Real-time dashboard with actionable insights
- Fear & Greed gauge
- Trading action recommendations
🎯 PERFECT FOR:
Nifty, Bank Nifty, Index Options - Intraday & Swing Trading
⚡ TRADING SIGNALS:
- PCR > 1.5 = Market oversold (Fear) → BUY signal
- PCR < 0.7 = Market overbought (Greed) → SELL signal
- Extreme levels trigger STRONG signals
- Contrarian indicator - Trade against the crowd!
💡 UNIQUE ADVANTAGE:
Combines options sentiment with price action for high-probability reversals. Know when institutions are bullish or bearish!
Created by: Rakesh Sharma
Simple Trend Pullback Tool (EMA) v1.1Simple Trend Pullback Filter (EMA)
Overview This script is a lightweight, objective tool designed to filter out market noise and identify high-probability entry zones in trending markets. Built on the core principle of "The Rising Tide," it utilizes a dual-EMA cloud to visualize the trend’s health and highlight where the price is likely to find support after an overextended breakout.
How It Works
Trend Identification: The script tracks the alignment between the EMA 50 and EMA 200. When the price is consistently above this "Cloud," the market is in a confirmed uptrend.
The Pullback Logic: Instead of chasing breakouts (which often lead to FOMO-driven losses), this tool highlights the 'Mean Reversion' zone. It signals an entry when price action "pulls back" into the EMA cloud while the primary trend remains bullish.
Simplicity First: There are no laggy oscillators or repainting signals. It uses price action relative to time-weighted moving averages to keep your chart clean and your decisions logical.
Example Use Case: $CUU.V and NASDAQ:RKLB In the current market (December 2025), we see high-velocity breakouts in sectors like Space and Copper. While a stock like Copper Fox ($CUU.V) may jump 28% on merger news, this script helps traders wait for the necessary consolidation back toward the EMA 20/50 support before committing capital.
Settings
EMA 1 (Fast): Default 50 — Tracks intermediate momentum.
EMA 2 (Slow): Default 200 — The "Line in the Sand" for long-term trend direction.
Position size calculatorA clean position size calculator designed specifically for leverage traders.
It calculates your position size, potential profit, and risk-to-reward ratio (R/R) based on fixed dollar risk.
Simply enter your entry price, stop-loss, take-profit, and risk in USD to receive precise results.
The position size is currently calculated using the following risk-based formula:
Position Size = Risk ($) / Stop-Loss distance.
This approach keeps risk constant regardless of leverage.
All colors are fully customizable to seamlessly fit your chart theme.
If you have ideas for additional calculation models or if you find any issues, leave a comment and help improve the tool.
SMH_DualMomentum (ROC + Volume Trend)SMH Dual Momentum (ROC + Volume Confirmation)
This indicator identifies high-quality bullish trends by combining price momentum (Rate of Change) with volume confirmation, and exits when momentum structurally fails.
Core Logic
BUY signal
Rate of Change (ROC) over N periods is above a positive threshold (strong upside momentum)
Current volume is above its moving average (rising market participation)
SELL signal
ROC crosses below zero, indicating loss of bullish momentum
Why It Works
ROC measures the speed and strength of price movement, filtering out weak or drifting trends
Volume confirmation ensures momentum is supported by real capital flow, reducing false breakouts
Momentum-based exit avoids prolonged drawdowns and capital stagnation
Key Advantages
Focuses on trend continuation, not prediction
Filters out low-quality price moves and range-bound markets
Captures long, high-conviction trends with relatively few trades
Simple, robust rules using only price and volume
Best Use Cases
Designed for trend-driven ETFs such as SMH (Semiconductors)
Suitable for swing to position trading on daily charts
Works best in markets with strong sector rotation and institutional participation
Notes
This is a trend-following momentum tool, not a mean-reversion indicator
No stop-loss is built in; risk management should be handled externally if required
Parameters can be adjusted to match different timeframes or assets
SMH DualMomentum Signals (ROC + Volume)SMH Dual Momentum (ROC + Volume Confirmation)
This indicator identifies high-quality bullish trends by combining price momentum (Rate of Change) with volume confirmation, and exits when momentum structurally fails.
Core Logic
BUY signal
Rate of Change (ROC) over N periods is above a positive threshold (strong upside momentum)
Current volume is above its moving average (rising market participation)
SELL signal
ROC crosses below zero, indicating loss of bullish momentum
Why It Works
ROC measures the speed and strength of price movement, filtering out weak or drifting trends
Volume confirmation ensures momentum is supported by real capital flow, reducing false breakouts
Momentum-based exit avoids prolonged drawdowns and capital stagnation
Key Advantages
Focuses on trend continuation, not prediction
Filters out low-quality price moves and range-bound markets
Captures long, high-conviction trends with relatively few trades
Simple, robust rules using only price and volume
Best Use Cases
Designed for trend-driven ETFs such as SMH (Semiconductors)
Suitable for swing to position trading on daily charts
Works best in markets with strong sector rotation and institutional participation
Notes
This is a trend-following momentum tool, not a mean-reversion indicator
No stop-loss is built in; risk management should be handled externally if required
Parameters can be adjusted to match different timeframes or assets
3MA Alignment Ribbon [AlgoTraderPro]3MA Alignment Ribbon is a clean, visual trend-structure indicator based on the alignment of three moving averages.
Instead of focusing on crossovers, it highlights trend quality and direction by dynamically coloring the moving averages and the ribbon between them.
The goal is simple : See at a glance whether the market structure is bullish, bearish, or neutral.
⸻
How It Works
The indicator plots three moving averages (Fast, Medium, Slow) and evaluates their alignment:
Bullish → Fast > Medium > Slow
Bearish → Fast < Medium < Slow
Neutral → Any other configuration
The moving averages and the filled ribbon between them are automatically colored based on this alignment, making trend conditions immediately visible.
⸻
Key Features
✅Multi-MA Support
Choose between:
EMA (default)
SMA
WMA
VWMA
RMA
HMA
✅ Alignment Modes
Strict: classic Fast > Medium > Slow logic
Tolerant: requires a minimum percentage separation between averages to reduce noise in ranging markets
✅ Optional Slope Filter
Filter signals by requiring the slow MA to be rising or falling, helping avoid false trend states during flat conditions.
✅ Higher Timeframe (HTF) Ribbon
Overlay the same 3MA alignment logic from a higher timeframe on your current chart:
Fully optional
Correctly calculated on the HTF itself
Option to use confirmed HTF bars only (reduces repaint confusion)
✅ Alerts & Visual Signals
Alerts when alignment turns Bullish, Bearish, or Neutral
Optional on-chart markers when the alignment flips
✅ Custom Styling
Fully customizable colors and transparency
Designed to remain readable without cluttering the chart
⸻
How to Use It
This indicator works best as:
A trend filter for discretionary trading
A context tool for entries using other setups
A market structure overlay for scalping, swing trading, or position trading
It does not generate buy/sell signals by itself — instead, it helps you trade aligned with market structure.
⸻
Default Settings
The default lengths (50 / 100 / 200 EMA) are suitable for most markets and timeframes, including crypto, forex, indices, and equities.
MRX_M7 777//@version=5
indicator("MRX_M7 777 MTF ALERT (jgar)", overlay=true)
// === SOZLAMALAR ===
tfInput = input.timeframe("15", "Qaysi TF")
showZone = input.bool(true, "Zonani ko‘rsat / o‘chirish")
zoneColor = color.new(color.lime, 75)
// === MTF DATA (BITTA QATORDA!) ===
= request.security(syminfo.tickerid, tfInput, )
// === ENGULF ===
engulf = mtfHigh > mtfHigh and mtfLow < mtfLow
// === ZONA ===
zoneHigh = mtfHigh
zoneLow = mtfLow
// === CHARTGA CHIZISH ===
if engulf and showZone
box.new(bar_index - 1, zoneHigh, bar_index, zoneLow, bgcolor = zoneColor, border_color = color.lime)
label.new(bar_index, zoneHigh, "ENGULF " + tfInput, style = label.style_label_down, textcolor = color.white, bgcolor = color.lime)
// === ALERT ===
alertcondition(engulf, title="MTF ENGULF", message="ENGULF " + tfInput + " timeframe da sodir bo‘ldi")
Mini RSI+STOCH-RSI+RSI-DIVERGENCE @Marx_CapitalMini version of RSI + STOCHASTIC-RSI with RSI-Divergence detection - all in one, adjustable small table overlayed on your chart. The table box gives RSI and Stoch-RSI values and signals detected RSI divergences.
Uncheck 'Update only on bar close' in indicator settings if the box does not appear right away.
First Presented FVGSummary: First Presented FVG Indicator
This is a Pine Script v6 TradingView indicator that identifies and visualizes the first Fair Value Gap (FVG) that forms within configurable time windows during a trading session.
What it Does
1. Detects FVGs : Uses the classic 3-candle FVG definition:
- Bullish FVG: When low > high (gap up)
- Bearish FVG: When high < low (gap down)
2. "First Presented" Logic : For each configured time slot, it captures only the first qualifying FVG that forms—subsequent FVGs in that window are ignored.
3. Visual Display :
- Draws a colored box spanning from detection time to session end
- Optional text label showing detection time (e.g., "9:38 Tue FP FVG")
- Optional grade lines at 25%, 50%, and 75% levels within the FVG
Key Configuration
Setting Description
Timeframe Only works on 5-minute charts or lower
Timezone IANA timezone for session times (default: America/New_York)
Session Futures trading hours (default: 1800-1715)
Min FVG Size Minimum gap size in ticks to qualify
4 Time Slots Each with enable toggle, time window, and color
Default Time Slots
Slot 1 (enabled): 09:30-10:30 — lime green
Slot 2 (enabled): 13:30-14:30 — blue
Slot 3 (disabled): 13:00-13:30 — teal
Slot 4 (disabled): 14:15-14:45 — fuchsia
Technical Features
Handles cross-midnight sessions correctly
Resets all drawings at each new session
Skips the first bar of each window to ensure valid 3-candle lookback
Clamps slot windows to session boundaries
History Trading SessionsThis indicator helps visually structure the trading day by highlighting custom time zones on the chart.
It is designed for historical analysis, trading discipline, and clear separation between analysis time, active trading, and no-trade periods.
Recommended to use on 4h and below time frames.
EMA12/50 如果放空後趨勢由背景紅轉綠可以考慮常抱
抱到背景再次翻紅而比較不被雜訊洗掉
現階段指標合併在一起會出BUG
If the trend changes from red to green after shorting, consider holding for a longer period.
Hold until the background turns red again to avoid being washed out by noise.
Currently, merging them together will cause bugs.
Trading Volatility Clock⏰ TRADING VOLATILITY CLOCK - Know When the Action Happens (Anywhere in the World)
A real-time session tracker with multi-timezone support for active traders who need to know when US market volatility strikes - no matter where they are in the world. Perfect for day traders, scalpers, and anyone trading liquid US markets.
══════════════════════════════════════════════════════
📊 WHAT IT DOES
This indicator displays a live clock showing:
- Current time in YOUR selected timezone (10 major timezones supported)
- Active US market session with color-coded volatility levels
- Countdown timer showing time remaining in current session
- Preview of the next upcoming session
- Optional alerts when entering high-volatility periods
══════════════════════════════════════════════════════
🌍 MULTI-TIMEZONE SUPPORT
SESSIONS ALWAYS TRACK US MARKET HOURS (Eastern Time):
No matter which timezone you select, the sessions always trigger at the correct US market times. Perfect for international traders who want to:
• See their local time while tracking US market sessions
• Know exactly when US volatility hits in their timezone
• Plan their trading day around US market hours
SUPPORTED TIMEZONES:
• America/New_York (ET) - Eastern Time
• America/Chicago (CT) - Central Time
• America/Los_Angeles (PT) - Pacific Time
• Europe/London (GMT) - Greenwich Mean Time
• Europe/Berlin (CET) - Central European Time
• Asia/Tokyo (JST) - Japan Standard Time
• Asia/Shanghai (CST) - China Standard Time
• Asia/Hong_Kong (HKT) - Hong Kong Time
• Australia/Sydney (AEDT) - Australian Eastern Time
• UTC - Coordinated Universal Time
EXAMPLE: A trader in Tokyo selects "Asia/Tokyo"
• Clock shows: 11:30 PM JST
• Session shows: "Opening Drive" 🔥 HIGH
• They know: US market just opened (9:30 AM ET in New York)
══════════════════════════════════════════════════════
🎯 WHY IT'S USEFUL
Whether you trade futures, high-volume stocks, or ETFs, volatility isn't constant throughout the day. Knowing WHEN to expect movement is critical:
🔥 HIGH VOLATILITY (Red):
• Opening Drive (9:30-10:30 AM ET) - Highest volume of the day
• Power Hour (3:00-4:00 PM ET) - Second-highest volume, final push
⚡ MEDIUM VOLATILITY (Yellow):
• Pre-Market (8:00-9:30 AM ET) - Building momentum
• Lunch Return (1:00-2:00 PM ET) - Traders returning
• Afternoon Session (2:00-3:00 PM ET) - Trend continuation
• After Hours (4:00-5:00 PM ET) - News reactions
💤 LOW VOLATILITY (Gray):
• Overnight Grind (12:00-8:00 AM ET) - Thin volume
• Mid-Morning Chop (10:30-11:30 AM ET) - Ranges form
• Lunch Hour (11:30 AM-1:00 PM ET) - Dead zone
• Evening Fade (5:00-8:00 PM ET) - Volume dropping
══════════════════════════════════════════════════════
⚙️ CUSTOMIZATION OPTIONS
TIMEZONE SETTINGS:
• Select from 10 major timezones worldwide
• Clock automatically displays in your local time
• Sessions remain locked to US market hours
SESSION TIME CUSTOMIZATION:
• Every session boundary is adjustable (in minutes from midnight ET)
• Perfect for traders who define sessions differently
• Advanced users can create custom volatility schedules
DISPLAY OPTIONS:
• Toggle next session preview on/off
• Enable/disable high volatility alerts
• Clean, unobtrusive table display in top-right corner
══════════════════════════════════════════════════════
💡 HOW TO USE
1. Add indicator to any chart (works on all timeframes)
2. Select your timezone in Settings → Timezone Settings
3. Set your chart to 1-minute timeframe for real-time updates
4. Customize session times if needed (Settings → Session Time Customization)
5. Watch the top-right corner for live session tracking
TRADING APPLICATIONS:
• Avoid trading during dead zones (lunch hour, mid-morning chop)
• Increase position size during high volatility windows
• Set alerts for Opening Drive and Power Hour
• Plan your trading day around US market volatility schedule
• International traders can track US sessions in their local time
══════════════════════════════════════════════════════
🎓 EDUCATIONAL VALUE
This indicator teaches traders:
• Market microstructure and volume patterns
• Why certain times produce better opportunities
• How institutional flows create intraday patterns
• The importance of timing in active trading
• How to adapt US market trading to any timezone
══════════════════════════════════════════════════════
⚠️ IMPORTANT NOTES
- Works best on 1-minute charts for frequent updates
- Sessions are ALWAYS based on US Eastern Time (ET)
- Timezone selection only changes the clock display
- Clock updates when new bar closes (not tick-by-tick)
- Alerts trigger once per bar when enabled
- Perfect for international traders tracking US markets
══════════════════════════════════════════════════════
📈 BEST USED WITH
- High-volume US stocks: TSLA, NVDA, AAPL, AMD, META
- Major US ETFs: SPY, QQQ, IWM, DIA
- US Futures: ES, NQ, RTY, YM, MES, MNQ
- Any liquid US instrument with clear intraday volume patterns
══════════════════════════════════════════════════════
🌏 FOR INTERNATIONAL TRADERS
This tool is specifically designed for traders outside the US who need to:
• Track US market sessions in their local timezone
• Know when to be at their desk for US volatility
• Avoid waking up for low-volatility periods
• Maximize trading efficiency around US market hours
No more timezone confusion. No more missing the opening bell. Just set your timezone and trade with confidence.
══════════════════════════════════════════════════════
This is an open-source educational tool. Feel free to modify and adapt to your trading style!
Happy Trading! 🚀
MACD + Divergence Indicator [Dynamic Filter]Title: MACD + Divergence
Description: This is an enhanced momentum analysis suite based on the classic Moving Average Convergence Divergence (MACD). It addresses the common weakness of the standard MACD—false signals during low-volatility consolidation—by integrating a Dynamic Volatility Filter and a Multi-Timeframe (MTF) Dashboard.
The Problem It Solves: Standard MACD indicators often generate "whipsaw" crossovers when the market is ranging (moving sideways). Traders often struggle to identify these consolidation zones until it is too late. This script solves this by calculating a dynamic "Consolidation Zone" based on Standard Deviation, visually warning traders when momentum is too weak to be reliable.
Key Features:
1. Dynamic Consolidation Filter (The Grey Zone)
The script calculates Upper and Lower bands around the MACD line using Standard Deviation (Volatility).
Grey Fill: When the MACD line is inside the grey bands, the market is in a "Squeeze" or low-volatility consolidation. Crossovers in this zone are often lower probability.
Breakout: When the MACD line exits the bands, it indicates a volatility expansion and a potentially stronger trend.
2. Automated Divergence Detection
Automatically scans for both Regular (Reversal) and Hidden (Continuation) divergences between Price and Momentum.
Bullish: Marked with Green lines/labels.
Bearish: Marked with Red lines/labels.
Customization: You can choose to calculate divergence based on the MACD Line or the Histogram via settings.
3. Multi-Timeframe (MTF) Dashboard
A customizable information table (optional) displays the MACD state across 4 different timeframes (e.g., 15m, 1H, 4H, Daily).
It checks for Trend Alignment (e.g., are all timeframes Bullish?) to help you trade in the direction of the higher timeframes.
4. Enhanced Visuals
4-Color Histogram: Visualizes momentum growing (bright) vs. momentum fading (pale) for both bullish and bearish phases.
Line Highlights: The MACD and Signal lines are clearly distinct, with configurable smoothing options (EMA/SMA).
Settings Guide:
Consolidation Filter: Increase the Dynamic Filter Multiplier (Default: 0.5) to widen the grey zone if you want to filter out more noise.
Oscillator Source: Switch between "MACD Line" or "Histogram" for divergence detection depending on your strategy.
Table: You can toggle the dashboard on/off or change its position to fit your chart layout.
Credits: Base MACD logic derived from standard technical analysis concepts. Dynamic filtering logic adapted from volatility band theories.
EURUSD Pre-London Open Range MarkerEURUSD Pre-London Open Range Marker
This script marks the high and low formed in the pre-London open period on EURUSD, and extends those levels forward once London opens.
It is intended as a neutral reference tool for traders who pay attention to time-based structure around the London session.
What it does
Automatically tracks London time, including daylight-saving changes
Identifies the pre-London open range
Plots the high and low of that range
Extends those levels forward from the London open
Displays the range size (pips)
What it does not do
No trade signals
No alerts
No entries, stops, or targets
No performance claims
This script provides structure only. Interpretation and execution are left to the user.
Intended use
This tool is for traders who:
Trade EURUSD
Care about London session behaviour
Prefer simple, time-based reference levels over indicators
Scope and design
Hard-coded for EURUSD
Pre-London open window is fixed and not user-configurable
Built to prioritise consistency and repeatability over flexibility
Additional context
I use this pre-London range as part of a fully documented, rules-based EURUSD trading system focused on risk management and repeatable execution which I have traded for two years.
The strategy itself is not included here.
Disclaimer
This script is provided for educational and reference purposes only.
All trading involves risk. You are responsible for your own decisions.
One-line link
For those interested in how this range is used within a complete, rules-based EURUSD trading system, further documentation is available here:
Nifty Hierarchical Macro GuardOverview
The Nifty Hierarchical Macro Guard is a "Market Compass" indicator specifically designed for Indian equity traders. It locks its logic to the Nifty 50 Index (NSE:NIFTY) and applies a strict hierarchy of trend analysis. The goal is simple: prioritize the long-term trend (Monthly/Weekly) to decide if you should even be in the market, then use the short-term trend (Daily) for precise exit timing.
This script ensures you never ignore a macro "crash" signal while trying to trade minor daily fluctuations.
The Color Hierarchy (Priority Logic)
The indicator uses a "Top-Down" filter. Higher timeframe signals override lower timeframe signals:
Level 1: Monthly (Ultra-Macro) — Deep Maroon
Condition: Nifty 10 EMA is below the 20 EMA on the Monthly chart.
Action: This is the highest priority. The background will turn Deep Maroon, overriding all other colors. This is your "Forget Trading" signal. The long-term structural trend is broken.
Level 2: Weekly (Macro Warning) — Dark Red
Condition: Monthly is Bullish, but Nifty 10 EMA is below the 20 EMA on the Weekly chart.
Action: The background turns Dark Red. This indicates a significant macro correction. You should stay out of fresh positions and protect capital.
Level 3: Daily (Tactical) — Light Red / Light Green
Condition: Both Monthly and Weekly are Bullish (Green).
Action: The background will now react to the Daily 10/20 EMA cross.
Light Green: Nifty is healthy; safe for fresh positions.
Light Red: Tactical exit signal. Nifty is seeing short-term weakness; exit positions quickly.
Key Features
Symbol Locked: No matter what stock you are viewing (Reliance, HDFC, Midcaps), the background only reacts to NSE:NIFTY.
Clean Interface: No messy lines or labels on the price chart. The information is conveyed purely through background color shifts.
Customizable: Change the MA types (EMA/SMA) and lengths (e.g., 10/20 or 20/50) in the settings.
Macro Dashboard: A small, transparent table in the top-right corner displays exactly which timeframe is currently controlling the background color.
How to Use for Nifty Strategy
Stay Out: If the chart is Deep Maroon or Dark Red, do not look for "buying the dip." Wait for the macro health to return.
Take Exits: If the background is Light Green and suddenly turns Light Red, it means the Daily Daily 10/20 cross has happened. Exit your Nifty-sensitive positions immediately.
AKILLI ANALIZ TERMINALI (V20-REVIZE)SMART ANALYSIS TERMINAL (V20-ULTIMATE)
This indicator is a professional-grade analysis terminal designed for both strategic daily analysis (Swing Trade) and real-time intraday trading (Scalp/Day Trade). It allows you to perform a complete technical X-ray of the market on a single dashboard.
CORE FEATURES:
- Dual-Mode Hybrid Engine: Choose between "NIGHT (ANALYSIS)" or "IN-DAY (AGGRESSIVE)" modes in settings. Mathematical periods and target levels update automatically.
- Smart Scoring System: Blends RSI, MACD, EMA, ADX, and Volume data to produce 5 distinct signals from "VERY POSITIVE" to "VERY NEGATIVE."
- Symmetrical Visual Panel: Left panel displays Live Signal, Pivot Balance, Money Flow, and Target/Support; right panel focuses on RSI, Trend, Momentum, and Volume confirmation.
- Money Flow Algorithm: Detects institutional accumulation (Entry) or distribution (Exit) by analyzing price-volume correlation.
USER GUIDE:
1. NIGHT MODE: Use for evening analysis to plan for the next day. Based on EMA 20/50 and standard MACD values.
2. IN-DAY MODE: Use during live sessions on 5m and 15m charts. Catch instant momentum shifts with EMA 9/21 and aggressive settings.
Trade Time & Position Duration Monitor (Multi-Entry)Overview
Active Position Hold Timer is a specialized risk management tool designed to track the "psychological time cost" of your trades. Beyond just monitoring price, it focuses on the precise duration your position stays in profit or loss.
Key Features:
Real-time Duration Tracking: Automatically calculates total time in profit vs. loss.
Max Loss Streak: Records the longest continuous time in a losing state.
Multi-Entry Cost Averaging: Supports initial entry plus 2 scale-ins.
Dual Language Interface: Switch between English and Traditional Chinese.
Time-Based Alerts: Set custom alerts for total or consecutive duration.
Calculation Logic:
Baseline Calculation: Starts accumulating once entry time is reached.
Profit/Loss Detection: Compares Close Price to Average Cost on every bar.
Live Update: Uses timenow for second-by-second dashboard updates.
中文說明
本指標專為管理「心理時間成本」而設計。它不僅監控價格,更專注於記錄倉位處於盈虧狀態的精確時間,幫助交易者克服持倉時的心理壓力。
主要功能:
即時時長統計:自動計算總浮盈/浮虧時間,以及當前連續狀態的持續時間。
歷史最大浮虧時長:記錄該筆交易中,最長一次連續虧損的時間壓力。
多筆進場計算:支援初始進場加上兩次加倉,自動繪製動態成本線。
雙語切換:表格界面支援中/英文切換。
多維度警報:可針對總時間或連續時間設定警報,提醒您交易是否持有過久。
計算邏輯:
基準計時:當時間超過進場點後,根據圖表週期累加時長。
盈虧判定:每根 K 棒收盤時,自動比較收盤價與平均成本。
即時秒級更新:加入 **Live Timer** 邏輯,計算當前 K 棒已跳動的時間,確保儀表板數據每秒更新。
壓力追蹤:持續追蹤並記錄最長的連續虧損時長。






















