USD Session 8FX - LDN & NY (TF-invariant, Live + Table)What changed
Flexible session window
Removed the old fixed NY end-time selector.
Added new inputs so you can pick start time and length:
London: ldnStartSel (default 08:00) and ldnLenSel with options 45/60/90 minutes.
New York: nyStartSel (default 15:30) and nyLenSel with options 45/60/90 minutes.
The session string used by time(refTF, sess, tz) is now built dynamically as "HHMM-HHMM" from start + length (e.g., 1530-1630).
The label shown in the table (winTxt) auto-formats to HH:MM–HH:MM.
New time helpers
addMinutesHHMM() computes the end time from a "HHMM" start plus a minute length.
makeSess() produces the session string "HHMM-HHMM".
prettySess() converts "HHMM-HHMM" → "HH:MM-HH:MM".
(Kept on one line to avoid the “end of line without line continuation” error.)
Stability & UI fixes
Main table now uses table.new(f_pos(tablePos), ...) directly (no undeclared pos variable).
Trade Gate panel uses a properly initialized gatePosEnum before table.new(...) (fixes “Undeclared identifier”).
Minor cleanups; no logic changes.
What did NOT change
Scoring logic: returns → optional ATR normalization → weights → anti-USD vs USD-base averages → final score.
Thresholds: minAbsScore and live intrath alerts are unchanged.
VWAP Gate logic is the same (price vs VWAP consistency depending on USD Strong/Weak).
Freeze/Lock of values at session end is unchanged.
Alerts (session close bias, live threshold cross, and “Entry hint”) are unchanged.
Why this helps (practical impact)
Longer windows (e.g., NY 60/90, LDN 60/90) usually make the score more robust, filtering noise and reducing false signals—at the cost of a slightly slower signal.
You can now A/B test:
London: 45 vs 60 vs 90
New York: 45 vs 60 vs 90
without touching anything else; the indicator adapts automatically.
How to use
Choose Session (London / New York).
Set the start and length for that session.
The background highlight, the winTxt, and the entry/exit logic all follow the dynamic window.
Quick tips to reduce false signals
Try NY 60 or NY 90 and LDN 60 when volatility is choppy.
Keep ATR normalization ON (useATRnorm = true) for more comparable returns.
Consider raising minAbsScore slightly (e.g., from 0.12 → 0.15–0.20) if you still see noise.
Use the VWAP Gate panel: only act when Bias OK and at least one of the Top-3 pairs shows VWAP OK.
If you want, I can add quick presets (buttons) to jump between LDN 45/60/90 and NY 45/60/90, or plot two Scores side by side for direct comparison.
المؤشرات والاستراتيجيات
BossExoticMAs
   A next-generation moving average and smoothing library by TheStopLossBoss, featuring premium adaptive, exotic, and DSP-inspired filters — optimized for Pine Script® v6 and designed for Traders who demand precision and beauty.
> BossExoticMAs is a complete moving average and signal-processing toolkit built for Pine Script v6.
It combines the essential trend filters (SMA, EMA, WMA, etc.) with advanced, high-performance exotic types used by quants, algo designers, and adaptive systems.
Each function is precision-tuned for stability, speed, and visual clarity — perfect for building custom baselines, volatility filters, dynamic ribbons, or hybrid signal engines.
Includes built-in color gradient theming powered by the exclusive BossGradient — 
//Key Features
✅ Full Moving Average Set
SMA, EMA, ZEMA, WMA, HMA, WWMA, SMMA
DEMA, TEMA, T3 (Tillson)
ALMA, KAMA, LSMA
VMA, VAMA, FRAMA
✅ Signal Filters
One-Euro Filter (Crispin/Casiez implementation)
ATR-bounded Range Filter
✅ Color Engine
lerpColor() safe blending using color.from_gradient
Thematic gradient palettes: STOPLOSS, VAPORWAVE, ROYAL FLAME, MATRIX FLOW
Exclusive: BOSS GRADIENT 
✅ Helper Functions
Clamping, normalization, slope detection, tick delta
Slope-based dynamic color control via slopeThemeColor()
🧠 Usage Example
//@version=6
indicator("Boss Exotic MA Demo", overlay=true)
import TheStopLossBoss/BossExoticMAs/1 as boss
len  = input.int(50, "Length")
atype = input.string("T3", "MA Type",  options= )
t3factor = input.float(0.7, "T3 β", step=0.05)
smoothColor = boss.slopeThemeColor(close, "BOSS GRADIENT", 0.001)ma = boss.maSelect(close, len, atype, t3factor, 0.85, 14)
plot(ma, "Boss Exotic MA", color=smoothColor, linewidth=2)
---
🔑  Notes
Built exclusively for Pine Script® v6
Library designed for import use — all exports are prefixed cleanly (boss.functionName())
Some functions maintain internal state (var-based). Warnings are safe to ignore — adaptive design choice.
Each MA output is non-repainting and mathematically stable.
---
📜 Author
TheStopLossBoss
Designer of precision trading systems and custom adaptive algorithms.
Follow for exclusive releases, educational material, and full-stack trend solutions.
movingaverage, trend, adaptive, filter, volatility, smoothing, quant, technicalanalysis, bossgradient, t3, alma, frama, vma
Fixed High Timeframe Moving AveragesFixed High Timeframe Moving Averages (W/D/4H) 
 Summary 
