Sivaji BTST Trend FinderThis script will mark up triangles where supports a bullish and down triangles for bearish ones.
Indicadores e estratégias
Trading/ Range Tracker Advanced -> PROFABIGHI_CAPITAL Strategy🌟 Overview
The Trading/Range Tracker Advanced Strategy is a fully automated swing breakout trading system that combines impulsive candle filtering , multi-channel range/trend detection , and EMA confirmation for systematic trade execution. It features ATR-based market regime classification , separate swing detection for entries and risk placement , dual-mode EMA frameworks , and comprehensive performance metrics for backtesting optimization.
⚙️ Strategy Configuration
- Initial Capital : Starting equity for backtest simulation
- Slippage : Execution slippage modeling for realistic results
- Position Sizing : Percentage of equity allocated per trade
- Pyramiding Disabled : Prevents multiple entries in same direction
- Order Processing : Executes trades on bar close for confirmed signals
- Zero Margin : No leverage applied to long or short positions
📅 Date Range Settings
- Date Filter Toggle : Enable or disable backtesting time restrictions
- Start Date Selection : Specify beginning date for strategy evaluation
- Full Historical Option : Disable filter to test across entire chart history
- In-Range Condition : Ensures trades only execute within specified timeframe
📊 PROFABIGHI_CAPITAL Metrics Display
Performance Curve Options:
- Strategy Equity : Total account value including open positions
- Equity Only : Closed position equity excluding open trades
- Open Profit : Current unrealized profit or loss
- Gross Profit : Total winning trade value before costs
- Net Profit : Final profit after all costs and losses
- None : Hide performance curve display
Metrics Table Configuration:
- Table Position : Place metrics in any screen quadrant or center
- Full Table : Comprehensive statistics including win rate, drawdown, profit factor
- Simple Table : Essential metrics only for minimal display
- None : Hide table for clean chart visualization
⚙️ Mode and Style Settings
- Trading Mode Selection : Choose between long-only, short-only, or bidirectional trading
- Trade Style Configuration : Conservative mode (single position) or Aggressive mode (concurrent trades)
- Sniper Mode Toggle : Require impulsive candles for entries or allow relaxed breakout entries
- Execution Flexibility : Adapt strategy behavior to market conditions and risk appetite
📊 Swing Detection Settings
- Left Bar Lookback : Number of bars before pivot for swing high/low identification
- Right Bar Confirmation : Number of bars after pivot to validate swing structure
- Line Extension Length : Visual display duration for swing level reference lines
- Body-Based Pivots : Uses candle body extremes rather than wicks for cleaner structure
📊 Interim High/Low Detection
Separate SL/TP Calculation Framework:
- Independent Pivot Detection : Dedicated left and right bar parameters for stop loss reference
- Interim Left Bars : Lookback for identifying recent swing extremes
- Interim Right Bars : Confirmation period for interim pivot validation
- Last Candle Tracking : Continuously updates most recent opposing candle body levels
- Dual Reference System : Combines interim pivots with last opposing candle for tighter stops
Risk Placement Logic:
- Long trades use last negative bar low (red candle body low) or interim swing low
- Short trades use last positive bar high (green candle body high) or interim swing high
- Provides more reactive stop placement than main swing levels
📈 EMA Trend Confirmation System
Basis Mode:
- Single pair of short and long EMAs for unified trend determination
- Consistent trend reading across both long and short trade directions
- Simplified decision framework with one trend reference
Advanced Mode:
- Dedicated EMA pairs for long trend detection with separate parameters
- Independent EMA pairs for short trend detection with different periods
- Direction-specific validation for enhanced precision
- Greater flexibility in asymmetric market conditions
EMA Exit Trigger Options:
- Intrabar : Exit signal triggers in real-time during bar formation
- Closed Bar : Exit signal only confirmed at bar close for reduced false exits
⚡ Impulsive Candle Detection
Multi-Factor Validation:
- Size Multiplier : Candle range must exceed average true range by adjustable factor
- Volume Multiplier : Trading volume must exceed average volume by configurable threshold
- Body-to-Wick Ratio : Candle body must represent minimum percentage of total range
- Volume Check Toggle : Optional volume validation (disable for crypto tickers with unreliable volume)
Application in Strategy:
- Breakout Validation : Impulsive candles indicate strong momentum behind swing breaks
- Entry Window : Time-limited entry opportunity after impulsive breakout (adjustable bar count)
- Sniper Mode Filter : When enabled, entries only permitted on impulsive candle breakouts
- Visual Highlighting : Orange bar coloring for impulsive candles outside active trades
🎨 Color Customization
- EMA UpTrend Color : Green color for bullish EMA alignment in Basis mode
- EMA DownTrend Color : Red color for bearish EMA alignment in Basis mode
- Swing Line Color : Yellow for interim high/low reference lines
- Stop Loss Color : Red dashed lines showing risk levels
- Take Profit Color : Green dashed lines showing target levels
- Impulsive Candle Color : Orange bar highlighting when impulse detected
🛡️ Risk Management Framework
- Risk/Reward Ratio Configuration : Adjustable profit target multiplier (default 2.2:1)
- Stop Loss Offset Percentage : Buffer applied to interim swing levels for execution safety
- Long Stop Placement : Below last negative bar low or interim swing low with offset
- Short Stop Placement : Above last positive bar high or interim swing high with offset
- Dynamic Target Calculation : Take profit automatically derived from entry and stop distance
- Offset Protection : Prevents stops too close to structure for stop-hunting protection
📊 Detector Decision Filter
Market Condition Filtering:
- Range Mode : Strategy only executes in ranging market conditions
- Trending Mode : Strategy only executes in trending markets (up or down)
- Off Mode : No market condition filter applied (original behavior)
Conditional Execution:
- Swing high/low detection only active when condition matches
- Entry signals only generated when market regime matches selected filter
- Visual swing labels (SH/SL) only displayed during matching conditions
📈 Trend Range Identifier V2
ATR-Based Trend Detection:
- ATR Length : Period for Average True Range calculation in trend analysis
- ATR Multiplier Trend : Multiplier for trend continuation levels (tighter bands)
- ATR Multiplier Reverse : Multiplier for trend reversal levels (wider bands)
- Asymmetric Bands : Different multipliers create adaptive channel width based on trend direction
Range Detection Parameters:
- Range Length : Lookback period for range channel calculation
- Standard Deviation : Multiplier for channel band width
- Channel Type Selection : Choose between Keltner Channel, Bollinger Bands, or Donchian Channel
Supertrend Integration:
- Supertrend Length : Period for Supertrend indicator calculation
- Supertrend Multiplier : ATR multiplier for Supertrend bands
- Crossover Type Selection : Choose price crossover method (close, highlow, reversehighlow, supertrend)
Channel Display Options:
- Yes : Always show channel bands regardless of market condition
- No : Hide channel bands completely
- Range : Only display channel when market is in range condition
📊 Market Regime Classification
Three-State System:
- Trending Up : Price crosses above upper ATR band and maintains upward momentum
- Trending Down : Price crosses below lower ATR band and maintains downward pressure
- Range : Price oscillates between bands without breaking trend thresholds
Trend Logic Framework:
- Accumulative Trend Tracking : Counts consecutive bars in trend for strength measurement
- Line Compression Detection : Range condition identified when bands narrow over lookback period
- Directional Crossover : Trend initiated when price crosses adaptive ATR levels
- Supertrend Confirmation : Optional supertrend-based crossover validation
Visual Indicators:
- UpLine and DownLine : Color-coded step lines (green for uptrend, red for downtrend, purple for range)
- Channel Bands : Teal-colored upper and lower bands with semi-transparent fill
- Candle Coloring : Silver candles during range conditions when showRange enabled
🎯 Entry Signal Generation
Long Entry Requirements:
- Price breaks above last swing high
- Impulsive candle present (if Sniper Mode enabled)
- EMA trend bullish (short EMA above long EMA or long-specific EMAs aligned)
- Within entry window after breakout (adjustable bar count)
- Market condition matches Detector Decision filter
- Mode permits long trades
- Not already in long position (if Conservative mode)
Short Entry Requirements:
- Price breaks below last swing low
- Impulsive candle present (if Sniper Mode enabled)
- EMA trend bearish (short EMA below long EMA or short-specific EMAs aligned)
- Within entry window after breakout
- Market condition matches Detector Decision filter
- Mode permits short trades
- Not already in short position (if Conservative mode)
Breakout Memory System:
- Breakout Tracking : System remembers when swing levels are breached
- Bar Counting : Tracks bars elapsed since breakout for entry window validation
- Breakout Reset : New swing formation invalidates previous breakout signals
- Entry Window Expiration : Breakout must confirm with EMA within specified bar count
📤 Exit Management Logic
Stop Loss Exit:
- Long position: price touches or crosses below calculated stop level
- Short position: price touches or crosses above calculated stop level
- Strategy closes position immediately on stop hit
Take Profit Exit:
- Long position: price reaches calculated target based on risk/reward ratio
- Short position: price reaches calculated target below entry
- Strategy closes position immediately on target hit
EMA Reversal Exit:
- Basis Mode : Short EMA crosses below long EMA (long exit) or above (short exit)
- Advanced Mode : Direction-specific EMA pair crosses against trade direction
- Intrabar Trigger : Exit in real-time when EMA condition met (if selected)
- Closed Bar Trigger : Exit only after bar confirms (if selected)
- Profit/Loss Classification : Exit marked as profit if price favorable to entry, else loss
Position State Management:
- Trade flags reset after exit
- Conservative mode re-enables entries for both directions
- Breakout conditions cleared after exit
- Stop and target lines deleted from chart
🎨 Visualization Features
Entry and Exit Markers:
- Long Entry Arrows : Green triangles below bars
- Short Entry Arrows : Red triangles above bars
- Profit Exit Markers : Dark blue triangles showing successful exits
- Loss Exit Markers : Purple triangles showing stopped trades
Swing Structure Lines:
- Swing High Lines : Yellow dashed horizontal lines with "SH" labels
- Swing Low Lines : Yellow dashed horizontal lines with "SL" labels
- Stop Loss Lines : Red dashed lines extending forward from entry
- Take Profit Lines : Green dashed lines showing target levels
EMA Trend Lines:
- Basis Mode EMAs : Color-coded for trend (green bullish, red bearish)
- Advanced Mode EMAs : Separate long EMAs (green/gray) and short EMAs (red/gray)
- Dynamic Coloring : Gray when EMA pair not in alignment
Trend Range Visualization:
- UpLine/DownLine : Thick step lines showing ATR-based trend levels (green/red/purple)
- Channel Bands : Upper and lower range boundaries with teal fill
- Conditional Display : Channel only shown based on showChannel setting
Trade Candle Coloring:
- Active Long Position : Green candles during long trade
- Active Short Position : Red candles during short trade
- Range Condition : Silver candles when market in range mode
- Impulsive Highlight : Orange bar color when impulsive candle detected outside trades
📈 Strategy Execution Framework
Entry Execution:
- Long Entry : strategy.entry() called when long signal confirms on bar close
- Short Entry : strategy.entry() called when short signal confirms on bar close
- Date Range Validation : Only executes if within backtesting date range
- Bar Confirmation : Uses barstate.isconfirmed to avoid repainting
Exit Execution:
- Position Closure : strategy.close() called on profit, loss, or EMA reversal exits
- Immediate Execution : Exits processed on same bar as exit condition
- Date Range Check : Continues to manage positions even outside date range
- Bar Confirmation : Exits confirmed at bar close for consistency
Position Management:
- Conservative Mode : Blocks new entries until current position closed
- Aggressive Mode : Allows multiple concurrent positions (pyramiding disabled in settings)
- Direction Blocking : Long entry exits shorts, short entry exits longs
- Trade State Tracking : Boolean flags track active position status
🔔 Alert System
- Long entry alerts with ticker and timeframe
- Short entry alerts with ticker and timeframe
- Stop loss hit alerts (combined for both directions)
- Take profit hit alerts (combined for both directions)
- Long EMA exit alerts
- Short EMA exit alerts
- Impulsive candle detection alerts
🔍 Advanced Features [/b>
Dual Swing Detection:
- Primary Swing Detection : Identifies breakout levels for entry signals
- Interim Swing Detection : Separate parameters for tighter stop loss placement
- Independent Configuration : Each detection system uses own left/right bar settings
- Last Candle Fallback : Uses most recent opposing candle if interim pivot not found
Adaptive ATR Bands:
- Directional Multipliers : Different ATR multiples for continuation vs reversal
- Trend Strength Tracking : Accumulative counter measures bars in trend
- Line Compression Logic : Range detected when bands narrow over specified period
- Crossover Flexibility : Multiple price/indicator crossover methods available
Channel Type Variations:
- Keltner Channel : ATR-based bands for volatility-adjusted ranges
- Bollinger Bands : Standard deviation-based statistical boundaries
- Donchian Channel : High/low range extremes for breakout context
- Unified Interface : Same function handles all channel types
Supertrend Integration:
- Direction Variable : Supertrend state (1 or -1) influences trend calculations
- Optional Crossover : Can use supertrend rather than price for trend triggers
- Combined Logic : Supertrend works with ATR bands for robust regime detection
Performance Optimization:
- Process Orders on Close : Prevents lookahead bias in backtesting
- Confirmed Signals Only : Uses barstate.isconfirmed for all entries/exits
- Slippage Modeling : Includes realistic execution costs
- Zero Pyramiding : Prevents position size inflation
✅ Key Takeaways
- Fully Automated Strategy : Complete execution system with entries, stops, and targets
- Dual Swing Framework : Separate detection for breakouts and risk placement
- ATR-Based Regime Filter : Three-state market classification (trending up/down/range)
- Multi-Channel Options : Choose between Keltner, Bollinger, or Donchian for range detection
- Impulsive Candle Filtering : Optional Sniper Mode ensures entries on momentum candles
- Flexible EMA Framework : Basis mode simplicity or Advanced mode direction-specific optimization
- Adaptive Risk Placement : Uses interim swings and last opposing candles for tighter stops
- Entry Window Control : Time-limited opportunity after breakouts prevents late entries
- Market Condition Filtering : Trade only in preferred environments (range, trending, or both)
- Comprehensive Metrics : Built-in performance analysis with PROFABIGHI_CAPITAL library
- Conservative vs Aggressive : Position management adapts to risk preference
- Multi-Exit Logic : Combines fixed targets with dynamic EMA-based exits
- Backtesting Ready : Date range filtering and confirmed signals prevent repainting
- Visual Trade Tracking : Color-coded candles, lines, and markers show complete trade lifecycle
M Carlo Pro -> PROFABIGHI_CAPITAL🌟 Overview
The M Carlo Pro is a sophisticated Monte Carlo simulation engine that generates probabilistic price projections and scenario analysis frameworks . It offers dual-mode operation combining forward-looking price path modeling with return-based scenario testing , featuring confidence interval calculations , histogram distribution analysis , and customizable random sampling from historical data or user-defined return distributions.
⚙️ Main Mode Selector
- Analysis Mode Choice : Select between Scenario Analysis or Price Projection
- Scenario Analysis : Return-based simulations displayed in separate indicator pane with distribution analysis
- Price Projection : Forward price paths rendered directly on main price chart
- Mode-Specific Visualization : Each mode optimizes display for its analytical purpose
📊 Common Simulation Settings
- Random Seed : Fixed seed value for reproducible simulation results across multiple runs
- Distribution Type Selection : Choose between Normal (Gaussian) distribution or Bootstrap resampling
- Number of Paths : Total simulation iterations to generate for statistical validity
- Projection Length : Forward-looking bars or steps for each simulation path
- Boundaries Only Toggle : Display only confidence bounds instead of full path ensemble
- Historical Lookback : Number of past bars to collect for return distribution calculation
- Path Style Selector : Visual line style (solid, dotted, or dashed) for rendered paths
📈 Scenario Analysis Settings
Simulation Source Options:
- Price Mode : Calculates returns from historical price data automatically
- Custom Returns Mode : Uses user-defined return values for scenario testing
Return Input Framework:
- Primary Returns : Main scenario return values entered as text (one per line)
- Secondary Returns : Additional scenario layer for multi-dimensional analysis
- Tertiary Returns : Third scenario dimension for complex modeling
- Quaternary Returns : Fourth scenario layer for maximum flexibility
- Multi-Layer Support : Combine multiple return sets for comprehensive scenario coverage
Confidence and Display:
- Confidence Level Percentage : Statistical confidence interval for boundary calculations
- Path Lines Only : Show simulation paths without additional visual elements
- Scatter Plot Mode : Render final outcomes as scatter points instead of connected paths
- Distribution View Only : Display exclusively the histogram distribution without paths
Histogram Configuration:
- Binning Method Selection : Choose between Sturges, Rice, Square Root, or custom bin calculation
- Automatic Bin Sizing : Statistical formulas determine optimal histogram granularity
- Custom Bin Option : Manual specification of histogram bar count when custom method selected
📈 Price Projection Settings
- Display Scale Toggle : Show or hide price axis and scale labels on projection chart
- Force Render Option : Override path limit for full rendering (may truncate long projections)
- Show Mean Path : Display the average projection path across all simulations for central tendency visualization
- Performance Table : Summary statistics showing number of paths generated and projection length
🔧 Distribution Methods
Normal Distribution (Gaussian):
- Calculates mean and standard deviation from historical returns
- Generates random values using Box-Muller transform
- Produces symmetric probability distribution around mean
- Two independent uniform random numbers transformed into normally distributed values
Bootstrap Resampling:
- Randomly samples from actual historical return observations
- Preserves empirical distribution characteristics without parametric assumptions
- Each simulation step selects one historical return with replacement
- Captures real market behavior including fat tails and skewness
Return Calculation Logic:
- Price Mode : Logarithmic returns calculated from consecutive price ratios
- Custom Mode : User-provided returns applied directly to simulation
- Exponential Application : Price mode uses exponential of return for price updates
- Additive Application : Custom return mode adds returns directly
📊 Scenario Analysis Execution
Simulation Loop Process:
- Initialize starting value (price or sum of returns)
- Generate random return using selected distribution method
- Apply return to current value using appropriate calculation method
- Store intermediate results in matrix structure
- Track final outcomes in endpoint array
- Repeat for specified number of paths
Confidence Interval Calculation:
- Bins final outcomes into histogram with chosen binning method
- Identifies bin with maximum frequency (mode)
- Expands range symmetrically around mode
- Calculates cumulative probability of range
- Highlights bins within specified confidence level
- Displays confidence percentage and visual fill
Visualization Components:
- Path Rendering : Colored lines showing individual simulation trajectories
- Scatter Plot Option : Final outcomes plotted as individual points with labels or boxes
- Boundary Lines : Orange and teal lines marking confidence envelope when boundaries-only enabled
- Current Sum Line : Yellow reference line showing starting return sum in custom mode
- Step Labels : Bar numbers or step counts along horizontal axis
- Scale Axes : Vertical scale with value labels and horizontal baseline
📈 Price Projection Execution
Path Generation Framework:
- Divides total paths into twenty batches for performance optimization
- Each batch processes assigned number of simulations
- Generates forward price points using distribution sampling
- Accumulates sum of all prices at each projection step for average calculation
- Stores endpoints for statistical analysis
- Renders paths as polylines with random color assignment
Mean Path Calculation:
- Sums all simulated prices at each forward bar
- Divides by total number of simulations for average
- Plots thicker aqua-colored line representing expected value path
- Provides central tendency reference across all scenarios
Performance Optimization:
- Batch Processing : Splits simulations into manageable chunks
- Point Aggregation : Collects points before polyline rendering
- Conditional Rendering : Force option overrides automatic path limits
- Dynamic Coloring : Random RGB generation for path differentiation
Scale and Annotation:
- Vertical Scale : Price axis with evenly spaced labels showing projection range
- Horizontal Scale : Bar count labels showing forward projection timeline
- Grid Lines : Teal-colored axes forming scale framework
- Performance Table : Bottom-right display of simulation parameters
🎨 Visualization Features
Scenario Analysis Display (Separate Pane):
- Simulation Paths : Multi-colored trajectories from starting point to projection horizon
- Baseline Plot : Aqua line showing starting value (price or return sum)
- Confidence Boundaries : Orange (lower) and teal (upper) envelope lines
- Histogram Distribution : Orange bars showing frequency of final outcomes
- Bin Labels : Outcome values and frequencies displayed on each histogram bar
- Confidence Highlight : Darker orange shading on bins within confidence interval
- Confidence Label : Percentage display showing statistical coverage
- Axis Scaling : Adaptive vertical scale based on outcome range
Price Projection Display (Main Chart):
- Price Candles : Teal (bullish) or orange (bearish) candles on underlying price chart
- Projection Paths : Rainbow-colored polylines extending forward from current bar
- Mean Path Line : Thick aqua line showing average projection across all simulations
- Scale Display : Optional price axis and bar count labels
- Performance Table : Summary box showing simulation statistics
Common Visual Elements:
- Random Coloring : Each path assigned unique RGB values for differentiation
- Line Style Options : Solid, dotted, or dashed rendering for all paths
- Transparent Colors : Semi-transparent fills and lines prevent visual clutter
- Dynamic Scaling : Automatic axis adjustment based on outcome distribution
🔍 Advanced Features
Matrix Data Management:
- Row-Column Structure : Simulation results stored in two-dimensional matrix
- Color Matrix : Parallel matrix storing path colors for rendering
- Min-Max Tracking : Boundary matrix records extremes at each projection step
- Endpoint Array : Final outcome values collected for histogram analysis
Histogram Construction:
- Automatic Binning : Statistical formulas calculate optimal bin count based on sample size
- Sturges Formula : Logarithmic approach for bin determination
- Rice Rule : Cube-root-based calculation for granularity
- Square Root Method : Simple square root of sample size
- Frequency Counting : Each outcome assigned to appropriate bin
- Value Tracking : Minimum value in each bin recorded for labeling
Scatter Plot Implementation:
- Label Creation : First 500 outcomes rendered as styled labels with circular markers
- Box Fallback : Additional outcomes beyond label limit rendered as boxes
- Random Positioning : X-coordinate randomization prevents perfect vertical alignment
- Color Preservation : Each point retains its assigned simulation color
Adaptive Visualization:
- Mode Detection : Different rendering logic for price versus return simulations
- Toggle Interactions : Boundary-only and histogram-only modes override default displays
- Dynamic Limits : Path rendering adjusts based on performance constraints
- Conditional Elements : Scale, mean, and table displays controlled by user toggles
🎯 Use Cases and Applications
Risk Assessment:
- Generate probability distribution of future outcomes
- Identify worst-case and best-case scenarios with confidence intervals
- Quantify likelihood of specific price targets
- Visualize range of plausible futures based on historical volatility
Scenario Planning:
- Test specific return sequences using custom input mode
- Model multiple market environments with layered return sets
- Compare outcomes across different volatility assumptions
- Evaluate strategy performance under various conditions
Portfolio Projections:
- Forecast future portfolio values with probabilistic bounds
- Estimate expected returns across multiple timeframes
- Assess probability of reaching financial goals
- Understand distribution of potential outcomes
Education and Research:
- Demonstrate Monte Carlo methodology visually
- Explore effects of different distribution assumptions
- Compare normal versus empirical (bootstrap) distributions
- Illustrate concepts of confidence intervals and central limit theorem
✅ Key Takeaways
- Dual-Mode Flexibility : Scenario Analysis for distribution study or Price Projection for forward visualization
- Statistical Rigor : Confidence interval calculation with automatic histogram binning methods
- Distribution Choices : Normal (Gaussian) assumption or Bootstrap for empirical distribution preservation
- Custom Scenario Testing : Four-layer return input system for complex multi-dimensional analysis
- Reproducible Results : Fixed random seed ensures consistent output across multiple runs
- Batch Processing Optimization : Twenty-batch execution for handling large simulation counts
- Visual Clarity : Separate pane for scenario analysis, main chart overlay for price projections
- Mean Path Reference : Average trajectory across all simulations provides expected value guidance
- Adaptive Scaling : Automatic axis adjustment and range detection for optimal display
- Performance Management : Conditional rendering limits and force options balance detail with execution speed
- Histogram Intelligence : Multiple binning algorithms with confidence highlighting for outcome distribution
- Comprehensive Visualization : Paths, boundaries, scatter plots, histograms, scales, and tables for complete analytical picture
RSI For Loop -> PROFABIGHI_CAPITAL🌟 Overview
The RSI For Loop is an advanced momentum oscillator that extends traditional RSI analysis with multi-algorithm smoothing capabilities and dual-mode signal generation . It offers flexible moving average layering across nine different smoothing methods including VIDYA adaptive filtering , combined with hysteresis-based state detection or comparative crossover signals for enhanced trend identification and reduced noise.
⚙️ RSI Source and Length Settings
- RSI Source Selection : Choose price input for RSI calculation (close, hl2, hlc3, or other)
- RSI Period Length : Configurable lookback period for relative strength calculation
- Flexible Input Options : Adapt RSI foundation to match preferred price representation
🔧 First MA Smoothing Layer
Smoothing Type Options:
- None : Raw RSI without smoothing for pure momentum reading
- SMA : Simple moving average for equal-weighted smoothing
- EMA : Exponential moving average for recent price emphasis
- WMA : Weighted moving average with linear weighting
- HMA : Hull moving average for reduced lag
- RMA : Rolling moving average (Wilder's smoothing)
- LSMA : Least squares moving average for trend fitting
- DEMA : Double exponential moving average for enhanced responsiveness
- TEMA : Triple exponential moving average for minimal lag
- VIDYA : Variable Index Dynamic Average with volatility adaptation
Smoothing Configuration:
- MA Length Parameter : Adjustable period for first smoothing layer
- Algorithm Selection : Choose between nine different smoothing methods
- Noise Reduction : Smoothing filters out short-term RSI fluctuations
🔧 Second MA Smoothing Layer
Comparison Mode Toggle:
- Enable Second MA : Activates dual-line comparison for crossover signals
- Independent Algorithm : Second MA can use different smoothing method than first
- Independent Length : Second MA period configurable separately
Signal Generation Modes:
- Hysteresis Mode (Second MA Disabled) : Uses threshold levels with state memory
- Comparison Mode (Second MA Enabled) : Generates signals from MA crossovers
📈 VIDYA Adaptive Smoothing
- Volatility Lookback Period : Configurable window for volatility calculation
- Dynamic Adaptation : Smoothing factor adjusts based on RSI volatility
- Alpha Coefficient Calculation : Combines standard EMA alpha with volatility ratio
- K-Factor Normalization : Volatility ratio bounded between zero and one
- Responsive Filtering : More reactive during volatile periods, smoother during calm conditions
📊 Levels and Thresholds
Extreme Levels:
- Extreme High Level : Upper boundary for overbought zone identification
- Extreme Low Level : Lower boundary for oversold zone identification
- Middle Line Reference : Fixed at midpoint for neutral RSI reading
Hysteresis Thresholds:
- Upper Threshold : Level for transitioning to bullish state
- Lower Threshold : Level for transitioning to bearish state
- State Memory Logic : Prevents signal oscillation between thresholds
- Gray Zone Behavior : RSI between thresholds maintains previous state
📊 RSI Calculation Framework
Multi-Stage Processing:
Stage 1 - Raw RSI:
- Standard relative strength index calculation from selected source
- Foundation for all subsequent smoothing operations
Stage 2 - First Smoothing:
- Apply selected MA algorithm to raw RSI values
- Transforms noisy RSI into smoother momentum curve
- Falls back to raw RSI if smoothing set to None
Stage 3 - Second Smoothing (Optional):
- Additional MA calculation when comparison mode enabled
- Can use different algorithm and length than first MA
- Provides reference line for crossover signal generation
Stage 4 - State Determination:
- Hysteresis Logic : First smoothed RSI crossing upper threshold sets bullish state, crossing lower threshold sets bearish state
- State Persistence : State maintained between thresholds without flipping
- Comparison Logic : When second MA enabled, state determined by which line is higher
🎨 Visualization Features
RSI Lines:
- First Smoothed RSI : Primary line with thicker width for main signal
- Second Smoothed RSI : Optional comparison line with thinner width
- Raw RSI Background : Faded gray line showing unsmoothed RSI when smoothing applied
Color Coding:
- Hysteresis Mode Colors : Green for bullish state, red for bearish state, gray for neutral zone
- Comparison Mode Colors : Green when first MA above second MA, red when first MA below second MA
Horizontal Reference Lines:
- Extreme High Line : Upper overbought boundary with semi-transparent red
- Extreme Low Line : Lower oversold boundary with semi-transparent green
- Middle Line : Dotted gray line at midpoint
- Upper Threshold Line : Solid green line for bullish transition level
- Lower Threshold Line : Solid red line for bearish transition level
Background Shading:
- Extreme Zone Fill : Light gray background between extreme high and extreme low levels
Main Chart Signals:
- Long Entry Arrows : Green triangles below price bars when bullish signal triggers
- Short Entry Arrows : Red triangles above price bars when bearish signal triggers
- Force Overlay Feature : Signals appear on main price chart despite being oscillator indicator
📈 Signal Generation Logic
Hysteresis Mode (Default):
- Long Signal : Triggered when RSI state transitions from non-bullish to bullish (crossing above upper threshold)
- Short Signal : Triggered when RSI state transitions from non-bearish to bearish (crossing below lower threshold)
- One-Time Trigger : Signals only fire once per state change, not continuously
- State Memory Prevention : No repeated signals while RSI remains in same state
Comparison Mode (Second MA Enabled):
- Long Signal : Generated when first smoothed RSI crosses above second smoothed RSI
- Short Signal : Generated when first smoothed RSI crosses below second smoothed RSI
- Crossover Detection : Uses standard crossover and crossunder functions
- Continuous Monitoring : Signals can occur anywhere on RSI scale, not limited to thresholds
🔍 Advanced Smoothing Algorithms
Simple Algorithms:
- SMA/EMA/WMA/RMA : Standard moving average calculations with different weighting schemes
- HMA : Combines weighted MAs for lag reduction
- LSMA : Linear regression for trend-following smoothness
Complex Algorithms:
- DEMA : Applies EMA twice then combines (2 × first EMA minus second EMA) for enhanced responsiveness
- TEMA : Applies EMA three times with formula (3 × first EMA minus 3 × second EMA plus third EMA) for maximum lag reduction
- VIDYA : Volatility-weighted smoothing with dynamic alpha adjustment based on standard deviation ratios
VIDYA Calculation Details:
- Calculates RSI volatility over specified lookback
- Derives K-factor from ratio of volatility measures
- Adjusts standard EMA alpha by K-factor
- Applies adaptive smoothing: current value times weighted alpha plus previous value times complementary weight
🎯 Use Cases and Applications
Trend Following:
- Use hysteresis mode with moderate thresholds for trend-following entries
- State persistence reduces whipsaw in ranging conditions
Momentum Crossovers:
- Enable second MA for classic fast-slow crossover signals
- Compare different smoothing algorithms for optimized responsiveness
Noise Filtering:
- Apply VIDYA for adaptive smoothing during varying volatility
- Use TEMA or DEMA for maximum lag reduction with smoothness
Overbought/Oversold:
- Combine extreme levels with threshold crossings for reversal setups
- Visual zone highlighting shows extended RSI conditions
✅ Key Takeaways
- Nine Smoothing Algorithms : Extensive MA library including adaptive VIDYA for versatile noise reduction
- Dual-Mode Operation : Choose between hysteresis state logic or comparison crossover signals
- Two-Layer Smoothing : Optional second MA for additional filtering or crossover generation
- Adaptive Intelligence : VIDYA algorithm adjusts responsiveness based on RSI volatility
- Hysteresis Innovation : Threshold-based state memory prevents rapid signal alternation
- Main Chart Integration : Entry signals displayed on price chart via force overlay feature
- Fallback Protection : Raw RSI used when smoothing calculations encounter edge cases
- Visual Clarity : Color-coded states, extreme zone shading, and multiple reference lines for easy interpretation
- Flexible Configuration : Independent control over source, lengths, algorithms, thresholds, and extreme levels
🚀🚀 PROFABIGHI_CAPITAL Correlation Heatmap System 🚀🚀🌟 Overview
The PROFABIGHI_CAPITAL Correlation Heatmap System is an institutional-grade multi-asset correlation visualization tool engineered for cryptocurrency traders seeking to dissect inter-asset dependencies and portfolio risk clustering through dynamic, rolling correlation matrices or benchmark-focused comparisons. By computing Pearson correlation coefficients over adjustable lookback periods across up to 20 symbols, it generates color-coded heatmaps highlighting positive (green) or negative (red) relationships, while the single-asset mode benchmarks against a primary symbol (e.g., BTC) to reveal relative strength hierarchies [/b>, top/bottom extremes, and diversification insights—empowering users to optimize allocations, detect co-movement risks , or uncover decoupling opportunities in volatile markets with real-time table updates and symmetric visualizations.
This sophisticated system transcends basic scatter plots by offering dual-mode flexibility —comprehensive pairwise matrices for broad ecosystem scanning or targeted single-asset scans for focused relative analysis—complete with invalid symbol tolerance [/b>, dynamic table sizing [/b>, and performance-optimized fetching [/b>, ensuring seamless scalability from watchlists of 5 assets to full 20-symbol universes while maintaining computational efficiency and visual clarity for professional-grade decision-making.
🚀 Main Settings
- Display Mode : Core selector between 'X -> Y Matrix' for exhaustive pairwise correlation grids that reveal the full network of asset interdependencies, ideal for identifying clusters of high-beta alts or low-correlation hedges, and 'Single Asset R Comparison' for streamlined benchmarking against a chosen primary symbol, perfect for evaluating how individual tokens align or diverge from market leaders like BTC during regime shifts
- Correlation Length : Adjustable rolling window (default 30 bars) that defines the historical scope for coefficient calculations, where shorter periods emphasize recent volatility correlations for tactical adjustments and longer horizons capture structural relationships for strategic portfolio construction, balancing noise reduction with regime sensitivity
- Number of Assets in Matrix : Scalable limit (up to 20) controlling the heatmap dimensions, enabling focused 5x5 grids for core holdings or expansive 20x20 matrices for ecosystem-wide scanning, with automatic diagonal suppression (em-dashes) to avoid self-correlation artifacts and optimize visual density
📊 Single Asset R Comparison Settings
- The PROFABIGHI_CAPITAL Asset : Primary symbol designation (default BTCUSD) serving as the correlation anchor, allowing traders to assess how alts co-move with this reference during pumps, dumps, or sideways action, facilitating relative strength rankings and beta-like exposure profiling without full regressions
- Number of Assets in Main Table : Configurable count (up to 20) for the unsorted correlation list, providing a comprehensive yet manageable view of dependencies in original input order, useful for sequential portfolio reviews or quick scans of predefined watchlists
- Number of Top/Bottom Assets : Highlight limit (default 5) for dedicated tables showcasing strongest positive (top) and weakest/negative (bottom) correlations, spotlighting diversification candidates (low R) or momentum followers (high R) to guide rebalancing decisions amid market rotations
📈 Assets List (20x)
- Asset 1 through Asset 20 : Sequential symbol inputs for building the correlation universe, starting with majors like BTC, ETH, SOL for baseline stability and extending to alts like XRP, ADA for diversification insights, with tooltip guidance for format (e.g., CRYPTO:BTCUSD) and flexibility for custom tokens across exchanges
- Grouped Configuration : Organized list for streamlined portfolio assembly, allowing quick swaps of underperformers or additions of emerging narratives, ensuring the heatmap reflects current market themes from blue-chips to speculative plays
- Exchange Prefix Support : Native handling of prefixed symbols (e.g., CRYPTO:, BINANCE:), enabling cross-platform comparisons without manual adjustments, while the short name extractor cleans displays for readability in dense tables
📡 Data Fetching (20x)
- Parallel Security Requests : Simultaneous close price pulls for all 20 assets using timeframe-aligned fetches, ensuring synchronized data across symbols to maintain correlation accuracy even in asynchronous market hours
- System Asset Isolation : Dedicated retrieval for the primary benchmark symbol, preventing contamination in single-mode comparisons and allowing independent updates without affecting matrix computations
- Invalid Symbol Resilience : Built-in ignore_invalid_symbol parameter with na defaults, gracefully handling malformed inputs or delisted tokens to avoid script crashes and enable partial universe analysis
- Chart Timeframe Alignment : Automatic adaptation to the active chart resolution, supporting from 1-minute intraday correlations for scalping to daily for swing trading, with consistent bar indexing for reliable rolling windows
🔧 Helper Functions
- Short Name Extractor : Utility to strip exchange prefixes and suffixes (e.g., CRYPTO:BTCUSD → BTC), generating compact labels for table headers and cells, enhancing scannability in large matrices without losing symbol identity
- Correlation Column Generator : Core function computing Pearson coefficients between two series over the specified length, returning both the value and a binary color (green for positive >0, red for negative) to streamline heatmap cell population with visual intuition
- Cell Filler Routine : Standardized table.cell wrapper applying consistent black-transparent backgrounds, small text sizing, and dynamic text colors, ensuring uniform aesthetics across all visualization modes while supporting conditional formatting for emphasis
📊 Correlation Calculations
- Pairwise Rolling Coefficients : Exhaustive computation of ta.correlation for every unique asset pair (up to 190 in 20x20 mode), generating symmetric matrices that illuminate co-movement patterns, from tight BTC-ETH linkages to decoupled niche alts, with na-safe handling for data gaps
- Single-Asset Benchmark Series : Dedicated correlations against the primary symbol for all others, producing a vector of R values that quantify relative dependencies, enabling quick identification of 'BTC clones' (high positive) or inverse hedges (negative)
- Length-Parameterized Rolling : Each coefficient uses the user-defined lookback to filter transient noise, where 20-bar windows highlight short-term spillovers and 100-bar captures enduring regime correlations for long-term allocation
- Color Mapping Logic : Binary green/red assignment based on sign (positive/negative), providing immediate visual cues for diversification (seek reds) or momentum trading (cluster greens), with potential for gradient extensions in future iterations
- Diagonal Suppression : Automatic em-dash placement on self-correlations (always 1.0), avoiding redundant cells and centering focus on inter-asset insights in the heatmap grid
🎨 Visualization Logic
- Last-Bar Dynamic Refresh : Table recreation on barstate.islast with prior deletions to prevent accumulation, ensuring crisp updates without historical artifacts or memory bloat in extended sessions
- Branding Banner Table : Bottom-center single-cell overlay with bold, yellow-texted indicator title on black background, serving as persistent identifier and visual anchor amid multi-table layouts
- Matrix Heatmap Construction : Centered (num_assets+1)x(num_assets+1) table with gray borders, populating headers vertically/horizontally with short names, filling off-diagonals with formatted R values and sign-based colors for symmetric, at-a-glance dependency mapping
- Single-Mode Multi-Table Suite : Top-center primary asset highlight (yellow-bordered), middle-center unsorted main list for sequential review, left/right top/bottom sorted subsets for extreme correlation spotlights, all with gray headers and color-coded R cells
- Progressive Cell Population : Nested conditionals scaling fills to active asset count, ensuring partial matrices render cleanly while full 20x20 grids showcase exhaustive pairwise analysis without overflow
- Error Handling Label : Fallback red downward label when no valid correlations available, prompting data checks and preventing blank displays in edge cases like all-invalid symbols
✅ Key Takeaways
- Dual-Mode Versatility : Seamlessly toggles between exhaustive pairwise heatmaps for ecosystem mapping and single-asset benchmarks for relative strength profiling, adapting to tactical or strategic analysis needs
- Rolling Correlation Insights : Adjustable windows reveal dynamic dependencies, crucial for spotting co-crash risks (high positive R) or counter-trend hedges (negative R) in crypto's correlated environments
- Visual Heatmap Efficiency : Color gradients and symmetric layouts enable instant pattern recognition, from BTC-beta clusters to low-R diversification gems, accelerating portfolio optimization
- Scalable Asset Handling : Up to 20 symbols with invalid tolerance and dynamic sizing, supporting watchlist scans without performance hits or manual exclusions
- Top/Bottom Extremes : Dedicated tables flag strongest/weakest links, guiding quick rebalances toward uncorrelated assets for reduced drawdowns or amplified momentum plays
- Benchmark-Centric Flexibility : Custom primary symbol centers analysis on user priorities like ETH for DeFi focus, transforming raw R values into actionable relative performance hierarchies
Trading/Range Tracker Advanced-> PROFABIGHI_CAPITAL🌟 Overview
The Trading/Range Tracker Advanced is a sophisticated breakout trading system that combines swing-based structure detection , impulsive candle filtering , and market condition analysis . It dynamically identifies ranging versus trending environments, validates entries with EMA trend confirmation , and offers flexible execution modes including a Sniper Mode for precision entries on explosive price movements.
⚙️ Mode and Style Settings
- Trading Mode Selection : Choose between long-only, short-only, or bidirectional trading
- Trade Style Configuration : Conservative mode (single position) or Aggressive mode (multiple concurrent trades)
- Sniper Mode Toggle : Enable impulsive candle requirement for higher-probability entries or disable for relaxed entry conditions
- Execution Flexibility : Adapt strategy behavior to match market conditions and risk appetite
📊 Swing Detection Framework
- Left Bar Lookback : Configurable pivot detection for swing high and low identification
- Right Bar Confirmation : Number of bars required to validate swing structure
- Line Extension Length : Visual display duration for swing level reference lines
- Body-Based Analysis : Uses candle body highs/lows instead of wicks for cleaner structure
- Dynamic Level Updates : Swing highs and lows continuously recalculated based on price action
📈 EMA Trend Confirmation System
Basis Mode:
- Single pair of short and long EMAs for unified trend determination
- Consistent trend reading across both long and short trade directions
- Simplified decision framework with one trend reference
Advanced Mode:
- Dedicated EMA pairs for long trend detection (e.g., 12/21)
- Separate EMA pairs for short trend detection (e.g., 8/16)
- Independent validation for each direction
- Enhanced precision through direction-specific momentum analysis
EMA Exit Trigger Options:
- Intrabar : Exit signal triggers in real-time during bar formation
- Closed Bar : Exit signal only confirmed at bar close for reduced false signals
⚡ Impulsive Candle Detection
Core Requirements:
- Size Multiplier : Candle range must exceed average true range by adjustable factor
- Volume Multiplier : Trading volume must exceed average volume by configurable threshold
- Body-to-Wick Ratio : Candle body must represent minimum percentage of total range
- Volume Check Toggle : Optional volume validation (disable for tickers with unreliable volume data)
Application:
- Breakout Validation : Impulsive candles indicate strong momentum behind price moves
- Entry Window : Number of bars after impulsive breakout to allow entry if trend confirms
- Sniper Mode Filter : When enabled, entries only permitted on impulsive candle breakouts
- Visual Highlighting : Impulsive candles colored distinctly for easy identification
📊 Range/Trend Detector Integration
Market Condition Classification:
- Range Detection : Identifies sideways consolidation periods using deviation pivot analysis
- Trending Up Detection : Recognizes sustained upward momentum
- Trending Down Detection : Identifies persistent downward pressure
- Dynamic Band Display : Upper, middle, and lower bands visualize market structure
Detector Decision Filter:
- Range Mode : Only trade in ranging conditions
- Trending Mode : Only trade in trending conditions (up or down)
- Off Mode : No market condition filter applied
Visual Indicators:
- Yellow Bands : Range-bound market conditions
- Blue Bands : Trending market conditions
- Transition Labels : "L" for long trend start, "S" for short trend start, "R" for range entry
- Candle Coloring : Optional market condition-based candle coloring
🎯 Entry Signal Generation
Long Entry Requirements:
- Price breaks above last swing high
- Impulsive candle present (if Sniper Mode enabled)
- EMA trend bullish (short EMA above long EMA)
- Within entry window after breakout
- Market condition matches Detector Decision filter
- Mode permits long trades
Short Entry Requirements:
- Price breaks below last swing low
- Impulsive candle present (if Sniper Mode enabled)
- EMA trend bearish (short EMA below long EMA)
- Within entry window after breakout
- Market condition matches Detector Decision filter
- Mode permits short trades
Breakout Tracking:
- Breakout Memory : System remembers when swing levels are breached
- Entry Window Counting : Tracks bars elapsed since breakout for time-based entry limit
- Breakout Reset Logic : New swing formation invalidates previous breakout signals
🛡️ Risk Management Framework
- Risk/Reward Ratio Configuration : Adjustable profit target multiplier (default 2.2:1)
- Stop Loss Offset : Percentage buffer applied to swing levels for execution safety
- Long Stop Placement : Below last negative bar low or swing low with offset
- Short Stop Placement : Above last positive bar high or swing high with offset
- Interim Level Reference : Uses most recent opposing candle body for tighter stops
- Dynamic Target Calculation : Take profit automatically derived from entry and stop distance
📤 Exit Management Logic
Stop Loss Exit:
- Long position: price touches or crosses below stop level
- Short position: price touches or crosses above stop level
- Trade closed at loss
Take Profit Exit:
- Long position: price reaches calculated target above entry
- Short position: price reaches calculated target below entry
- Trade closed at profit
EMA Reversal Exit:
- Basis Mode : Short EMA crosses below long EMA (long exit) or above long EMA (short exit)
- Advanced Mode : Direction-specific EMA pair reversal against trade direction
- Intrabar Trigger : Exit in real-time when EMA condition met (if selected)
- Closed Bar Trigger : Exit only after bar confirms (if selected)
- Exit classification: profit if price above/below entry, loss otherwise
🎨 Visualization Features
- Entry Arrows : Green triangles below bars for long entries, red triangles above bars for short entries
- Exit Markers : Dark blue triangles for profitable exits, purple triangles for losing exits
- Swing Lines : Yellow dashed horizontal lines showing swing high (SH) and swing low (SL) levels
- Swing Labels : "SH" text label at swing highs, "SL" text label at swing lows
- Stop/Target Lines : Red dashed line for stop loss, green dashed line for take profit
- EMA Trend Lines : Color-coded moving averages (green for bullish, red for bearish, gray for inactive)
- Range/Trend Bands : Upper, middle, and lower bands colored yellow (range) or blue (trending)
- Market Condition Labels : "L", "S", or "R" labels indicating trend or range transitions
- Trade Candle Coloring : Active positions colored green (long) or red (short)
- Impulsive Candle Highlighting : Orange background color when Sniper Mode detects impulse candles
👁️ Display Customization
- Range/Trend Toggle : Show or hide market condition bands and labels
- Conditional Swing Display : Swing lines only shown when Detector Decision criteria met
- Adjustable Line Length : Control how far forward swing and stop/target lines extend
- Customizable Color Scheme : Personalize colors for EMAs, signals, lines, and candles
- Mode-Based Visibility : Long-only mode hides short signals, short-only hides long signals
🔧 Advanced Configuration
Deviation Pivot Settings:
- Deviation Multiplier : Controls sensitivity of pivot detection for range analysis
- Depth Parameter : Minimum bars considered for pivot validation
- Source Selection : Choose price source for range calculations
- Band Offset Percentage : Adjustable buffer for upper and lower trend bands
Entry Window Management:
- Bars After Breakout : Time limit for entry following impulsive swing break
- Breakout Memory Persistence : System tracks valid breakouts until swing structure resets
- Window Expiration : Entries rejected if EMA confirmation arrives too late
Average Calculation Length:
- Impulse Detection Period : Number of bars for calculating average range and volume
- ATR Reference : Uses true range for label positioning and volatility awareness
🔔 Alert System
- Long entry alerts
- Short entry alerts
- Stop loss hit alerts (combined for both directions)
- Take profit hit alerts (combined for both directions)
- Long EMA exit alerts
- Short EMA exit alerts
- Impulsive candle detection alerts
✅ Key Takeaways
- Dual Market Awareness : Combines swing breakouts with range/trend classification for context-aware trading
- Impulsive Candle Filtering : Optional Sniper Mode ensures entries only on strong momentum candles
- Flexible EMA Framework : Choose between unified Basis mode or direction-optimized Advanced mode
- Market Condition Filtering : Trade only in preferred environments (range, trending, or both)
- Entry Window Control : Time-limited entry opportunity after breakouts prevents chasing
- Multi-Layered Confirmation : Requires swing break + impulse (optional) + trend alignment + condition match
- Interim Level Refinement : Uses most recent opposing candle bodies for tighter stop placement
- Comprehensive Visual Feedback : Range bands, swing levels, impulse highlighting, and trade candles for complete market picture
- Fully Customizable : Extensive inputs for swing detection, impulse criteria, EMA configuration, risk parameters, and display options
Advanced Market Structure Sniper -> PROFABIGHI_CAPITAL🌟 Overview
The Advanced Market Structure Sniper is a precision trading system that combines Break of Structure (BOS) and Change of Character (CHoCH) detection with multi-mode EMA trend confirmation . It identifies high-probability entry points through systematic swing analysis, offering flexible execution modes and comprehensive risk management with visual trade tracking.
⚙️ Mode and Style Settings
- Trading Mode Selection : Choose between long-only, short-only, or bidirectional trading
- Trade Style Configuration : Conservative mode (one trade at a time) or Aggressive mode (multiple concurrent positions)
- Directional Focus : Adapt strategy behavior to match market bias or trading preference
📊 BOS/CHoCH Market Structure Detection
- Swing Period Customization : Adjustable left and right bar lookback for structure pivot detection
- Break of Structure Identification : Recognizes when price decisively breaks through previous swing levels
- Change of Character Recognition : Detects early reversal signals when price crosses counter-trend structure
- Sequential Confirmation Logic : Requires CHoCH followed by BOS for validated directional bias
📊 Interim High/Low Swing Analysis
- Independent Swing Detection : Separate pivot parameters for more granular structure analysis
- Stop Loss Reference Points : Identifies recent swing extremes for risk placement
- Candle Body Analysis : Uses body highs/lows rather than wicks for cleaner structure identification
- Dynamic Level Tracking : Continuously updates swing references based on price action
📈 EMA Trend Confirmation System
Basis Mode:
- Single pair of short and long EMAs for straightforward trend determination
- Unified trend reading for both long and short trade validation
- Simplified decision-making with one trend reference
Advanced Mode:
- Separate EMA pairs for long trades and short trades
- Independent trend validation for each direction
- Enhanced precision through direction-specific momentum filters
- Greater flexibility in volatile or ranging markets
🎯 Entry Signal Generation
Long Entry Requirements:
- CHoCH detected (bearish structure broken)
- BOS confirmed (bullish structure established)
- EMA trend alignment (short EMA above long EMA or long-specific EMAs bullish)
- Mode permits long trades
Short Entry Requirements:
- CHoCH detected (bullish structure broken)
- BOS confirmed (bearish structure established)
- EMA trend alignment (short EMA below long EMA or short-specific EMAs bearish)
- Mode permits short trades
🛡️ Risk Management Framework
- Risk/Reward Ratio Configuration : Adjustable profit target multiplier based on stop distance
- Stop Loss Offset : Percentage buffer applied to interim swing levels for execution safety
- Long Stop Placement : Positioned below recent interim swing low with offset
- Short Stop Placement : Positioned above recent interim swing high with offset
- Dynamic Target Calculation : Take profit automatically calculated from entry and stop levels
📤 Exit Management Logic
Stop Loss Exit:
- Price reaches calculated stop level
- Trade closed at loss
Take Profit Exit:
- Price reaches calculated target level
- Trade closed at profit
EMA Reversal Exit:
- Basis Mode: EMA crossover against trade direction
- Advanced Mode: Direction-specific EMA pair reversal
- Exit classification based on whether price is above or below entry (profit vs. loss)
🎨 Visualization Features
- Entry Arrows : Green triangles below bars (long), red triangles above bars (short)
- Exit Markers : Blue for profitable exits, purple for losing exits
- BOS/CHoCH Labels : Directional labels marking structure breaks and character changes
- Swing Lines : Yellow dashed lines showing active pivot levels with customizable extension length
- Stop/Target Lines : Red dashed line for stop loss, green dashed line for take profit
- EMA Trend Lines : Color-coded moving averages indicating trend direction (green for bullish, red for bearish)
- Candle Coloring : Active trade candles colored green (long) or red (short) for clear position tracking
👁️ Display Customization
- Toggle BOS/CHoCH Labels : Show or hide structure break annotations
- Toggle Swing Lines : Control visibility of pivot level lines
- Adjustable Line Length : Set how many bars forward to extend reference lines
- Customizable Color Scheme : Personalize colors for signals, lines, and trend indicators
🔔 Alert System
- Buy signal alerts
- Sell signal alerts
- Long exit (profit and loss) alerts
- Short exit (profit and loss) alerts
- CHoCH detection alerts for both directions
- BOS detection alerts for both directions
✅ Key Takeaways
- Sequential Confirmation : Requires CHoCH → BOS → EMA alignment for robust entry validation
- Dual-Mode Flexibility : Choose between simplified Basis mode or precision Advanced mode with direction-specific EMAs
- Conservative vs. Aggressive : Trade style determines position management (single trade focus or multiple simultaneous positions)
- Structure-Based Risk Placement : Stop losses anchored to swing extremes rather than arbitrary levels
- Multi-Exit Strategy : Combines fixed targets with dynamic EMA-based exits for adaptive position management
- Comprehensive Visual Feedback : Clear on-chart display of structure, signals, and active trade parameters
- Fully Customizable : Extensive input options for swing detection, EMA periods, risk parameters, and display preferences
NovaQore Multi-MA Suite📊 ENGLISH VERSION (TradingView Policy Compliant)
Script Title: NovaQore Multi-MA Suite
📈 MULTI-MA SUITE
Technical indicator designed for trend analysis through multiple configurable moving averages.
🔍 Features:
This indicator provides:
10 Independent Moving Averages - Each MA can be individually enabled/disabled with dedicated controls
4 Types of Moving Average - SMA (Simple), EMA (Exponential), WMA (Weighted), HMA (Hull) to adapt to different strategies
Cross Signal System - Automatically detects crossovers between two selectable moving averages to identify potential entry/exit points
Complete Customization - Each MA has independently configurable period, type, source, and color
⚙️ Configurable Parameters:
MA 1-10 Individual Settings: Length (1-500), Type (SMA/EMA/WMA/HMA), Source (Close/Open/High/Low/HL2/HLC3/OHLC4), Custom color, On/Off switch
Signal Settings: Enable/disable cross signals, Fast MA selection (1-10), Slow MA selection (1-10)
Default Setup: MA1=EMA9 (Gold), MA2=EMA21 (Orange), MA3=SMA50 (Cyan), MA4-10 disabled
📊 How to Use:
The indicator displays up to 10 moving averages simultaneously on the chart
"BULL" signals appear when the fast MA crosses above the slow MA (potential long entry)
"BEAR" signals appear when the fast MA crosses below the slow MA (potential short entry)
Colored zones indicate the relative position of moving averages to identify the dominant trend
Tip: Use in combination with price action analysis and other confirmation tools like oscillators or volume indicators.
🎨 Customization:
Fully customizable colors for all 10 moving averages
Configurable alerts for bullish and bearish crossovers
Adaptable display options (show/hide individual MAs)
Pre-set premium gold/black color scheme
⚠️ Important Notes:
This is an educational technical analysis tool
Does not provide automatic trading signals
Requires interpretation and confirmation by the trader
Always backtest on historical data before live use
Cross signals are indicative and require confirmation with other indicators
📚 Methodology:
The indicator is based on multiple moving averages that smooth price data to identify trends. It includes:
SMA (Simple Moving Average) - simple arithmetic average
EMA (Exponential Moving Average) - gives more weight to recent prices
WMA (Weighted Moving Average) - decreasing linear weight
HMA (Hull Moving Average) - reduces lag improving responsiveness
⚡ Compatibility:
All timeframes (1m, 5m, 15m, 1h, 4h, 1D, 1W, 1M)
All markets (Forex, Crypto, Stocks, Indices, Commodities)
Can be used with other NovaQore or standard TradingView indicators
💡 Optimal Use Cases:
Scalping: Use MA1 (EMA9) and MA2 (EMA21) for quick signals
Day Trading: Combine MA2 (EMA21) and MA3 (SMA50) for intraday trends
Swing Trading: Enable MA5 (SMA200) as main trend filter
Disclaimer: This indicator is provided for educational and informational purposes only. It does not constitute financial advice. Trading involves significant risks. Always use proper risk management.
Created with ❤️ by NovaQore FX
📊 VERSIONE ITALIANA
Titolo Script: NovaQore Multi-MA Suite
📈 MULTI-MA SUITE
Indicatore tecnico progettato per l'analisi del trend attraverso medie mobili multiple configurabili.
🔍 Funzionalità:
Questo indicatore fornisce:
10 Medie Mobili Indipendenti - Ogni MA può essere attivata/disattivata singolarmente con controlli dedicati
4 Tipi di Media Mobile - SMA (Simple), EMA (Exponential), WMA (Weighted), HMA (Hull) per adattarsi a diverse strategie
Sistema di Segnali Cross - Rileva automaticamente incroci tra due medie mobili selezionabili per identificare potenziali entry/exit
Personalizzazione Completa - Ogni MA ha periodo, tipo, sorgente e colore configurabili indipendentemente
⚙️ Parametri Configurabili:
MA 1-10 Individual Settings: Lunghezza (1-500), Tipo (SMA/EMA/WMA/HMA), Sorgente (Close/Open/High/Low/HL2/HLC3/OHLC4), Colore personalizzato, On/Off switch
Signal Settings: Attiva/disattiva segnali di incrocio, Selezione MA veloce (1-10), Selezione MA lenta (1-10)
Default Setup: MA1=EMA9 (Oro), MA2=EMA21 (Arancione), MA3=SMA50 (Azzurro), MA4-10 disattivate
📊 Come Utilizzarlo:
L'indicatore visualizza fino a 10 medie mobili simultaneamente sul grafico
I segnali "BULL" appaiono quando la MA veloce incrocia al rialzo la MA lenta (potenziale ingresso long)
I segnali "BEAR" appaiono quando la MA veloce incrocia al ribasso la MA lenta (potenziale ingresso short)
Le zone colorate indicano la posizione relativa delle medie mobili per identificare il trend dominante
Suggerimento: Utilizzare in combinazione con analisi di price action e altri strumenti di conferma come oscillatori o volumi.
🎨 Personalizzazione:
Colori completamente personalizzabili per tutte le 10 medie mobili
Alert configurabili per incroci bullish e bearish
Opzioni di visualizzazione adattabili (mostra/nascondi singole MA)
Schema colori pre-impostato oro/nero premium
⚠️ Note Importanti:
Questo è uno strumento di analisi tecnica educativo
Non fornisce segnali di trading automatici
Richiede interpretazione e conferma da parte del trader
Testare sempre su dati storici prima dell'uso live
I segnali di incrocio sono indicativi e necessitano di conferma con altri indicatori
📚 Metodologia:
L'indicatore si basa su medie mobili multiple che smoothano i dati di prezzo per identificare trend. Include:
SMA (Simple Moving Average) - media aritmetica semplice
EMA (Exponential Moving Average) - maggior peso ai prezzi recenti
WMA (Weighted Moving Average) - peso lineare decrescente
HMA (Hull Moving Average) - riduce il lag migliorando la reattività
⚡ Compatibilità:
Tutti i timeframe (1m, 5m, 15m, 1h, 4h, 1D, 1W, 1M)
Tutti i mercati (Forex, Crypto, Stocks, Indices, Commodities)
Utilizzabile insieme ad altri indicatori NovaQore o standard TradingView
💡 Casi d'Uso Ottimali:
Scalping: Utilizzare MA1 (EMA9) e MA2 (EMA21) per segnali rapidi
Day Trading: Combinare MA2 (EMA21) e MA3 (SMA50) per trend intraday
Swing Trading: Attivare MA5 (SMA200) come filtro di trend principale
Disclaimer: Questo indicatore è fornito solo a scopo educativo e informativo. Non costituisce consulenza finanziaria. Il trading comporta rischi significativi. Utilizzare sempre una corretta gestione del rischio.
Sviluppato da NovaQore FX
52WH/last52WH/ATH/lastATHThis indicator determines and displays four values:
First, it determines the current 52-week high and displays it as a line and in a table at the top right with the name, date, and price.
Corresponding color markings are also displayed on the price scale.
Next, the 52-week high that is at least three months ago is determined.
The corresponding candle is also labeled with a date. This past high is also displayed as a line, on the price scale, and in the table.
Next, the current all-time high is determined and also displayed as a line, on the price scale, and in the table.
Finally, the current all-time high that was valid 3 months ago is determined and also displayed as a line, in the price scale, and in the table.
All display values can be switched on or off in the view, and the corresponding colors of the displays can also be freely selected.
Adarsh Volume ThresholdThis is one if it's kinds Indicator which Combines multiple indicators to confirm Trend and Signals without a mess on chart.
It will give you a visual idea to take best decision for Stop Loss and Target before executing your order.
Enter your capital/Amount for trading and decide max risk you can take, it will calculate your Qty, SL point and Target Point.
VP Table will keep updating you the min Amount traded on candle as per your input min. threshold.
Strategy TILSON T3 ATR v6 (GIM) bootFor boot alerts, use the Tilson T3 ATR GIM indicator. The strategy is for backtesting. Before using it, test it first, especially on aschi candles. Thank you, I hope it will be useful to you.
Volume MatrixVolume Matrix (VM) is a comprehensive volume and position-sizing toolkit designed to help traders interpret market participation and manage trade risk efficiently.
It combines volume analytics, risk-adjusted position sizing, and stock-specific financial data — all in a clear, visual, and automated format directly on TradingView charts.
The indicator integrates capital management, episodic volume spikes, and market capitalization data into a single, intuitive framework, giving traders an edge in both decision-making and discipline.
⚙️ Core Components & Features
🧩 1. Position Sizing & Risk Management
A dynamic risk table helps traders determine how much to trade and how much to risk per position, adapting automatically based on user inputs:
- Capital (CP): Total account size (₹ or $).
- Risk Mode (R): Choose between Percentage of capital or fixed Currency value.
- Lot Size Mode: Optional toggle to align quantities with F&O lot sizes (India-based).
- Standard Stop-Loss (SSL): Displays position quantities for three custom stop-loss levels (e.g., 0.75%, 1%, 1.25%).
- % Distance Metrics: D: Distance from day’s low/high (helps assess stop distance). DH: Distance from mid-body (useful for candle risk assessment). Auto-adjusts based on whether the trader is in Long, Short, or Both mode.
📈 Helps answer:
“How much quantity should I trade at my desired risk level?”
🔶 2. Volume Visualization
- Plots volume bars with default up/down coloring.
- Green for bullish bars.
- Red for bearish bars.
- Designed for quick visual differentiation of buying/selling pressure.
🚀 3. Episodic Pivot (EP) Detector
Identifies high-volume breakout or capitulation days, often marking significant turning points or trend initiations.
- Highlights bars where volume exceeds a custom threshold (in millions).
- Marks them visually with an orange triangle under the candle.
-Best used on daily charts to spot institutional footprints.
📊 Helps answer:
“Is today’s volume large enough to signal major institutional activity?”
🧾 4. Data Metrics Table
Displays fundamental and contextual data about the asset:
- Market Capitalization (MC): Auto-calculated using outstanding shares × price.
- Free Float (FF): Value of tradable shares in currency or Cr (INR).
- Industry × Sector × F&O Status: Shows the company’s industry and sector classification. Displays FC (Futures Contract) or NFC (Non-F&O stock).
- Customizable appearance: Choose between text/value display, text color, and background color. Flexible positioning and size control to suit any chart layout.
📚 Helps answer:
“What type of stock is this, how big is it, and does it trade in futures?”
🪄 5. User Interface Customization
- Modular UI grouped by functionality (Risk, Direction, Metrics, Volume, etc.).
- Flexible table position & size (Top/Bottom/Middle & Tiny–Huge).
- All elements are toggleable, giving full control over displayed data.
- Built to ensure visual clarity on any chart background.
| Trading Goal | How Volume Matrix Supports It |
| ------------------------------ | -------------------------------------------------------------- |
| **Risk Management** | Calculates optimal trade size and risk exposure automatically. |
| **Position Sizing Discipline** | Enforces consistent sizing across trades using SSL levels. |
| **Volume Confirmation** | Highlights institutional participation via Episodic Pivots. |
| **Stock Context Awareness** | Shows market cap, sector, and float value instantly. |
| **Efficiency** | Reduces manual work — no need for calculators or spreadsheets. |
💡 In Short
Volume Matrix simplifies trade planning, brings transparency to risk, and connects volume with context — all in one elegant visual tool.
Perfect for:
- Discretionary traders refining entries and sizing.
- Swing traders watching for volume-based pivots.
- Analysts who want price-volume fundamentals at a glance.
Salvemoku V1Salvemoku is a multi-timeframe EMA confluence indicator designed for traders seeking clear market direction and high-probability trade setups. By analyzing the 200 EMA across multiple timeframes (65m, 15m, 5m, 1m), it identifies whether the market is in full bullish or bearish alignment.
Key features include:
Multi-Timeframe Analysis: Checks EMA 200 alignment across 65m, 15m, 5m, and 1m charts for precise trend confirmation.
Dashboard Display: Shows direction per timeframe and overall trade status (Full Confluence BUY/SELL, Wait, or No Trade).
EMA Buffer Zone: Visual buffer around EMA 200 to highlight potential support/resistance areas.
Quick Decision-Making: Helps traders identify high-probability entries and avoid low-probability retracements.
Invite-Only Protection: Script source code is hidden; only authorized users can access the indicator.
Trading Tips:
Look for “✅ Full Confluence BUY” or “✅ Full Confluence SELL” for high-probability trades.
Use buffer zones for entries and exits to manage risk effectively.
“⏳ WAIT” indicates retracement phases — avoid trading during these signals.
Swing Aurora v2.1: The Adaptive Multi-Filter Trend EngineThis is a comprehensive, auto-adaptive trend and swing trading algorithm designed for maximizing signal quality across multiple timeframes. The Swing Algo v2.1 uses a robust scoring system that integrates price action, momentum, volatility, and trend strength indicators to generate high-conviction BUY and SELL signals.
The indicator automatically adjusts key filtering parameters (like entry distance and minimum swing length) based on the chart's current timeframe, ensuring optimal performance whether you're scalping on 5m or swing trading on 4h.
Key Features:
Adaptive Sensitivity: Automatically tunes core filtering parameters to maintain signal relevance from short-term to long-term charts.
High-Conviction Scoring: Signals are generated through a strict multi-factor scoring system incorporating Moving Averages (HMA/EMA), Trend Strength (ADX), Volatility (ATR), and Momentum (StochRSI/MACD).
"STRONG" Signal Logic: Highest-quality signals require maximum alignment across multiple macro-filters, including momentum divergence and strict trend confirmation, ensuring only high-probability reversal points are flagged.
Volatility-Aware Cooldown: Dynamically adjusts the waiting period between signals based on current market volatility, preventing "whiplash" (flip-flopping) during ranging markets and ensuring clean entries.
Visual Clarity: The background shading clearly maps the market state:
Green/Red: Active Swing/Trend Zones.
Orange: Watch/Transition Zone (Potential reversal or momentum weakening).
Gray: No-Trade Zone (Consolidation or low momentum).
The Swing Algo v2.1 is engineered to prioritize signal quality and robustness over frequency, helping traders identify clean, actionable swing opportunities with reduced noise.
Parameters explained :
This section provides a detailed breakdown of the parameters available in the Inputs Menu of the Swing Algo v2.1 script. These settings allow you to fine-tune the algorithm's sensitivity and filtering for your specific trading style and assets.
1. Presets
Mode (Balanced): Sets the overall signal strictness. Defines the minimum score thresholds (minBuy and minStrong). Options are: Aggressive (more frequent signals), Balanced (standard quality/frequency), and Conservative (strictest filters, focusing on high-conviction moves).
Confirmation ON (bar close, no repaint): (Default: True) If checked, signals are only confirmed and displayed on the close of the bar, ensuring the signal is non-repainting.
Cooldown between flips (bars): (Default: 4) Sets the base minimum number of bars the system must wait between a BUY and a SELL (or vice versa). This value is dynamically adjusted by volatility (ATR) when Auto-tune is ON.
Auto-tune settings by chart timeframe: (Default: True) Highly Recommended. If checked, the script automatically adjusts key filtering parameters (Baseline length, Min Distance, Cooldown, Trigger Window) based on the current chart timeframe (e.g., stricter on 5m, looser on 4h).
Trigger Lookback Window (Bars): (Default: 2) Defines the maximum number of bars back a core trigger event (EMA Cross or Stoch signal) must have occurred to be considered valid for the current swing flip. (Auto-tuned to 1 bar on M5/M15 for speed, 3 on H1/H4 for reliability).
2. Core (Baseline, EMAs, ADX)
Baseline (HMA): The primary reference moving average for trend direction. Options are Hull Moving Average (HMA) or Exponential Moving Average (EMA).
Baseline length (100): The lookback period for the primary Baseline.
Fast EMA (breakout) (34): The lookback period for the fast EMA used for momentum and initial breakout confirmation.
Bias EMA (context) (200): A longer-term EMA used to define the macro-contextual bias (e.g., trend is only truly Bullish if price is above the 200 EMA).
Use EMA200 context bias (True): If checked, adds a score penalty for counter-trend signals against the Bias EMA (EMA 200).
ADX length (14): The lookback period for the Average Directional Index (ADX). ADX measures trend strength.
ADX Trend Confirmation Bars (3): The minimum number of recent bars required to show directional ADX strength before a flip is validated.
Sensitivity (10-90) (50): A slider that broadly controls the strictness of volatility and trend filters. Higher sensitivity (e.g., 80) makes the script react faster but increases noise; lower sensitivity (e.g., 30) filters more but can cause lag.
3. VDUBS & Divergence Filters (Fusion Logic)
Vdub EMA 1 (13) / Vdub EMA 2 (21): The lengths for the two short-term EMAs used for the Vdub Trend Filter. When both are aligned (rising/falling), they provide a strong score boost and color the trend lines.
Use Divergence for STRONG Signals (True): If checked, the system requires a confirmed multi-indicator divergence score to issue a STRONG BUY/SELL signal. It acts as a mandatory filter for high quality.
Divergence Lookback Bars (LB/RB) (10): The number of bars left/right used to identify Pivot Highs/Lows and measure the divergence angle.
Min Indicators for Divergence (Score) (2): The minimum number of chosen indicators (RSI, MACD, Stoch) that must show divergence simultaneously to satisfy the divergence filter.
Check RSI Div / MACD Div / Stoch Div (True): Allows you to select which specific momentum indicators contribute to the total divergence score.
4. HTF & StochRSI Filters
Use HTF regime filter (False): Enables the Higher Timeframe (HTF) filter. If checked (or if Mode is set to Conservative), signals are penalized if they counter the trend of the selected HTF.
HTF Timeframe (Auto): The timeframe used for the HTF filter. Auto mode selects a suitable higher TF (e.g., 4H for a 30m chart).
HTF Baseline len (120): The length of the moving average used for the Higher Timeframe check.
Use Stoch RSI filter/trigger (True): Enables the StochRSI indicator logic, adding a score boost when price is oversold/overbought and Stoch K/D cross over or under the bands.
RSI length (for StochRSI) (14) / StochRSI length (14): Standard lengths for the components of the StochRSI calculation.
Stoch K/D smoothing (3): Standard smoothing periods for the StochRSI K and D lines.
Stoch oversold level (20) / Stoch overbought level (80): Defines the critical overbought/oversold bands.
5. Robustness
Min distance from Baseline (×ATR) (0.15): Sets a baseline threshold for the dynamic distance calculation. Signals only occur if the price is far enough from the baseline to indicate real momentum (this value is auto-tuned to be much higher on low TFs).
Min bars per swing (avoid noise) (8): The minimum number of bars required between an entry and exit signal to qualify as a valid swing.
Min slope as % ATR (0.02): Defines the minimum required steepness (slope) for the Baseline/EMA to ensure the market has directional movement. Used to filter signals during flat, choppy periods.
NOTE: All default values shown in parentheses above are the starting points. When Auto-tune is enabled, these values are dynamically adjusted by the script based on the current chart timeframe to provide optimal filtering.
🛑 IMPORTANT RISK DISCLAIMER
THIS INDICATOR IS FOR EDUCATIONAL AND INFORMATIONAL PURPOSES ONLY AND DOES NOT CONSTITUTE FINANCIAL ADVICE.
By using this script, you acknowledge that trading foreign exchange, cryptocurrencies, stocks, and any other financial instruments involves significant risk of loss and is not suitable for all investors. The high degree of leverage that is often available in trading can work against you as well as for you.
Past performance is not indicative of future results. All decisions to buy, sell, or hold a financial instrument remain the sole responsibility of the user. You must rely on your own judgment and discretion. We recommend that you do not invest money that you cannot afford to lose. Never trade with money that is essential to your survival. Neither the creator of this script nor its distributors assume any responsibility for your trading results. Always consult with a qualified financial professional before making any investment decisions.
Salvemoku Salvemoku is a multi-timeframe EMA confluence indicator designed for traders seeking clear market direction and high-probability trade setups. By analyzing the 200 EMA across multiple timeframes (65m, 15m, 5m, 1m), it identifies whether the market is in full bullish or bearish alignment.
Key features include:
Multi-Timeframe Analysis: Checks EMA 200 alignment across 65m, 15m, 5m, and 1m charts for precise trend confirmation.
Dashboard Display: Shows direction per timeframe and overall trade status (Full Confluence BUY/SELL, Wait, or No Trade).
EMA Buffer Zone: Visual buffer around EMA 200 to highlight potential support/resistance areas.
Quick Decision-Making: Helps traders identify high-probability entries and avoid low-probability retracements.
Invite-Only Protection: Script source code is hidden; only authorized users can access the indicator.
Trading Tips:
Look for “✅ Full Confluence BUY” or “✅ Full Confluence SELL” for high-probability trades.
Use buffer zones for entries and exits to manage risk effectively.
“⏳ WAIT” indicates retracement phases — avoid trading during these signals.
ZynAlgo S&R ProAuto Support & Resistance for Smarter, Structure-Based Trading
ZynAlgo S&R Pro automatically detects dynamic Support & Resistance zones in real time — helping you trade with structure, not emotion.
No more manual drawing or second-guessing where price might react. The indicator continuously tracks the most relevant market zones and highlights potential reaction areas with clarity and precision.
🔍 Key Benefits
Instantly see where buyers and sellers are likely to step in.
Filter bad entries and avoid trading into strong opposite zones.
Plan precise SL and TP based on market structure — not guesswork.
Stay aligned with the trend or prepare for reversals at critical zones.
Designed for traders who want clarity, consistency, and confidence.
⚙️ Recommended Usage
Define your trend or bias on a higher timeframe.
Wait for price to approach or break a zone.
Either enter on the first touch (with confirmation)
or wait for the break → retest entry for higher accuracy.
Place stop loss beyond the zone, and take profit at the next opposite zone.
Combine with your own momentum or volume filters for maximum confluence.
💡 Best For
Day & swing traders who trade pullbacks and breakouts.
Beginners wanting clean structure and fewer emotional decisions.
Professionals needing repeatable, rule-based entries across assets.
⚠️ Disclaimer
This tool is for analysis and educational purposes only — not financial advice.
Always test settings per market and manage risk responsibly.
EDGAR WHALES DETECTOR (EWD)This indicator identifies the presence of "whales" in the market — large players or institutional traders executing significant buy or sell orders. By analyzing market movements and volume patterns, it highlights moments when big players are entering or exiting positions. Use it to spot high-probability trading opportunities, understand market momentum, and follow the footsteps of institutional trading activity.
Features:
Detects whale buying and selling activity.
Visual alerts for strong market moves by big players.
Helps traders align with institutional market trends.
Advanced Fibonacci Multi Strategy & Alerts🅰🅻🅿 🇹🇷Advanced Fibonacci Multi Strategy Indicator User Guide
📋 General Information About the Indicator
This indicator is a comprehensive trading tool that combines advanced Fibonacci analysis with a multi-strategy system. It offers intelligent triggering systems, multiple exit strategies, and advanced alarm features.
🎯 Basic Working Logic
Fibonacci System Operation:
Green Fibonacci: Drawn from low to close in an uptrend
Red Fibonacci: Drawn from high to close in a downtrend
Fibonacci levels are automatically calculated and drawn
System Flow:
Triggering → Candle patterns initiate Fibonacci
Fibonacci Drawing → Levels are automatically drawn
Alarm Tracking → Alarms activate at levels
Exit/Continuation → New Fibonacci forms when targets are reached
⚙️ SETTINGS and USAGE
1. CANDLE SETTINGS
text
Green Threshold: 2.5 → Threshold for detecting long green candles
Red Threshold: 2.5 → Threshold for detecting long red candles
Recommendation: Adjust between 1.8-3.0 based on volatility
2. FIBONACCI TRIGGERING SETTINGS (Most Important Section)
Trigger Modes:
Color Only: Any colored candle starts Fibonacci
Long Candle Only: Only long candles start Fibonacci
Long Candle + Trend: Requires both long candle and trend alignment ✅
Trend + Any Candle: Trend alignment + any colored candle
Full Flexible: Manual filter control
Filters:
Trend Filter: Filters trades in trend direction
Long Candle Filter: Requires long candles
3. MULTI-EXIT SYSTEM
Exit Strategies:
Conservative: Early profit taking (%70 at -0.382, %20 at -0.718, %10 at -1.000)
Aggressive: Maximum profit (%20 at -0.382, %20 at -0.718, %20 at -1.000, %40 at -1.618)
Balanced: Balanced distribution ✅
Manual: User-defined exits
4. FIBONACCI SETTINGS
pinescript
Line Length: 50 → Length of Fibonacci lines
Show Lines: true → Show/hide Fibonacci lines
Show Values: true → Display Fibonacci values
5. TREND FILTER SETTINGS
pinescript
Trend Period: 50 → Trend calculation period
Trend Indicator: SMA → Can select SMA or EMA
6. Fibonacci Levels and Alarms
For each Fibonacci level:
✅ Show/Hide option
🔧 Value setting (manual override)
🎨 Color selection
🔔 Alarm active/passive
Standard Fibonacci Levels:
1.000 (High/Low)
0.382
0.500
0.618
0.000 (Base)
-0.382
-0.718
-1.000
-1.618
📊 VISUALIZATION and COLORS
Candle Coloring:
Green: Long green candle or active green Fibonacci
Red: Long red candle or active red Fibonacci
Orange: Waiting mode
Pale colors: Normal candles
Fibonacci Line Colors:
Black: 0.000 and 1.000 levels
Orange: 0.382, 0.500, 0.618 levels
Blue: -0.382 level
Green: -0.718 level
Red: -1.618 level
🔔 ALARM SYSTEM
Alarm Types:
1. Retracement Alarms (0.382, 0.5, 0.618)
Green Fibonacci: Downward touch while green candle is burning
Red Fibonacci: Upward touch while red candle is burning
2. Target Alarms (-0.382, -0.718, -1.000)
Green Fibonacci: Upward target touch (independent of candle color)
Red Fibonacci: Downward target touch (independent of candle color)
3. Stop Alarms (1.000)
Closing price breaking Fib 1.0 level
4. Fibonacci Start Alarms
New green/red Fibonacci formation
🎮 PRACTICAL USAGE EXAMPLES
Scenario 1: Trend Following
text
Trigger Mode: "Long Candle + Trend"
Trend Filter: ACTIVE
Long Candle Filter: ACTIVE
Exit Strategy: "Balanced"
Scenario 2: Scalping
text
Trigger Mode: "Color Only"
Trend Filter: PASSIVE
Exit Strategy: "Conservative"
Scenario 3: Swing Trading
text
Trigger Mode: "Long Candle + Trend"
Trend Filter: ACTIVE
Exit Strategy: "Aggressive"
📈 VISUAL EXPLANATION
text
┌─────────────────────────────────────────────────┐
│ FIBONACCI SYSTEM │
├─────────────────────────────────────────────────┤
│ 🟢 GREEN FIB ACTIVE │
│ Target: 1.23456 | Stop: 1.12345 │
│ 🎯 Multi-Exit: Balanced | Pos: 100% │
│ ⚡ Classic Mode | Mode: Long Candle + Trend │
│ Alarm: ACTIVE 🔔 | Trend: UPWARD 📈 │
└─────────────────────────────────────────────────┘
FIB LEVELS:
1.618 ──────────────────────── 🟥 (-1.618)
1.000 ──────────────────────── ⚫ (-1.000) TARGET
0.718 ──────────────────────── 🟩 (-0.718)
0.382 ──────────────────────── 🟦 (-0.382)
0.000 ──────────────────────── ⚫ (0.000) BASE
0.618 ──────────────────────── 🟧 (0.618)
0.500 ──────────────────────── 🟧 (0.500)
0.382 ──────────────────────── 🟧 (0.382)
1.000 ──────────────────────── ⚫ (1.000) STOP
⚠️ IMPORTANT WARNINGS
Demo Account Testing: Always test before using with real money
Risk Management: Properly adjust position sizing
Market Conditions: Use carefully in sideways markets
Timeframe Compatibility: Choose timeframe suitable for your strategy
🚀 QUICK SETUP FOR BEGINNERS
Basic Settings:
pinescript
Trigger Mode: "Long Candle + Trend"
Trend Filter: true
Long Candle Filter: true
Exit Strategy: "Balanced"
Alarm Settings:
pinescript
0.382 Alarm: true
0.500 Alarm: true
0.618 Alarm: true
-0.382 Alarm: true
-1.000 Alarm: true
1.000 Alarm: true
Visual Settings:
pinescript
Line Length: 50
Show Lines: true
Show Values: true
MFI + MFI MAThis combination is a powerful technical analysis strategy that merges momentum and volume (from the MFI) with the underlying trend direction (from the Moving Average). The core philosophy is simple: Use the Moving Average to determine the market's direction, and use the MFI to find optimal entry points within that trend.
This approach moves beyond using the MFI in isolation, which can generate false signals in a strong, trending market. It adds a crucial layer of context, significantly improving the quality of your signals.
Crash Survival Indicator (SPX, Weekly/Daily)Short description
SPX-focused risk context tool using 30WMA/ATR/ADX and distance to 30WMA, with optional Hindenburg-Omen breadth and macro add-ons. Weekly is primary; Daily provides early-warning. Educational only.
Full description (English first)
What it is
Crash Survival Indicator (CSI) is a rules-based risk context indicator for the S&P 500 index (SPX). It helps keep decisions data-driven during stress by combining four weekly conditions into a weighted risk score and presenting them in a readable dashboard. Optional breadth (Hindenburg Omen cluster proxy) and macro add-ons give additional context. This is not a buy/sell system.
Why it’s original and useful
Weekly core with confirmation: Four classic conditions (30WMA regime, ATR(14) trend, ADX(14) > 20 & rising, and % distance from 30WMA) feed a 0–100 score. A 2-of-3 gate (WMA down / ATR up / ADX>20↑) must confirm before “Danger,” reducing false spikes.
Daily Early-Warning: A separate daily preview flags conditions approaching the Danger threshold (with a streak filter). It’s a heads-up only, not a timeframe switch.
Scope control to avoid confusion: Signals (labels/alerts) are restricted to SPX on Weekly/Daily by design. The dashboard can be shown SPX-only or on all symbols (configurable).
Clarity for all users: Beginner card view (plain badges) and Pro table view (detailed chips) improve readability without hiding logic.
How it works (mechanics)
Weekly core (primary frame)
30WMA regime: price vs 30-week WMA; IN/OUT labels on crosses.
ATR(14): rising ATR counts as volatility stress.
ADX(14): risk weight when ADX > 20 and rising.
Distance to 30WMA: % deviation flags potential overheat.
Scoring & thresholds: Weighted sum → Caution ≥ 40, Danger ≥ 60 (defaults). Danger also requires the 2-of-3 gate above.
Daily Early-Warning: Uses daily versions of the same ideas to detect near-Danger conditions with a streak requirement (heads-up only).
Optional breadth (Hindenburg Omen proxy): Elevated new highs and new lows while the NYSE Composite is above its 50DMA, with deteriorating breadth momentum; requires cluster confirmation to reduce noise.
Optional macro add-ons: VIX regime, DXY strength, credit stress (HYG/LQD vs MA), and TNX trend each add adjustable weights.
Inputs (overview)
Scope & Mode: SPX primary/alt tickers; signal restriction to SPX + Weekly/Daily; dashboard visibility (SPX-only vs all symbols); Beginner or Pro display.
Label Policy: Weekly-only / Weekly-core + Daily-early (default) / All (W/D); lookback windows and minimum bar gaps to prevent clutter.
Scoring: Weights for 30WMA down, ATR up, ADX>20↑, Overheat; Caution/Danger thresholds; Overheat % (distance).
Hindenburg Omen (optional): NYSE Composite and High/Low/AD series; cluster requirement.
Macro add-ons (optional): Symbols + weights for VIX, DXY, HYG, LQD, TNX.
Early Warning (Daily): Near-Danger buffer and streak length.
Visuals & Alerts: Background shading, labels on/off, font size, dashboard position, runtime
alerts.
Alerts (contextual; not trade signals)
OUT — 30WMA Down Break (Weekly)
IN — 30WMA Reclaim (Weekly)
Risk ≥ Danger + 2-of-3 Gate
Hindenburg Omen Cluster detected
Early Warning (Daily near Danger, streak)
Alerts provide context only. They are not buy/sell instructions.
Intended use and limitations
Use the Weekly panel for decisions; treat Daily Early-Warning as a heads-up.
Best used as risk framing alongside your own process (position sizing, liquidity, event risk).
Breadth/macro inputs depend on your data source; if unavailable, keep add-ons off.
No forward-looking data or lookahead; designed to avoid repainting.
Disclaimer
For educational purposes only. Not financial advice, not an investment recommendation, and not a solicitation to buy or sell any security. Past performance does not guarantee future results. Users are solely responsible for their decisions and regulatory compliance.
Optional Korean addendum (append after English)
한국어 안내 요약: 본 지표는 위기 상황에서 감정보다 데이터를 우선할 수 있도록 리스크 맥락을 제공합니다. 주봉이 핵심, 일봉은 조기경보(Heads-up)이며, 매수/매도 신호가 아닙니다. 심프님의 프로토타입 철학을 살리되 SPX 한정 신호, 라벨/알림 정책, 선택형 오멘/매크로 기능, 초보/프로 대시보드 등 가독성을 개선했습니다. 투자 판단과 책임은 전적으로 사용자에게 있습니다.
Privacy & format
Visibility: Public
Source: Protected (no source disclosure), compliant with Publishing Rules
Language: English title & description first; Korean addendum optional
Screenshot guidance (for your gallery)
Weekly SPX showing dashboard at “Danger” with an OUT label.
Weekly SPX with Hindenburg Omen Cluster label and shaded background.
Daily SPX with Early-Warning label as weekly approaches Danger.
Beginner vs Pro dashboard comparison on SPX.
Author certification (paste if needed)
I certify this publication contains no promotions, links, or solicitations, complies with TradingView House Rules and Script Publishing Rules, uses Pine v5, and is intended solely for educational purposes with no performance claims.
Dual ATR Trailing Stop - Buy/Sell Signals - MCH🎯 DUAL ATR TRAILING STOP - ADVANCED BUY/SELL SIGNAL SYSTEM
A sophisticated trend-following indicator that combines dual ATR trailing stops with intelligent 4-state market condition analysis for precise entry and exit signals.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ WHAT MAKES THIS INDICATOR UNIQUE
This indicator goes beyond traditional ATR implementations by combining:
- Dual ATR trailing stop system with crossover signal generation
- 4-state market condition classifier (not just bull/bear)
- Real-time P&L tracking from signal entries
- Advanced candle analysis (examining highs, lows, and close relative to ATR levels)
- Dynamic trend confirmation using barssince() methodology
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 CORE METHODOLOGY EXPLAINED
1️⃣ DUAL ATR TRAILING STOP SYSTEM
The indicator calculates two independent ATR-based trailing stops:
FAST ATR TRAIL:
- Default: 5-period ATR with 0.5 multiplier
- Reacts quickly to price movements
- Captures early momentum shifts
- Calculation: Fast Stop Loss = 0.5 × ATR(5)
SLOW ATR TRAIL:
- Default: 10-period ATR with 3.0 multiplier
- Provides trend confirmation
- Filters false signals in choppy markets
- Calculation: Slow Stop Loss = 3.0 × ATR(10)
SIGNAL GENERATION LOGIC:
- 🟢 BUY Signal: Generated when Fast ATR Trail crosses ABOVE Slow ATR Trail
- 🔴 SELL Signal: Generated when Fast ATR Trail crosses BELOW Slow ATR Trail
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2️⃣ FOUR-STATE MARKET CONDITION CLASSIFIER
Unlike basic ATR indicators that only show bull/bear states, this system identifies 4 DISTINCT MARKET CONDITIONS by analyzing candle structure relative to both ATR levels:
🟢 STRONG BULL (Green Candles):
- Condition: Fast Trail > Slow Trail AND Close > Slow Trail AND Low > Slow Trail
- Meaning: Strong uptrend with no pullbacks below Slow ATR
- Trading implication: High confidence bullish momentum
🔵 BULL WITH PULLBACK (Blue Candles):
- Condition: Fast Trail > Slow Trail AND Close > Slow Trail BUT Low < Slow Trail
- Meaning: Uptrend but with intrabar pullbacks
- Trading implication: Bullish but watch for potential reversal
🔴 STRONG BEAR (Red Candles):
- Condition: Slow Trail > Fast Trail AND Close < Slow Trail AND High < Slow Trail
- Meaning: Strong downtrend with no bounces above Slow ATR
- Trading implication: High confidence bearish momentum
🟡 BEAR WITH BOUNCE (Yellow Candles):
- Condition: Slow Trail > Fast Trail AND Close < Slow Trail BUT High > Slow Trail
- Meaning: Downtrend but with intrabar bounces
- Trading implication: Bearish but watch for potential reversal
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
3️⃣ DYNAMIC TRAIL CALCULATION
The ATR trailing stops use adaptive logic that adjusts to market conditions:
IF price > previous trail AND previous price > previous trail:
New Trail = MAX(previous trail, current price - stop loss)
ELSE IF price < previous trail AND previous price < previous trail:
New Trail = MIN(previous trail, current price + stop loss)
ELSE IF trend reverses:
Recalculate trail from current price level
This ensures the stops trail price appropriately while preventing premature exits during normal volatility.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
4️⃣ TREND DIRECTION CONFIRMATION
The indicator uses a unique barssince() comparison method:
- BULLISH TREND: bars since Strong Bull < bars since Strong Bear
- BEARISH TREND: bars since Strong Bear < bars since Strong Bull
This provides an objective measure of which market state occurred more recently, helping filter signals.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 VISUAL FEATURES
- Color-Coded Candles: Green/Blue/Red/Yellow based on 4 market states
- ATR Level Lines: Blue (Fast Trail), Green/Red (Slow Trail depending on trend)
- Fill Zones: Shaded area between Fast and Slow ATR (Green fill = bullish, Red fill = bearish)
- Signal Shapes: Green triangles (BUY), Red triangles (SELL)
- Real-Time Info Panel showing:
- Current position (LONG/SHORT/NONE)
- Entry price
- Current price
- P&L percentage from last signal
- Market condition state
- Fast & Slow ATR values
- Overall trend direction
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 ALERT SYSTEM
Built-in alert conditions for:
- ATR BUY: Triggers when Fast crosses above Slow
- ATR SELL: Triggers when Fast crosses below Slow
- Strong Bull: Triggers when entering strong bullish condition
- Strong Bear: Triggers when entering strong bearish condition
Alert messages include: Price, Fast ATR value, Slow ATR value
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ CUSTOMIZABLE PARAMETERS
ATR SETTINGS:
- Fast ATR Period: 1-50 (default: 5)
- Fast ATR Multiplier: 0.1-5.0 (default: 0.5)
- Slow ATR Period: 1-50 (default: 10)
- Slow ATR Multiplier: 0.1-10.0 (default: 3.0)
VISUAL SETTINGS:
- Paint color on chart: Enable/disable candle coloring
- Show ATR levels: Toggle ATR line visibility
ALERT SETTINGS:
- Enable Alerts: Master switch for all alert conditions
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 HOW TO USE
FOR TREND FOLLOWING:
1. Wait for BUY signal (green triangle) when Fast crosses above Slow
2. Confirm with STRONG BULL market condition (green candles)
3. Hold position until SELL signal appears
4. Monitor P&L% in info panel
FOR RISK MANAGEMENT:
- Use Slow ATR line as dynamic stop loss level
- Exit if market changes to opposite strong condition
- Be cautious in BLUE/YELLOW states (pullback zones)
FOR SCALPING:
- Use lower timeframes (5m, 15m)
- Adjust Fast ATR to more sensitive settings (period 3, multiplier 0.3)
- Take profits at opposite color candles
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 BEST MARKET CONDITIONS
WORKS BEST ON:
- Trending markets with clear directional moves
- Forex pairs: EUR/USD, GBP/USD, USD/JPY
- Crypto: BTC/USDT, ETH/USDT, major altcoins
- Stock indices: S&P 500, NASDAQ, DAX
- Commodities: Gold, Silver, Oil
RECOMMENDED TIMEFRAMES:
- Swing Trading: 4H, Daily
- Day Trading: 15m, 1H
- Scalping: 5m, 15m (with adjusted parameters)
LESS EFFECTIVE IN:
- Ranging/choppy markets (generates false signals)
- Very low liquidity instruments
- During major news events (extreme volatility)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ RISK DISCLAIMER
This indicator is a technical analysis tool and should not be used as the sole basis for trading decisions. Always use proper risk management, combine with other analysis methods, and never risk more than you can afford to lose. Past performance does not guarantee future results.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📞 SUPPORT & UPDATES
For questions, suggestions, or issues, please comment below or send a private message. Regular updates and improvements based on user feedback.
Version: 1.0 | Pine Script v6 | Works on all TradingView plans
TSWA⚡️ Indicator Description:
This indicator is specially designed for scalping trades, providing accurate entry and exit signals for short-term opportunities.
With proper use and risk management, it can deliver between 20 to 200 pips per day, depending on market volatility and session activity.
💡 Best Trading Sessions:
🕐 Asian Session
🕕 London Session
(It can also perform well during the New York session, but it’s not recommended due to high volatility and unpredictable price movements.)
⚙️ Key Features:
Accurate buy/sell signals optimized for scalping.
Works effectively on most forex pairs and indices.
Best results on lower timeframes (M1).
Ideal for intraday traders seeking fast, frequent opportunities.
🚀 Usage Tips:
Always apply proper risk and money management.
Avoid trading during high-impact news releases.
Combine with price action or confirmation indicators for higher accuracy.
ATTC StrucutreThis indicator visualizes the pure market structure in real time – automatically identifying Higher Highs, Higher Lows, Lower Highs, and Lower Lows to help you read the current direction and phase of the market.
It clearly marks Breaks of Structure (Shift), allowing traders to instantly recognize when the market is continuing a trend or shifting momentum.
It's based of DTFX concepts so the market structure is marked out by the candlestick closures.