Auto-DCF and Margin of Safety SetupDescription
Overview This indicator provides a dual-layered approach to stock valuation by combining a Discounted Cash Flow (DCF) model with Technical Momentum filters. It is designed for investors who seek to align fundamental "Fair Value" with high-probability technical entry points.
How It Works The script automates the valuation process by fetching real-time financial data directly from TradingView’s database.
Fundamental Valuation (DCF):
FCF Projections: It retrieves Free Cash Flow (TTM) and Total Shares Outstanding to calculate FCF per share.
Growth & Discounting: It projects FCF forward for 10 years based on your "Expected Annual Growth Rate" and discounts those values back to the present using the "Discount Rate" (WACC).
Terminal Value: A terminal value is calculated using a exit multiple (P/FCF) at Year 10 to account for the company's value beyond the projection period.
Intrinsic Value: The sum of all discounted cash flows and the terminal value represents the Intrinsic (Fair) Value, plotted as gray circles.
Margin of Safety (MoS):
A "Buy Limit" line (green) is plotted at a user-defined percentage below the Intrinsic Value. This represents the "Margin of Safety" popularized by Benjamin Graham to account for errors in estimation.
Technical Filters (The "Buy Setup"):
A visual Buy Zone appears only when three conditions align:
Value: Price is trading below the Margin of Safety.
Momentum: The RSI is in "Oversold" territory (default < 35).
Price Action: The stock is in a "Deep Pullback" (defined as a 15% drop from its 50-bar high).
How to Use
Settings: You must adjust the Growth Rate and Discount Rate based on the specific company’s historical performance and risk profile.
Visuals: When a setup occurs, the script draws a green box, a technical Stop Loss (based on a buffer below the low), and a Tech Target (a 50% retracement of the recent drop).
Limitations: This script requires request.financial data. It is intended for Stocks only. If no financial data is available for a ticker (e.g., Crypto or Forex), an error label will appear.
Disclaimer This script is for educational purposes only and does not constitute financial advice. DCF models are highly sensitive to input variables; small changes in growth or discount rates can significantly alter the Fair Value.
Göstergeler ve stratejiler
Herramienta Risk:Reward Pro - MECTRADEROverview: This is an advanced Risk/Reward management tool specifically designed for traders who execute based on Ticks (perfect for Futures like NQ/ES, Gold, or Forex). The main focus of this script is visual clarity and precision.
Key Features:
✅ Clean Visuals (No Dimming): Built using linefill technology with a 92% transparency rate. This ensures the price action remains vibrant and clear. Unlike standard boxes, this tool does not darken or "muddy" the candles when the price enters the zone.
✅ Tick-Based Calculation: Define your Stop Loss and up to 5 Take Profit levels using Ticks for maximum precision.
✅ Toggleable TP Levels: You can enable or disable TP1 through TP5 individually to match your scaling-out strategy.
✅ Dynamic Labels: Automatically displays the level name (Entry, SL, TP) along with the exact price value on the right-side scale.
✅ Long/Short Toggle: Switch between buy and sell setups instantly with a single drop-down selection.
How to use:
Add the script to your chart.
Open Settings and choose your Mode (LONG or SHORT).
Use the Precision Crosshair icon next to "Price Entry" to pick your execution level directly from the chart.
Adjust your Stop Loss and Profit Ticks.
The tool will project your risk zones professionally without interfering with your technical analysis.
Stochastic Momentum Index - SMI🎯 Overview
This is a Stochastic Momentum Index (SMI) indicator that combines stochastic momentum with moving average smoothing to identify trend direction and momentum strength in financial markets. The SMI measures where the current price closes relative to the midpoint of its recent trading range, providing enhanced sensitivity to price momentum.
🧩 Core Components
1. ⚙️ Technical Foundation
📊 Primary Calculation: Uses TradingView's built-in ta.stoch() function
📈 Range-Based: Compares closing price to high-low range over specified period
🎯 Scale: Oscillates between 0-100 with 50 as neutral midpoint
2. 🎛️ Configuration Parameters
📏 SMI Length: Default 101 periods (long-term smoothing)
📊 Source Price: Customizable (default = Close)
📈 MA Length: 30-period moving average applied to SMI
🔄 MA Type: 6 options (EMA, SMA, RMA, WMA, VWMA, HMA)
🎨 Color Themes: 5 visual schemes (Classic, Modern, Robust, Accented, Monochrome)
📈 Signal Interpretation:
🟢 BULLISH: SMI > 50 (price closing in upper half of range)
🔴 BEARISH: SMI < 50 (price closing in lower half of range)
🎯 Neutral Zone: Around 50 indicates balanced momentum
👁️ Visual Features
📈 Signal Line (MA):
Yellow moving average of SMI
Smooths momentum for clearer trend identification
🎯 Reference Lines:
50-level midpoint (white dashed line)
0-100 scale boundaries
🎨 Fill Zones:
🟢 Upper Zone : Bullish momentum area
🔴 Lower Zone : Bearish momentum area
Gradient fills enhance visual clarity
📋 Dashboard Display:
Content: "⬆️ Bullish" or "⬇️ Bearish" indicator
Purpose: Quick market bias assessment
⚡ Trading Applications
📈 Primary Uses:
🎯 Trend Identification
SMI > 50 = Uptrend momentum
SMI < 50 = Downtrend momentum
📊 Momentum Strength
Values near 100 = Strong bullish momentum
Values near 0 = Strong bearish momentum
Values around 50 = Neutral/consolidation
🔄 Mean Reversion
Extreme readings (near 0 or 100) may indicate overbought/oversold conditions
⏰ Timeframe Compatibility:
📅 Long-term: 101-period default suits swing/position trading
📊 Medium-term: Adjust lengths for daily/weekly analysis
⚡ Short-term: Reduce periods for intraday trading
🎨 Customization Options
🔄 Moving Average Types:
📉 EMA: Exponential - responsive to recent changes
📊 SMA: Simple - equal weight to all periods
📈 RMA: Relative - TradingView's special moving average
⚖️ WMA: Weighted - emphasizes recent data
💎 VWMA: Volume-weighted - incorporates volume
🚀 HMA: Hull - reduces lag significantly
🎨 Visual Themes:
🎨 Classic: Green/Red (traditional trading colors)
🚀 Modern: Cyan/Purple (modern aesthetic)
💪 Robust: Amber/Deep Purple (high contrast)
🌈 Accented: Purple/Magenta (vibrant)
⚫⚪ Monochrome: Light Gray/Dark Gray (minimalist)
🔔 Alert System
🟢 LONG Alert: Triggers when SMI crosses above 50
🔴 SHORT Alert: Triggers when SMI crosses below 50
📧 Format: Includes ticker symbol for easy identification
⚡ Key Advantages
✅ Strengths:
🎯 Clear Signals: Simple >50/<50 threshold for easy interpretation
📊 Range-Bound: Always oscillates 0-100 (no divergence issues)
👁️ Visual Clarity: Color-coded zones make analysis intuitive
🔄 Customizable: Multiple MA types and visual themes
📱 Professional: Clean, organized display suitable for all traders
AVSL - XAUUSD M1 OptimizedCredit to Rafka.
This script is optimized for XAUUSDT.P 1-minute trading based on AVSL Indicator from Rafka.
March-May Oct-Dec bank stocks strategyIn the Indian market, banking stocks have some sort of cyclic nature.
If you buy at the start of March and sell at the start of May and then buy at the start of Oct and sell at the start of December, you can make gains close to to "buy and hold", while being invested only for 4 months out of 12.
This seems to backtest well for post 2021 on all Bank stocks I tested, including BANKNIFTY as well
Caveat: Not calculating STCG and other expenses caused by selling and buying 2 times every year.
EMA 9 & 26 Crossover By SN TraderEMA 9 & 26 Crossover – Trend & Momentum Indicator For Scalpers
The EMA 9 & EMA 26 Crossover Indicator is a simple yet powerful trend-following tool designed to identify high-probability buy and sell signals based on short-term and medium-term momentum shifts.
This indicator is widely used by scalpers, intraday traders, and swing traders across Forex, Crypto, Stocks, Indices, and Commodities.
🔹 Indicator Logic
EMA 9 (Green) → Fast momentum
EMA 26 (Red) → Trend direction
BUY Signal
When EMA 9 crosses above EMA 26
Indicates bullish momentum and possible trend reversal or continuation
SELL Signal
When EMA 9 crosses below EMA 26
Indicates bearish momentum and potential downside movement
Clear BUY / SELL labels are plotted directly on the chart for easy visual confirmation.
📈 How to Trade Using This Indicator
✔ Enter BUY trades after EMA 9 crosses above EMA 26
✔ Enter SELL trades after EMA 9 crosses below EMA 26
✔ Use higher timeframes (15m, 1H, 4H) for stronger signals
✔ Combine with RSI, MACD, UT Bot, VWAP, Support & Resistance for confirmation
✅ Best Use Cases
Trend reversal identification
Momentum-based entries
Scalping & intraday strategies
Swing trading trend confirmation
Works on all timeframes
⚙️ Features
✔ Lightweight & fast
✔ Beginner-friendly
✔ Non-repainting signals
✔ Pine Script v6 compatible
✔ Clean visual design
⚠️ Disclaimer
This indicator is for educational purposes only and should not be considered financial advice. Always apply proper risk management and confirm signals with additional analysis.
Pivots Double Top/Bottom - NancyPsTitsOriginal script taken and converted from HeWhoMustNotBeNamed excellent original script. converted from pine v4 to pine v6 and added alerts for LL, LH, HH, HL for any time frame
// Modified to include HH/HL/LH/LL alerts with timeframe selection
Shadow Mode Simulator ELITE🎮 SHADOW MODE SIMULATOR — FEATURE GUIDE
Think of this as GTA with rules instead of random driving.
🏆 1. A / A+ SETUP GRADING (QUALITY CONTROL)
Every entry is graded automatically:
✅ A+ Setup (best XP)
Must have:
• HTF trend aligned
• Liquidity sweep OR perfect pullback
• High confidence (4–5)
✅ A Setup (acceptable)
Must have:
• HTF trend aligned
• ONE valid strategy condition
⚠️ B Setup (allowed but low reward)
Everything else
❌ Invalid
Bad RR or no strategy → XP penalty
👉 This trains selectivity (most traders fail here)
🗺️ 2. AUTO SESSION HEATMAP
Background turns green during your trading session.
This teaches:
✔ When liquidity is real
✔ When NOT to trade
No more random midnight scalping.
😵 3. TILT DETECTOR
Triggers when:
• 2 losses in a row
• Or cooldown active
Shows:
⚠️ TILT WARNING
This is your psychology guardian.
(Pros stop trading here. Retail blows accounts here.)
🧠 4. STRATEGY-SPECIFIC VALIDATORS
You can toggle:
✅ Liquidity sweep trades
✅ Trend pullback trades
If you enter without one → ❌ punished.
This builds:
➡️ mechanical discipline
➡️ no random clicking
⏳ 5. EMOTIONAL COOLDOWN SYSTEM
After a loss:
• You are “locked” for X candles
• No rushing back in
This rewires revenge trading.
📊 6. LIVE PERFORMANCE ENGINE
Tracks:
• XP
• Level
• Win rate
• Win/loss streak
• Trade count
• Tilt state
• HTF bias
• Setup grade
You level up by:
👉 discipline — not profit
📈 LEVEL MEANING (IMPORTANT)
Level Skill State
1–2 Impulsive
3–4 Learning patience
5–6 Controlled
7–8 Consistent
9+ Pro-ready
You should NOT trade real money seriously before level 7.
🧪 FULL LIVE TUTORIAL — HOW TO USE IT
STEP 1 — SETUP
Open TradingView
Open chart you scalp (NIFTY/BTC/etc)
Add the Shadow Mode indicator
Set:
• Session time
• HTF timeframe
• Max trades
STEP 2 — MARKET OPENS
Your job first 10–15 mins:
❌ Do nothing
👀 Just watch structure
(This alone fixes overtrading)
STEP 3 — WHEN YOU SEE A SETUP
Ask:
✔ HTF aligned?
✔ Liquidity sweep or pullback?
✔ RR good?
If yes:
👉 Click 📥 ENTRY
You’ll see:
• Grade (A / A+)
• Entry marker
STEP 4 — MANAGE LIKE A ROBOT
Do NOT interfere.
Let:
• TP
• SL
• or invalidation happen
STEP 5 — EXIT
Click:
📤 EXIT when trade is done
System:
• Awards XP
• Updates streaks
• Tracks win rate
STEP 6 — IF YOU MESSED UP
Click:
❌ RULE BREAK
(Takes XP + activates cooldown)
This hurts — on purpose.
📆 PERFECT TRAINING DAY LOOKS LIKE:
✅ 1–2 A/A+ trades
✅ maybe 1 loss
✅ stop after cooldown
✅ XP positive
Even if P&L is flat.
That’s winning.
🚫 COMMON MISTAKES (DON’T DO THESE)
❌ Clicking entry emotionally
❌ Ignoring HTF bias
❌ Overtrading
❌ Chasing candles
❌ Skipping cooldown
The simulator is designed to punish these.
🧠 WHY THIS WORKS (SCIENCE SIDE)
This trains:
• Pattern recognition
• impulse control
• delayed gratification
• process over money
Same principles used in pilot & athlete simulators.
🎯 OPTIONAL HARD MODE (WHEN READY)
• Max 1 trade/day
• Only A+ setups
• Higher RR minimum
This accelerates mastery.
Borna High/Low📌 Borna High/Low
Borna High/Low is a clean and precise indicator that automatically plots the Asian session High and Low levels on GER40 (DAX) directly on the price chart.
It is designed for traders who use the Asian range as a liquidity zone and as a key reference for Frankfurt and London open trading strategies.
🔍 What this indicator does
Automatically calculates Asia High and Asia Low
Draws levels directly on the price chart (overlay)
Optional line extension to the right or both sides
Optional mid-line between High and Low
Session-end labels for clear visual reference
Stable plotting that does not shift when zooming
⏰ Session Settings
Default Asian session: 00:00 – 07:00
Fully customizable time window (e.g. 00:30 – 07:00)
Timezone support (recommended: Europe/Berlin for GER40)
⚙️ Customization
Line style: Solid / Dashed / Dotted
Line width
Extend mode: Right / Both / None
Toggle mid-line
Toggle session labels
📈 How to use
Use Asia High / Low as:
Liquidity targets
Range boundaries for London breakouts
Premium / Discount reference levels
Ideal for scalping and intraday trading on GER40
Relative Strength Table (Spring)This indicator helps traders quickly understand the relative strength of different groups and different stocks.
JBK 2 bougies (tailles B1/B2 + contraintes + 4 EMA + EMA Cloud) JBK — 2 bougies (tailles B1/B2 + contraintes + 4 EMA + EMA Cloud) — v4.4
Commodity Channel Index - CCI🎯 Overview
This is an enhanced Commodity Channel Index (CCI) indicator that transforms the traditional CCI into a centerline-focused momentum tool with moving average smoothing and comprehensive visual enhancements. Unlike standard CCI which uses ±100 levels, this version focuses on the 50-level centerline for clearer trend direction signals.
🧩 Core Components
1. ⚙️ Technical Foundation
📊 Primary Calculation: Uses TradingView's built-in ta.cci() function
📈 Statistical Approach: Measures current price relative to statistical mean
🎯 Scale Modification: Focuses on 50 as neutral (unlike traditional ±100)
📏 Default Length: 55 periods (optimal for medium-term trends)
2. 🎛️ Configuration Parameters
📏 CCI Length: Default 55 periods
📈 CCI MA Length: 30-period moving average
🔄 MA Type: 6 options (EMA, SMA, RMA, WMA, VWMA, HMA)
🎨 Color Themes: 5 visual schemes matching your other indicators
📈 Signal Interpretation:
🟢 BULLISH: CCI > 50 (price above statistical mean)
🔴 BEARISH: CCI < 50 (price below statistical mean)
👁️ Visual Features
📉 Chart Elements:
📊 Main CCI Line:
Shows raw CCI momentum
📈 Signal Line (CCI MA):
Yellow moving average of CCI
30-period default provides smoothed trend
🎨 Fill Zones:
🟢 Upper Zone : Bullish momentum area
🔴 Lower Zone : Bearish momentum area
📋 Dashboard Display:
Content: "⬆️ Bullish" or "⬇️ Bearish" indicator
Purpose: Instant market bias assessment
⚡ Trading Applications
📈 Primary Uses:
🎯 Trend Direction Identification
CCI > 50 = Uptrend momentum
CCI < 50 = Downtrend momentum
📊 Extreme Momentum Detection
CCI > 100 = Strong bullish (traditional)
CCI < -100 = Strong bearish (traditional)
CCI near ±300 = Extreme conditions
🔄 Mean Reversion Opportunities
Useful in ranging markets
🎯 Signal Types:
📈 Trend-Following: Stay long when CCI > 50, short when < 50
🔄 Mean Reversion: Fade extreme readings (>100 or <-100)
⚡ Crossover Signals: CCI crossing 50 provides entry/exit points
🎨 Customization Options
🔄 Moving Average Types:
📉 EMA: Exponential - responsive to recent CCI changes
📊 SMA: Simple - smooths CCI equally
📈 RMA: Relative - TradingView's special MA
⚖️ WMA: Weighted - emphasizes recent CCI values
💎 VWMA: Volume-weighted - incorporates volume indirectly
🚀 HMA: Hull - reduces lag on CCI signals
🎨 Visual Themes: (Consistent with your suite)
🎨 Classic: Green/Red (traditional)
🚀 Modern: Cyan/Purple (contemporary)
💪 Robust: Amber/Deep Purple (high contrast)
🌈 Accented: Purple/Magenta (vibrant)
⚫⚪ Monochrome: Light Gray/Dark Gray (minimalist)
🔔 Alert System
🟢 LONG Alert: Triggers when CCI > 50
🔴 SHORT Alert: Triggers when CCI < 50
📧 Format: Includes ticker symbol for portfolio tracking
⚡ Key Advantages
✅ Strengths:
🎯 Clear Centerline Focus: 50-level provides unambiguous trend direction
📊 Statistical Foundation: Based on mean deviation (more robust than simple oscillators)
👁️ Extreme Zone Visualization: ±300 boundaries show momentum extremes
🔄 Versatile Application: Works for both trend-following and mean reversion
📱 Professional Suite: Consistent design with your RSI and SMI indicators
⚡ Optimal Settings:
📈 Trending Markets: 55-period CCI (default)
🔄 Ranging Markets: Shorter periods (20-30)
📊 Volatile Markets: Longer periods (80-100)
📱 Day Trading: 20-period with EMA smoothing
🏆 Unique Features:
Statistical Rigor: Based on mean deviation (not just price differences)
Wide Range: ±300 scale captures extreme movements
Centerline Focus: Clear binary trend signals
Visual Harmony: Consistent with your indicator suite design
This CCI indicator provides a statistically robust approach to trend identification while maintaining the visual consistency and user-friendly design of your trading suite! 📊✨
QQQ 5m/15m Options Confluence (4-of-4) - HemanthaBuilt on confluences
it has confluences built on divergence
both bullish and bearish
also takes into account vwap and volume ,5 and 15 minute indicator
Institutional ROC + Z-Score HeatmapInstitutional ROC + Z-Score Heatmap
Identifies statistically significant daily price moves by calculating the z-score of the rate of change (ROC) against a configurable historical lookback period. Designed for cross-asset regime monitoring and volatility detection.
How it works:
Calculates the daily percentage change (ROC)
Compares that move to the historical distribution of daily moves
Expresses the result as a z-score (standard deviations from the mean)
Color coding:
Teal: Extreme positive move (>3σ) — rare upside, potential blowoff top
Red: Extreme negative move (<-3σ) — rare downside, potential capitulation
Orange/Lime: Warning zone (2-3σ) — unusual but not extreme
Gray: Normal volatility — nothing actionable
Use cases:
Identify regime shifts across asset classes (equities, crypto, commodities)
Spot potential mean-reversion setups after extreme moves
Monitor cross-asset risk appetite (BTC, XBI, SPY) for tactical hedging signals
Recommended settings:
ROC Length: 1 (daily moves)
Lookback: 252 (1 year) for stable assets, 60-90 for volatile biotech
Money Management Trade Data BoxTrade Data Box - Money Management Indicator
Overview
This indicator provides real-time position sizing and risk management calculations directly on your chart. It displays a clean data box that helps traders maintain disciplined risk management by automatically calculating the optimal number of contracts to trade based on ATR (Average True Range) volatility measurements.
What It Does
The indicator solves a critical problem that many traders face: determining the correct position size before entering a trade. Instead of manually calculating how many contracts to trade based on your risk tolerance and stop loss distance, this tool does all the math for you in real-time.
Key Features
ATR-Based Stop Loss & Target Calculation
Uses the Average True Range to set dynamic stop losses and profit targets that adapt to current market volatility
ATR multipliers allow you to customize how conservative or aggressive your stops and targets are (reasonable reward-to-risk ratio).
Automatic Position Sizing
Calculates exactly how many contracts you should trade to risk a specific dollar amount
Takes into account your defined risk per trade, the instrument's tick value, and the calculated stop loss distance
Updates continuously as market conditions change
Visual Data Box
Displays four critical pieces of information:
Target (ticks): How far your profit target is from entry
Stop (ticks): How far your stop loss should be placed
Risk Amount: Your fixed dollar risk per trade
Contracts: The calculated number of contracts to trade
Customization Options
Adjustable table size for different screen sizes
Six position options to place the box wherever you prefer on your chart
Optional "real close" dots to verify you're seeing actual closing prices if you are using Heiken Ashi Candles.
How Traders Use This
Set Your Risk Parameters: Input your maximum dollar risk per trade (e.g., $200) and the tick value for your instrument (e.g., $0.50 for Micro NQ (MNQ) futures)... verify your tick value before trading to ensure your risk management is correct.
Adjust ATR Settings: Customize the ATR length and multipliers based on your trading style and the instrument's characteristics.
Read the Box Before Trading: Before entering any trade, check the data box to know:
Where to place your stop loss
Where to set your profit target
How many contracts to trade to maintain consistent risk
Execute with Confidence: Enter your trade knowing you're risking exactly the amount you're comfortable with, regardless of how volatile the market is
Why This Matters
Professional traders know that position sizing is more important than entry timing. This indicator ensures you're never over-leveraged during volatile periods or under-leveraged during quiet markets. By basing calculations on ATR, your stops and targets automatically adjust to current market conditions, helping you maintain consistent risk across all trades.
BOS/CHoCH Impulsive Move Detector #12.2Includes all updates. This indicator includes all BOS & CHoCH impulses and identifies impulses of greater than 5% and differentiates between longs and shorts.
CTR RSI Trigger After MA CrossI use this in connection with my other indicator. Helps confirm my entries. Reach out and let me know if you want to learn how I use this for Bitcoin trading.
xxmonk. Absolute FractalDescription:
Concept This indicator is a specialized Fractal Time Engine designed for high-precision scalping and swing trading (specifically optimized for NQ/Nasdaq). Unlike standard Fibonacci time zones that drift or overlap, this script creates a strictly nested "Vibration" structure across three timeframes simultaneously. It treats time as a fractal, where smaller cycles are mathematically "imprisoned" within larger cycles.
How It Works The indicator projects the Fibonacci sequence (1, 3, 5, 8, 13, 21, 34, 55, 89, 144) from a single Master Anchor, but creates a hierarchy of containment:
HTF (Higher Timeframe - Red): The Master Cycle (e.g., Daily). These are the hard walls.
MDL (Middle Timeframe - Orange): Nested strictly between HTF milestones. The count resets to "1" instantly at every HTF line and cannot exist past the next HTF line.
LTF (Lower Timeframe - Yellow): Nested strictly between MDL milestones. The count resets to "1" instantly at every MDL line.
Key Features
Strict "Prisoner" Logic: A lower timeframe cycle is physically terminated the moment it hits a higher timeframe milestone. This prevents clutter and ensures the "1" always aligns with the momentum injection of the larger trend.
The "Rigged" Anchor: The math uses an (n-1) offset, ensuring that Milestone "1" sits exactly on the anchor vertical, removing the visual drift found in standard tools.
Dynamic Visibility Engine: To solve TradingView’s 500-label limit, this script uses a smart buffer that only draws labels currently visible on your screen. This ensures that the critical early counts (1, 3, 5) are never deleted to make room for off-screen history.
Tiered Visuals: Labels are automatically stacked at different percentage heights (15%, 8%, 2%) above price to prevent overlap.
Settings & Customization
Master Anchor: Select the exact start time for the cycle.
Timeframes: Fully customizable periods for HTF, MDL, and LTF layers.
Visuals: Individual control over Color, Line Style (Solid/Dash/Dot), Thickness, and Vertical Height for each tier.
How to Use
Set the Master Start Anchor to a significant high/low or session open.
Look for "Confluence Clusters": Areas where an HTF, MDL, and LTF line all land on the same candle often indicate a high-probability reversal or "Rigged" expansion point.
Use the LTF (Yellow) counts for entry timing (1, 3, 5) inside the larger trend direction defined by the HTF (Red) walls.
Triple VWAP (RTH Anchored + 1D/2D Rolling) w/ Z-ScoreRolling & Anchored VWAP Hybrid
Description:
This indicator is designed for intraday traders (Futures, Crypto, Equities) who need to quickly identify market regimes by comparing session-specific value against multi-day rolling value.
Traditional VWAP indicators force you to choose between "Anchored" (RTH) or "Rolling" (24h). This script combines both into a single hybrid tool, allowing you to spot trend days, mean reversion opportunities, and "fair value" dislocations instantly.
Key Features:
1. Hybrid VWAP Engine
RTH Anchored VWAP (Orange): Anchors automatically at the session open (default 09:30 NY). This represents the "true" institutional fair value for the current active session, ignoring overnight noise.
1-Day Rolling VWAP (Blue): A continuous 24-hour rolling window. This represents the short-term memory of the market (overnight + RTH).
2-Day Rolling VWAP (Purple): A continuous 48-hour rolling window. This acts as a slower, higher-timeframe support/resistance level.
2. Market Regime Identification
By observing the relationship between these three lines, you can instantly define the regime:
Bull Trend: Price > RTH VWAP > 1D VWAP > 2D VWAP.
Bear Trend: Price < RTH VWAP < 1D VWAP < 2D VWAP.
Expansion: When RTH VWAP breaks away from the 1D/2D Rolling VWAPs.
Compression/Chop: When all three lines are flat and entangled.
3. Integrated Z-Score Matrix (Table)
A built-in heatmap table displays the real-time Z-Score (standard deviation distance) of the current price relative to the 1-Day and 2-Day Rolling VWAPs.
How to use:
High Z-Score (> 2.0): Price is statistically extended (expensive). Look for mean reversion or exhaustion.
Low Z-Score (< -2.0): Price is statistically cheap. Look for bounces.
Zero (0.0): Price is at equilibrium (Fair Value).
Settings & Customization:
Session Time: Fully customizable RTH session (default 09:30-16:00) and Timezone.
Bands: Optional standard deviation bands for the RTH VWAP to visualize volatility.
Alerts: Built-in alert conditions for Price crossing any VWAP and for VWAP crossovers (Golden/Death crosses of value).
Manus KI TradingManus Machiene Learning Beast – Indicator Description
Settings
Use 1h Chart
Use Regime filter: 0.5
Use ADX 20
Use SMA 200
and be happy...
Overview
Manus Machiene Learning Beast is an advanced TradingView indicator that combines Machine Learning (Lorentzian Classification) with trend, volatility, and market regime filters to generate high-quality long and short trade signals.
The indicator is designed for rule-based, disciplined trading and works especially well for set-and-forget, semi-automated, or fully automated execution workflows.
⸻
Core Concept
At its core, the indicator uses a machine-learning model based on a modified K-Nearest Neighbors (KNN) approach.
Instead of standard Euclidean distance, it applies Lorentzian distance, which:
• Reduces the impact of outliers
• Accounts for market distortions caused by volatility spikes and major events
• Produces more robust predictions in real market conditions
The model does not attempt to predict exact tops or bottoms.
Instead, it estimates the probable price direction over the next 4 bars.
⸻
Signal Logic
Long Signals
A long signal is generated when:
• The ML model predicts a positive directional bias
• All enabled filters are satisfied
• A new directional change is detected (non-repainting)
• Optional trend filters (EMA / SMA) confirm the direction
• Optional kernel regression confirms bullish momentum
📍 Displayed as a green label below the bar
Short Signals
A short signal is generated when:
• The ML model predicts a negative directional bias
• Filters confirm bearish conditions
• A new directional change occurs
• Trend and kernel filters align
📍 Displayed as a red label above the bar
⸻
Filters & Components
All filters are modular and can be enabled or disabled individually.
1. Volatility Filter
• Avoids trading during extremely low or chaotic volatility conditions
2. Regime Filter (Trend vs Range)
• Attempts to filter out sideways markets
• Especially important for ML-based systems
3. ADX Filter (Optional)
• Trades only when sufficient trend strength is present
4. EMA / SMA Trend Filters
• Classic trend confirmation (e.g., 200 EMA / 200 SMA)
• Ensures trades are aligned with the higher-timeframe trend
5. Kernel Regression (Nadaraya-Watson)
• Smooths price behavior
• Acts as a momentum and trend confirmation filter
• Can be used in standard or smoothed mode
⸻
Moving Average Overlays
For visual market context, the indicator includes optional overlays:
• ✅ SMA 200
• ✅ HMA 200
Both can be toggled via checkboxes and are visual aids only, unless explicitly enabled as filters.
⸻
Exit Logic
Two exit methods are available:
1. Fixed Exit
• Trades close after 4 bars
• Matches the ML model’s training horizon
2. Dynamic Exit
• Uses kernel regression and signal changes
• Designed to let profits run in strong trends
⚠️ Recommended only when no additional trend filters are active.
⸻
Backtesting & Trade Statistics
The indicator includes an on-chart statistics panel showing:
• Win rate
• Total trades
• Win/Loss ratio
• Early signal flips (useful for identifying choppy markets)
⚠️ This is intended for calibration and optimization only, not as a replacement for full strategy backtesting.
⸻
Typical Use Cases
• Swing trading (M15 – H4)
• Rule-based discretionary trading
• Set-and-forget trading
• TradingView alerts → MT4/MT5 → EA execution
• Prop-firm trading (e.g. FTMO), with proper risk management
⸻
Important Disclaimer
This indicator:
• ❌ does not guarantee profits
• ❌ is not a “holy grail”
• ✅ is a decision-support and structure tool
It performs best when:
• Combined with strict risk management (e.g. ATR-based stops)
• Used in trending or expanding markets
• Executed with discipline and consistency
DafeVisualsLibDafeVisualsLib: The Architect - The Intelligent Visualization Engine
This is not a library of drawing functions. This is an AI-powered artist and data scientist that lives in your code. It automates the complex, time-consuming process of data analysis and visualization, allowing you to focus on what truly matters: your trading ideas.
█ CHAPTER 1: THE PHILOSOPHY - BEYOND PLOTTING, INTO PERCEPTION
For too long, the world of technical indicator development has been bifurcated. On one side, you have the quantitative analyst, obsessed with mathematical purity but often displaying their work in a crude, unintuitive manner. On the other, you have the visual designer, creating beautiful indicators that often lack analytical depth. The result for the end-user is a compromise: either a tool that is powerful but ugly and hard to interpret, or one that is beautiful but analytically shallow.
The DafeVisualsLib was created to shatter this compromise. Its core philosophy is that great analysis and great visualization are not separate disciplines; they are two sides of the same coin . An indicator should not just present data; it should communicate intelligence. It should automatically understand the nature of the data it is given and render it in the most effective, intuitive, and aesthetically pleasing way possible.
This library is an "Architect." You provide it with the raw materials—a simple data series like an RSI or a moving average—and it handles the entire complex process of analysis, configuration, and rendering. It is the ultimate accelerator for developers, saving hundreds of hours of boilerplate code, and the ultimate upgrade for traders, providing a level of clarity and visual intelligence previously unseen on this platform.
█ CHAPTER 2: THE CORE INNOVATION - THE "ANALYZE, THEN RENDER" PARADIGM
The DafeVisualsLib operates on a revolutionary two-stage pipeline that sets it apart from any other tool.
STAGE 1: The analyze() Function (The Data Scientist)
This is the brain. Before a single line is drawn, this function performs a sophisticated statistical analysis on your raw data series to understand its fundamental character. It asks the critical questions that a human analyst would:
What type of data is this? It automatically detects if your data is a bounded "oscillator" like an RSI, a zero-centric "momentum" indicator like MACD, a "price"-based line like a moving average, or a "volume"-based metric.
What is the current market regime? It analyzes the data's volatility (using the coefficient of variation) to classify the current environment as a low-volatility "squeeze," a moderate-volatility "trend," or a high-volatility "volatile" state.
Where is the data in its cycle? It normalizes the data to a 0-100 scale and determines if it is currently at a statistical "extreme."
The output of this stage is a MetricAnalysis object—a complete analytical report on the DNA of your data.
STAGE 2: The auto_config() Function (The Artist & Physicist)
This is where the magic happens. This function takes the analytical report from analyze() and uses it to make a series of intelligent, context-aware decisions about how the data should be visualized.
Intelligent Color Logic: It doesn't just use one color. For an oscillator, it will create a beautiful heatmap gradient. For a momentum indicator, it will use a binary bull/bear color scheme.
Neon Physics: It separates the color into a solid c_core and a transparent c_glow. The opacity of the glow is not static; it is dynamically controlled by the detected market regime. In a "volatile" regime, the glow becomes bright and intense. In a "squeeze," it becomes dim and subtle.
Adaptive Style & Width: It automatically adjusts the plot style and line width. A "momentum" indicator will be rendered as a histogram by default. A "price" line will be thick and bold in a volatile market and thin and clean in a calm market.
Smart Zones: If it detects that the data is an "oscillator," it will automatically recommend showing overbought/oversold zones and provide the standard 70/30 levels.
The output of this stage is a PlotConfig object—a complete, ready-to-use set of plotting instructions, intelligently tailored to your specific data and the current market conditions.
█ CHAPTER 3: THE DEVELOPER'S TOOLKIT - A MASTERCLASS IN EFFICIENCY
This library is a gift to Pine Script developers. It is a suite of powerful, high-level functions designed to simplify your workflow and elevate your final product.
The Theme Engine
Forget hard-coding colors. The get_theme() function provides access to a library of professionally designed, high-contrast color themes ("Neon," "Cyber," "Matrix," "Gold," etc.). Each Theme object contains a complete palette for primary, secondary, accent, bull, bear, and neutral colors, ensuring perfect visual consistency across your entire indicator.
The UI & HUD Helpers
Building user interfaces with tables can be tedious. This library provides a suite of helper functions to make it effortless.
smart_text(): Automatically selects black or white text for optimal contrast against any background color.
draw_bar(): Creates a clean, beautiful ASCII progress bar from a simple percentage value.
draw_stars(): Creates a five-star rating visualization.
gradient_color(): A powerful function for creating smooth color transitions.
get_signal_style() & get_zone_style(): High-level functions that return complete styling configurations for signals and support/resistance zones based on your chosen theme.
The Simplicity of Integration: A 4-Step Workflow
The true beauty of the DafeVisualsLib is its simplicity. You can create a stunning, intelligent, and fully functional indicator in just four steps:
Import the library: import YourUsername/DafeVisualsLib/1 as viz
Get your theme: viz.Theme theme = viz.get_theme("Neon")
Calculate your metric: float rsi = ta.rsi(close, 14)
Let the Architect do the work: viz.PlotConfig cfg = viz.auto_config(rsi, "RSI", theme)
Plot the result: plot(cfg.value, cfg.title, cfg.c_core, cfg.width)
In these few lines, the library has automatically analyzed your RSI, determined the market regime, selected the appropriate plot style, calculated a dynamic color gradient with a physics-based glow, and adapted the line width to the current volatility. This is the power of the Architect.
█ CHAPTER 4: DEVELOPMENT PHILOSOPHY
The DafeVisualsLib was born from a desire to democratize elite-level indicator design. For too long, the ability to create beautiful, context-aware, and intuitively designed indicators has been the domain of a select few developers with deep knowledge of both programming and graphic design. This library changes that. It is an open-source tool that encapsulates thousands of hours of research and development into a simple, powerful API.
My philosophy is that a developer's most valuable asset is their idea. They should be free to focus on inventing new, powerful analytical concepts, without getting bogged down in the tedious, repetitive work of building robust visualization and configuration systems from scratch. This library is my contribution to the Pine Script community—a tool for builders, designed to accelerate innovation and elevate the quality of indicators for everyone.
This library embraces that philosophy. It handles immense complexity on the backend to deliver absolute simplicity and elegance on the frontend, both for the developer who uses it and the trader who benefits from it.
█ A NOTE TO USERS & DISCLAIMER
THIS IS A LIBRARY FOR DEVELOPERS: This script does nothing on its own. It is a powerful engine that must be imported and used by other indicator developers in their own scripts. It is a tool for building, not a ready-made indicator.
THE ANALYSIS IS A GUIDE: The analyze() function's classification of data and regimes is based on a robust set of heuristics, but it is a statistical interpretation. It provides a powerful baseline for visualization but is not a substitute for a trader's own judgment.
"Simplicity is the ultimate sophistication."
— Leonardo da Vinci
Taking you to school. - Dskyz, Create with DAFE






