This indicator plots essential, high-timeframe (HTF) Moving Averages onto your chart, **no matter which timeframe you are currently viewing**.
It is designed for traders who need multi-timeframe context at a glance. Stop switching charts to see where the 200-Week or 50-Day MA is—now you can see all critical HTF levels directly on your 5-minute (or any other) chart.
---
 Who it’s for 
Traders who rely on moving averages but like to work on lower chart timeframes while keeping higher timeframe context in sight. If you scalp on 1–15m yet want Weekly/Daily/4H MAs always visible, this is for you.
---
 What it shows 
Pinned (“fixed”) moving averages from higher timeframes—Weekly  (20/100/200) , Daily  (50/100/200/365)  and 4H  (200) —rendered on any chart timeframe. Your favorite HTF MAs stay on screen no matter what TF you’re currently analyzing.
---
 Features 
* **MA types:** SMA, EMA, VWMA, Hull.
* **Fully configurable:** toggle each line, set periods, colors, and thickness.
* **Two alert modes (see below):** intrabar vs confirmed HTF close.
* **Works on any symbol & chart TF** using `request.security` to fetch HTF data.
---
 Alerts & Modes 
This indicator solves the biggest problem with MTF alerts: false signals. You can choose one of two modes:
1.  **Intrabar mode** — compares current chart price to the HTF MA. Triggers as soon as price crosses the HTF line; great for early signals but may update until the HTF bar closes.
2.  **Confirmed mode** — checks HTF close vs HTF MA. Signals only on the higher-TF bar close; fewer false starts, no intrabar repainting on that TF.
Per-line *Cross Above / Cross Below* conditions are provided for all enabled MAs (e.g., “20W — Cross Above”, “365D — Cross Below”, etc.).
**How to use alerts:** add the script → “Create Alert” → pick any condition from the script’s list.
---
 Why this helps 
* Keeps Weekly/Daily structure visible while you execute on LTF.
* Classic anchors (e.g., 200D, 20W/100W/200W) are popular for trend bias, dynamic support/resistance, and pullback context.
* Lets you standardize MA references across all your lower-TF playbooks.
---
 Notes on confirmation & repainting 
* Intrabar signals can change until the higher-TF bar closes (that’s expected with multi-TF data).
* Confirmed mode waits for the HTF close—cleaner, but later. Choose what fits your workflow.
---
 Quick setup 
1.  Pick `MA Type` (SMA/EMA/VWMA/Hull).
2.  Enable the HTF lines you want (Weekly 20/100/200; Daily 50/100/200/365; 4H 200).
3.  Choose `Alert Mode` (Intrabar vs Confirmed).
4.  Style colors/widths to taste and set alerts on the lines you care about.
---
 Good practice 
* Combine HTF MAs with price action (swings, structure, liquidity grabs) rather than using them in isolation.
* Always validate signals in your execution TF and use a risk plan tailored to volatility.
* Protect your capital: position sizing, stops, and disciplined risk management matter more than any single line on the chart.
---
 Disclaimer 
 For educational/informational purposes only; not financial advice. Trading involves risk—manage it responsibly.
