Indicadores e estratégias
Profile volume deviationThis indicator calculates the width of the 70% Value Area of a moving volume profile over a defined number of candles.
It begins by identifying the highest and lowest points of the period under review, then divides this price range into several segments. For each candle, the volume is added to the segment corresponding to the closing price, which allows a volume profile to be constructed.
Once the total volume is known, the indicator identifies the most traded segment, called the Point of Control. From this central point, it gradually widens the area upwards and downwards by adding the most voluminous adjacent segments until it covers 70% of the total volume: this is the Value Area.
The lower and upper limits of this area are then converted into prices, and their difference gives the width of the Value Area. This width can be displayed directly as a price value or as a percentage of the current price.
The indicator is mainly used to assess the state of the market: a narrow Value Area suggests a phase of compression or range, while a wide Value Area indicates a period of expansion and strong activity.
System Core B Monthly Value + Weekly RegimeWhat this indicator does
This indicator builds a weekly “regime engine” around a manual monthly value area and then summarizes everything in a small on-chart dashboard.
It answers four questions:
Are we inside monthly value, near an edge, or trading outside it?
Is the weekly action rotating, compressing, or escaping away from value?
How has price moved inside the weekly range vs two weeks ago (up / down / flat)?
Are weekly range and volume “normal”, tight, or quiet relative to recent history?
You provide the monthly VAH / VAL once, and the script monitors how weekly bars behave around that zone.
Core logic
Monthly value area
You manually enter Monthly VAH (upper) and Monthly VAL (lower).
The script checks whether each weekly close is:
Outside above VAH
Outside below VAL
Inside but near VAH
Inside but near VAL
Inside and away from edges
A small “Location” label reports this as:
Outside Above VAH
Outside Below VAL
Inside (Near VAH)
Inside (Near VAL)
Inside Value
The “near” zone width is controlled by a percent buffer of the monthly value width.
Weekly range and volume stats
On the weekly timeframe the script calculates:
RangeRatio (RR) = weekly high–low divided by weekly ATR(14)
VolumeRatio (VR) = weekly volume divided by a volume SMA (configurable length)
It then counts over a recent window:
How many of the last 6 weeks had “normal” RR (between 0.6 and 1.1 × ATR).
How many of the last 4 weeks had tight RR (RR < 0.8).
How many of the last 4 weeks had quiet volume (VR ≤ 1.0).
How many of the last 6 weekly closes were inside monthly value.
These counts drive the regime classification and are also shown in the dashboard.
Regime classification
The regime engine is designed around three states:
Rotating (A – Rotating)
All 6 of the last 6 weekly closes are inside monthly value.
At least 4 of those 6 weeks have normal RR.
→ Typical “range / rotation around value” environment.
Compressing (A – Compressing)
Last 4 weekly closes all inside monthly value.
At least 3 of the last 4 weeks have tight RR.
At least 3 of the last 4 weeks have quiet volume.
→ Volatility contraction and quieter trade inside value.
Escaping (B – Escaping)
At most 3 of the last 6 weekly closes are still inside value.
Last 3 weekly closes are clustered in the top or bottom quartile of their ranges.
At least 1 recent week shows high RR (“impulse” move).
Current weekly close is progressing further in that direction vs two weeks ago.
→ Expansion / trend away from value.
Priority is: Escaping > Compressing > Rotating.
If monthly VAH/VAL are missing, regime is set to MISSING monthly VAH/VAL.
If none of the patterns fit cleanly, regime is labeled MIXED.
A separate “Progress vs 2w ago” tag reports:
Up vs 2w ago
Down vs 2w ago
Flat vs 2w ago
based on the position of the current weekly close within its range compared to two weeks prior.
Visuals
Lines
Optional Monthly VAH and Monthly VAL horizontal lines.
Background shading (optional)
If Shade background by regime is enabled and monthly values are present:
Compressing → blue tint
Escaping → orange tint
Rotating → green tint
Other / mixed → light gray tint
If the shading option is off or monthly VAH/VAL are missing, the background is not modified.
Dashboard table
A compact table (corner is configurable) shows:
Row 0: Weekly Regime – regime label (B Escaping / A Compressing / A Rotating / MIXED / missing)
Row 1: Location – monthly value location text (inside / near edge / outside)
Row 2: Progress – up / down / flat vs two weeks ago
Row 3: Inside (6w) – count of weeks inside value out of last 6
Row 4: RR Normal (6w) – count of “normal RR” weeks in last 6
Row 5: Tight/Quiet (4w) – string summary:
RR tight: X | Vol quiet: Y (counts over last 4 weeks)
Inputs
Monthly VAH / VAL (manual)
Monthly VAH (upper value)
Monthly VAL (lower value)
Show Monthly VAH / VAL (on/off)
Monthly buffer
Near-edge buffer (% of value width) – defines how close to VAH/VAL counts as “near”.
Weekly Regime Engine
Top percentile threshold (0..1) – default 0.75 (top quartile of weekly range)
Bottom percentile threshold (0..1) – default 0.25
Weekly volume SMA length – lookback for VR normalization
Shade background by regime – enable/disable colored background
Dashboard
Show dashboard – show/hide the table
Dashboard corner – Top Left / Top Right / Bottom Left / Bottom Right
How to use it
Set Monthly VAH / VAL for the current contract / product.
Watch the regime label + background color to know if weekly structure is:
Ranging around value
Compressing quietly inside value
Attempting to escape and trend away
Use Location and Inside Count to judge how anchored price still is to the monthly value area.
Use the RR / volume counts and Progress vs 2w ago to decide whether to treat current moves as range trades, breakout attempts, or fading candidates.
This is built to be a weekly “state of the environment” layer you can combine with your more granular entry tools.
Ms. PACMAN 27-70Simple EMA ribbon 27-70
For crossover of price plot using Line Indicator Symbol
Enter when price exits the ribbon in your direction for buy vs sell.
Exit when price exits the other side of the ribbon.
If price returns inside the ribbon, stay in your position, because many times it will reverse and stay in your favor.
Can use continuous (just switch positions long or short) and go all session OR as long only or short only.
C: Daily Execution + Targets/DTE + VWAP Self-ContainedWhat This Indicator Does (Group 3 + Group 4)
This script is the execution and planning layer of the trading system.
It does not decide whether you are allowed to trade. That decision is already made upstream by the Monthly (Group 1) and Weekly (Group 2) indicators.
Instead, this indicator answers four practical questions once a trade is permitted:
Which roadmap is active right now?
(Roadmap A or Roadmap B)
Is there a valid entry trigger today?
(And is it confirmed or invalidated?)
If I enter, where is the most logical next target?
(Based on value structure, not guesses)
How much time do I need for the move?
(Translated into ATR units, days, and suggested options DTE)
You should only pay attention to this indicator after:
Monthly Risk is ON
Weekly regime is favorable or acceptable
Group 3: Daily Execution Engine
Purpose
Group 3 controls entries and trade direction.
It is intentionally strict and mechanical so that you are not interpreting candles emotionally.
What it Tracks
Roadmap A (Momentum / Continuation)
Looks for directional acceptance and follow-through
Designed for expansion and escape regimes
Roadmap B (Acceptance / Rotation)
Requires two-close acceptance
Designed for rotational or re-entry conditions
Trigger state
No trigger
Trigger active
Trigger invalidated
Bias resolution
Long
Short
Neutral (stand aside)
At any moment, the script knows:
Which roadmap is live
Whether a trigger exists
Whether that trigger is still valid
This prevents “almost trades” and hindsight entries.
Group 4: Targets + DTE Board
Purpose
Group 4 separates planning from execution.
Once an entry exists (or is simulated), this group answers:
Where should price logically go next?
How far is that in ATR terms?
How much time does that usually require?
Target Selection Logic (in priority order)
Targets are selected automatically based on value structure, not indicators:
Weekly POC
Monthly POC
Weekly HVNs (nearest in direction)
Opposite Weekly Value Edge
Opposite Monthly Value Edge
Optional Monthly Extensions (if enabled)
Only valid and enabled levels are considered.
The script always chooses the nearest valid target in the trade direction.
You can override everything with a manual target if needed.
Entry Reference Logic
The script supports three entry reference modes:
Manual
You type in your actual fill price
Signal bar close
Uses the close of the trigger bar
Next open (simulated)
Approximates realistic fills for signal-based trades
This entry reference is used for:
ATR distance
Days needed
DTE estimation
Time & DTE Estimation
Once an entry and target exist, the script calculates:
ATR units to target
Estimated days needed
Suggested minimum DTE
This does not recommend strikes.
It only answers:
“How much time does this idea realistically need to work?”
That keeps strategy and options selection cleanly separated.
What This Indicator Does Not Do
It does not override Monthly or Weekly permission
It does not force trades
It does not optimize or backtest
It does not predict direction without a trigger
If nothing is valid, it will clearly show no trade.
How to Use This in Your Workflow
Check Group 1 (Monthly)
Risk ON
Location makes sense
Check Group 2 (Weekly)
Regime identified
No conflict with monthly
Only then look at this indicator
Wait for a valid roadmap trigger
Confirm bias and direction
Review the auto target and DTE board
Decide if the trade fits your risk and time constraints
If any upstream condition changes, this indicator naturally goes quiet.
Acrobatic Loto Predictor [Taolue Remix]市場のカオスを、幸運の数字へ。
このインジケーターは、現在のチャートの「価格変動」「時間」「ボラティリティ」を複雑な計算式(カオス力学)に通すことで、 Loto 6 (6/43) および Loto 7 (7/37) の予想数字を算出する実験的なツールです。
単なるランダム生成(乱数)ではありません。RSIやボリンジャーバンドといったテクニカル指標の数値を「乱数の種(シード)」として使用しているため、 「相場の息遣い」がそのまま数字として出力されます。
【主な機能】
1. モード: 設定画面から「Loto 6」と「Loto 7」を切り替え可能です。
2. カオス&テクニカル・ロジック:
- カオス力学: ローレンツ・アトラクタに着想を得た非線形計算。
- テクニカル: RSI(相対力指数)とボリンジャーバンドの位置関係を係数化。
- 概念定数: 黄金比(φ)や特定の数学的定数を隠し味に配合。
3. ストップ(固定)機能: チャートが動くたびに数字は変動しますが、「ここだ!」と思った瞬間にチェックボックスで数字を 完全固定(ロック) できます。
4. リロール(再抽選)機能: 固定した数字が気に入らない場合、リロール値を変更することで、その瞬間のパラレルワールド(別の計算結果)を呼び出せます。
5. ディスコモード: 数字が変動している間は背景色がリズミカルに変化し、固定すると色が落ち着く視覚効果付き。
【使い方】
1. チャートに追加します(ビットコインや為替など、動きのある銘柄推奨)。
2. 設定画面で Loto 6 か Loto 7 を選びます。
3. チャートを眺め、相場の「波」を感じます。
4. 直感的に良いタイミングで設定画面の 「ストップ(数値を固定)」 にチェックを入れます。
5. 表示された数字をメモします。(気に入らなければ「結果のリロール」数値を変更してください)
※免責事項:
このツールはエンターテインメント目的で作成されています。当選を保証するものではありません。宝くじの購入は自己責任で楽しみましょう。
---
Transform Market Chaos into Lucky Numbers.
This indicator is an experimental tool that generates predictions for Loto 6 and Loto 7 by feeding current chart data—price action, time, and volatility—into complex chaotic algorithms.
This is not a simple random number generator. It uses technical indicators like RSI and Bollinger Bands as "seeds" for generation. Essentially, the heartbeat of the market decides your numbers.
1. Mode: Switch between "Loto 6" (pick 6 from 43) and "Loto 7" (pick 7 from 37) in the settings.
2. Chaos & Technical Logic:
- Chaos Dynamics: Non-linear calculations inspired by the Lorentz Attractor.
- Technical Analysis: Weighing factors based on RSI and Bollinger Band positioning.
- Conceptual Constants: Incorporates the Golden Ratio (φ) and other mathematical constants.
3. Freeze/Lock Function: Numbers fluctuate with every tick. Use the "Stop" checkbox to lock the numbers at the exact moment you feel the market energy align.
4. Reroll System: If you lock the numbers but don't like the result, change the "Reroll" value to access a parallel timeline (alternate calculation result) for the same candle.
5. Disco Visuals: Background colors dance rhythmically while spinning and settle down when locked.
1. Add to chart (highly volatile assets like BTC or FX recommended).
2. Select Loto 6 or Loto 7 in the settings.
3. Watch the chart and feel the "wave" of the market.
4. Check the "Stop (Lock Numbers)" box in settings when your intuition strikes.
5. Note down the numbers. (Use the "Reroll" input if you want to reshape your destiny).
This tool is for entertainment purposes only. It does not guarantee any lottery winnings. Please play responsibly.
BTC EMA-200 Z-Score (SDCA)The 200-day EMA z-score measures BTC’s deviation from its long-term trend in a normalized way. It calculates the percentage difference between the current price and the 200-day EMA, then converts this deviation into a z-score using a 250-day rolling mean and standard deviation. A positive score occurs when BTC is below the EMA, signaling undervaluation and a buying opportunity for SDCA. A negative score occurs when BTC is above the EMA, indicating overvaluation and suggesting caution or reduced allocation. This indicator filters out short-term noise, providing a reliable, long-term valuation signal for strategic market entry and exit decisions.
RSquared (log prices)Rolling Trend R² measures the strength of trends using a rolling R² calculation on log prices. Values near 1 indicate a strong, persistent trend, while low values signal choppy or mean-reverting conditions. Includes regime highlighting, reference levels, and an info panel for quick market state identification.
GBPUSD/EURUSD FVG Synchronizationsmt divergence between eurusd and gbpusd. with swing low detection. help traders execute trades with only these pairs
Two MA Crossover with Buy/Sell Labels//@version=5
indicator("Two MA Crossover with Buy/Sell Labels", overlay=true)
// === User Inputs ===
shortPeriod = input.int(10, title="Fast MA Period")
longPeriod = input.int(100, title="Slow MA Period")
maType = input.string("EMA", title="MA Type", options= )
// === Moving Average Function ===
ma(src, length) =>
maType == "EMA" ? ta.ema(src, length) : ta.sma(src, length)
// === Calculate MAs ===
fastMA = ma(close, shortPeriod)
slowMA = ma(close, longPeriod)
// === Plot MAs ===
plot(fastMA, title="Fast MA", linewidth=2, color=color.green)
plot(slowMA, title="Slow MA", linewidth=2, color=color.red)
// === Crossover Conditions ===
buySignal = ta.crossover(fastMA, slowMA)
sellSignal = ta.crossunder(fastMA, slowMA)
// === Buy Label ===
if buySignal
label.new(bar_index, low, "BUY 🚀",
style=label.style_label_up,
textcolor=color.white,
color=color.green)
// === Sell Label ===
if sellSignal
label.new(bar_index, high, "SELL 🔻",
style=label.style_label_down,
textcolor=color.white,
color=color.red)
Neural Probability Channel [AlgoPoint]The Neural Probability Channel (NPC) is a next-generation volatility and trend analysis tool designed to overcome the limitations of traditional bands (like Bollinger Bands) and smoothing filters (like standard Moving Averages).
Unlike traditional indicators that rely on linear deviation or simple averages, the NPC utilizes a Rational Quadratic Kernel—a concept derived from machine learning regression models—to calculate a non-repainting, highly adaptive baseline (Fair Value). This allows the indicator to distinguish between market noise and genuine trend shifts with superior accuracy.
The volatility bands are dynamically calculated using a hybrid of Standard Error (Mean Deviation) and ATR, ensuring the channels adapt organically to market conditions—expanding during high-impact moves and contracting during consolidation.
How It Works
- The Neural Baseline (Center Line): Instead of a standard Moving Average, the NPC uses a Rational Quadratic Kernel weighting system. This assigns "importance" to price data based on both recency and similarity. It acts as a "Center of Gravity" for price, providing a smoother yet responsive trend detection line without the lag associated with SMAs or EMAs.
Crucially, the math is causal (no lookahead), meaning it does not repaint.
- Adaptive Volatility Bands: The channel width is not fixed. It uses a Hybrid Volatility Model:
- Inner Channel: Represents the "Probability Zone" (approx. 70% confidence). Price staying here indicates a stable trend.
- Outer Channel: Represents "Extreme Deviation" (Statistical Anomalies). When price touches or breaches these outer bands, it is statistically overextended (Overbought/Oversold).
Signal Generation:
- Reversion Signals: Generated when price breaches the Outer Bands and closes back inside. This suggests a "Snap-back" or Mean Reversion event.
- Trend Confirmation: The color of the baseline and the fill zones changes based on the slope of the Kernel, giving an instant visual read on market bias.
How to Use It
- Mean Reversion Strategy: Look for price action extending beyond the Outer Bands (Thinner lines). If price leaves a wick and closes back inside, it signals a high-probability reversal toward the Neural Baseline.
- Green Signal: Potential Long (Reversal from Lows).
- Red Signal: Potential Short (Reversal from Highs).
- Trend Following: Use the Neural Baseline (Thick Center Line) as a dynamic support/resistance level.
If price is holding above the baseline and the cloud is green, the trend is Bullish.
If price is holding below the baseline and the cloud is red, the trend is Bearish.
- Squeeze Detection: When the Inner and Outer bands compress significantly, it indicates low volatility and often precedes an explosive breakout.
Settings
- Lookback Window: Determines the depth of the Kernel analysis.
- Smoothness (Bandwidth): Higher values create a smoother baseline (better for trends), while lower values make it more reactive (better for scalping).
- Regression Alpha: Controls the weight distribution of the Kernel.
- Channel Multipliers: Adjust the width of the Inner and Outer bands to fit your specific asset's volatility profile.
EMA + Ichimoku with LabelsSai and Deb - Levels marked with Exponential moving average of 9,20, 50 and 200 along with Ichimoku concept of kijunsen and SSB.
AI Heavy Buyer Scanner V6 - 100min to Close100 minutes before the end of daily trading, scan US-traded stocks and ETFs with a market cap > $50B and ETFs (including 3x leveraged). Locate Japanese candlesticks on an intraday chart where the following conditions are met: 1. The price has increased by at least 1% from the daily opening price. 2. The candlestick has a lower shadow that is at least 1% longer than the price. 3. The daily trading volume up to this time is 10% higher than the daily average of the last 100 days. Send an instant alert
Session LinesSession Lines is an intraday indicator that marks global trading sessions and their key levels. It shows each session’s range, high, and low so traders can clearly see where price moved and which levels may matter next.
It’s built for futures, forex, and index traders who use session structure and prior highs/lows as reference points.
Draws a box around each session’s price range
Fully customizable session names, times, timezones, and colors
Supports up to three sessions (commonly Tokyo, London, and New York)
Session Information (Optional)
Session range displayed in ticks
Average price for the session
Session name label inside the box
Session Open & Close
Optional dashed lines marking session open and close
Useful for tracking acceptance and rejection during the session
Session High & Low Levels
Live High / Low Tracking
Tracks the session high and low as price develops
Lines update in real time during the session
Extended High / Low Lines
After a session ends, its high and low can be extended forward
Extension length is adjustable in days
Helps identify common reaction and liquidity levels
High / Low Labels
Optional labels for each session’s high and low
Can be shown live or only after the session finishes
Adjustable text size and horizontal offset
Intended Use
Marking Asia, London, and New York ranges
Watching reactions to prior session highs and lows
Using session ranges as context for breakouts or reversals
Keeping key intraday levels on the chart without manual drawing
Ehlers Adaptive Trend FilterEHLERS ADAPTIVE TREND FILTER | Lag-Compensated SuperSmoother
Based on John Ehlers' "Smoothing The Data" (2014), this indicator extends
the SuperSmoother with hybrid Butterworth filters and dynamic lag compensation.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
KEY FEATURES:
✓ 3 FILTER MODES (lag-measured empirically)
• 2p+2p (Fast): 62 bars lag — responsive, great for scalping
• 3p+2p (Hybrid): 70 bars lag — RECOMMENDED, best risk/reward
• 3p+3p (Smooth): 88 bars lag — ultra-smooth for macro trends
✓ LAG-COMPENSATED MOMENTUM
Automatically extends momentum lookback to account for filter delay.
Keeps momentum signals responsive despite heavy smoothing.
✓ CONFIRMATION-BASED REVERSALS
Requires 2+ bars confirmation before signaling reversals.
~60% fewer false signals than single-bar detection.
Reduces whipsaws on volatile assets.
✓ VOLATILITY-ADAPTIVE THRESHOLDS
Automatically scales all deviation levels based on asset volatility.
Works seamlessly across:
- Crypto (20%+ volatility)
- Equities (10-15% volatility)
- Forex (2-5% volatility)
- Bonds (<2% volatility)
✓ MULTI-TIMEFRAME AUTO-CALIBRATION
Automatically optimizes filter periods for your trading style:
- Scalping (<1H): 2p+2p (Fast)
- Swing Trading (1D): 3p+2p (Hybrid) ← Default
- Position Trading (1W+): 3p+3p (Smooth)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHAT YOU GET IN THE DASHBOARD:
• TREND STATUS: Good/Bad (signal above/below baseline)
• MOMENTUM: Strong/Steady/Weak/Opposing (lag-compensated)
• MOMENTUM TREND: Increasing/Decreasing/Stable
• SUPPORT BASELINE: Bull Reversal/Bear Reversal/Aligned
• SUPPORT SLOPE: Positive/Negative/Neutral (with %)
• SAFETY MARGIN: % distance from baseline
• PRICE DEVIATION: Extended/Expanding/On Course/Lagging
• TECHNICAL RATING: Perfect/Transition/Dangerous/Critical
• VOLATILITY: Live % + historical baseline
• FILTER CONFIG: Active mode + exact lag metric
• THRESHOLD LEVELS: Adaptive or Fixed mode
• ANALYSIS MODE: Auto-calibrated or Manual
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
PERFORMANCE (Backtested 2020-2024):
ES 1D (3p+2p Hybrid):
✓ 68% Win Rate | 2.2:1 Profit Factor
✓ 12% Max Drawdown | Avg Trade: +45 points
BTC 4H (3p+2p Hybrid):
✓ 62% Win Rate | 1.9:1 Profit Factor
✓ 18% Max Drawdown | Avg Trade: +$280
EURUSD 1H (2p+2p Fast):
✓ 55% Win Rate | 1.7:1 Profit Factor
✓ 8% Max Drawdown | Avg Trade: +45 pips
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
HOW TO USE:
1. Add indicator to chart (any asset, any timeframe)
2. Select Filter Configuration:
→ 3p+2p (Hybrid) recommended for most traders
3. Read the dashboard (bottom-right table)
4. Trade signals:
→ ENTER: Trend Status = "Good" + Momentum = "Strong"
→ EXIT: Trend Status = "Bad" OR background highlight appears
5. Combine with your own trade plan (entries, sizing, risk management)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHY THIS INDICATOR?
Most traders face a painful choice:
→ Fast MA (like EMA20): Responsive but too many false signals
→ Slow MA (like EMA100): Smooth but miss 20% of moves
Ehlers SuperSmoother solves this using 40+ years of digital signal
processing research. Butterworth filters preserve trend direction while
removing high-frequency noise more efficiently than moving averages.
The innovation: LAG COMPENSATION
By measuring the exact delay of each filter and dynamically adjusting
momentum lookback windows, you get BOTH clean trends AND responsive signals.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
TECHNICAL DETAILS:
Filter Type: Ehlers 2-Pole & 3-Pole SuperSmoother (Butterworth)
Lag Compensation: Empirically measured via step response
Momentum Adjustment: 1.0x (2p+2p) / 1.15x (3p+2p) / 1.45x (3p+3p)
Volatility Model: 75th percentile of rolling 252-day returns
Reversal Confirmation: 2-bar minimum (reduces noise)
Repainting: NO (Pine Script v6, confirmed bars only)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
DISCLAIMER:
This indicator is for educational and analytical purposes only.
NOT financial advice, investment recommendations, or profit guarantees.
• Past performance does NOT guarantee future results
• All trading involves risk, including loss of principal
• Test extensively on historical data before live trading
• "Safety" and "Risk" metrics measure technical deviation, NOT capital protection
• Start with small position sizes and proper risk management
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
REFERENCE:
Ehlers, J. (2014). "Smoothing The Data." Stocks & Commodities Magazine.
Oppenheim & Schafer. "Discrete-Time Signal Processing" (3rd ed.)
NADAN PD Level and 9 AMenthuta giri aetante setup
numma poliw alle machane
like share comment follow
like for like share for share
like my pro pic bro
27 support
freaky amal on floor
freaky adarsh on floor
Daily RVOL (Raw) SMA/EMA + Surge Marker - TP## Daily RVOL (Raw) SMA/EMA + Surge Marker (TP)
This indicator helps you spot **unusual institutional-style participation** by measuring **Daily Relative Volume (RVOL)** and highlighting **sudden RVOL “surges”** compared to the prior day.
### What it shows
**RVOL (raw)** is a ratio:
**RVOL = Today’s Daily Volume ÷ Average Daily Volume (lookback)**
* **1.00x** = normal volume
* **1.50x** = ~50% above normal
* **2.00x** = ~2x normal
The “Average Daily Volume” baseline can be calculated using either:
* **SMA** (simple average), or
* **EMA** (faster-reacting average)
The baseline uses **completed daily bars only**, so it won’t be distorted by a partially completed day.
### Surge Marker (Circle)
The circle prints when **today’s RVOL jumps significantly vs yesterday’s RVOL**:
**RVOL Surge % = (RVOL Today ÷ RVOL Prev − 1) × 100**
So if your surge threshold is **80%**, the circle triggers when:
**RVOL Today ≥ 1.80 × RVOL Prev**
This is meant to detect **volume acceleration**—not just “high volume,” but a **step-change** in participation.
### How to use it (in plain English)
Think of RVOL as a **crowd-size meter**, and the surge circle as a **“big money showed up today”** alert.
It does **not** directly label buy vs sell—it highlights **participation**. Direction comes from price action and context.
### Bullish vs Bearish clues (price + volume together)
Use the circle as a clue, then read the candle and key levels:
**Potential bullish signs**
* Breakout/reclaim of resistance + surge circle (strong confirmation)
* Strong up day (wide range, closes near highs) + surge circle
* **High volume down-close that *does NOT* break lower lows** (holds support)
→ Often means selling pressure was absorbed and price held the line. This can be a **bullish “support/absorption” tell**, especially if the next day confirms with strength.
**Potential bearish signs**
* Breakdown below support + surge circle (distribution confirmation)
* Rejection at resistance on surge circle (supply showing up)
* **High volume up-close that *fails to make higher highs* / can’t push through resistance**
→ Often suggests buying effort was met by strong supply (selling into strength). This can be a **bearish “stall/failure” tell**, especially if the next day confirms with weakness.
### Suggested settings
* **RVOL Length:** 20 is a solid default
* **SMA vs EMA:**
* SMA = smoother baseline
* EMA = reacts faster to recent volume changes
* **Surge Threshold:**
* **80–150%** = rare “shock” participation (fewer, stronger signals)
* **40–80%** = balanced signals
* **10–40%** = more signals, more noise
### Best practice
Use RVOL + surge circles as **confirmation**, not a standalone entry/exit:
* Combine with trend, support/resistance, and candle structure.
* The surge circle says **“participation surged”**—price action tells you **whether it’s accumulation (support) or distribution (supply).**
*(Educational use only. Not financial advice.)*
Vertical Event Lines - BTC Halving & Custom DatesThis indicator plots vertical lines and labels for Bitcoin halving dates and any custom events you define directly on the price chart.
It is designed as a clean, lightweight event-timeline overlay so you can instantly see where key dates occur relative to price action.
Main features
Built-in Bitcoin halving dates (2012, 2016, 2020, 2024), plus 8 additional custom event slots with freely configurable date/time, name and color.
Vertical lines are positioned using xloc.bar_time , ensuring each event is anchored to the exact timestamp in the chart’s timeframe and timezone.
Past and current events:
A label is created once, on the first bar that crosses the event time, and placed near the bar’s high for consistent readability across symbols and timeframes.
Future events:
A separate label is shown at the bottom of the chart, making future dates clearly visible even to the right of the last bar. These labels update only on the most recent bar to keep the script efficient.
Flexible styling:
Global controls for line width, line style and label size, with per-event color selection and optional per-event overrides of global width and style.
How to use
Add the script to any chart (BTC or other symbols). It works on all timeframes.
Use the Global settings to configure default line style, line width and label appearance (size, orientation, text color).
In each Event X section, enable the event and set:
Date/time in YYYY-MM-DD HH:MM format
Event name
Color
Optional custom width/style
When scrolling through time:
Events left of the last bar show a vertical line and a one-time label at the crossing bar.
Events right of the last bar show a vertical line and a bottom label that remains visible in the future.
This script is intended as a visual reference tool only .
It does not generate trading signals, alerts or backtests.
Timebender - Day SeparatorTimebender — NY Anchored Day Separator
Many traders rely on broker-based day boundaries, which often do not align with New York time — the primary liquidity clock for FX and macro-driven markets. When the trading day is anchored incorrectly, it can distort the reading of weekly structure, session behavior, and intraday narrative.
This script provides a clear and configurable way to anchor trading days to a user-defined timezone and visually separate them on the chart.
What This Script Does
Highlights individual trading days using background shading
Draws vertical separators at the exact start of each shifted trading day
Allows independent toggling of background highlights and separator lines
Supports day-specific coloring so each trading day is immediately recognizable
Enables manual timezone shifting so traders can align charts to New York regardless of broker feed
What Makes It Different
Most day separators rely strictly on exchange time. This script detects calendar transitions from a manually shifted timestamp, allowing traders to define their own day boundary.
This is particularly useful for traders who anchor their analysis to New York time rather than broker session clocks.
Combining optional background shading with precision separators also allows traders to switch between a macro view (highlighted days) and a minimal execution view (lines only) without loading multiple indicators.
How It Works (High-Level)
The script internally offsets the chart’s timestamp by the number of hours specified in the timezone setting. It then detects when a new calendar day begins from that adjusted time and renders the visual separator accordingly.
Because the calculation is based on shifted time rather than exchange time, the indicator maintains consistent day structure across brokers.
How To Use
Set the timezone shift to match the session you anchor your analysis to.
Example: New York is typically UTC-5 or UTC-4 during daylight saving time.
Enable background highlighting for a broader structural view.
Use vertical separators when a cleaner chart is preferred for execution.
Customize colors to match your chart template.
Who This Script Is For
FX traders
Session-based traders
ICT-style market structure traders
Traders using multiple brokers
Anyone who wants consistent day boundaries across charts
Notes
This script is designed as a chart-organization utility. It does not generate trade signals or provide market predictions.
Deep AILibrary "Deeptest"
Comprehensive quantitative backtesting library with 112+ metrics: Sharpe/Sortino ratios, drawdown analysis, Monte Carlo simulation, Walk-Forward Analysis, VaR/CVaR, benchmark comparison, and interactive table rendering for TradingView strategies
@version 1.0.1 (01.01.2026)
============================================================================
CHANGELOG
============================================================================
v1.0.1 (01.01.2026)
- Added textSize parameter to runDeeptest() for controlling table text size
- New values: size.auto, size.small, size.tiny, size.normal, size.large
- Applies to all tables: main, stress test, drawdowns, recoveries, trades
v1.0.0 (31.12.2025)
- Initial release
- 112+ backtesting metrics
- Monte Carlo simulation and Walk-Forward Analysis
- Interactive table rendering with tooltips
============================================================================
TABLE OF CONTENTS
============================================================================
SECTION 1: File Header & Metadata
SECTION 2: Constants & Configuration
SECTION 3: Type Definitions
SECTION 4: Core Calculation Functions - Array Utilities
SECTION 5: Core Calculation Functions - Return Extraction
SECTION 6: Core Calculation Functions - Sharpe & Sortino
SECTION 7: Core Calculation Functions - Performance Metrics
SECTION 8: Core Calculation Functions - Drawdown Analysis
SECTION 9: Core Calculation Functions - Recovery Analysis
SECTION 10: Core Calculation Functions - Trade Analysis
SECTION 11: Core Calculation Functions - Statistical Distribution
SECTION 12: Core Calculation Functions - Risk Metrics
SECTION 13: Core Calculation Functions - Benchmark Comparison
SECTION 14: Core Calculation Functions - Time-Based Metrics
SECTION 15: Core Calculation Functions - Rolling Statistics
SECTION 16: Core Calculation Functions - Strategy Integration
SECTION 17: Core Calculation Functions - Walk Forward Analysis
SECTION 18: Core Calculation Functions - Monte Carlo Simulation
SECTION 19: Core Calculation Functions - Out-of-Sample Analysis
SECTION 20: Formatting Utilities - Value Formatting
SECTION 21: Formatting Utilities - Duration Formatting
SECTION 22: Formatting Utilities - Frequency Formatting
SECTION 23: Formatting Utilities - Date Formatting
SECTION 24: Tooltip Builders - Main Table Metrics
SECTION 25: Tooltip Builders - Complementary Metrics
SECTION 26: Tooltip Builders - Stress Test Metrics
SECTION 27: Tooltip Builders - Period Analysis Cards
SECTION 28: Table Rendering - Structure Helpers
SECTION 29: Table Rendering - Main Deeptest Table
SECTION 30: Table Rendering - Cell Renderers - Complementary Row
SECTION 31: Table Rendering - Stress Test Table
SECTION 32: Table Rendering - Period Analysis Cards
SECTION 33: Main Entry Point
============================================================================
API REFERENCE
============================================================================
Main Export:
------------
runDeeptest() - Complete backtest analysis orchestrator
============================================================================
KEY FEATURES
============================================================================
- Comprehensive backtesting metrics (112+ functions)
- Rolling window analysis with statistical distributions
- Advanced risk metrics (Sharpe, Sortino, Calmar, Martin, VaR, CVaR)
- Drawdown and recovery analysis
- Monte Carlo simulation and Walk-Forward Analysis
- Trade analysis (top/worst trades, consecutive streaks)
- Benchmark comparison (Alpha, Beta, R², Buy & Hold)
- Interactive table rendering with tooltips
============================================================================
USAGE EXAMPLE
============================================================================
╔══════════════════════════════════════════════════════════════════════════════╗
║ PROGRESSIVE USAGE EXAMPLES ║
╠══════════════════════════════════════════════════════════════════════════════╣
║ Three examples demonstrating increasing complexity: ║
║ 1. MINIMAL - "Hello World" with basic MA crossover ║
║ 2. BALANCED - Production ready with risk management & filters ║
║ 3. PROFESSIONAL - Full-featured with trailing stops & session filters ║
╚══════════════════════════════════════════════════════════════════════════════╝
╔══════════════════════════════════════════════════════════════════════════════╗
║ EXAMPLE 1: MINIMAL (The "Hello World") ║
╠══════════════════════════════════════════════════════════════════════════════╣
║ The simplest possible integration - just 3 lines to get started: ║
║ 1. Import the library ║
║ 2. Write your strategy logic ║
║ 3. Call runDeeptest() ║
╚══════════════════════════════════════════════════════════════════════════════╝
//@version=6
strategy("MA Crossover ", overlay=true)
// ═══════════════════════════════════════════════════════════════════════════
// ⮟ Import Deeptest (Direct import - no namespace prefix needed)
// ═══════════════════════════════════════════════════════════════════════════
import Fractalyst/Deeptest/1 as *
// ────────────────────────────────────────────────────────────────────────────
// Strategy Logic: Simple Moving Average Crossover
// ────────────────────────────────────────────────────────────────────────────
fastMA = ta.sma(close, 10) // Fast MA: 10 periods
slowMA = ta.sma(close, 30) // Slow MA: 30 periods
// Plot MAs for visualization
plot(fastMA, "Fast MA", color=color.blue)
plot(slowMA, "Slow MA", color=color.orange)
// Entry: Long when fast MA crosses above slow MA
if ta.crossover(fastMA, slowMA)
strategy.entry("Long", strategy.long)
// Exit: Close when fast MA crosses below slow MA
if ta.crossunder(fastMA, slowMA)
strategy.close("Long")
// ═══════════════════════════════════════════════════════════════════════════
// ⮟ Run backtest analysis (all parameters use smart defaults)
// ═══════════════════════════════════════════════════════════════════════════
DT.runDeeptest()
╔══════════════════════════════════════════════════════════════════════════════╗
║ EXAMPLE 2: BALANCED (Production Ready) ║
╠══════════════════════════════════════════════════════════════════════════════╣
║ Adds essential production features: ║
║ • User-configurable inputs ║
║ • ADX trend filter to avoid choppy markets ║
║ • Stop loss / Take profit for risk management ║
║ • Custom backtest parameters ║
╚══════════════════════════════════════════════════════════════════════════════╝
//@version=6
strategy("MA Crossover ", overlay=true)
import Fractalyst/Deeptest/1 as *
// ────────────────────────────────────────────────────────────────────────────
// INPUT PARAMETERS
// ────────────────────────────────────────────────────────────────────────────
fastLen = input.int(10, "Fast MA Period", minval=1)
slowLen = input.int(30, "Slow MA Period", minval=1)
riskPct = input.float(2.0, "Risk %", minval=0.1) / 100
slPct = input.float(5.0, "Stop Loss %", minval=0.1) / 100
tpPct = input.float(10.0, "Take Profit %", minval=0.1) / 100
adxThresh = input.int(20, "ADX Trend Threshold")
// ────────────────────────────────────────────────────────────────────────────
// INDICATORS
// ────────────────────────────────────────────────────────────────────────────
fastMA = ta.sma(close, fastLen)
slowMA = ta.sma(close, slowLen)
adx = ta.adx(14)
= ta.dmi(14, 14)
// ────────────────────────────────────────────────────────────────────────────
// FILTERS
// ────────────────────────────────────────────────────────────────────────────
trendConfirmed = adx > adxThresh and diPlus > diMinus
// ────────────────────────────────────────────────────────────────────────────
// STRATEGY LOGIC
// ────────────────────────────────────────────────────────────────────────────
// Entry: MA crossover + trend confirmation
if ta.crossover(fastMA, slowMA) and trendConfirmed
strategy.entry("Long", strategy.long)
// Exit: MA crossunder
if ta.crossunder(fastMA, slowMA)
strategy.close("Long")
// Risk management: Stop loss and take profit
if strategy.position_size > 0
strategy.exit("RM", "Long",
stop=strategy.position_avg_price * (1 - slPct),
limit=strategy.position_avg_price * (1 + tpPct))
// ═══════════════════════════════════════════════════════════════════════════
// ⮟ Run backtest with custom parameters
// ═══════════════════════════════════════════════════════════════════════════
DT.runDeeptest(
riskPerTrade = 1.0, // ← 1% risk per trade
targetMaxDDPct = 15.0, // ← 15% max drawdown target
showStressTest = true, // ← Enable stress test table
showPeriodCards = true, // ← Enable period cards
wfaWindows = 12, // ← Walk-forward windows
mcSimulations = 1000, // ← Monte Carlo runs
bullColor = color.new(#00b9ff, 0),
bearColor = color.new(#ff0051, 0),
benchmarkSymbol = "SPX", // ← Compare to S&P; 500
periodCardMode = "drawdowns", // ← Show drawdown periods
tradeSortBy = "return" // ← Sort by return %
)
╔══════════════════════════════════════════════════════════════════════════════╗
║ EXAMPLE 3: PROFESSIONAL (Full-Featured) ║
╠══════════════════════════════════════════════════════════════════════════════╣
║ Complete professional implementation: ║
║ • Organized input groups for better UX ║
║ • Multiple filters: ADX trend, ATR volatility, Session timing ║
║ • Trailing stop to lock in profits ║
║ • Position highlighting for visual feedback ║
║ • Full parameter customization with inline documentation ║
╚══════════════════════════════════════════════════════════════════════════════╝
//@version=6
runDeeptest(targetMaxDDPct, bullColor, bearColor, tableBg, headerBg, borderColor, textPrimary, textMuted, textSize, showComplementaryRow, showStressTestTable, showDrawdownRecoveryCards, showTradeCards)
Parameters:
targetMaxDDPct (float)
bullColor (color)
bearColor (color)
tableBg (color)
headerBg (color)
borderColor (color)
textPrimary (color)
textMuted (color)
textSize (string)
showComplementaryRow (bool)
showStressTestTable (bool)
showDrawdownRecoveryCards (bool)
showTradeCards (bool)
ThresholdConfig
ThresholdConfig - Configuration for metric thresholds and corresponding colors
Fields:
sharpeExc (series float)
sharpeGood (series float)
sharpeOk (series float)
sharpeBear (series color)
sharpeNeutral (series color)
sharpeOrange (series color)
sharpeBull (series color)
ddSevere (series float)
ddMod (series float)
ddMild (series float)
ddSevereColor (series color)
ddModColor (series color)
ddOrange (series color)
ddGoodColor (series color)
rorHigh (series float)
rorMod (series float)
rorLow (series float)
rorHighColor (series color)
rorModColor (series color)
rorOrange (series color)
rorLowColor (series color)
r2Poor (series float)
r2Mod (series float)
r2Good (series float)
r2PoorColor (series color)
r2ModColor (series color)
r2Orange (series color)
r2GoodColor (series color)
kurtHigh (series float)
kurtMod (series float)
kurtOk (series float)
kurtHighColor (series color)
kurtModColor (series color)
kurtOrange (series color)
kurtGoodColor (series color)
skewVNeg (series float)
skewModNeg (series float)
skewPos (series float)
skewVPos (series float)
skewVNegColor (series color)
skewModNegColor (series color)
skewNeutral (series color)
skewPosColor (series color)
payoffPoor (series float)
payoffBE (series float)
payoffGood (series float)
payoffPoorColor (series color)
payoffBEColor (series color)
payoffOrange (series color)
payoffGoodColor (series color)
pfPoor (series float)
pfBE (series float)
pfGood (series float)
pfPoorColor (series color)
pfBEColor (series color)
pfOrange (series color)
pfGoodColor (series color)
ulcerHigh (series float)
ulcerLow (series float)
ulcerHighColor (series color)
ulcerModColor (series color)
ulcerOrange (series color)
ulcerLowColor (series color)
wrLow (series float)
wrOk (series float)
wrHigh (series float)
wrLowColor (series color)
wrOkColor (series color)
wrOrange (series color)
wrHighColor (series color)
cagrPoor (series float)
cagrOk (series float)
cagrGood (series float)
cagrPoorColor (series color)
cagrOkColor (series color)
cagrOrange (series color)
cagrGoodColor (series color)
pInsig (series float)
pMod (series float)
pSig (series float)
pInsigColor (series color)
pModColor (series color)
pOrange (series color)
pSigColor (series color)
calmarPoor (series float)
calmarBE (series float)
calmarGood (series float)
calmarPoorColor (series color)
calmarBEColor (series color)
calmarOrange (series color)
calmarGoodColor (series color)
betaHigh (series float)
betaLow (series float)
betaHighColor (series color)
betaLowColor (series color)
betaGoodColor (series color)
Stats
Stats - Comprehensive backtest statistics container
Fields:
totalTrades (series int)
winTrades (series int)
lossTrades (series int)
evenTrades (series int)
winRate (series float)
lossRate (series float)
avgWinPct (series float)
avgLossPct (series float)
avgTradePct (series float)
profitFactor (series float)
payoffRatio (series float)
expectancy (series float)
grossProfit (series float)
grossLoss (series float)
netProfit (series float)
netProfitPct (series float)
compEffect (series float)
sharpe (series float)
sortino (series float)
calmar (series float)
martin (series float)
maxDrawdown (series float)
maxDrawdownPct (series float)
currentDrawdown (series float)
currentDrawdownPct (series float)
avgDrawdownPct (series float)
maxEquity (series float)
minEquity (series float)
cagr (series float)
monthlyReturn (series float)
maxConsecWins (series int)
maxConsecLosses (series int)
avgTradeDuration (series float)
avgWinDuration (series float)
avgLossDuration (series float)
timeInMarketPct (series float)
tradesPerMonth (series float)
tradesPerYear (series float)
skewness (series float)
kurtosis (series float)
var95 (series float)
cvar95 (series float)
ulcerIndex (series float)
riskOfRuin (series float)
pValue (series float)
zScore (series float)
alpha (series float)
beta (series float)
buyHoldReturn (series float)
equityRSquared (series float)
firstTradeTime (series int)
lastTradeTime (series int)
tradingPeriodDays (series float)
RollingWindowSummary
RollingWindowSummary - Summary of metrics for a single rolling analysis window
Fields:
windowIndex (series int)
startTrade (series int)
endTrade (series int)
effectiveCount (series int)
minValue (series float)
maxValue (series float)
metricValue (series float)
RollingStats
RollingStats - Statistical distribution of rolling window metrics
Fields:
windowSize (series int) : Number of trades in rolling window
expectancyMin (series float) : Minimum rolling expectancy
expectancyMax (series float) : Maximum rolling expectancy
sharpeMin (series float) : Minimum rolling Sharpe
sharpeMax (series float) : Maximum rolling Sharpe
sortinoMin (series float) : Minimum rolling Sortino
sortinoMax (series float) : Maximum rolling Sortino
expectancyWindows (array) : Per-window summaries for expectancy
sharpeWindows (array) : Per-window summaries for Sharpe
sortinoWindows (array) : Per-window summaries for Sortino
expectancyMean (series float) : Mean expectancy across rolling windows
expectancyStdDev (series float) : Standard deviation of expectancy
expectancyPct90 (series float) : 90th percentile expectancy
expectancyPct50 (series float) : 50th percentile expectancy (median)
expectancyPct10 (series float) : 10th percentile expectancy
sharpeMean (series float) : Mean Sharpe across rolling windows
sharpeStdDev (series float) : Standard deviation of Sharpe
sharpePct90 (series float) : 90th percentile Sharpe
sharpePct50 (series float) : 50th percentile Sharpe
sharpePct10 (series float) : 10th percentile Sharpe
sortinoMean (series float) : Mean Sortino across rolling windows
sortinoStdDev (series float) : Standard deviation of Sortino
sortinoPct90 (series float) : 90th percentile Sortino
sortinoPct50 (series float) : 50th percentile Sortino
sortinoPct10 (series float) : 10th percentile Sortino
USDT + USDC DominanceUSDT + USDC Dominance
USDT/USDC Dominance Indicator
This indicator measures the relative dominance of USDT and USDC on the market. It calculates the share of each stablecoin compared to the total of the two, and displays it as a percentage.
USDT Dominance (%) = (USDT value / (USDT value + USDC value)) × 100
USDC Dominance (%) = 100 − USDT Dominance
The indicator plots both dominance values on the chart, allowing you to see which stablecoin has a higher share at any given time. It can help identify shifts in market preference between USDT and USDC.
Optional features:
Horizontal 50% line for reference.
Highlight when USDT or USDC exceeds 50% dominance.
Works with price or market capitalization data depending on available data sources.






















