Malama's Universal anchored M.A.Malama's Universal Anchored M.A. (UMA+) is a highly versatile, all-in-one moving average framework that supports over 28 different calculation methods — from classic (SMA, EMA) to advanced adaptive and Ehlers-based filters (KAMA, FRAMA, MAMA/FAMA, Super Smoother, Kalman, etc.). It features an innovative Anchored Mode that resets calculations from a user-defined point (specific date/time, bars back, or the start of data), making it perfect for analyzing price action relative to key market events like earnings, FOMC news, or cycle starts.
The MA dynamically colors based on price position, includes an optional fill for trend visualization, and features a clean on-chart dashboard with crossover alerts.
Key Features
28+ Moving Average Types: Includes SMA, EMA, WMA, TMA, VWMA, HMA, ALMA, VIDYA, DEMA, TEMA, KAMA, ZLEMA, T3, Hull-like, FRAMA, McGinley Dynamic, LSMA, SMMA, Super Smoother, Laguerre Filter, Cyber Cycle, MAMA/FAMA, Reflex, Trend Reflex, Dominant Cycle, Non-Lag MA, and Kalman Filter.
Anchored Calculations: Reset the MA calculation from a specific reference point:
By Date/Time: Analyze trends starting from a specific news event.
Bars Back: Anchor to a specific recent high or low.
First Bar: Anchor to the beginning of the available data.
Visual Anchor Marker: A dashed vertical line with an anchor (⚓) icon clearly marks the reset point.
Dynamic Coloring: The line and fill change color based on whether price is Above (Bullish) or Below (Bearish) the MA.
On-Chart Dashboard: A compact, movable table displaying:
Current MA Type & Length
Real-time Value & Price Position
% Deviation from the MA
Trend Direction (UP/DOWN/FLAT)
Anchor details (if enabled)
Strategy Ideas: Stacking for Crossovers
Create your own custom crossover strategy by adding this indicator to your chart twice! Because UMA+ supports so many calculation methods, you can "stack" two instances to build unique trend-following systems:
Add UMA+ Twice: Apply the script to your chart two times.
Configure the "Fast" MA: On the first instance, select a responsive type (e.g., Hull MA or T3) with a lower length (e.g., 9 or 14).
Configure the "Slow" MA: On the second instance, select a smoother type (e.g., KAMA or Super Smoother) with a higher length (e.g., 50 or 100).
Trade the Cross: Look for the "Fast" MA line crossing the "Slow" MA line to identify potential trend reversals or entry points. This allows you to combine the responsiveness of modern filters with the stability of classic trend lines.
Why This Indicator Stands Out
Unlike standard multi-MA scripts that only switch types, UMA+ combines extreme flexibility with Anchored Analysis. This allows traders to measure trend strength and responsiveness from significant reference points rather than an arbitrary rolling window. It is exceptionally useful for:
Post-Event Analysis: See how price respects an average anchored specifically to an earnings release or Fed announcement.
Cycle Trading: Measure trends from specific cycle lows.
Lag Reduction: Utilize advanced filters like Kalman, T3, or Ehlers series to reduce lag in trending markets while maintaining smoothness.
How to Use
Choose Your MA: Select from the extensive list. Experiment with adaptive types (KAMA, VIDYA) for choppy markets or low-lag types (Hull, ZLEMA) for scalping.
Enable Anchor (Optional): Toggle "Enable Anchor" to fix the start point of the calculation. Use the "Date/Time" method to align with specific market catalysts.
Interpret the Dashboard:
Bullish Momentum: Look for "Price ABOVE," a positive Deviation %, and "Trend UP."
Reversion: Extreme deviation values may indicate price is overextended and due to snap back to the MA.
Disclaimer
This indicator is for educational and informational purposes only. It is not financial advice. Past performance does not guarantee future results. Always use proper risk management and combine with your own analysis. Trading involves substantial risk of loss.
Indikatoren und Strategien
NQ Conservative MTF (1m entries + 15m trend)This is a conservative intraday futures algorithm designed for the NASDAQ (NQ) on the 1-minute chart. Trades are entered only in the direction of the confirmed 15-minute trend, using moving averages and ADX/DMI to ensure sufficient trend strength. Entries occur on controlled pullbacks toward a 1-minute EMA, avoiding extended or choppy conditions. Risk is managed with ATR-based stop losses and profit targets, optional trailing stops, session filtering, and a cooldown period between trades to reduce overtrading. The strategy prioritizes capital preservation, realistic execution, and consistency over high trade frequency.
Enhanced Trend & ML ScreenerThe Enhanced Trend & EMA Screener is a multi-symbol dashboard that aggregates trend, momentum, and structure signals across up to 8 user-defined assets.
Why this script is unique (The Problem & Solution): Traders often struggle to monitor multiple assets for confluence without cluttering their workspace with 8 different charts. Single-metric screeners (like simple EMA crosses) generate too much noise. This script solves this by fusing 5 distinct analytical engines into a single "Confluence Score" for each ticker, allowing you to monitor your entire watchlist from one chart.
How the Confluence Engine Works: Each ticker is analyzed in real-time against five criteria:
EMA Kinetics: Checks for crossovers on 10, 21, 50, and 89-period EMAs.
Ichimoku Structure: Checks if price is above (Bullish) or below (Bearish) the Cloud to ensure trades align with equilibrium.
ADX Strength: Filters out weak trends by comparing +DI and -DI.
ATR Regimes: Analyzes volatility expansion vs contraction. Bullish signals are stronger during volatility expansion.
Linear Regression Slope: Uses the slope of the regression line as a proxy for "predicted persistence."
Dashboard Features:
Symbol Row: Customizable inputs for up to 8 tickers (Default: SPY, QQQ, and Tech Giants).
Sentiment Matrix: Color-coded cells (Green/Red/Gray) for instant trend recognition.
Debug Table: An optional secondary table that shows the raw math (Price vs EMA values) for transparency.
MTF Overlay: Includes a Weekly trend check to ensure Daily signals align with the higher timeframe.
How to Use:
Setup: Add the script to your chart (e.g., SPY Daily).
Customize: Go to settings and input your preferred 8 tickers.
Scan: Look for "Full Green" rows. If a ticker is Bullish on EMA, Ichimoku, and ADX, it is a high-probability setup.
Alerts: The script generates alerts when any of your watched tickers trigger a key EMA crossover.
Disclaimer: The screener uses request.security to fetch data. While lookahead is disabled to prevent repainting, slight data lag may occur depending on the liquidity of the tickers selected.
MACD Classic MT5 Style (2 Lines + Histogram)MACD Classic MT5 Style (แบบ MetaTrader 5) มีความแตกต่างจาก MACD ทั่วไปที่ใช้กันใน TradingView พอสมควรครับ นี่คือคำอธิบายว่ามันทำงานอย่างไรและอ่านค่าอย่างไรครับ:
1. ความแตกต่างสำคัญ (Key Difference)
MACD ทั่วไป (Standard):
มี 2 เส้น (เส้น MACD และ เส้น Signal)
ฮิสโตแกรม (แท่งกราฟ) คือ ส่วนต่าง (Gap) ระหว่าง 2 เส้นนั้น
MACD แบบ MT5 (Classic MT5):
เส้น MACD จะถูกวาดออกมาเป็น แท่งกราฟ (Histogram) แทนที่จะเป็นเส้น
เส้น Signal จะเป็น เส้น (Line) สีแดงพาดผ่านแท่งกราฟ
สรุปคือ: ในแบบ MT5 แท่งกราฟคือตัวพระเอก (MACD) ส่วนเส้นคือตัวช่วยกรอง (Signal)
Here is the English translation of the explanation:
MACD Classic MT5 Style vs. Standard MACD
The "Classic MT5 Style" MACD differs significantly from the standard MACD typically found on TradingView. Below is an explanation of its mechanics and how to interpret it.
1. Key Differences
Standard MACD (TradingView Default):
Displays 2 Lines (MACD Line and Signal Line).
The Histogram represents the difference (gap) between those two lines.
MT5 Style MACD (Classic):
The MACD value is plotted as a Histogram (bars) instead of a line.
The Signal Line appears as a standard Line (usually red) overlaying the histogram.
In summary: In the MT5 style, the Histogram represents the actual MACD Line, while the separate line acts as the Signal filter.
Ramo Trend Reversal Set (HTF Confirmed)Ramo Trend Reversal (HTF Confirmed)
Short – net – profesyonel
Sistem mantığını tek başına anlatıyor
UT Bot + Hull MA Close-Cross Confirm (Strategy)UT Bot + Hull MA Close-Cross Confirm (Strategy)
This strategy combines the classic UT Bot ATR trailing stop with a Hull Moving Average (HMA) close-cross confirmation to reduce false signals and improve trade quality.
The system works in two stages:
UT Bot Signal Detection
A volatility-adjusted ATR trailing stop identifies potential trend shifts using a 1-period EMA crossover. This provides early buy and sell signals based on momentum and volatility.
Hull MA Close-Cross Confirmation
UT Bot signals are only confirmed once price closes across the Hull Moving Average. If a UT signal occurs on the wrong side of the Hull MA, the strategy waits until a valid close-cross occurs before triggering an entry. This confirmation step helps filter chop and late-trend reversals.
Key Features
Non-repainting logic (uses bar-close confirmation)
Futures-friendly design (fixed contracts, point-based TP/SL)
Supports Long, Short, or Both directions
Built-in Take Profit & Stop Loss
Configurable Hull MA type (HMA / EHMA / THMA)
Optional Heikin Ashi signal source
Clean Buy/Sell alerts for automation and webhook execution
Trade Logic Summary
Long Entry:
UT Bot buy signal + confirmed close above Hull MA
Short Entry:
UT Bot sell signal + confirmed close below Hull MA
Exit:
Fixed Take Profit or Stop Loss (user-defined in points)
Alerts & Automation
The strategy includes dedicated Buy Alert and Sell Alert conditions designed for webhook automation (e.g., trade logging, execution engines, or external dashboards). Alerts trigger only on confirmed bar closes, matching backtest behavior.
Intended Use
This strategy is designed for futures markets (e.g., MNQ, ES, GC) and performs best on intraday timeframes. Session filters, risk rules, and trade management can be handled externally if desired.
Disclaimer
This script is provided for educational and research purposes only and is not financial advice. Always test thoroughly and use proper risk management.
FPT - Engulfing Bar Highlight📌 Description
FPT – Engulfing Bar Highlight is a clean and lightweight indicator designed to highlight valid bullish and bearish engulfing candles directly on the chart.
The indicator uses a strict engulfing definition:
Bullish Engulfing
Current low breaks the previous low
Close is above the previous open
Close is above the current open
Bearish Engulfing
Current high breaks the previous high
Close is below the previous open
Close is below the current open
An optional minimum candle size filter (in ticks) helps eliminate weak or insignificant engulfing candles.
This tool is ideal for traders who:
Trade price action
Use engulfing candles as entry, confirmation, or context
Want a minimal, non-intrusive visual highlight
Combine engulfing logic with key levels, sessions, or other strategies
⚙️ Inputs
Highlight Mode
Bull Only
Bear Only
Both
Minimum Engulfing Size (ticks)
🎯 Features
Clean bar highlight (no boxes, labels, or signals)
No repainting
Works on any market and timeframe
Perfect for discretionary and algorithmic workflows
⚠️ Disclaimer
This indicator is for educational and informational purposes only.
It does not constitute financial advice.
Always use proper risk management.
Rango Pre-Apertura (8am-9am)Overview
This indicator is specifically designed for the index trading community, with a focus on US30 (Dow Jones). It centers on the concepts of "Capital Injection" and "Opening Traps," automatically identifying the most critical liquidity levels prior to the New York Open (09:30 AM EST).
Indicator Logic
The script operates on the premise that the range formed between 08:00 AM and 09:00 AM EST acts as a key accumulation or manipulation zone before the official session. By marking these levels, traders can visualize where institutional algorithms are likely to seek liquidity before the day’s primary expansive move begins.
Key Features
08:00 - 09:00 AM Range: Automatically calculates and projects the exact High and Low of this pre-market window.
Previous Day Levels (PDH/PDL): Identifies the Previous Day High and Low as primary zones for External Liquidity (BSL/SSL).
Visual Clarity: Lines are projected only until 01:00 PM EST to keep the chart clean for post-session analysis.
Professional Styling: Uses non-continuous plots to avoid visual noise and diagonal line "bleeding" between trading days.
How to Trade with this Script
Mapping: Identify whether the price opens above or below the 8:00 AM range.
The Trap: Look for liquidity sweeps (Stop Runs) of the marked lines exactly at 09:30 AM.
Confirmation: Combine this indicator with price action to detect "Force Invalidations" (Engulfing patterns) at H1 or H4 Points of Interest (POI).
Ichimoku MTF Heatmap W/ adj alert placement W and D cloud ALERTShows green FLAG 50 bars back when Daily and Weekly Cloud metrics are ACTIVE.
Bhuvana Retrace Predictor It’s a “retracement warning + confirmation” tool. Nothing more.
Concept in simple words
Price runs too far too fast
The script uses EMA + ATR bands to detect when price is “stretched” (far from normal).
The run is losing power
It checks RSI divergence:
Price makes a new high but RSI doesn’t → buyers are getting weaker.
Price makes a new low but RSI doesn’t → sellers are getting weaker.
It waits for proof the pullback started
It then waits for a small structure break:
For a drop: price closes below a recent minor low.
For a bounce: price closes above a recent minor high.
What each label means
SETUP = “Retracement is likely soon” (don’t chase).
CONFIRM = “Retracement probably started” (now it’s tradable).
Brutal truth
This doesn’t predict perfectly. It just stacks 3 common signs:
overextended + weakening momentum + structure break.
EMA RSI Adaptive (v6) [Joy]I have taken Glaz's code and converted to V6. The main logic is not mine but taken from Glaz's code
The EMA RSI Adaptive indicator smooths price with an EMA whose speed adjusts to RSI’s distance from its midpoint (50). When RSI strays far from 50 (higher momentum/volatility), the effective EMA period shrinks so the line hugs price. When RSI stays near 50 (quieter conditions), the period lengthens to filter noise. The target of the EMA update is an SMA of price (matching the original design), so you get a smoothed, adaptive trend line rather than a raw EMA of closes.
Key mechanics (what’s happening under the hood):
RSI distance: |RSI - 50| + 1 measures how “charged” momentum is. Bigger distance → faster adaptation.
Dynamic period: a nonlinear mapping turns that RSI distance into an adjusted smoothing length.
Adaptive EMA: ema = emaPrev + alpha * (SMA - emaPrev), where alpha = 2 / (1 + dynamicPeriod).
Visuals: optional color shift—blue when the line is rising, magenta when falling.
Practical use:
Trend filter: rising line = bullish bias; falling line = bearish bias.
Pullback tool: in trends, price tags or minor pierces of the adaptive line can mark pullback zones.
Volatility-aware: it tightens in fast moves (tracks closer) and relaxes in chop (filters more).
On very low timeframes or illiquid symbols, expect more whipsaw; lengthen the base EMA or RSI period to calm it.
The color toggle is cosmetic; the adaptive line itself carries the signal.
Anurag Institutional Swing Trader Pro [Robust]nstitutional Swing Flow is a comprehensive, multi-timeframe system designed for swing traders who want to align with "Smart Money" rather than fight against it.
Unlike standard indicators that rely solely on price crossovers, this script analyzes the underlying order flow—tracking stealth accumulation, volume anomalies, and institutional footprints—to generate high-probability swing setups.
Key Features (The "Smart Money" Logic)
1. Institutional Footprints
Stealth Accumulation/Distribution: Detects when price is held in a tight range despite high volume (a classic sign of institutions building a position).
Smart Money Divergence: Identifies when price makes a lower low but Money Flow (OBV/Accumulation-Distribution) makes a higher high.
Fair Value Gaps (FVG): Automatically plots Bullish and Bearish imbalance zones where price is likely to retrace before continuing the trend.
2. Safety First (Risk Management)
Real Earnings Detection: Automatically checks upcoming earnings dates. If an earnings report is within 5 days (adjustable), the script blocks new signals to prevent gambling on binary events.
Visual Exits: Plots dynamic Stop Loss and Take Profit levels on the chart the moment a trade is taken, along with "SL Hit" or "TP Hit" markers for visual backtesting.
3. The "Confluence Score" Dashboard A sophisticated dashboard in the top-right corner rates every setup on a scale of 0 to 100 based on:
Multi-Timeframe Trend: Is the Weekly, Daily, and 4H trend aligned?
Relative Strength: Is the asset outperforming the SPY benchmark?
Volatility: Is the asset in a "Squeeze" (Bollinger Band compression)?
Momentum: RSI, MACD, and CMF confirmation.
Only setups with a score > 65 (adjustable) trigger a BUY or SELL signal.
How to Use
Timeframe: Optimized for 4-Hour (4H) and Daily (D) charts. (Avoid using on <15m charts due to multi-timeframe calculations).
The Signal: Wait for a large "CALL" or "PUT" label.
The Confirmation: Check the Dashboard. Ideally, look for a "Squeeze: YES" combined with a high Institutional Buy Score.
The Exit: Follow the Red (Stop Loss) and Green (Take Profit) lines plotted automatically.
Disclaimer
This tool is for educational purposes only. Swing trading involves risk. Always confirm signals with your own analysis and risk management rules.
ORB 5 Min Break & Retest + Alerts By Khan 0.1 verORB 5-Minute Break & Retest Indicator
This indicator plots the high and low of the first 5-minute candle of the trading session (Opening Range). It then monitors price for a breakout above or below the ORB levels and triggers an alert when price retests the broken level and holds.
Designed to help identify high-probability ORB continuation setups with clear visual levels and TradingView alerts.
Linear Regression ChannelsThis indicator dynamically identifies and plots the best-fit linear regression channels based on recent pivot points, optimizing for statistical strength across user-defined depths.
How It Works (Technical Methodology)
1. Pivot Point Detection
The indicator uses Pine Script's ta.pivothigh() and ta.pivotlow() functions with a configurable sensitivity length to detect swing highs and lows. All recent pivot indices are stored in an array (limited to avoid performance issues), providing potential starting points for regression calculations.
2. Multi-Depth Evaluation
Users input comma-separated "Pivot History Depths" (e.g., "5,20,50"). For each depth:
- The script evaluates regression fits starting from the most recent pivots, up to the specified depth count.
- It calculates linear regression statistics for each possible channel originating from those pivot bars backward to the current bar.
3. Linear Regression Calculation
For each candidate channel:
- Slope (m) and intercept (b) are computed using least-squares method.
- R-squared (R²) measures goodness of fit (how well price follows the trend line).
- Standard error of the estimate is calculated to quantify volatility around the regression line.
- A composite score = R² × log(length) prioritizes stronger fits on longer periods.
4. Best-Fit Selection and Validation
- Only channels with R² ≥ user-defined minimum (default 0.5) are considered valid.
- The channel with the highest score for each depth is selected and drawn.
- This ensures the most statistically significant and relevant channels are displayed, avoiding weak or short-term noise.
5. Channel Construction
- Mean Line: The regression trend line extended slightly into the future.
- Inner Channels: ± user-configurable standard deviation multiplier (default 2.0σ) around the mean.
- Outer Bands: ±1.5× the inner deviation for additional visual context.
- Filled areas between mean and inner channels for better visibility.
- Color: Green shades for upward slopes (bullish trend), red shades for downward slopes (bearish trend).
6. Dashboard and Statistics
- Optional table in the top-right corner displays for each depth:
- Depth value
- R² (colored green if >0.7, orange otherwise)
- Slope (Beta) – positive blue for uptrend, red for downtrend
- Current Z-Score: How many standard deviations the latest close is from the expected regression value (yellow if |Z| > 2)
How to Use
Regression channels help identify trending markets, potential mean reversion, and overextension.
- Upward Channels (Green): Price above the mean may indicate strength; pullbacks to the mean or lower band offer long opportunities. Overextension above upper band could signal exhaustion.
- Downward Channels (Red): Price below the mean may indicate weakness; rallies to the mean or upper band offer short opportunities. Overextension below lower band could signal capitulation.
- High R² (>0.7): Strong trending channel – trade in direction of slope.
- Low R²: Choppy/range-bound market – avoid trend-following trades.
- Z-Score: |Z| > 2 suggests price is statistically overextended from the trend (potential reversion setup).
- Multi-Depth: Smaller depths catch short-term trends; larger depths capture major trends. Use multiple for confluence across timeframes.
Combine with volume, support/resistance, or other indicators for confirmation.
Disclaimer
This indicator is a technical analysis tool and should be used in conjunction with other forms of analysis. Past performance does not guarantee future results. Always use proper risk management.
Malama's Range BreakoutMalama's Range Breakout is a dynamic indicator designed to automatically detect periods of price consolidation (tight ranges) and generate actionable signals for breakouts or wick-based reversals.
Why It's Useful: Unlike fixed-time tools like Opening Range Breakouts (ORB), this indicator is Adaptive. It uses a volatility-adjusted threshold (ATR multiplier) to determine when a market is truly consolidating. This helps traders avoid false signals in choppy markets and focus on periods where volatility is compressing.
Key Features:
Adaptive Detection: Uses ATR over a user-defined lookback to find tight ranges automatically.
Preset Profiles: Quickly switch between optimized settings for:
Scalping: (Tight Ranges)
Intraday: (Normal Ranges)
Swing Trading: (Loose Ranges)
Options/Chop: (Extreme sideways movement)
Breakout Signals: Triggers "BUY/SELL" labels when price closes outside the box. Includes an optional Volume Filter to ignore low-momentum breakouts.
Wick Reversals: Detects "Fake-outs" where wicks probe the range boundary but fail to close outside, signaling a potential reversal back into the range.
How to Use:
Select a Profile: Choose "Normal" for standard day trading or "Tight" for scalping.
Wait for the Box: The indicator will draw an orange box when price consolidates.
Trade the Break: Wait for a confirmed close outside the box (Look for the "Malama BUY/SELL" label).
Watch for Rejection: If you see a "Wick" label, it means the breakout failed—be cautious or trade the reversal.
Settings:
Profile: Select your trading style (Scalping, Intraday, Swing).
Volume Filter: Require a volume spike to confirm breakouts (Recommended).
Wick Confirmation: Require a confirmation candle before signaling a wick reversal.
Universal Moving Average🙏🏻 UMA (Universal Moving Average) represents the most natural and prolly ‘the’ final general universal entity for calculating rolling typical value for any type of time-series. Simply via different weighting schemes applied together, it encodes:
Location of each datapoint in corresponding fields (price, time, volume)
Informational relevance of each datapoint via using windowing functions that are fundamental in nature and go beyond DSP inventions & approximations
Innovation in state space (in our case = volatility)
The real beauty of this development: being simply a weighting scheme that can be applied to anything: be it weighted median , weighted quantile regression, or weighted KDE , or a simple weighted mean (like in this script). As long as a method accepts weights, you can harness the power of this entity. It means that final algorithmic complexity will match your initial tool.
As a moving ‘average’ it beats ALMA, KAMA, MAMA, VIDYA and all others because it is a simple and general entity, and all it does is encoding ‘all’ available information. I think that post might anger a lot of people, because lotta things will be realized as legacy and many paywalls gonna be ignored, specially for the followers of DSP cult, the ones who yet don’t understand that aggregated tick data is not a signal omg, it’s a completely different type of time series where your methods simply don’t fit even closely. I am also sorry to inform y’all, that spectral analysis is much closer to state-space methods in spirit than to DSP. But in fact DSP is cool and I love it, well for actual signals xD
...
Weights explained & how to use them: as I already said, the whole thing is based on combining different set of weights, and you can turn them on/off in script settings. Btw I've set em up defaults so you can use the thing on price data out of the box right away.
Price, Time, Volume weights: encode location of every datapoint in Price & TIme & Volume field
Howtouse: u have to disable one weight that corresponds to the field you apply UMA to. E.g if you apply UMA to prices, you turn off price weighting And turn on time and volume weighting. Or if you apply UMA to volume delta, you turn off volume weighting And turn on price and time weighting.
Higher prices are more important, this asymmetry is confirmed and even proved by the fact that prices can’t be negative (don’t even mention that incorrect rollover on CL contract in 2k20...).
Signal weights: encode actuality/importance/relevance of datapoints.
Howtouse: in DSP terms, it provides smoothing, but also compensates for the lag it introduces. This smoothness is useful if you use slope reversals for signal generation aka watching peaks and valleys in a moving average shape. It's also better to perturb smoothed outputs with this , this way you inject high freq content back, But in controlled way!
Signal = information.
The fundamental universal entity behind so-called “smoothing” in DSP has nothing to do with signals and goes eons beyond DSP. This is simply about measuring the relevance of data in time.
First, new datapoints need some time to be “embedded” into the timeline, you can think of it as time proof, kinda stuff needs time to be proved, accepted; while earliest datapoints lose relevance in time.
Second, along with the first notion, at the same time there’s the counter notion that simply weights new data more, acting as a counterweight from the down-weighting of the latest datapoints introduced by the first notion.
The first part can be represented as PDF of beta(2, 2) window (a set of weights in our case). It’s actually well known as the Welch window, that lives in between so called statistical and DSP worlds, emerges in multiple contexts. Mainstream DSP users tho mostly don’t use this one, they use primitive legacy windowing function, you can find all kinds on this wiki page.
Now the second part, where DSP adepts usually stop, is to introduce the second compensating windowing function. Instead they try to reduce window size, or introduce other kinds of volatility weights, do some tricks, but it ain’t provides obviously. The natural step here is to simply use the integral of the initial window; if the initial window is beta(2, 2) then what we simply need is CDF of beta(2, 2), in fact the vertically inverted shape of it aka survival function . That’s it bros. Simply as that.
When both of these are applied you have smth magical, your output becomes smooth and yet not lagging. No arbitrary windowing functions, tricks with data modification etc
Why beta(2, 2)? It naturally arises in many contexts, it’s based on one of the most fundamental functions in the universe: x^2. It has finite support. I can talk more bout it on request, but I am absolutely sure this is it.
^^ impulse response of the resulting weighs together (green) compared with uniform weights aka boxcar (red). Made with this script .
Weighing by state: encodes state-space innovation of each datapoint, basically magnitude of changes, strength of these changes, aka volatility.
Howtouse: this makes your moving average volatility aware in proper math ways. The influence of datapoints will be stronger when changes are stronger. This is weighting by innovations, or weighting by volatility by using squared returns.
Why squared returns? They encode state‑space innovations properly because the innovation of any continuous‑time semimartingale is about its quadratic variation, and quadratic variation is built from squared increments, not absolute increments.
Adaptive length is not the right way to introduce adaptivity by volatility xD. When you weight datapoints by squared returns you’re already dynamically varying ‘effective’ data size, you don’t need anything else.
...
It’s all good, progress happens, that’s how the Universe works, that's how Universal Moving Average works. Time to evolve. I might update other scripts with this complete weighting scheme, either by my own desire or your request.
...
∞
SR Channel + EMA + RSI MTF + VolHighlightSR + Volume + RSI MTF – edited by Mochi
This indicator combines three tools into a single script:
SR Zones from Pivots
Automatically detects clusters of pivot highs/lows and groups them into support and resistance zones.
Zone width is tightened using a percentage of the pivot cluster range so levels are more precise and cleaner.
Each zone includes:
A colored box (SR area),
A dashed midline,
A POC line (price level with the highest traded volume inside the zone),
A label showing the zone price and distance (%) from current price.
Zone color is dynamic but simple and stable:
If price closes below the mid of the zone → it is treated as resistance (red).
If price closes above the mid of the zone → it is treated as support (green).
Box, lines, and label always share the same color.
Volume Inside the Zone + POC
Calculates buy/sell volume for candles whose close lies inside each zone.
Uses abs(buyVol − sellVol) / (buyVol + sellVol) to measure volume imbalance and control box opacity:
Stronger, more one‑sided volume → darker box (stronger zone).
POC is drawn as a thin line with the same color as the zone to highlight the best liquidity level for entries/TP.
Multi‑Timeframe RSI Dashboard
Shows RSI(14) values for multiple timeframes (1m, 5m, 15m, 30m, 1h, 4h, 8h, 1d), each can be toggled on/off.
Background color of each RSI cell:
RSI > 89 → red (strong overbought),
80–89 → orange (warning area),
RSI < 28 → lime (strong oversold),
Otherwise → white (neutral).
The goal of this script is to give traders a clear view of:
Key support/resistance zones,
Their volume quality and POC,
And multi‑TF overbought/oversold conditions via the RSI dashboard – all in one indicator to support retest/flip‑zone trading.
Long-term KST (Know Sure Thing)Description
Long-term Know Sure Thing (KST) oscillator, specifically adapted for non-24h markets such as stocks, indices, ETFs and futures.
This version correctly scales the weekly ROC periods based on the actual trading week length and daily session duration of the instrument — making it accurate across different asset classes (European indices, US equities, crypto, etc.).
Key features:
• Fully customizable trading week (5 days for most stock markets, 7 days for crypto/24h markets)
• Customizable daily session length (8.5h for FTSE MIB/DAX, 6.5h for US equities, 24h for crypto/forex)
• Automatically adjusts bar count per week on any chart timeframe (including Weekly)
• Classic Martin Pring KST parameters (10/13/15/20 ROC weeks, 10/13/15/20 SMA weeks, 1-2-3-4 weighting)
• Includes signal line (SMA of KST) and visual fill between KST and signal (green/red)
What is the Long-term KST used for?
The KST (Know Sure Thing) is a momentum oscillator created by Martin Pring to detect major trend changes, confirm the primary trend direction, and identify significant reversals in medium- to long-term cycles (weeks to months).
Main practical uses:
• Major trend reversals: KST crossing above/below signal line
• Primary trend confirmation: KST above/below zero line
• Classic divergences: Price vs KST divergences often precede important tops/bottoms
• Cycle identification: Helps spot the end of multi-month corrections or the start of new bull/bear phases
• Trend-following filter: Stay long when KST > 0 and rising, stay short when KST < 0 and falling
It is especially powerful on major indices (FTSE MIB, DAX, SPX, NDX, RUT, CAC40, Nikkei…) because it captures institutional money flow with fewer, higher-quality signals compared to faster oscillators.
Best used on:
• Daily, 4H, Weekly charts
• European indices (FTSE MIB, DAX, IBEX…)
• US indices/ETFs (SPX, NDX, RUT…)
• Crypto pairs (set week_length=7, session_duration=24h)
Enjoy trading the big-picture momentum!
Portfolio P&L Table 10 SlotsOverview
This indicator displays a compact, Excel-style position P&L table directly on your TradingView chart. It is designed to help traders track unrealized profit/loss for a manually-entered position and ensure the calculations only apply to the symbols you actually trade, preventing confusion when switching between tickers.
The script is symbol-aware: it checks the current chart symbol against up to 10 user-defined position slots and shows P&L only when a match is found.
Core Concept
Most P&L scripts on TradingView rely on a single set of inputs (average price, quantity), which remains active even when the user changes chart symbols. That can lead to incorrect P&L displays on instruments where no position exists.
This indicator solves that by combining:
Symbol matching logic (ticker / exchange:ticker / base ticker normalization)
Slot-based position storage (up to 10 positions)
Dynamic real-time P&L calculations driven by the chart’s live price
As a result, the table behaves like a “position panel” that follows the chart, while respecting your actual holdings list.
Matching & Display Logic
Symbol Detection
The indicator compares the current chart symbol to each slot’s symbol using multiple matching methods to reduce false mismatches:
Full symbol (EXCHANGE:TICKER)
Ticker only (TICKER)
Normalized “base ticker” extraction (useful when your chart format differs from inputs)
Position Selection
The first matching slot is selected and displayed.
If no slot matches, the table shows “No position for this symbol” and does not output P&L values.
P&L Calculation Logic
When a valid slot is matched and its values are valid:
Unrealized Gross P&L
Long: (Last Price − Avg Price) × Quantity
Short: (Avg Price − Last Price) × Quantity (handled via direction multiplier)
Unrealized Net P&L (optional)
If fees are enabled, the script subtracts the slot’s total fees from gross P&L.
P&L %
Calculated relative to average price, direction-adjusted for long/short positions.
Breakeven Price
Without fees: breakeven = average price
With fees: breakeven is adjusted using fees / quantity and direction.
The table updates automatically with market movement because all values are recalculated from the chart’s current price.
Inputs and Defaults
General
Include Fees? (default: Off)
Text Size
Table Position (Top/Bottom, Left/Right)
Slots (1 → 10)
Each slot contains:
Symbol (example formats: NVTS, NASDAQ:NVTS, NYSE:PATH)
Side (Long / Short)
Average Price
Quantity
Total Fees (optional; applied only when “Include Fees” is enabled)
Colors (Fully Customizable)
The table supports user-defined colors for:
Header text/background
Body text/background
Positive P&L color
Negative P&L color
Neutral/no-position color
This allows you to match the table visually to any chart theme.
The indicator is intended for :
Quick P&L visibility while charting
Avoiding accidental P&L “carry over” when switching symbols
Tracking a shortlist of positions without external spreadsheets
If you trade more than 10 tickers regularly, the script can be extended further using the same slot architecture.
Limitations
Values are unrealized and based on the chart’s price (close/last available feed).
The script does not track multiple lots per symbol automatically; each slot represents a single consolidated position (avg + total qty).
Disclaimer
This script is provided for educational and analytical purposes only. It does not constitute financial advice, investment recommendations, or an invitation to trade. Trading involves risk, and past performance does not guarantee future results. Always verify your position data and calculations independently before making trading decisions.
ICT ORB Killzones by MaxN (15 / 30m)Trading session open/close with first 15/30 min orbs
will just have to adjust time zones to your current time line
GMT +0
I use
Asia 23.00 - 06.00
London 07.00 - 16.00
New York 12.00 - 22.00






