Indicador Técnico Avanzado sbuscamos entradas para poder comprar y vender papeles de una correcta manera
Purchasing Power vs Gold, Stocks, Real Estate, BTC (1971 = 100)Visual comparison of U.S. dollar purchasing power versus major assets since 1971, when the U.S. ended the gold standard. Each asset is normalized to 100 in 1971, showing how real value has shifted across gold, real estate, stocks, and Bitcoin over time.
Source: FRED (CPIAUCSL, SP500, MSPUS) • OANDA (XAUUSD) • TradingView (INDEX:BTCUSD/BLX)
Visualization by 3xplain
Eagles CompassFree script
Helps detect specific body/wick ratios on chart for 1HR,2HR,4HR timeframes
Designed to help you detect large squeezes, bounces, and other moves
Ideally use in conjunction with an RSI to filter for false positives
Enhanced stochastic Momentum Oscillator with signalsOverall Benefits of This Enhanced SMO Script
Fully Customizable Inputs – period, smoothing type, source, and colors.
Gradient Momentum Ribbon – visually communicates strength and direction.
Overbought/Oversold Highlights – both lines and background for clarity.
Alert System Built-In – monitors crossovers and zone entries/exits.
Error-Resistant Calculations – prevents division by zero, avoids Pine v5 multi-line ternary issues.
Highly Visual – suitable for quick decision-making, not just raw numbers.
Flexible for Any Timeframe – can be used on multi-timeframe analysis.
Table that shows current condition (neutral, overbought and oversold) 
Try with my other indicator highlighted in picture-
RRG Sector Snapshot RRG Sector Snapshot · Clear UI — User Guide 
What this indicator does
Purpose: Visualize sector rotation by comparing each sector’s Relative Strength (RS-Ratio) and RS-Momentum versus a benchmark (e.g., VNINDEX).
Output: A quadrant map (table overlay) that positions each sector into one of four regimes:
LEADING (top-right): Strong and accelerating — leadership zone.
WEAKENING (bottom-right): Strong but decelerating — may be topping or consolidating.
LAGGING (bottom-left): Weak and decelerating — avoid unless mean-reverting.
IMPROVING (top-left): Weak but accelerating — candidates for next rotation into leadership.
How it works (under the hood)
X-axis (Strength): RS-Ratio = Sector Close / Benchmark Close, then normalized with a Z-Score over a lookback (normLen).
Y-axis (Momentum): Linear-regression slope of RS-Ratio over rsLen, then normalized with a Z-Score (normLen).
Mapping to grid: Both axes are Z-Scores scaled to a square grid (rrgSize × rrgSize) using a zoom factor (rrgScale). The center is neutral (0,0). Momentum increases upward (Y=0 is the top row in the table).
Quick start (3 minutes)
Add to chart:
TradingView → Pine Editor → paste the script → Save → Add to chart.
Set a benchmark: In inputs, choose Benchmark (X axis) — default INDEX:VNINDEX. Use VN30 or another index if it better reflects your universe.
Load sectors: Fill S1..S10 with sector or index symbols you track (up to 10). Set Slots to Use to the number you actually use.
Adjust view:
rrgSize (grid cells): 18–24 is a good starting point.
rrgScale (zoom): 2.5–3.5 typically; decrease to “zoom out” (points cluster near center), increase to “zoom in” (points spread to edges).
Read the map:
Prioritize sectors in LEADING; shortlist sectors in IMPROVING (could rotate into LEADING).
WEAKENING often marks late-cycle strength; LAGGING is typically avoid.
Inputs — what they do and how to change them
General
Analysis TF: Timeframe used to compute RRG (can be different from chart’s TF). Daily for swing, 1H/4H for tactical rotation, Weekly for macro view.
Benchmark (X axis): The index used for RS baseline (e.g., INDEX:VNINDEX, INDEX:VN30, major ETFs, or a custom composite).
RRG Calculation
RS Lookback (rsLen): Bars used for slope of RS (momentum).
Daily: 30–60 (default 40)
Intraday (1H/4H): 20–40
Weekly: 26–52
Normalization Lookback (Z-Score) (normLen): Window for Z-Score on both axes.
Daily: 80–120 (default 100)
Intraday: 40–80
Weekly: 52–104
Tip: Shorter lookbacks = more responsive but noisier; longer = smoother but slower.
RRG HUD (Table)
Show RRG Snapshot (rrgEnable): Toggle the table on/off.
Position (rrgPos): top_right | top_left | bottom_right | bottom_left.
Grid Size (Cells) (rrgSize): Table dimensions (N×N). Larger = more resolution but takes more space.
Z-Scale (Zoom) (rrgScale): Maps Z-Scores to the grid.
Smaller (2.0–2.5): Zoom out (more points near center).
Larger (3.5–4.0): Zoom in (emphasize outliers).
Appearance
Tag length (tagLen): Characters per sector tag. Use 4–6 for clarity.
Text size (textSizeOp): Tiny | Small | Normal | Large. Use Large for presentation screens or dense lists.
Axis thickness (axisThick): 1 = thin axis; 2 = thicker double-strip axis.
Quadrant alpha (bgAlpha): Transparency of quadrant backgrounds. 80–90 makes text pop.
Sectors (Max 10)
Slots to Use (sectorSlots): How many sector slots are active (≤10).
S1..S10: Each slot is a symbol (index, sector index, or ETF). Replace defaults to fit your market/universe.
How to interpret the map
Quadrants:
Leading (top-right): Relative strength above average and improving — trend-follow candidates.
Weakening (bottom-right): Still strong but momentum cooling — watch for distribution or pauses.
Lagging (bottom-left): Underperforming and still losing momentum — avoid unless doing mean-reversion.
Improving (top-left): Early recovery — candidates to transition into Leading if the move persists.
Overlapping sectors in one cell: The indicator shows “TAG +n” where TAG is the first tag, +n is the number of additional sectors sharing that cell. If many overlap:
Increase rrgSize, or
Decrease rrgScale to zoom out, or
Reduce Slots to Use to a smaller selection.
Suggested workflows
Daily swing
Benchmark: VNINDEX or VN30
rsLen 40–60, normLen 100–120, rrgSize 18–24, rrgScale 2.5–3.5
Routine:
Identify Leading sectors (top-right).
Spot Improving sectors near the midline moving toward top-right.
Confirm with price/volume/breakout on sector charts or top components.
Intraday (1H/4H) tactical
rsLen 20–40, normLen 60–100, rrgScale 2.0–3.0
Expect faster rotations and more noise; tighten filters with your own entry rules.
Weekly (macro rotation)
rsLen 26–52, normLen 52–104, rrgScale 3.0–4.0
Great for portfolio tilts and sector allocation.
Tuning tips
If everything clusters near center: Increase rrgScale (zoom in) or reduce normLen (more contrast).
If points are too spread: Decrease rrgScale (zoom out) or increase normLen (smoother normalization).
If the table is too big/small: Change rrgSize (cells).
If tags are hard to read: Increase textSizeOp to Large, tagLen to 5–6, and consider bgAlpha ~80–85.
Troubleshooting
No table on chart:
Ensure Show RRG Snapshot is enabled.
Change Position to a different corner.
Reduce Grid Size if the table exceeds the chart area.
Many sectors “missing”:
They’re likely overlapping in the same cell; the cell will show “TAG +n”.
Increase rrgSize, decrease rrgScale, or reduce Slots to Use.
Early bars show nothing:
You need enough data for rsLen and normLen. Scroll back or reduce lookbacks temporarily.
Best practices
Use RRG for context and rotation scouting, then confirm with your execution tools (trend structure, breakouts, volume, risk metrics).
Benchmark selection matters. If most of your watchlist tracks VN30, use INDEX:VN30 as the benchmark to get a truer relative read.
Revisit settings per timeframe. Intraday needs more responsiveness (shorter lookbacks, smaller Z-Scale); weekly needs stability (longer lookbacks, larger Z-Scale).
FAQ
Can I use ETFs or custom indices as sectors? Yes. Any symbol supported by TradingView works.
Can I track individual stocks instead of sectors? Yes (up to 10); just replace the S1..S10 symbols.
Why Z-Score? It standardizes each axis to “how unusual” the value is versus its own history — more robust than raw ratios across different scales.
 [ i] 
