Cumulative Returns by Session [BackQuant]Cumulative Returns by Session
What this is
This tool breaks the trading day into three user-defined sessions and tracks how much each session contributes to return, volatility, and volume. It then aggregates results over a rolling window so you can see which session has been pulling its weight, how streaky each session has been, and how sessions relate to one another through a compact correlation heatmap.
We’ve also given the functionality for the user to use a simplified table, just by switching off all settings they are not interested in.
How it works
1) Session segmentation
You define APAC, EU, and US sessions with explicit hours and time zones. The script detects when each session starts and ends on every intraday bar and records its open, intraday high and low, close, and summed volume.
2) Per-session math
At each session end the script computes:
Return — either Percent: (Close−Open)÷Open×100(Close − Open) ÷ Open × 100(Close−Open)÷Open×100 or Points: (Close−Open)(Close − Open)(Close−Open), based on your selection.
Volatility — either Range: (High−Low)÷Open×100(High − Low) ÷ Open × 100(High−Low)÷Open×100 or ATR scaled by price: ATR÷Open×100ATR ÷ Open × 100ATR÷Open×100.
Volume — total volume transacted during that session.
3) Storage and lookback
Each day’s three session stats are stored as a row. You choose how many recent sessions to keep in memory. The script then:
Builds cumulative returns for APAC, EU, US across the lookback.
Computes averages, win rates, and a Sharpe-like ratio avgreturn÷avgvolatilityavg return ÷ avg volatilityavgreturn÷avgvolatility per session.
Tracks streaks of positive or negative sessions to show momentum.
Tracks drawdowns on cumulative returns to show worst runs from peak.
Computes rolling means over a short window for short-term drift.
4) Correlation heatmap
Using the stored arrays of session returns, the script calculates Pearson correlations between APAC–EU, APAC–US, and EU–US, and colors the matrix by strength and sign so you can spot coupling or decoupling at a glance.
What it plots
Three lines: cumulative return for APAC, EU, US over the chosen lookback.
Zero reference line for orientation.
A statistics table with cumulative %, average %, positive session rate, and optional columns for volatility, average volume, max drawdown, current streak, return-to-vol ratio, and rolling average.
A small correlation heatmap table showing APAC, EU, US cross-session correlations.
How to use it
Pick the asset — leave Custom Instrument empty to use the chart symbol, or point to another symbol for cross-asset studies.
Set your sessions and time zones — defaults approximate APAC, EU, and US hours, but you can align them to exchange times or your workflow.
Choose calculation modes — Percent vs Points for return, Range vs ATR for volatility. Points are convenient for futures and fixed-tick assets, Percent is comparable across symbols.
Decide the lookback — more sessions smooths lines and stats; fewer sessions makes the tool more reactive.
Toggle analytics — add volatility, volume, drawdown, streaks, Sharpe-like ratio, rolling averages, and the correlation table as needed.
Why session attribution helps
Different sessions are driven by different flows. Asia often sets the overnight tone, Europe adds liquidity and direction changes, and the US session can dominate range expansion. Separating contributions by session helps you:
Identify which session has been the main driver of net trend.
Measure whether volatility or volume is concentrated in a specific window.
See if one session’s gains are consistently given back in another.
Adapt tactics: fade during a mean-reverting session, press during a trending session.
Reading the tables
Cumulative % — sum of session returns over the lookback. The sign and slope tell you who is carrying the move.
Avg Return % and Positive Sessions % — direction and hit rate. A low average but high hit rate implies many small moves; the reverse implies occasional big swings.
Avg Volatility % — typical intrabars range for that session. Compare with Avg Return to judge efficiency.
Return/Vol Ratio — return per unit of volatility. Higher is better for stability.
Max Drawdown % — worst cumulative give-back within the lookback. A quick way to spot riskiness by session.
Current Streak — consecutive up or down sessions. Useful for mean-reversion or regime awareness.
Rolling Avg % — short-window drift indicator to catch recent turnarounds.
Correlation matrix — green clusters indicate sessions tending to move together; red indicates offsetting behavior.
Settings overview
Basic
Number of Sessions — how many recent days to include.
Custom Instrument — analyze another ticker while staying on your current chart.
Session Configuration and Times
Enable or hide APAC, EU, US rows.
Set hours per session and the specific time zone for each.
Calculation Methods
Return Calculation — Percent or Points.
Volatility Calculation — Range or ATR; ATR Length when applicable.
Advanced Analytics
Correlation, Drawdown, Momentum, Sharpe-like ratio, Rolling Statistics, Rolling Period.
Display Options and Colors
Show Statistics Table and its position.
Toggle columns for Volatility and Volume.
Pick individual colors for each session line and row accents.
Common applications
Session bias mapping — find which window tends to trend in your market and plan exposure accordingly.
Strategy scheduling — allocate attention or risk to the session with the best return-to-vol ratio.
News and macro awareness — see if correlation rises around central bank cycles or major data releases.
Cross-asset monitoring — set the Custom Instrument to a driver (index future, DXY, yields) to see if your symbol reacts in a particular session.
Notes
This indicator works on intraday charts, since sessions are defined within a day. If you change session clocks or time zones, give the script a few bars to accumulate fresh rows. Percent vs Points and Range vs ATR choices affect comparability across assets, so be consistent when comparing symbols.
Session context is one of the simplest ways to explain a messy tape. By separating the day into three windows and scoring each one on return, volatility, and consistency, this tool shows not just where price ended up but when and how it got there. Use the cumulative lines to spot the steady driver, read the table to judge quality and risk, and glance at the heatmap to learn whether the sessions are amplifying or canceling one another. Adjust the hours to your market and let the data tell you which session deserves your focus.
Chỉ báo và chiến lược
Script_Algo - Pivot Trend Rider Strategy📌 This strategy aims to enter a trade in the direction of the trend, catching a reversal point at the end of a correction.
The script is unique due to the combination of three key elements:
🔹 Detection of reversal points through searching for local lows and highs
🔹 Trend filter based on SMA for trading only in the trend direction
🔹 Adaptive risk management using ATR for dynamic stop-losses and take-profits
This allows the strategy to work effectively in various market conditions, minimizing false signals and adapting to market volatility.
⚙️ Principle of Operation
The strategy is based on the following logical components:
📈 Entry Signals:
Long: when a local low (pivot low) is detected in an uptrend
Short: when a local high (pivot high) is detected in a downtrend
📉 Position Management:
Stop-loss and take-profit are calculated based on ATR
Automatic reverse switching when an opposite signal appears
📊 Trend Filter:
Uses SMA to determine trend direction (can be disabled if needed)
🔧 Default Settings
Pivot detection: 11 bars
SMA filter length: 16 periods
ATR period: 14
SL multiplier: 2.5
TP multiplier: 10
Trend filter: enabled
🕒 Usage Recommendations
Timeframe: from 1 hour and above
Assets: cryptocurrency pairs, stocks
🤖 Trading Automation
This script is fully ready for integration with cryptocurrency exchanges via Webhook.
📊 Backtest Results
As seen from testing results, over 4.5 years this strategy could have potentially generated about $5000 profit or 50% of initial capital on the NAERUSDT crypto pair on the 4H timeframe.
Position size: $1000
Max drawdown: $1400
Total trades: 376
Win rate: 38%
Profit factor: 1.34
⚠️ Disclaimer
Please note that the results of the strategy are not guaranteed to repeat in the future. The market constantly changes, and no algorithm can predict exactly how an asset will behave.
The author of this strategy is not responsible for any financial losses associated with using this script.
All trading decisions are made solely by the user.
Trading financial markets carries high risks and can lead to loss of your investments.
Before using the strategy, it is strongly recommended to:
✅ Backtest the strategy on historical data
✅ Start with small trading volumes
✅ Use only risk capital you are ready to lose
✅ Fully understand how the strategy works
🔮 Further Development
The strategy will continue to evolve and improve. Planned updates include:
Adding additional filters to reduce false signals
Optimizing position management algorithms
Expanding functionality for various market conditions
💡 Wishing everyone good luck and profitable trading!
📈 May your charts be green and your portfolios keep growing!
Developed by Script_Algo | MIT License | Version 1.0
ICC Indicator V6An adjustable Pine Script v6 “ICC” indicator that detects Indication → Correction → Continuation market structure across timeframes with optional volume confirmation, plots swing levels and zones, shows editable labels and toggleable yellow buy/sell triangle signals, and includes debug tools for tuning.
Speed od Engulfing Candles
Blue candles = fast bullish engulfings.
Magenta candles = fast bearish engulfings.
Everything else stays default.
KeyLevel - AOCKeyLevel - AOC
✨ Features📈 Session Levels: Tracks high, low, and open prices for Asian, London, and New York sessions.📅 Multi-Timeframe Levels: Plots previous day, week, month, quarter, and yearly open/high/low levels.⚙️ Preset Modes: Choose Scalp, Intraday, or Swing presets for tailored level displays.🎨 Customizable Visuals: Adjust colors, line styles, and label abbreviations for clarity.🖼️ Legend Table: Displays a color-coded legend for quick reference to session and period levels.🔧 Flexible Settings: Enable/disable specific sessions or levels and customize UTC offsets.
🛠️ How to Use
Add to Chart: Apply the "KeyLevel - AOC" indicator on TradingView.
Configure Inputs:
Preset: Select Scalp, Intraday, or Swing, or use custom settings.
Session Levels: Toggle Asian, London, NY sessions and their open/high/low lines.
Period Levels: Enable/disable previous day, week, month, quarter, or yearly levels.
Visuals: Adjust colors, line widths, and label abbreviations.
Legend: Show/hide the legend table for level identification.
Analyze: Monitor key levels for support/resistance and session-based price action.
Track Trends: Use levels to identify breakouts, reversals, or consolidation zones.
🎯 Why Use It?
Dynamic Levels: Tracks critical price levels across multiple timeframes for comprehensive analysis.
Session Focus: Highlights key session price points for intraday trading strategies.
Customizable: Tailor displayed levels and visuals to match your trading style.
User-Friendly: Clear lines, labels, and legend table simplify price level tracking.
📝 Notes
Ensure timeframe compatibility (e.g., avoid daily charts for session levels).
Use M5 or higher timeframes for accurate session tracking; some levels disabled on M5.
Combine with indicators like RSI or MACD for enhanced trading signals.
Adjust UTC offset if session times misalign with your broker’s timezone.
VWAP Trend Strategy (Intraday) [KedarArc Quant]Description:
An intraday strategy that anchors to VWAP and only trades when a local EMA trend gate and a volume participation gate are both open. It offers two entry templates—Cross and Cross-and-Retest—with an optional Momentum Exception for impulsive moves. Exits combine a TrendBreak (structure flips) with an ATR emergency stop (risk cap).
Updates will be published under this script.
Why this merits a new script
This is not a simple “VWAP + EMA + ATR” overlay. The components are sequenced as gates and branches that *change the trade set* in ways a visual mashup cannot:
1. Trend Gate first (EMA fast vs. slow on the entry timeframe)
Counter-trend VWAP crosses are suppressed. Many VWAP scripts fire on every cross; here, no entry logic even evaluates unless the trend gate is open.
2. Participation Gate second (Volume SMA × multiplier)
This gate filters thin liquidity moves around VWAP. Without it, the same visuals would produce materially more false triggers.
3. Branching entries with structure awareness
* Cross: Immediate VWAP cross in the trend direction.
* Cross-and-Retest: Requires a revisit to VWAP vicinity within a lookback window (recent low near VWAP for longs; recent high for shorts). This explicitly removes first-touch fakeouts that a plain cross takes.
* Momentum Exception (optional): A quantified body% + volume condition can bypass the retest when flow is impulsive—intentional risk-timing, not “just another indicator.”
4. Dual exits that reference both anchor and structure
* TrendBreak: Close only when price loses VWAP and EMA alignment flips.
* ATR stop: Placed at entry to cap tail risk.
These exits complement the entry structure rather than being generic stop/target add-ons.
What it does
* Trades the session’s fair value anchor (VWAP), but only with local-trend agreement (EMA fast vs. slow) and sufficient participation (volume filter).
* Lets you pick Cross or Cross-and-Retest entries; optionally allow a fast Momentum Exception when candles expand with volume.
* Manages positions with a structure exit (TrendBreak) and an emergency ATR stop from entry.
How it works (concepts & calculations)
* VWAP (session anchor):
Standard VWAP of the active session; entries reference the cross and the retest proximity to VWAP.
* Trend gate:
Long context only if `EMA(fast) > EMA(slow)`; short only if `EMA(fast) < EMA(slow)`.
A *gate*, not a trigger—entries aren’t considered unless this is true.
* Participation (volume) gate:
Require `volume > SMA(volume, volLen) × volMult`.
Screens out low-participation wiggles around VWAP.
Entries:
* Cross: Price crosses VWAP in the trend direction while volume gate is open.
* Cross-and-Retest: After crossing, price revisits VWAP vicinity within `lookback` (recent *low near VWAP* for longs; recent *high near VWAP* for shorts).
* Momentum Exception (optional): If body% (|close−open| / range) and volume exceed thresholds, enter without waiting for the retest.
Exits:
* TrendBreak (structure):
* Longs close when `price < VWAP` and `EMA(fast) < EMA(slow)` (mirror for shorts).
* ATR stop (risk):
* From entry: `stop = entry ± ATR(atrLen) × atrMult`.
How to use it ?
1. Select market & timeframe: Intraday on liquid symbols (equities, futures, crypto).
2. Pick entry mode:
* Start with Cross-and-Retest for fewer, more selective signals.
* Enable Momentum Exception if strong moves leave without retesting.
3. Tune guards:
* Raise `volMult` to ignore thin periods; lower it for more activity.
* Adjust `lookback` if retests come late/early on your symbol.
4. Risk:
* `atrLen` and `atrMult` set the emergency stop distance.
5. Read results per session: Optional panel (if enabled) summarizes Net-R, Win%, and PF for today’s session to evaluate
behavior regime by regime.
⚠️ Disclaimer
This script is provided for educational purposes only.
Past performance does not guarantee future results.
Trading involves risk, and users should exercise caution and use proper risk management when applying this strategy.
Trend FriendTrend Friend — What it is and how to use it
I built Trend Friend to stop redrawing the same trendlines all day. It automatically connects confirmed swing points (fractals) and keeps the most relevant lines in front of you. The goal: give you clean, actionable structure without the guesswork.
What it does (in plain English)
Finds swing highs/lows using a Fractal Period you choose.
Draws auto-trendlines between the two most recent confirmed highs and the two most recent confirmed lows.
Colours by intent:
Lines drawn from highs (potential resistance / bearish) = Red
Lines drawn from lows (potential support / bullish) = Green
Keeps the chart tidy: The newest lines are styled as “recent,” older lines are dimmed as “historical,” and it prunes anything beyond your chosen limit.
Optional crosses & alerts: You can highlight when price closes across the most recent line and set alerts for new lines formed and upper/lower line crosses.
Structure labels: It tags HH, LH, HL, LL at the swing points, so you can quickly read trend/rotation.
How it works (under the hood)
A “fractal” here is a confirmed pivot: the highest high (or lowest low) with n bars on each side. That means pivots only confirm after n bars, so signals are cleaner and less noisy.
When a new pivot prints, the script connects it to the prior pivot of the same type (high→high, low→low). That gives you one “bearish” line from highs and one “bullish” line from lows.
The newest line is marked as recent (brighter), and the previous recent line becomes historical (dimmed). You can keep as many pairs as you want, but I usually keep it tight.
Inputs you’ll actually use
Fractal Period (n): this is the big one. It controls how swingy/strict the pivots are.
Lower n → more swings, more lines (faster, noisier)
Higher n → fewer swings, cleaner lines (slower, swing-trade friendly)
Max pair of lines: how many pairs (up+down) to keep on the chart. 1–3 is a sweet spot.
Extend: extend lines Right (my default) or Both ways if you like the context.
Line widths & colours: recent vs. historical are separate so you can make the active lines pop.
Show crosses: toggle the X markers when price crosses a line. I turn this on when I’m actively hunting breakouts/retests.
Reading the chart
Red lines (from highs): I treat these as potential resistance. A clean break + hold above a red line often flips me from “fade” to “follow.”
Green lines (from lows): Potential support. Same idea in reverse: break + hold below and I stop buying dips until I see structure reclaim.
HH / LH / HL / LL dots: quick read on structure.
HH/HL bias = uptrend continuation potential
LH/LL bias = downtrend continuation potential
Mixed prints = rotation/chop—tighten risk or wait for clarity.
My H1 guidance (fine-tuning Fractal Period)
If you’re mainly on H1 (my use case), tune like this:
Fast / aggressive: n = 6–8 (lots of signals, good for momentum days; more chop risk)
Balanced (recommended): n = 9–12 (keeps lines meaningful but responsive)
Slow / swing focus: n = 13–21 (filters noise; better for trend days and higher-TF confluence)
Rule of thumb: if you’re getting too many touches and whipsaws, increase n. If you’re late to obvious breaks, decrease n.
How I trade it (example workflow)
Pick your n for the session (H1: start at 9–12).
Mark the recent red & green lines. That’s your immediate structure.
Look for interaction:
Rejections from a line = fade potential back into the range.
Break + close across a line = watch the retest for continuation.
Confirm with context: session bias, HTF structure, and your own tools (VWAP, RSI, volume, FVG/OB, etc.).
Plan the trade: enter on retest or reclaim, stop beyond the line/last swing, target the opposite side or next structure.
Alerts (set and forget)
“New trendline formed” — fires when a new high/low pivot confirms and a fresh line is drawn.
“Upper/lower trendline crossed” — fires when price crosses the most recent red/green line.
Use these to track structure shifts without staring at the screen.
Good to know (honest limitations)
Confirmation lag: pivots need n bars on both sides, so signals arrive after the swing confirms. That’s by design—less noise, fewer fake lines.
Lines update as structure evolves: when a new pivot forms, the previous “recent” line becomes “historical,” and older ones can be removed based on your max setting.
Not an auto trendline crystal ball: it won’t predict which line holds or breaks—it just keeps the most relevant structure clean and up to date.
Final notes
Works on any timeframe; I built it with H1 in mind and scale to H4/D1 by increasing n.
Pairs nicely with session tools and VWAP for intraday, or with supply/demand / FVGs for swing planning.
Risk first: lines are structure, not guarantees. Manage position size and stops as usual.
Not financial advice. Trade your plan. Stay nimble.
Refic PackRefic Pack - Session Highs/Lows & Fair Value Gaps
A comprehensive trading tool that combines session-based analysis with Fair Value Gap (FVG) detection across multiple market sessions. This indicator highlights key trading zones and inefficiencies during:
Asia Session (1:00-2:00 AM London time)
London AM (8:00-9:00 AM London time)
New York AM (2:30-3:30 PM London time)
New York PM (6:30-7:30 PM London time)
Features:
Color-coded session backgrounds for easy identification
Automatic detection of the first Fair Value Gap in each session
Customizable FVG box colors, borders, and extension length
Session high/low tracking for key support/resistance levels
Clean visual presentation with manageable box limits
Perfect for traders who focus on session-based strategies, institutional order flow, and price inefficiency trading. Works on all timeframes and helps identify high-probability reversal and continuation zones during key market hours.
Supertrend Channel Histogram OscillatorThis histogram is based on the script "Supertrend Channels "
The idea of the indicator is to visually represent the interaction of price with several different supertrend channels of various lengths in an oscillator in order to make it much more clear to the trader how the longer trends are interacting with shorter trends of the price movement of an asset. I got this idea from the "Kurutoga Cloud" and "Kurutoga Histogram" by D7R which is based on the centerlines of 3 Donchian Channels, however after I started using the Supertrend Channel by LuxAlgo I found that it was a more reliable price range channel than a standard Donchian Channel and I made this indicator to accompany it.
This indicator plots a positive value above 0 when the price is above the centerline of the supertrend channel and a negative value below 0 when the price is below the centerline.
The first supertrend's length and multiple can be adjusted in the settings.
The given supertrend input is then doubled and quadrupled in both length and multiplication so that a supertrend histogram with the values of 3, 3 will be accompanied by 2 additional supertrend histograms with the values of 6, 6 and 12, 12.
The larger price trend histograms are clearly visible behind the short term supertrend channel's histogram, giving traders a balanced view of short and long term trends interacting. The less visible columns of the larger trend remain above or below the 0 line behind the more visible short term channel trend, helping to spot pullbacks within a larger trend.
Additionally, when the 3 separate histograms are all positive or all negative but the histogram columns are separating from each other this can indicate a potential trend exhaustion leading to reversal or pullback about to happen.
The overbought and oversold lines at 50 and -50 are representative primarily of the short term trend with above 50 or below -50 indicating that the price is pushing the boundary and potentially beginning a new short term supertrend in the opposite direction. If values do not noticably exceed these levels, then the current short term trend movement can be viewed as a pullback within a larger trend, with continuation potentially to follow.
I have had troubles converting the original code to v6 so this will be published here in v5 of pinescript to be used in conjunction with the original. I was intending to create a companion indicator for this oscillator that represents 3 supertrends with corresponding 2x and 4x calculations based on LuxAlgo's script, but I can't seem to get it to work correctly in v5.
For best visualization of the trends 3 LuxAlgo Supertrend channels with 2x and 4x values should be used in conjunction with each other to fully visualize the histogram.
Used in conjunction with other indicators this can be a very effective strategy to capture larger trend moves and pullbacks within trends, as well as warn of potential price trend exhaustion.
Chanpreet RSI(3) Extreme Rays (4H, Adjustable Style)Chanpreet RSI(3) Extreme Rays (4H)
This indicator applies a short-length RSI (3) on the 4-hour timeframe and highlights momentum extremes directly on the chart.
🔎 What it does
Detects when RSI(3) moves into overbought (>80) or oversold (<20) territory.
Groups consecutive candles inside these zones into one “event” instead of marking each bar individually.
For each event:
• In overbought → records the highest high of the stretch and marks it with a horizontal ray.
• In oversold → records the lowest low of the stretch and marks it with a horizontal ray.
Keeps only the most recent N rays (default 5, adjustable).
⚙️ Inputs
Max Rays to Keep → how many unique events are kept visible.
Ray Thickness → adjust line thickness.
Overbought Ray Color → default red.
Oversold Ray Color → default green.
📈 How to use
Apply on any chart; RSI(3) values are always calculated from 4H data (via request.security).
Use rays as reference levels that highlight recent momentum extremes or exhaustion zones.
This is not a buy/sell signal by itself — combine with your own analysis, confirmation tools, and risk management.
Best Recommended time frame is 5 mins, 10 mins & 15 mins for intraday trading.
🧩 Unique features
Groups multiple bars into a single clean ray, reducing clutter.
Uses 4H RSI(3) regardless of the chart’s active timeframe.
Fully customizable appearance (colors, thickness, max events).
⚠️ Disclaimer
This script is provided for educational and informational purposes only.
It does not constitute financial advice or guarantee performance.
Always test thoroughly and use proper risk management before trading live.
Kalman Sigmoid Z-score | SurgeQuantTitle: Kalman Sigmoid Z-score Indicator
The Kalman Sigmoid Z-score indicator is a sophisticated tool designed to identify market momentum and potential trend changes using a combination of Kalman filtering, sigmoid-weighted averaging, and Z-score calculations. By processing price data through a Kalman filter and applying adaptive sigmoid weighting, this indicator provides clear visual signals for bullish and bearish market conditions. The Z-score output and price bars are dynamically colored to highlight momentum shifts, aiding traders in identifying potential trading opportunities.
How It Works
Kalman Filter Calculation
Computes a smoothed price series using a Kalman filter based on a user-selected price source (Close, High, Low, or Open) with configurable parameters for process noise, measurement noise, and filter order (default: 3).
The Kalman filter reduces noise in the price data, providing a stable foundation for further analysis.
Sigmoid-Weighted Averaging
Applies a sigmoid function to calculate adaptive weights based on price comparisons over a user-defined lookback period (default: 10).
Weights are adjusted dynamically using a volatility ratio (standard deviation over ATR) to account for market conditions, enhancing signal reliability.
Z-score Calculation
Calculates the Z-score of the Kalman-filtered price relative to a sigmoid-weighted moving average over a user-defined period (default: 20).
Bullish Signal: Triggered when the Z-score crosses above 0, indicating potential upward momentum.
Bearish Signal: Triggered when the Z-score crosses below 0, indicating potential downward momentum.
Visual Representation
The indicator provides a clear and customizable visual interface:
Z-score Histogram: Displayed as colored columns, with distinct colors for bullish (Z-score > 0) and bearish (Z-score < 0) conditions.
Bright green (#4DFFBE) for rising Z-score above 0.
Light green (#56DFCF) for falling Z-score above 0.
Dark purple (#AE75DA) for falling Z-score below 0.
Light purple (#4D2D8C) for rising Z-score below 0.
Price Bar Coloring: Synchronizes with the Z-score colors to reflect momentum on the main chart.
Reference Line: A zero line is plotted on the Z-score panel for easy reference.
Customization & Parameters
The Kalman Sigmoid Z-score indicator offers flexible parameters to suit various trading styles:
Source: Select the input price (default: Close; options: Close, High, Low, Open).
Lookback Period: Set the period for sigmoid weight calculations (default: 10).
Volatility Period: Adjust the period for volatility ratio calculation (default: 30).
Base Steepness: Control the sigmoid function’s sensitivity (default: 5).
Base Midpoint: Set the sigmoid function’s midpoint (default: 0.01).
Z-score Period: Define the period for Z-score calculation (default: 20).
Kalman Parameters:
Process Noise (default: 0.01).
Measurement Noise (default: 3).
Filter Order (default: 3).
Color Settings: Predefined colors with distinct shades for bullish and bearish states, ensuring clear visual differentiation.
Trading Applications
This indicator is versatile and can be applied across various markets and strategies:
Momentum Trading: Highlights strong bullish or bearish momentum for potential entry or exit points based on Z-score crossings.
Trend Confirmation: Use bar coloring to confirm Z-score signals with price action on the main chart.
Reversal Detection: Identify potential reversals when the Z-score crosses the zero line.
Scalping and Swing Trading: Adjust parameters (e.g., lookback, Z-score period) to suit short-term or longer-term strategies.
Final Note
The Kalman Sigmoid Z-score indicator is a powerful tool for traders seeking to leverage advanced filtering and statistical analysis for momentum and trend-based opportunities. Its combination of Kalman-filtered price smoothing, sigmoid-weighted averaging, dynamic Z-score signals, and synchronized bar coloring offers a robust framework for informed trading decisions. As with all indicators, backtest thoroughly and integrate into a comprehensive trading strategy for optimal results. This indicator is provided for educational and informational purposes and should not be considered financial advice.
FVG Inversion + Improved Order Block (15/30/60) — by samoedlooking for ifvg + ob 15/30/60m
gives short and long signals
AlphaTrend Pro — Trend & Momentum Indicator📌 AlphaTrend Pro — Trend & Momentum Indicator
The AlphaTrend Pro is a professional trend-following & momentum confirmation tool designed to identify high-probability buy and sell signals in any market (Forex, Crypto, Indices, Commodities).
🔎 How It Works
AlphaTrend Bands (EMA ± ATR):
Dynamic support/resistance zones based on volatility.
Trend Detection:
✅ Price above Alpha Upper Band → Bullish Trend (BUY Zone).
❌ Price below Alpha Lower Band → Bearish Trend (SELL Zone).
⚪ Price between bands → Neutral (No Trade).
RSI Filter (Optional):
Prevents false entries in ranging markets.
Confirms momentum before signals.
📊 Features
Clear BUY/SELL signals with arrows on chart.
Trend-colored candles for quick visual bias.
Built-in alerts for automation (works with bots, Telegram, webhooks).
On-screen dashboard showing live trend status.
Works on all timeframes & markets (Scalping, Swing, Position Trading).
⚡ Best Use
Use on higher timeframes (1H, 4H, Daily) for trend confirmation.
Enter on lower timeframes for precise entries.
Combine with price action or support/resistance for maximum accuracy.
Inflection Level Displayer V.2Display: Weekly Support/ Resistance, Inflection Levels, Bullbear
Adjust: Line Color, strength, style, opacity
Add: Zone around Inflection Level
Algorithmic Kalman Filter [CRYPTIK1]Price action is chaos. Markets are driven by high-frequency algorithms, emotional reactions, and raw speculation, creating a constant stream of noise that obscures the true underlying trend. A simple moving average is too slow, too primitive to navigate this environment effectively. It lags, it gets chopped up, and it fails when you need it most.
This script implements an Algorithmic Kalman Filter (AKF), a sophisticated signal processing algorithm adapted from aerospace and robotic guidance systems. Its purpose is singular: to strip away market noise and provide a hyper-adaptive, self-correcting estimate of an asset's true trajectory.
The Concept: An Adaptive Intelligence
Unlike a moving average that mindlessly averages past data, the Kalman Filter operates on a two-step principle: Predict and Update.
Predict: On each new bar, the filter makes a prediction of the true price based on its previous state.
Update: It then measures the error between its prediction and the actual closing price. It uses this error to intelligently correct its estimate, learning from its mistakes in real-time.
The result is a flawlessly smooth line that adapts to volatility. It remains stable during chop and reacts swiftly to new trends, giving you a crystal-clear view of the market's real intention.
How to Wield the Filter: The Core Settings
The power of the AKF lies in its two tuning parameters, which allow you to calibrate the filter's "brain" to any asset or timeframe.
Process Noise (Q) - Responsiveness: This controls how much you expect the true trend to change.
A higher Q value makes the filter more sensitive and responsive to recent price action. Use this for highly volatile assets or lower timeframes.
A lower Q value makes the filter smoother and more stable, trusting that the underlying trend is slow-moving. Use this for higher timeframes or ranging markets.
Measurement Noise (R) - Smoothness: This controls how much you trust the incoming price data.
A higher R value tells the filter that the price is extremely noisy and to be more skeptical. This results in a much smoother, slower-moving line.
A lower R value tells the filter to trust the price data more, resulting in a line that tracks price more closely.
The interaction between Q and R is what gives the filter its power. The default settings provide a solid baseline, but a true operator will fine-tune these to perfectly match the rhythm of their chosen market.
Tactical Application
The AKF is not just a line; it's a complete framework for viewing the market.
Trend Identification: The primary signal. The filter's color code provides an unambiguous definition of the trend. Teal for an uptrend, Pink for a downtrend. No more guesswork.
Dynamic Support & Resistance: The filter itself acts as a dynamic level. Watch for price to pull back and find support on a rising (Teal) filter in an uptrend, or to be rejected by a falling (Pink) filter in a downtrend.
A Higher-Order Filter: Use the AKF's trend state to filter signals from your primary strategy. For example, only take long signals when the AKF is Teal. This single rule can dramatically reduce noise and eliminate low-probability trades.
This is a professional-grade tool for traders who are serious about gaining a statistical edge. Ditch the lagging averages. Extract the signal from the noise.
Liquidity HeatmapDescription: This script calculates liquidity based on CME data and visualizes it
on the chart as a heatmap. Areas with high volumes of liquidity will
be highlighted, providing insights into market activity.
Note: This script assumes that you have access to CME data and that the data is
available in the TradingView environment.
Bullish & Bearish Once Bar PainterThe Bullish & Bearish First Bar Marker is a simple yet powerful indicator designed to highlight the first bullish and bearish bars in a sequence, helping traders identify key momentum shifts in the market. It marks:Bullish Bars: The first bar where the high and low are both higher than the previous bar (high > high and low > low ), painted green with a "Bullish" label.
Bearish Bars: The first bar where the high and low are both lower than the previous bar (high < high and low < low ), painted red with a "Bearish" label.
To avoid clutter, consecutive bullish or bearish bars are not marked until a non-bullish or non-bearish bar resets the sequence. This makes it ideal for spotting the start of strong upward or downward price movements.
EMA Zonen + Projektion (21, 50 + 200)standard 21ema, 50ema and 200ema,
ema Projection for next 3 Bars,
1% Box above to below all emas.
A+ 0DTE Signal Suite [VWAP/EMA/SR/Volume] By Delta Surge
# What the indicator actually does (quick decode)
* **Bias (15-min):** Price vs VWAP and 13EMA vs 48EMA on 15m.
* **Entry engines:** recent **reclaim/reject** of VWAP/EMA13, **ORB-15** break/retest, **PDH/PDL** reclaim/break, **AVWAP-open** reclaim/reject, **inside-15** break, **squeeze release**, **liquidity sweep + reclaim**, **Delta Surge** (big candle + vol spike).
* **Score → Stars:** more confluence = higher score → ★–★★★★★.
* **Arrows/labels:** ▲/▼ and “BUY CALLS/PUTS + stars”.
* **Stops/Targets:** stop = min(VWAP, EMA13) for calls / max(VWAP, EMA13) for puts. The script marks **1R/2R** (risk multiples) and shows a small **EXIT?** hint if price gives up the “mean”.
> Translation: wait for **trend + reclaim + volume**, take the high-star signals, manage with R-multiples.
---
# Default settings that work well
**Timeframe:** 5-minute for decisions (1–3m only if you’re scalping); leave the 15-minute bias on.
**Inputs to keep ON:** ORB-15, PDH/PDL, AVWAP from open, Delta Surge, Squeeze (optional on very choppy days).
**Star gate:** set **Minimum Score** to **4–5** and only act on **★★★ or higher**.
**Session windows:** ON to avoid lunch chop (already in the script).
---
# Symbol-specific setup
## QQQ
* **Leader:** turn ON **Require Leader Confirm**
**Leader Symbol:** `CME_MINI:NQ1!` (fallback: `NASDAQ:NDX` or `AMEX:QQQ` if no futures)
**Leader TF:** 3m or 5m
* **Vol filter:** use **VXN** instead of VIX if you want (set `vixSymbol = "CBOE:VXN"` and turn ON Require VIX).
* **RVOL threshold:** **1.10–1.25**.
* **Minimum workable R (1R distance):** **0.8–1.2 QQQ points**.
* **Room check (eyeball):** to next S/R/ORB level ≥ **1.5R**.
## SPY
* **Leader:** `CME_MINI:ES1!` ON, 3–5m.
* **Vol filter:** VIX.
* **RVOL:** **1.10–1.30**.
* **Min 1R:** **0.5–0.8 SPY points**.
## SPX
* **Leader:** `CME_MINI:ES1!` ON, 3–5m.
* **Vol filter:** VIX.
* **RVOL:** **1.20–1.35** (0DTE needs juice).
* **Min 1R:** **8–12 SPX points** (quiet vs active).
* **Pro tip:** avoid signals if 15-min ATR < **2 × your R**.
## TSLA
* **Leader (optional):** QQQ (`AMEX:QQQ`) or NQ futures (`CME_MINI:NQ1!`) — pick one and keep it consistent.
* **Vol filter:** usually OFF (TSLA has its own tape), but you can keep it on VIX if you like.
* **RVOL:** **1.10–1.30**.
* **Min 1R:** **1.5–3.0 TSLA points**, or at least **¼ of 15-min ATR**.
---
# When to take the trade (entry checklist)
Only act when MOST boxes are checked:
1. **Trend/Bias:** 15-min bias agrees with your side (bull for calls, bear for puts).
2. **Fresh trigger:** a **reclaim/reject** or **ORB-15 retest** happened within `winBars` (default 3 bars).
3. **Location:** entry is **near VWAP/EMA13** (not in the middle of nowhere) OR it’s a proper **retest** of ORB/PDH/PDL/AVWAP.
4. **Volume:** RVOL ≥ your threshold; Delta Surge helps.
5. **Room:** at least **1.5R** to the next obvious level.
6. **Stars:** **★★★+** (ideally ★★★★/★★★★★).
7. **Leader confirms:** ON and aligned (NQ for QQQ, ES for SPY/SPX, QQQ/NQ for TSLA).
8. **Time of day:** opening drive (first 90m) or power hour; avoid mid-day unless RVOL is strong.
> **Entry:** on the printed **▲/▼** bar close (or the retest candle), set stop at min/max(VWAP, EMA13) as the script implies.
---
# How to manage it
* **Position size by R:** choose a dollar risk; contracts = dollar risk ÷ (R × option delta).
* **1R:** take **partial** at **1R**, move stop to **breakeven**.
* **2R:** scale more or flat the rest near 2R or the next HTF level.
* **Mean exit:** if the orange **EXIT?** prints before 1R, consider bailing or reducing.
**Option selection (0DTE):**
* Expect a drive? pick **0.45–0.55 delta**.
* Expect a grind up after reclaim? **0.30–0.40 delta**.
* If spread is ugly, step out a strike or use next-day expiry.
---
# Reading the signals (plain English)
* **BUY CALLS (▲) + stars:** bullish setup with confluence. More stars = more factors aligned.
* **BUY PUTS (▼) + stars:** bearish setup with confluence.
* **CALL/PUT 1R, 2R:** price hit +1× or +2× your initial risk.
* **CALL/PUT EXIT?**: momentum gave up (price crossed back through the stop reference).
---
# High-probability patterns to favor
1. **Reclaim + Retest + RVOL:** close above VWAP/EMA13, then a small pullback tags a level and holds — ★★★★+ often.
2. **ORB-15 break & retest with RVOL:** especially after a tight inside pre-market; take the retest.
3. **Squeeze release in bias direction:** first expansion bar with RVOL.
4. **Sweep + reclaim at a key HTF level:** wick below prior swing low then fast reclaim above VWAP/EMA13.
**Avoid:** counter-bias signals at noon, signals into a level sitting <1R away, or signals without RVOL.
---
# Suggested starting presets
* **QQQ:** minScore 4–5, rvThresh 1.15, Leader ON (`NQ1!`), VXN optional, act on **★★★+** only.
* **SPY:** minScore 4, rvThresh 1.15–1.25, Leader ON (`ES1!`), VIX ON, **★★★+**.
* **SPX:** minScore 5, rvThresh 1.25–1.35, Leader ON (`ES1!`), VIX ON, **★★★★+** only.
* **TSLA:** minScore 4–5, rvThresh 1.15–1.30, Leader ON (`QQQ` or `NQ1!`), **★★★+**.
---
# Routine for a “10/10” day (as close as trading gets)
1. **Pre-market:** mark PDH/PDL, pre-market high/low, overnight high/low (futures), and any daily SR boxes you trust.
2. **First 15m:** let ORB form; look for reclaim/reject + RVOL alignment; take ★★★★+ with room.
3. **Middle:** trade only if RVOL stays ≥ threshold and signal is at a level (retest).
4. **Power hour:** bias still intact? take the next ★★★★+ retest with room.
5. **Log it:** screenshot entry, R math, and whether 1R/2R printed; refine thresholds per symbol.
---
> No indicator can guarantee 10/10 winners—what this suite does is **stack edges** and make entries/exits **mechanical**. If you stick to bias + reclaim/retest + RVOL + stars + room, and manage by R, you’ll filter most of the low-odds trades and keep yourself on the strong ones.
Range Grid From Two Levels (with intermediate lines)Range Grid From Two Levels of Initial Balance (works great with next day levels)
Volume Delta [Vu]The volume profile indicator is a technical analysis tool that visualizes trading activity at different price levels, rather than by time, on a price chart. It uses a horizontal histogram to show where high volumes of trades occurred, allowing traders to identify key price levels such as support and resistance, and to understand market sentiment. Key features include the Point of Control (POC), the price with the highest volume, and the Value Area, a range containing a significant portion of total trading