Oleg_Aryukov_StrategyTrader Oleg Aryukov's strategy, based on a variety of oscillators, allows him to try to catch reversals in cryptocurrencies.
Indicatori e strategie
MGC1! Sniper Levels Midnight PDH PDLNY Midnight (Blue): The NY midnight opening level, which extends throughout the day.
PDH & PDL (Green/Red): The previous day's closing levels.
VWAP (Orange): Reset daily.
Manual Pivot Plotter//================================================================================
//📌 Manual Pivot Plotter (P, R1–R3, S1–S3)
//📈 Pine Script v6
//
//This script allows the user to manually input Pivot levels (P), Resistance levels
//(R1, R2, R3), and Support levels (S1, S2, S3). Each line starts at the beginning
//of the new trading day (detected at 00:00 UTC+8) and extends only a limited
//distance into the future (default: 3 bars).
//
//Features:
//✔ Manual pivot, support, and resistance level inputs
//✔ Lines refresh automatically at each new day (00:00 UTC+8)
//✔ Lines extend only a few bars ahead (not full chart)
//✔ Clean label placement slightly below line and near line end
//✔ No repainting, memory-safe line handling
//✔ Smooth intraday updates when values are edited
//
//This tool is ideal for traders who manually calculate or import pivot levels and
//prefer clean, minimal, non-intrusive visual levels on the chart.
//================================================================================
MGC1! - TPO & Volume Profile (High Precision)The official TPO takes into account the entire height of the candle (High to Low). If a candle goes from 4270 to 4280, the TPO adds a “mark” on all intermediate prices, not just at the close. That's why your VAH was too low: the script was “missing” the entire upper area of the wicks and bodies.
I rewrote the script engine so that it scans the inside of the candles (High to Low).
Here is the “High Precision” script. It is more computationally intensive (because it loops on each tick), but it will stick much closer to the official TPO values.
Corrective Script: MGC1! TPO Precision (High-Low Scan)
Copy this, replace the old one, and read the settings below carefully.
Translated with DeepL.com (free version)
Elliott Wave Full Fractal System CleanElliott Wave: Full Fractal System (Automated)
This script is a complete Fractal Trading System that automates Elliott Wave analysis. It moves beyond simple wave counting by combining multi-degree wave detection (Primary, Intermediate, Minor) with an automated "Sniper" entry strategy based on high-probability Wave 4 pullbacks.
1. Idea of the Script This tool acts as an educational Elliott Wave assistant that automatically:
Detects Swings: Uses a pivot engine (ZigZag-like logic) to identify key market structure.
Identifies Impulses: Scans for valid 1–5 motive waves across multiple timeframes.
Visualizes Corrections: Detects and labels A-B-C corrective phases after an impulse.
Executes Strategy: Adds a strategy layer on the Intermediate degree to backtest optimal entry zones.
2. How it Works: The "Fractal Sniper" Strategy The script applies strict algorithmic logic to Elliott Wave Theory. It analyzes the Intermediate (Green) degree to generate signals:
Step 1: The Setup (Wave 3 Identification) The script scans for a valid Wave 3 impulse. It ensures Wave 3 is not the shortest and the structure respects fractal rules.
Step 2: The "Wait" Phase (Target Zone) Once Wave 3 is confirmed, the script projects a Box (Green for Long, Red for Short). You will see a label: WAIT FOR DIP. Logic: We wait for price to retrace to the 50% Fibonacci level (The Golden Zone). We do not chase the top of Wave 3.
Step 3: The Trigger ("Sniper" Entry) A trade is triggered only when price touches the specific entry zone while maintaining structure. Signal: Sniper Long 🚀 or Sniper Short 🔻.
Step 4: Automated Risk Management
Stop Loss (SL): Placed at the extremum of Wave 1 (Theory: Wave 4 cannot overlap Wave 1).
Take Profit (TP): Placed at the 1.618 Fibonacci Extension of Wave 5.
3. 📊 Visual Legend (Fractal Degrees) The script analyzes three timeframes simultaneously. Use this guide to read the chart:
🔵 Blue (Primary Degree): Macro Trend. Marked with Circles (①, ②...). Use this for overall market bias.
🟢 Green (Intermediate Degree): The Trading Layer. Marked with Parentheses ((1), (2)...). All Strategy Signals are generated from this degree.
🔴 Red (Minor Degree): Micro Structure. Marked with Roman Numerals (i, ii...). Useful for seeing the sub-waves inside larger moves.
4. 📉 A-B-C Corrections (Visual Only) The script automatically detects and labels corrective phases (A, B, C) following a 5-wave impulse.
Function: These labels indicate that the trend is correcting or resting.
Note: The "Strategy" (Buy/Sell logic) ignores these A-B-C labels. It sees the correction and draws it for your awareness, but it does not risk money on counter-trend moves.
5. ⚠️ CRITICAL NOTE ON BACKTESTING & LAG This strategy uses ta.pivothigh and ta.pivotlow to identify wave structures.
The Lag: Pivot points are lagging indicators. A pivot is only mathematically confirmed X bars after the peak or valley has occurred.
The Backtest: While the labels are drawn historically on the correct bars, the strategy logic strictly waits for the pivot confirmation before generating a signal. This prevents "repainting" in live trading, but users must understand that the signal occurs after the pivot is locked in.
6. Settings Included
Degrees: Customizable lookback lengths for Primary, Intermediate, and Minor waves.
Strict Rules: Toggle to enforce standard Elliott rules (e.g., No Overlap).
Realistic Simulation: Commission and slippage are enabled in the strategy settings to provide realistic results.
Disclaimer: This script is for educational and research purposes only. It applies strict algorithmic logic to Elliott Wave Theory, but wave counting is inherently subjective. Past performance does not guarantee future results.
我的脚本study(title="EMA 6/13/24/52/104", overlay=true)
shortest = ema(close, 6)
short = ema(close, 13)
longer = ema(close, 24)
longest = ema(close, 52)
hoog = ema(close, 104)
plot(shortest, color = red)
plot(short, color = orange)
plot(longer, color = aqua)
plot(longest, color = blue)
plot(hoog, color = black
NIFTY 5m/15m Smart Money CE/PE – High WinRatenice strategy for intraday NIFTY option trading. It works best on 5 minute time frame on NIFTY Index Chart
Intraday Day-Trade Scanner//@version=5
indicator("Intraday Day-Trade Scanner", overlay=true)
// ----- Inputs -----
minFloat = input.int(10000000, "Min Float")
maxFloat = input.int(20000000, "Max Float")
minPrice = input.float(3, "Min Price")
maxPrice = input.float(50, "Max Price")
minRVOL = input.float(1.5, "Min Relative Volume")
minAtrPct = input.float(1.0, "Min ATR %")
maxAtrPct = input.float(5.0, "Max ATR %")
useLong = input.bool(true, "Long scan (above VWAP)")
useShort = input.bool(false, "Short scan (below VWAP)")
// ----- Data -----
float = request.financial(syminfo.tickerid, "FLOAT", "FQ")
avgVol = ta.sma(volume, 20)
rvol = volume / avgVol
atr = ta.atr(14)
atrPct = (atr / close) * 100
// VWAP
vwap = ta.vwap(close)
// ----- Conditions -----
floatOK = float >= minFloat and float <= maxFloat
priceOK = close >= minPrice and close <= maxPrice
rvolOK = rvol >= minRVOL
atrOK = atrPct >= minAtrPct and atrPct <= maxAtrPct
longOK = useLong and close > vwap
shortOK = useShort and close < vwap
qualified = floatOK and priceOK and rvolOK and atrOK and (longOK or shortOK)
// ----- Plot label on chart -----
plotshape(qualified,title ="Qualified Stock", text="SCAN HIT", style=shape.labelup, size=size.small, color=color.new(color.green, 0))
// ----- Alerts -----
alertcondition(qualified, title="Trade Candidate Found", message="This stock meets your day-trade scan criteria!")
Focus On Work time (Tehran)If you only want to analyze the market during specific working hours and ignore the rest, this indicator is for you. It lets you hide or highlight non-working times on your chart, so you can focus only on the sessions that matter to you.
Just set your start time and end time for the work session.
By default, the time is set to UTC+3:30 (Tehran time), but you can change it to any timezone you like.
Rakesh's Ultimate Trading SystemKey Features:
1. Multi-Confirmation System
5 total signals working together:
MTF Supertrend (Monthly + Weekly + Daily alignment)
Ichimoku Cloud (Price vs Cloud + Tenkan/Kijun cross)
Gann HiLo Activator (Trend direction)
Darvas Box (Breakout/Breakdown)
Current timeframe Supertrend
2. Smart Signal Generation
You set minimum confirmations (1-5) needed for a signal
STRONG BUY = When X out of 5 indicators confirm bullish
STRONG SELL = When X out of 5 indicators confirm bearish
Shows confirmation count on each signal label (e.g., "4/5")
3. Comprehensive Dashboard
Shows real-time status of:
✓ Each indicator's current signal
✓ Overall market direction
✓ Bullish vs Bearish confirmation count
✓ Color-coded for quick decision making
4. All Indicators Plotted
Ichimoku Cloud - Green/Red cloud with Tenkan/Kijun lines
Gann HiLo - Dynamic support/resistance line
Darvas Box - Top and bottom box levels
Background colors - Show breakouts and overall trend
5. Built-in Alerts
Automatic alerts when strong buy/sell signals trigger
Shows how many confirmations fired
How to Use:
Conservative Trading (Recommended):
Set "Minimum Confirmations" to 4 or 5
Only trade when almost all indicators align
Fewer signals but higher probability
Moderate Trading:
Set to 3 confirmations
Balanced approach - good signals, not too rare
Aggressive Trading:
Set to 2 confirmations
More signals but require your own filtering
Customization Options:
All indicators can be toggled on/off:
Show/hide individual Supertrend timeframes
Show/hide Ichimoku Cloud
Show/hide Gann HiLo
Show/hide Darvas Box
Show/hide Dashboard
Adjustable parameters for each indicator:
Supertrend: ATR period, Factor
Ichimoku: Tenkan, Kijun, Senkou periods
Gann: HiLo period
Darvas: Box length
Trading Strategy Examples:
1. Ultra-Safe Entry:
Wait for 5/5 confirmations
Enter on next candle
Use Gann line as stop-loss
2. Breakout Trading:
Watch for Darvas Box breakout
Confirm with 3+ other indicators
Ride the trend
3. Trend Following:
MTF Supertrend shows main trend
Use Ichimoku cloud for support/resistance
Enter on Gann/Darvas confirmations
This is a professional-grade system, Rakesh! It filters out false signals by requiring multiple confirmations. Much more refined than single-indicator systems! 🚀
Want me to adjust anything or add more features?Ris this also for tradingviewYes, absolutely! This is 100% for TradingView, just like the first one!
How to Add This to TradingView:
Same steps as before:
Copy the code from the artifact above
Go to TradingView.com
Open Pine Editor (bottom of chart)
Click "Open" → "New blank indicator"
Paste the code
Click "Save" and name it (e.g., "Advanced MTF System")
Click "Add to Chart"
What You'll See on Your Chart:
✅ Ichimoku Cloud - Green/Red cloud visualization
✅ Gann HiLo Line - Green when bullish, Red when bearish
✅ Darvas Box - Box top and bottom levels
✅ Buy/Sell Labels - "STRONG BUY 4/5" or "STRONG SELL 3/5"
✅ Dashboard Table - Top right corner showing all indicator statuses
✅ Background colors - Subtle green/red when strong signals appear
It Works With:
✅ Stocks (NSE, BSE, US markets)
✅ Forex
✅ Crypto
✅ Commodities
✅ Indices (Nifty, Bank Nifty, etc.)
Settings Panel:
When you add it to chart, click the ⚙️ settings icon to customize:
Toggle indicators on/off
Adjust minimum confirmations (2, 3, 4, or 5)
Fine-tune each indicator's parameters
Session Opening Range Breakout (ORBO)This strategy automates a classic Opening Range Breakout (ORBO) approach: it builds a price range for the first minutes after the market opens, then looks for strong breakouts above or below that range to catch early directional moves.
Concept
The idea behind ORBO is simple:
The first minutes after the session open are often highly informative.
Price forms an “opening range” that acts as a mini support/resistance zone.
A clean breakout beyond this zone can lead to high-momentum moves.
This script turns that logic into a fully backtestable strategy in TradingView.
How the strategy works
Opening Range Session
Default session: 09:30–09:50 (exchange time)
During this window, the script tracks:
orHigh → highest high within the session
orLow → lowest low within the session
This forms your Opening Range for the day.
Breakout Logic (after the window ends)
Once the defined session ends:
Long Entry:
If the close crosses above the Opening Range High (orHigh),
→ strategy.entry("OR Long", strategy.long) is triggered.
Short Entry:
If the close crosses below the Opening Range Low (orLow),
→ strategy.entry("OR Short", strategy.short) is triggered.
Only one opening range per day is considered, which keeps the logic clean and easy to interpret.
Daily Reset
At the start of a new trading day, the script resets:
orHigh := na
orLow := na
A fresh Opening Range is then built using the next session’s 09:30–09:50 candles.
This ensures entries are always based on today’s structure, not yesterday’s.
Visuals & Inputs
Inputs:
Opening range session → default: "0930-0950"
Show OR levels → toggle visibility of OR High / Low lines
Fill range body → optional shaded zone between OR High and OR Low
Chart visuals:
A green line marks the Opening Range High.
A red line marks the Opening Range Low.
Optional yellow fill highlights the entire OR zone.
Background shading during the session shows when the range is currently being built.
These visuals make it easy to see:
Where the OR sits relative to current price
How clean / noisy the breakout was
How often price respects or rejects the opening zone
Backtesting & Optimization
Because this is written as a strategy():
You can use TradingView’s Strategy Tester to view:
Win rate
Net profit
Drawdown
Profit factor
Equity curve
Ideas to experiment with:
Change the session window (e.g., 09:15–09:45, 10:00–10:30)
Apply to different:
Markets: indices, FX, crypto, stocks
Timeframes: 1m / 5m / 15m
Add your own:
Stop Loss & Take Profit levels
Time filters (only trade certain days / times)
Volatility filters (e.g., ATR, range size thresholds)
Higher-timeframe trend filter (e.g., only take longs above 200 EMA)
Harami Reversal Alerts BB Touch (Strict First Candle)Harami Reversal Alerts BB Touch (Strict First Candle)
Harami Reversal Alerts BB Touch (Strict First Candle)Harami Reversal Alerts BB Touch (Strict First Candle)Harami Reversal Alerts BB Touch (Strict First Candle)Harami Reversal Alerts BB Touch (Strict First Candle)Harami Reversal Alerts BB Touch (Strict First Candle)
Pure FVG [Textbook]1. The Core Concept
This is not a standard "show all gaps" indicator. It is a specific entry signal generator based on Smart Money Concepts (SMC).
It focuses on Consequent Encroachment (The 50% Level). The underlying principle is that a Fair Value Gap (FVG) represents a market inefficiency where opposing traders are trapped. When price retraces at least 50% back into this gap, it creates pressure as these trapped positions look to exit—either through stop-losses or position reversal. This makes the gap most likely to act as a reversal zone.
2. How It Works (The Lifecycle)
The indicator logic follows a strict sequence of events. A signal is generated only if all conditions are met in order:
-- Phase 1: Identification (The Fresh Gap)
The script scans for the classic 3-candle FVG pattern (where the 1st and 3rd candles do not overlap).
Visual: It draws a box (Green for Bullish, Red for Bearish) extending to the right.
The 50% Line: A dashed line is drawn through the center of the gap.
-- Phase 2: Mitigation (The Gray Zone)
This is the critical filter. The indicator waits for a candle to CLOSE past the 50% dashed line.
Once this happens, the gap is considered "Deeply Mitigated."
Visual: The box changes color to Gray. This tells the trader: "Price is deep in the zone, watch for a reaction."
-- Phase 3: The Signal (Rejection)
Once the box is Gray, the script watches for a "Rejection Candle."
Bullish Scenario: Price is deep in the gap (Gray). The script waits for a candle to close higher than it opened (a green candle).
Bearish Scenario: Price is deep in the gap (Gray). The script waits for a candle to close lower than it opened (a red candle).
Visual: A Triangle Label (▲ or ▼) appears, signaling an entry.
-- Phase 4: Invalidation
If the price closes completely past the far edge of the box (the Stop Loss level), the box is deleted immediately.
3. Key Options
These are the most important settings for the user:
-- Min Gap Size (%):
Filters out "noise." It ensures the script ignores tiny, insignificant gaps that are less than X% in height.
-- Max Visible Gaps:
Keeps your chart clean. It limits how many open boxes can be on the screen at once (e.g., only show the last 3 unclosed gaps).
-- Show Signal History Only:
Feature Highlight: When enabled, this hides all the "noise" of open or failed gaps. It only draws the boxes that successfully produced a Rejection Signal in the past.
AliceTears GridAliceTears Grid is a customizable Mean Reversion system designed to capitalize on market volatility during specific trading sessions. Unlike standard grid bots that place blind limit orders, this strategy establishes a daily or session-based "Baseline" and looks for price over-extensions to fade the move back to the mean.
This strategy is best suited for ranging markets (sideways accumulation) or specific forex sessions (e.g., Asian Session or NY/London overlap) where price tends to revert to the opening price.
🛠 How It Works
1. The Baseline & Grid Generation At the start of every session (or the daily open), the script records the Open price. It then projects visual grid lines above and below this price based on your Step % input.
Example: If the Open is $100 and Step is 1%, lines are drawn at $101, $102, $99, $98, etc.
2. Entry Logic: Reversal Mode This script features a "Reversal Mode" (enabled by default) to filter out "falling knives."
Standard Grid: Buys immediately when price touches the line.
AliceTears Logic: Waits for the price to breach a grid level and then close back inside towards the mean. This confirms a potential rejection of that level before entering.
3. Exit Logic
Target Profit: The primary target is the previous grid level (Mean Reversion).
Trailing Stop: If the price continues moving in your favor, a trailing stop activates to maximize the run.
Stop Loss: A manual percentage-based stop loss is available to prevent deep drawdowns in trending markets.
⚙️ Key Features
Visual Grid: Automatically draws entry levels on the chart for the current session, helping you visualize where the "math" is waiting for price.
Timezone & Session Control: Includes a custom Timezone Offset tool. You can trade specific hours (e.g., 09:30–16:00) regardless of your chart's UTC setting.
Grid Management: Independent logic for Long and Short grids with pyramiding capabilities.
Safety Filters: Options to force-close trades at the end of the session to avoid overnight gaps.
⚠️ Risk Warning
Please Read Before Using: This is a Counter-Trend / Grid Strategy.
Pros: High win rate in sideways/ranging markets.
Cons: In strong trending markets (parabolic pumps or crashes), this strategy will add to losing positions ("catch a falling knife").
Recommendation: Always use the Stop Loss and Date Filter inputs. Do not run this on highly volatile assets without strict risk management parameters.
Settings Guide
Entry Reversal Mode: Keep checked for safer entries. Uncheck for aggressive limit-order style execution.
Grid Step (%): The distance between lines. For Forex, use lower values (0.1% - 0.5%). For Crypto, use higher values (1.0% - 3.0%).
UTC Offset: Adjust this to align the Session Hours with your target market (e.g., -5 for New York).
This script is open source. Feel free to use it for educational purposes or modify it to fit your trading style.
Vinz Win BTC – STRATEGY AUTO 1m🚀 VinzWin BTC Strategy – BTC Scalping AUTO 1 min
The VinzWin strategy is based on a simple and highly effective price action pattern:
✅ 2 red candles followed by 1 green candle
✅ Doji filter set to 0
✅ Trading exclusively on BTC
✅ Session from 12:00 to 12:00 (24/7)
✅ Fixed Risk/Reward at 1:2
✅ Stop Loss set in fixed € amount
✅ Automatic risk management based on the Stop Loss
On every trade:
The Stop Loss is defined in fixed euros,
The Take Profit is always set at twice the risk,
The lot size is automatically adjusted to market conditions,
ensuring clean, stable, and fully controlled risk management.
📊 Multi-year backtests are available and show truly outstanding results, with strong consistency and an excellent profit/loss ratio.
👉 A simple, mechanical strategy with no over-optimization, perfectly suited for BTC scalping with fully controlled capital management in euros.
TMT Sessions - Hitesh_NimjeTMT Session - HiteshNimje
Overview
This indicator highlights four configurable trading sessions (default: New York / London / Tokyo / Sydney) and draws session ranges, session VWAPs, session mean/trendline, max/min lines and optional dashboard info. It was built for students of Thought Magic Trading (TMT) to quickly visualize intraday structure across major sessions.
Key features
4 separate sessions (A/B/C/D) — customizable names, times and colors.
Session Range boxes (high/low), optional outline and labels.
VWAP per session (volume-weighted average price).
Mean / Trendline for session price (optional).
Optional session Max/Min lines.
Small on-chart descriptive labels explaining what each plotted line means.
Simple dashboard showing session status (Active/Inactive), volume, trend strength and standard deviation (optional).
Timezone offset or use exchange timezone.
Default colors
Session A — Blue
Session B — Black
Session C — Red
Session D — Orange
Usage / Notes
Designed for intraday analysis — works best on intraday timeframes.
Toggle any session, overlay, or label via input settings to reduce chart clutter.
Labels and dashboard are optional; enable them only when you want the additional on-chart information.
The indicator does not provide buy/sell signals. Use it as a structural reference in conjunction with your trading plan.
Access & License
EXCLUSIVE ACCESS: This indicator is for TMT students only.
Distribution: Invite-only (author permission required) — the author will grant access by invitation.
Redistribution, modification, or public reposting without permission is prohibited.
Support / Contact
For access requests or issues, contact the author: Hitesh_Nimje (Thought Magic Trading).
(Provide invite requests directly to the author — do not attempt to share copies.)
Disclaimer
For educational purposes only. Trading involves risk. Past performance is not indicative of future results. The author is not responsible for trading losses.
EMA Crossover + Angle + Candle Pattern + Breakout (Clean)mrdfgdfew;qwiohj'fjpqwpodkqsk [pal
a'laoduasipdjascm[osfw0e9fj[ekf[pk[
pfi[0wejf[oewfkj[sofk
EMA Crossover + Angle + Candle Pattern + Breakout (Clean)+mrit uses 9 15 ema startegy with angle and candle also candle used are pin bar , hammer, full body
Easy Crypto Signal FREE🆓 FREE Bitcoin & Crypto Trading Indicator
Easy Crypto Signal FREE helps you make better trading decisions with real-time BUY/SELL signals based on multiple technical indicators.
✅ What you get in FREE version:
• Real-time BUY/SELL signals (green/red arrows)
• Trading SCORE (0-100%) - market strength indicator
• Works on BTC, ETH, and all major altcoins
• Optimized for 4h timeframe (works on all timeframes)
• Simple visual interface
• Basic alert system
📊 How it works:
The indicator combines RSI, MACD, EMA trends, and volume analysis to generate a composite SCORE (0-100%).
• SCORE > 65% = BUY signal 🟢
• SCORE < 35% = SELL signal 🔴
• SCORE 35-65% = WAIT (neutral zone) 🟡
⚠️ FREE Version Limitations:
• No detailed RSI values
• No MACD trend details
• No trend strength indicators
• Fixed sensitivity (65%)
• Limited customization
💎 Want the FULL PRO version?
🚀 PRO includes:
• Full RSI + MACD + Trend analysis displayed
• Customizable sensitivity (40-80%)
• Advanced alert customization
• Professional clean interface
• Volume strength indicator
• NO watermarks
• Premium support
📊 Proven Backtest Results:
• 57.1% Win Rate
• 3.36 Profit Factor (Excellent)
• +9.55% return in 3 months
• Only -2.69% Max Drawdown (Low Risk)
🔗 Get PRO version:
📈 Best practices:
1. Use on 4h timeframe for best results
2. Combine with your own analysis
3. Always set Stop Loss (5-10%)
4. Test on demo account first
5. Don't trade based on signals alone
⚠️ Risk Disclaimer:
Cryptocurrency trading involves substantial risk. This indicator is for educational purposes only and does not guarantee profits. Past performance does not indicate future results. Always do your own research and never invest more than you can afford to lose.
📧 Questions or Feedback?
Comment below or message me directly!
🌟 If you find this helpful, please give it a like and share!
v1.0 - Initial FREE release
• Basic BUY/SELL signal system
• Score indicator 0-100%
• Optimized for 4h timeframe
• Works on all crypto pairs
mayank raj indicatorit uses 9 and 15 ema strategy with angle so that u dont enter in sideways market also the candle entries are hmmer,pinbar,fullbody
Weighted KDE Mode🙏🏻 The ‘ultimate’ typical value estimator, for the highest computational cost @ time complexity O(n^2). I am not afraid to say: this is the last resort BFG9000 you can ‘ever’ get to make dem market demons kneel before y’all
Quickguide
pls read it, you won’t find it anywhere else in open access
When to use:
If current market activity is so crazy || things on your charts are really so bad (contaminated data && (data has very heavy tails || very pronounced peak)), the only option left is to use the peak (mode) of Kernel Density Estimate , instead of median not even mentioning mean. So when WMA won’t help, when WPNR won’t help, you need this thing.
Setting it up:
Interval: choose what u need, you can use usual moving windows, but I also added yearly and session anchors alike in old VWAP (always prefer 24h instead of Session if your plan allows). Other options like cumulative window are also there.
Parameters: this script ain't no joke, it needs time to make calculations, so I added a setting to calculate only for the last N bars (when “starting at bar N” is put on 0). If it’s not zero it acts as a starting point after which the calculations happen (useful for backtesting). Other parameters keep em as they are, keep student5 kernel , turn off appropriate weights if u apply it to other than chart data, on other studies etc.
But instead of listening to me just experiment with parameters and see what they change, would take 5 mins max
Been always saying that VWAP is ish, not time-aware etc, volume info is incorporated in a lil bit wrong way… So I decided not just to fix VWAP (you can do it yourself in 5 mins), but instead to drop there the Ultimate xD typical value estimator that is ever possible to do. Time aware, volume / inferred volume aware, resistant to all kinds of BS. This is your shieldwall.
How it works:
You can easily do a weighted kernel density estimation, in our case including temporal and intensity information while accumulating densities. Here are some details worth mentioning about the thing:
Kernels are raw (not unit variance), that’s easier to work with later.
h_constants for each kernel were calculated ^^ given that ^^ with python mpmath module with high decimal precision.
In bandwidth calculation instead of using empirical standard deviation as a scaler, I use... ta.range(src, len) / math.sqrt(12)
...that takes data range and converts it to standard deviation, assuming data is uniformly distributed. That’s exactly what we need: a scaler that is coherent with the KDE, that has nothing to do with stdevs, as the kernels except for gaussian ones (that we don’t even need to use). More importantly, if u take multiple windows and see over time which distro they approach on the long term, that would be the uniform one (not the normal one as many think). Sometimes windows are multimodal, sometimes Laplace like etc, so in general all together they are uniform ish.
The one and only kernel you really need is Student t with v = 5 , for the use case I highlighted in the first part of the post for TV users. It’s as far as u can get until ish becomes crazy like undefined variance etc. It has the highest kurtosis = 9 of all distros, perfect for the real use case I mentioned. Otherwise, you don’t even need KDE 4 real, but still I included other senseful kernels for comparison or in case I am trippin there.
Btw, don’t believe in all that hype about Epanechnikov kernel which in essence is made from beta distribution with alpha = beta = 2, idk why folk call it with that weird name, it’s beta2 kernel. Yes on papers it really minimises AMISE (that’s how I calculated h constants for all dem kernels in the script), but for really crazy data (proper use case for us), it ain't provides even ‘closely’ compared with student5 kernel. Not much else to add.
Shout out to @RicardoSantos for inspiration, I saw your KDE script a long time ago brotha, finna got my hands on it.
∞
Diff Price (Future - Spot)Diff Line (Future – Spot) plots a grid of spot-price levels derived from the current futures price.
It rounds the current futures price up to the nearest price block (e.g. every 25 points), then subtracts a user‑defined Diff (Future – Spot) to find the main spot level and draws that as the central line. Additional lines are plotted above and below at equal block distances, with labels showing both Future and Spot values (e.g. 4250 (4215)), plus a compact diff info box for quick reference.






