How to Set Up (Your Market Template) 
This is the most important part for customizing the indicator to any market.
Step 1: Choose Your TF & Benchmark
Open the indicator's Settings.
Analysis TF: Set the timeframe you want to analyze (e.g., D for medium-term, W for long-term).
Benchmark (Trục X): This is the index you want to compare against.
Vietnamese Market: Leave the default INDEX:VNINDEX.
US Market: Change to SP:SPX or NASDAQ:NDX.
Crypto Market: Change to TOTAL (entire market cap) or BTC.D (Bitcoin Dominance).
Step 2: Input Your "Universe" (The 10 Slots)
This is where you decide what to track. You have 10 slots (S1 to S10).
For Vietnamese Sectors (Default):
Leave the default sector codes like INDEX:VNFINLEAD (Finance), INDEX:VNREAL (Real Estate), INDEX:VNIND (Industry), etc.
Template for Crypto "Sectors":
S1: BTC.D
S2: ETH.D
S3: TOTAL2 (Altcoin Market Cap)
S4: TOTAL.DEFI (DeFi)
S5: CRYPTOCAP:GAME (GameFi)
...and so on.
Template for Blue Chip Stocks:
Benchmark: INDEX:VN30
S1: HOSE:FPT
S2: HOSE:VCB
S3: HOSE:HPG
S4: HOSE:MWG
...and so on.
Template for Commodities:
Benchmark: TVC:DXY (US Dollar Index)
S1: TVC:GOLD
S2: TVC:USOIL
S3: TVC:SILVER
S4: COMEX:HG1! (Copper)
...and so on.
Step 3: Fine-Tuning
RS Lookback: A larger number (e.g., 100) gives a smoother, long-term view. A smaller number (e.g., 20) is more sensitive to short-term changes.
Z-Scale (Zoom): This is the "magnification" of the map.
If all your sectors are crowded in the middle, increase this number (e.g., 4.0) to "zoom in."
If your sectors are stuck on the edges, decrease this number (e.g., 2.0) to "zoom out."
Tag length: How many letters to display for the ticker (e.g., 4 will show VNFI).
Standard Daily VWAPVwap strategy based on mainly usd pairs for scalping it starts at the start of everyday and ends at the end of everyday and it is a line thats colour can be changed so u can design it acc to u it is best for scalping and taking small trades
HTF Candle Countdown Timer//@version=5
indicator("HTF Candle Countdown Timer", overlay=true)
// ============================================================================
// INPUTS - SETTINGS MENU
// ============================================================================
// --- Mode Selection ---
mode = input.string(title="Mode", defval="Auto", options= , 
     tooltip="Auto: Αυτόματη αντιστοίχιση timeframes Custom: Επιλέξτε το δικό σας timeframe")
// --- Custom Timeframe Selection ---
customTF = input.timeframe(title="Custom Timeframe", defval="15", 
     tooltip="Ενεργό μόνο σε Custom Mode")
// --- Table Position ---
tablePos = input.string(title="Table Position", defval="Bottom Right", 
     options= )
// --- Colors ---
textColor = input.color(title="Text Color", defval=color.white)
bgColor = input.color(title="Background Color", defval=color.black)
transparentBg = input.bool(title="Transparent Background", defval=false, 
     tooltip="Ενεργοποίηση διάφανου φόντου")
// --- Text Size ---
textSize = input.string(title="Text Size", defval="Normal", 
     options= )
// ============================================================================
// FUNCTIONS
// ============================================================================
// Μετατροπή string position σε table position constant
getTablePosition(pos) =>
    switch pos
        "Top Left" => position.top_left
        "Top Right" => position.top_right
        "Bottom Left" => position.bottom_left
        "Bottom Right" => position.bottom_right
        => position.bottom_right
// Μετατροπή string size σε size constant
getTextSize(size) =>
    switch size
        "Auto" => size.auto
        "Tiny" => size.tiny
        "Small" => size.small
        "Normal" => size.normal
        "Large" => size.large
        "Huge" => size.huge
        => size.normal
// Αυτόματη αντιστοίχιση timeframes
getAutoTimeframe() =>
    currentTF = timeframe.period
    string targetTF = ""
    
    if currentTF == "1"
        targetTF := "15"
    else if currentTF == "3"
        targetTF := "30"
    else if currentTF == "5"
        targetTF := "60"
    else if currentTF == "15"
        targetTF := "240"
    else if currentTF == "60"
        targetTF := "D"
    else if currentTF == "240"
        targetTF := "W"
    else
        // Default fallback για μη-mapped timeframes
        targetTF := "60"
    
    targetTF
// Μετατροπή timeframe string σε λεπτά για σύγκριση
timeframeToMinutes(tf) =>
    float minutes = 0.0
    
    if str.contains(tf, "D")
        multiplier = str.tonumber(str.replace(tf, "D", ""))
        minutes := na(multiplier) ? 1440.0 : multiplier * 1440.0
    else if str.contains(tf, "W")
        multiplier = str.tonumber(str.replace(tf, "W", ""))
        minutes := na(multiplier) ? 10080.0 : multiplier * 10080.0
    else if str.contains(tf, "M")
        multiplier = str.tonumber(str.replace(tf, "M", ""))
        minutes := na(multiplier) ? 43200.0 : multiplier * 43200.0
    else
        minutes := str.tonumber(tf)
    
    minutes
// Format countdown σε ώρες:λεπτά:δευτερόλεπτα ή λεπτά:δευτερόλεπτα
formatCountdown(milliseconds) =>
    totalSeconds = math.floor(milliseconds / 1000)
    hours = math.floor(totalSeconds / 3600)
    minutes = math.floor((totalSeconds % 3600) / 60)
    seconds = totalSeconds % 60
    
    string result = ""
    
    if hours > 0
        result := str.format("{0,number,00}:{1,number,00}:{2,number,00}", hours, minutes, seconds)
    else
        result := str.format("{0,number,00}:{1,number,00}", minutes, seconds)
    
    result
// Μετατροπή timeframe σε readable format
formatTimeframe(tf) =>
    string formatted = ""
    
    if str.contains(tf, "D")
        formatted := tf + "aily"
    else if str.contains(tf, "W")
        formatted := tf + "eekly"
    else if str.contains(tf, "M")
        formatted := tf + "onthly"
    else if tf == "60"
        formatted := "1H"
    else if tf == "240"
        formatted := "4H"
    else
        formatted := tf + "min"
    
    formatted
// ============================================================================
// MAIN LOGIC
// ============================================================================
// Επιλογή target timeframe βάσει mode
targetTimeframe = mode == "Auto" ? getAutoTimeframe() : customTF
// Validation: Έλεγχος αν το target timeframe είναι μεγαλύτερο από το τρέχον
currentTFMinutes = timeframeToMinutes(timeframe.period)
targetTFMinutes = timeframeToMinutes(targetTimeframe)
var string warningMessage = ""
if targetTFMinutes <= currentTFMinutes
    warningMessage := "⚠ HTF < Current TF"
else
    warningMessage := ""
// Υπολογισμός του χρόνου κλεισίματος του HTF candle
htfTime = request.security(syminfo.tickerid, targetTimeframe, time)
htfTimeClose = request.security(syminfo.tickerid, targetTimeframe, time_close)
// Υπολογισμός υπολειπόμενου χρόνου σε milliseconds
remainingTime = htfTimeClose - timenow
// Format countdown
countdown = warningMessage != "" ? warningMessage : formatCountdown(remainingTime)
// Format timeframe για εμφάνιση
displayTF = formatTimeframe(targetTimeframe)
// ============================================================================
// TABLE DISPLAY
// ============================================================================
// Δημιουργία table
var table countdownTable = table.new(
     position=getTablePosition(tablePos), 
     columns=2, 
     rows=2, 
     bgcolor=transparentBg ? color.new(bgColor, 100) : bgColor,
     frame_width=1,
     frame_color=color.gray,
     border_width=1)
// Update table content
if barstate.islast
    // Header
    table.cell(countdownTable, 0, 0, "Timeframe:", 
         text_color=textColor, 
         bgcolor=transparentBg ? color.new(bgColor, 100) : bgColor,
         text_size=getTextSize(textSize))
    
    table.cell(countdownTable, 1, 0, displayTF, 
         text_color=textColor, 
         bgcolor=transparentBg ? color.new(bgColor, 100) : bgColor,
         text_size=getTextSize(textSize))
    
    // Countdown
    table.cell(countdownTable, 0, 1, "Countdown:", 
         text_color=textColor, 
         bgcolor=transparentBg ? color.new(bgColor, 100) : bgColor,
         text_size=getTextSize(textSize))
    
    table.cell(countdownTable, 1, 1, countdown, 
         text_color=warningMessage != "" ? color.orange : textColor, 
         bgcolor=transparentBg ? color.new(bgColor, 100) : bgColor,
         text_size=getTextSize(textSize))
// ============================================================================
// END OF SCRIPT
// ============================================================================
VWAP Reset at Asian Session (Midnight UTC)Vwap strategy based on mainly usd pairs for scalping it starts at the start of everyday and ends at the end of everyday and it is a line thats colour can be changed so u can design it acc to u it is best for scalping and taking small trades
Volatility Resonance CandlesVolatility Resonance Candles  visualize the dynamic interaction between price acceleration, volatility, and volume energy.
They’re designed to reveal moments when volatility expansion and directional momentum resonate — often preceding strong directional moves or reversals.
🔬  Concept 
Traditional candles display direction and range, but they miss the energetic structure of volatility itself.
This indicator introduces a resonance model, where ATR ratio, price acceleration, and volume intensity combine to form a composite signal.
* ATR Resonance: compares short-term vs. long-term volatility
* Acceleration: captures the rate of price change
* Volume Energy: reinforces the move’s significance
When these components align, the candle color “resonates” — brighter, more intense candles signal stronger volatility–momentum coupling.
⚙️  Features 
* Adaptive Scaling
Normalizes energy intensity dynamically across a user-defined lookback period, ensuring consistency in changing market conditions.
* Power-Law Transformation
Optional non-linear scaling (gamma) emphasizes higher-energy events while keeping low-intensity noise visually subdued.
* Divergence Mode
When enabled, colors can invert to highlight energy divergence from candle direction (e.g., bearish pressure during bullish closes).
* Customizable Styling
Full control over bullish/bearish base colors, transparency scaling, and threshold sensitivity.
🧠  Interpretation 
* Bright / High-Intensity Candles → Strong alignment of volatility and directional energy.
Often signals the resonant phase of a move — acceleration backed by volatility expansion and volume participation.
* Dim / Low-Intensity Candles → Energy dispersion or consolidation.
These typically mark quiet zones, pauses, or inefficient volatility.
* Opposite-Colored Candles (if divergence mode on) → Potential inflection zones or hidden stress in the trend structure.
⚠️ Disclaimer
This script is for educational purposes only.
It does not constitute financial advice, and past performance is not indicative of future results. Always do your own research and test strategies before making trading decisions.
VWMA Series (Dynamic) mtf - Dual Gradient Colored"VWMA Series (Dynamic) mtf - Dual Gradient Colored" is a multi-timeframe (MTF) Volume-Weighted Moving Average (VWMA) ribbon indicator that plots up to 60 sequential VWMAs with arithmetic progression periods (e.g., 1, 4, 7, 10…).  Each VWMA line is dual-gradient colored:  Base hue = Greenish (#2dd204) if close > VWMA (bullish), Magenta (#ff00c8) if close < VWMA (bearish)  
Brightness gradient = fades from base → white as period increases (short → long-term)
Uses daily resolution by default (timeframe="D"), making it ideal for higher-timeframe trend filtering on lower charts.Key FeaturesFeature
Description
Dynamic Periods
Start + i × Increment → e.g., 1, 4, 7, 10… up to 60 terms
Dual Coloring
Bull/Bear + Gradient (short = vivid, long = pale)
MTF Ready
Plots daily VWMAs on any lower timeframe (1H, 15M, etc.)
No Lag on Long Sets
Predefined "best setups" eliminate repainting/lag
Transparency Control
Adjustable line opacity for clean visuals
Scalable
Up to 60 VWMAs (max iterations)
Recommended Setups (No Lag)Type
Example Sequence (Start, Inc, Iter)
Long-Term Trend
1, 3, 30 → 1, 4, 7 … 88
93, 3, 30 → 93, 96 … 180
372, 6, 30 → 372, 378 … 546
Short-Term Momentum
1, 1, 30 → 1, 2, 3 … 30
94, 2, 30 → 94, 96 … 152
1272, 5, 30 → 1272, 1277 … 1417
Key Use CasesUse Case
How to Use
1. Multi-Timeframe Trend Alignment
On 1H chart, use 1, 3, 30 daily VWMAs → price above all green lines = strong uptrend
2. Dynamic Support/Resistance
Cluster of long-term pale VWMAs = major S/R zone
3. Early Trend Change Detection
Short-term vivid lines flip from red → green before longer ones = early bullish signal
4. Ribbon Compression/Expansion
Tight bundle → consolidation; fanning out → trend acceleration
5. Mean Reversion Entries
Price far from long-term VWMA cluster + short-term reversal = pullback trade
6. Volume-Weighted Fair Value
Long-period VWMAs reflect true average price paid over weeks/months
Visual Summary
Price ↑
  ████  ← Short VWMA (vivid green = close > VWMA)
   ███
    ██
     █
    . . . fading to white
     █
    ██
   ███
  ████  ← Long VWMA (pale = institutional average)
Green lines = price above VWMA (bullish bias)  
Magenta lines = price below VWMA (bearish bias)  
Gradient = shorter (left) → brighter; longer (right) → whiter  
Ribbon thickness = trend strength (wide = strong, narrow = weak)
Best For  Swing traders using daily trend on intraday charts  
Volume-based strategies (VWMA > SMA)  
Clean, colorful trend visualization without clutter  
Institutional fair value anchoring via long-period VWMAs
Pro Tip:
Use Start=1, Increment=3, Iterations=30 on a 4H chart with timeframe="D" → perfect daily trend filter with zero lag and beautiful gradient flow.
Murrey Math SMA up to 32s Murrey Math SMA up to 32s   is a highly advanced Pine Script v5 indicator that combines Murrey Math Lines (MML) with a customizable moving average (MA) — including a non-repainting Rolling VWAP (RVWAP) — and dynamic color-coded support/resistance bands up to 1/32 subdivisions.  It projects octave-based geometric price levels (like Gann) centered on your chosen MA, with adaptive scaling, angle-based trend coloring, and absolute/extended MML bands. Includes 1/8, 1/16, and 1/32 grid lines, shaded zones, labels, and a live increment display.Core FeaturesFeature
Description
MA Types
SMA, VWMA, VWAP, Period VWAP, RVWAP (rolling VWAP over fixed or adaptive time window)
Murrey Math Grid
Auto-scaled 0/8 to 8/8 + extensions (±3/8), with 1/16 & 1/32 subdivisions
Dynamic Coloring
Bands colored by MA slope angle (bullish/bearish) or absolute MML shift
RVWAP Engine
Non-repainting volume-weighted average over user-defined or adaptive time steps
Wick Filtering
Optional ignore wicks for cleaner MML framing
Resolution Support
Works with higher timeframe data via request.security()
Key Use Cases Use Case
How to Use
1. Precision Support & Resistance
Treat 4/8 (mid) as pivot, 0/8 & 8/8 as extremes. Price often reverses or accelerates at these levels.
2. Mean Reversion Trades
Buy near 0/8–1/8 (oversold), sell near 7/8–8/8 (overbought) when MA is flat or sloping mildly.
3. Trend Continuation
When MA angle > threshold and price breaks 5/8, expect move to 8/8. Confirm with volume.
4. Breakout Entries
Watch for close beyond 8/8 or 0/8 + MA angle steep → strong momentum breakout.
5. Scalping with 1/32 Grid
Use 1/32 lines as micro-targets in ranging markets or after news spikes.
6. Volume-Weighted Fair Value
RVWAP = true average price paid over time → anchor for institutional fair value.
Visual Layout (MA-Centered)
+3/8   ───┐
+2/8   ───┤  ← Strong resistance
+1/8   ───┤
8/8    ███┤  ← Overbought (red zone)
7/8    ───┤
6/8    ███┤
5/8    ───┤
4/8    ███┤  ← Midline (pivot)
3/8    ───┤
2/8    ███┤
1/8    ───┤
0/8    ███┤  ← Oversold (green zone)
-1/8   ───┤
-2/8   ───┤
-3/8   ───┘
Shaded: 0/8–1/8 (buy), 7/8–8/8 (sell), 3/8–5/8 (neutral/consolidation)  
MA Line: Orange (RVWAP) or hidden  
Labels: Bottom, 1/4, Mid, 3/4, Top (offset to the right)  
Table: Shows current Increment size
Best For  Swing & scalp traders on stocks, forex, crypto  
Volume-based strategies (RVWAP shines in high-volume moves)  
Gann/Murrey Math enthusiasts wanting automation + modern MA anchoring
Combined Advanced Trading BlueprintStacked EMAs, some SMA, VWAP, Smart Money Concept stuff all wrapped into one
VMMA Ribbon + Q1/Q3 Echo Rayssimulates a series of vwma lines in a wave.  Basically puts them in an array and calculates highest lowest values among other things ...  The VMMA Ribbon + Q1/Q3 Echo Rays is a Pine Script v5 indicator that combines a dynamic Volume-Weighted Moving Average (VWMA) ribbon with interactive support/resistance "echo rays" based on the ribbon’s inner quartiles (Q1 and Q3).  The ribbon is built from multiple VWMAs of increasing lengths, forming a band with an upper edge, lower edge, midline, and Q1/Q3 lines (representing the 25th and 75th percentiles of the band).  
Edges are colored by slope (bullish = green, bearish = red) or use a default color.  
Echo rays extend horizontally from recent swing lows in Q1 and swing highs in Q3, acting as dynamic support/resistance levels that "echo" past extremes until broken or surpassed.
Key Use CasesUse Case
Description
1. Trend Strength & Direction
Ribbon expansion = volatility; compression = consolidation. Slope-colored edges show momentum shifts early.
2. Dynamic Support & Resistance
Q1/Q3 echo rays mark high-probability reversal zones. Price respecting rays = continuation; break = reversal.
3. Mean Reversion Entries
Buy near Q1 ray in uptrend (oversold within band); sell near Q3 ray in downtrend.
4. Breakout Confirmation
Price breaking upper/lower edge + Q3/Q1 ray termination confirms strong breakout.
5. Volume-Weighted Context
Uses VWMA → more reactive to volume spikes than SMA → better for stocks/crypto with sudden volume surges.
Sinal de Shorts e Longs (OI + OBV + RSI)This indicator combines Open Interest (OI), On-Balance Volume (OBV), and RSI to identify potential short and long pressures in the market.
When OI increases, OBV decreases, and RSI > 40, it signals short entries and possible bearish pressure.
When OI increases, OBV also increases, and RSI < 60, it signals long entries and potential bullish reversals.
Visual signals (S and L) are displayed directly on the chart for quick interpretation.
Useful for tracking futures market sentiment and spotting shifts in trader positioning.
OI Value (aproximado)This indicator estimates the Open Interest Value (USD) by multiplying the Open Interest (contracts) of the BTCUSDT Perpetual Futures by the current price.
It provides an approximate view of how much capital is engaged in open positions, helping traders visualize whether new money is entering or leaving the market.
Use Case:
Rising OI Value → New capital entering the market (trend strengthening)
Falling OI Value → Positions being closed or liquidated (trend weakening)
Designed for traders combining Open Interest analysis with price action and volume-based indicators such as OBV or Delta Volume.
Stablecoin Liquidity Delta (Aggregate Market Cap Flow)Hi All,
This indicator visualizes the bar-to-bar change in the aggregate market capitalization of major stablecoins, including USDT, USDC, DAI, and others. It serves as a proxy for monitoring on-chain liquidity and measuring capital inflows or outflows across the crypto market.
Stablecoins are the primary liquidity layer of the crypto economy. Their combined market capitalization acts as a mirror of the available fiat-denominated liquidity in digital markets:
🟩 An increase in the total stablecoin market capitalization indicates new issuance (capital entering the market).
🟥 A decrease reflects redemption or burning (liquidity exiting the system).
Tracking these flows helps anticipate macro-level liquidity trends that often lead overall market direction, providing context for broader price movements.
All values are derived from TradingView’s public CRYPTOCAP tickers, which represent the market capitalization of each stablecoin. While minor deviations can occur due to small price fluctuations around the $1 peg, these figures serve as a proxy for circulating supply and net issuance across the stablecoin ecosystem.
My Rate Of Change. Buy equities if crosses up from 0, Sell equities and switch to commodities like Gold if crosses down 40
Prev 1-Min Volume • 5% Max Shares (TTP-ready)💡 Overview
This tool was built to help Trade The Pool (TTP) traders comply with the new “5% per minute volume” rule — without needing to calculate anything manually.
It automatically tracks the previous 1-minute volume, calculates 5% of it, and compares that to your planned order size.
If your planned size is within the limit, it shows green ✅.
If you’re above, it flashes red 🚫.
And when liquidity spikes allow for more size, you’ll see a green glow and 🔔 alert — so you can size up confidently without breaking the rule.
⚙️ Features
✅ Auto-calculates 5% volume cap from the previous 1-min candle
✅ Displays previous volume, max allowed shares, and your planned size
✅ TTP “different volume” scaling option (e.g. 0.69 for 45M vs 65M real volume)
✅ Per-bar slice suggestion for 10s scalpers
✅ Corner selector (top-left, top-right, bottom-left, bottom-right)
✅ Visual glow and 🔔 alert when liquidity window opens
✅ Compact and real-time responsive on 10s charts






















