Penunjuk Breadth
KusKus Starlight Strategy📌 Gabriel's KusKus Starlight Strategy – Adaptive Volume-Based Momentum System
Description:
Gabriel’s KusKus Starlight Strategy is a high-precision, volume-driven trading system designed for short- to medium-term intraday setups. By combining Cumulative Volume Delta (CVD) with Fisher Transform logic, Z-Score anomaly detection, and adaptive moving averages (like Jurik MA and Super Smoother), the strategy seeks to capture early trend shifts, continuation breakouts, and statistically favorable reversals.
🧠 How It Works
CVD-Based Fisher Oscillator
Transforms volume delta imbalances into clean trend signals using a Fisher Transform with dual-stage smoothing.
Jurik Signal Line & Super Smoother
Provides confirmation filters that reduce whipsaw trades by identifying prevailing trend direction.
Z-Score & Velocity Boosters
Highlight when momentum is accelerating with statistical outliers, improving early entry timing.
ATR-Driven Trade Management
All entries use dynamically calculated Stop Loss and Take Profit levels based on ATR, with optional hour-specific overrides.
🎯 Strategy Entry Conditions
🔼 Long Entry:
A long trade is entered when all the following are true:
Fisher (smoothedFish) crosses above 0
Z-Score (ZKusKus) is rising or Z-Score velocity is rising
Fisher is above the Jurik MA (signal)
Price (src) is above the Super Smoother MA (ma)
Time filter is allowed (optional setting)
🔽 Short Entry:
A short trade is entered when all the following are true:
Fisher (smoothedFish) crosses below 0
Z-Score (ZKusKus) is falling or Z-Score velocity is rising
Fisher is still above the Jurik MA (signal) (anticipating exhaustion)
Price (src) is below the Super Smoother MA (ma)
Time filter is allowed (optional setting)
📤 Strategy Exit Conditions
Take Profit (TP) and Stop Loss (SL) levels are based on the ATR multiplied by dynamic multipliers.
Both TP and SL can be adjusted per hour using tp_hour_* and risk_hour_* settings to reflect optimal market behavior during different sessions.
⏰ Smart Hour-Based Filters
Use include Hours to restrict trading to 3 specific hours (e.g., 7, 8, 9). Each hour has its own:
Risk % Allocation
TP Multiplier
This adds fine-tuned control over position sizing and target reachability.
📈 Recommended Timeframes:
Optimized for 30-minute ~ 1 Hour charts, but adaptable to 1m–15m with parameter tuning.
Use hourly filters to target only statistically profitable hours, London ~ New York Afterhours.
📌 Ideal Use Case:
For traders looking to fade weak volume reversals or ride volume-supported breakouts with smart, auto-adjusting position sizing—this strategy offers a refined and flexible framework grounded in real-time order flow behavior.
Gabriel's KusKus Starlight✨ Gabriel’s KusKus Starlight – Volume-Powered Momentum & Reversal Signals
Overview:
Gabriel’s KusKus Starlight is a powerful momentum and reversal indicator that uses Cumulative Volume Delta (CVD) to detect where the real market pressure is—behind the candles. Instead of just watching price, this tool listens to the story told by volume and trader aggression, making it especially effective during choppy or manipulative markets.
🧠 What Makes It Unique?
📦 Volume-Driven Core (CVD):
Tracks whether buyers or sellers are in control by accumulating volume differences between bullish and bearish candles.
🎯 Fisher Transform Smoothing:
Transforms CVD signals into a more readable, Gaussian-like curve to detect turning points more clearly.
🌀 Double Smoothing for Stability:
Adjustable smoothing settings give you full control over how reactive or calm the signal behaves.
📉 Jurik Moving Average (JMA) Signal Line:
Smooth, adaptive trendline that helps confirm entries and filters out noise. Think of it as a trend “compass” for your oscillator.
📊 Z-Score Highlighting:
Uses statistical normalization to flag overbought and oversold conditions with lime and fuchsia highlights when things get extreme.
🚀 Velocity of Z-Score (Bonus Signal):
Measures how fast momentum is changing, helping you spot accelerations in sentiment before price catches up. Typically Oscillator values below this shaded area, are underwater.
🔔 Alerts Included:
✅ Bullish CVD Signal: When momentum flips above zero and Z-Score is rising.
❌ Bearish CVD Signal: When momentum dips below zero and Z-Score is falling.
🎨 How to Read It:
Lime bars = Strong bullish breakout building
Green bars = Uptrend holding
Fuchsia bars = Strong bearish breakdown forming
Red bars = Downtrend continuing
Yellow line = Jurik signal MA (watch slope)
Blue area = Speed of change in momentum (Z-Score velocity)
🧪 Best Use Cases:
Spot early trend reversals powered by actual volume behavior.
Confirm or fade breakouts with real-time buyer/seller strength.
Pair with price action or divergence for high-conviction entries.
Use the Z-Score background highlight for potential exhaustion zones.
⚙️ Fully Customizable Inputs:
Input Description
CVD Range Periods Defines the lookback range for volume shifts
Fisher Smoothing Controls how reactive the Fisher transform is
Index Smoothing Smooths the Fisher output even further
Jurik MA Length Governs the adaptive smoothing of the signal line
📌 Final Word:
If you’re tired of laggy indicators or false signals in low-volume zones, Gabriel’s KusKus Starlight gives you true market intent—based on volume delta, not guesses. It's simple to read, surprisingly deep, and battle-tested.
Order Block & Trendline Breakout StrategyaiTrendview.com Order Block & Trendline Breakout Strategy: Complete Guide
Introduction
The Order Block & Trendline Breakout Strategy ("ORDER BLOCK ANALYSIS") is a comprehensive TradingView Pine Script indicator that combines institutional order flow, trend recognition, breakout logic, multi-factor signal filtering, and real-time analytics—all visualized through an ergonomic stats dashboard.
This guide provides a full overview, feature breakdown, best practices, and step-by-step use for discretionary and systematic traders.
Key Features
1. Order Block (OB) Detection
• Relevant Periods: Detects bullish and bearish order blocks using consecutive bars in the same direction, with user-defined relevance (OB Relevant Periods).
• Move Threshold: Validates OB only if the price moves by a minimum user-set percentage.
• Channel Management: Keeps the latest OB levels displayed, removing stale ones for clarity.
2. Trendline Breakout Logic
• Pivot-Based TLs: Draws support/resistance trendlines using pivots, with options to use candle wicks or bodies.
• Automatic Extension: Trendlines are extended a user-specified number of bars.
• Breakout Detection: Signals are triggered on actual breakout events relative to calculated dynamic trendlines.
3. Sophisticated Filtering
• Volume Filter: Requires large real-time volume (spike versus average) for valid signals.
• ATR (Volatility) Filter: Filters out false/weak signals by excluding those that occur during choppy, low-vol markets.
• Trend Confirmation: Only generates signals aligned with current EMA-defined trend.
4. Market Environment & Risk Stats
• RSI/MACD Analysis: Real-time calculation/classification augments bias and signal scoring.
• Bollinger Bands: Used for overbought/oversold context and stats dashboard.
• Support & Resistance: Rolling levels used for context in both trading decisions and dashboard.
• Volatility, Momentum, Price Position: Tracks environment, enabling informed discretionary action.
5. Trade Analytics & Management
• Automated Trade Targets: Calculates and plots take-profit (TP) and stop-loss (SL) levels per trade based on ATR and current price.
• PnL, Win%, Count: Tracks and displays statistics for live decision support.
6. Dynamic Dashboard Table
• On-Chart Visual Table: Horizontal dashboard displays all critical readings, status, and history in one row, minimizing chart clutter.
• Customizable Table Size: Choose between small, medium, normal, large, and extra large for optimal screen space usage.
• Flexible Placement: Instantly drag-and-drop the dashboard to any screen edge or corner (360 degrees) via selector.
• Visual Color Coding: Instantly spot bullish/bearish/neutral/safe/dangerous market states.
7. Pro Alerts System
• Automated Alerts: Ready-to-use TradingView alertconditions for new signals, targets hit, stop-losses, no-trade zones, and high-opportunity events.
Configuration and Inputs
Setting Purpose
OB Relevant Periods Number of candles for order block detection.
Min. Percent Move Minimum validated move for OB.
Number of OB Channels Maximum live OB levels plotted.
Trendline Period Lookback for trendline pivots.
Use Wicks for Trendlines Candle wicks vs. candle closes for pivots.
Extension Bars How far to project trends into the future.
Use Volume Filter Demand higher-than-normal volume for signals.
Volume Threshold Multiplier Sensitivity for volume spikes.
Use ATR Filter Filter signals by current volatility.
ATR Filter Multiplier Sensitivity for volatility filter.
Show Information Table Toggle dashboard display.
Show Targets Toggle plotting of TP/SL lines.
Bullish/Bearish Color Individual color themes for OBs and signals.
Dashboard Table Size Resize dashboard text.
Dashboard Table Position Select any of 9 chart locations for dashboard placement.
Dashboard Table Fields
The dashboard always displays, in a single horizontal row:
• LTP/Change%/Volume: Current price, price movement, and volume spike multiple.
• RSI/MACD: Overbought/oversold and momentum context (numeric and bar).
• Trend/Sentiment: EMA-stacked market direction and emotional sentiment composite.
• Volatility: Current volatility tier (high/medium/low).
• Buy OB/Sell OB: Nearest bullish or bearish order block levels.
• Signal: Current strategy signal: BUY / SELL / WAIT.
• Status: "ACTIVE" or "AVOID" based on no-trade logic.
• Support/Resistance: Key rolling price levels.
• Position: Where price stands (support, resistance, upper/lower/mid).
• Risk Level: Volatility-based risk assessment.
• R:R Ratio: Reward-to-risk of currently open setup.
• Win %: Real-time win rate for signal quality transparency.
• Total PnL: Sum of PnL across all trade signals.
• Momentum: Reading of current price momentum.
All numerical and risk status fields use color highlighting for easy scanning.
How to Analyze and Use This Strategy
1. Setup & Customization
• Add script to your TradingView chart and open indicator settings.
• Adjust periods, trendline, volume/ATR filters, and display according to your market and trading style.
• Set dashboard size for clarity and place it where it's least intrusive.
2. Understanding Dashboard Status
• Green highlight: Bullish edge or buy signal confirmed.
• Red highlight: Bearish edge or sell confirmed.
• Gray/yellow: Neutral or sideways conditions; reduce trading activity.
• Signal "WAIT": No new signals; allow market to develop.
• Status "AVOID": Market is non-ideal (consolidating, low vol/volume); only act on highest conviction setups or step away.
3. Acting on Signals
• BUY/SELL Alerts: Watch for table to show "BUY" or "SELL". Confirm all filters align (bullish OB or resistance break, bullish trend, volume spike, etc.).
• Check Dashboard Stats: Only act if risk, momentum, and environment suit your trading plan.
• Trade Management: On signal, use plotted TP (take-profit) and SL (stop-loss) lines or values provided in the table.
• PnL & Win Rate Tracking: Monitor your performance in real-time.
• Respect AVOID status: Reduce risk or skip trades entirely if the dashboard calls a "No Trade Zone".
4. Use Alertconditions for Automation
• Enable alerts for buy/sell confirmations or targets; consider sending real-time notifications to your device.
• Alerts fire only when all filters and logic are satisfied.
Advanced Tips
• Tune Filters: Harsher filters (higher volume/ATR) reduce noise but may drop some strong signals; find your best trade-off.
• Position Sizing: Use dashboard's risk evaluation for position sizing and capital allocation.
• Combine with Price Action: Use dashboard levels and stats to reinforce other technical or fundamental reads.
• Evaluate Win % and PnL: Use the built-in statistics to periodically review and adjust strategy.
• Use Dashboard Placement and Size: Adjust according to trading setup, monitor spacing, or on mobile/tablet for legibility.
Best Practices
• Validate on Historical Data: Check how the signal would have performed over several months and market regimes.
• Stay Disciplined: Only take trades when OB, trend, volume, volatility, and risk assessment all align.
• Monitor Session Changes: Be aware of volatility and volume changes during market opens, closes, or events—dashboard helps highlight these shifts.
• Continually Learn: Analyze why signals succeed or fail using Win %, PnL, and environment fields.
Conclusion
This indicator provides a robust, institutional-grade edge by merging price action-based order blocks and trendlines with statistical filtering and professional analytics. The fully configurable dashboard and automated alerts make it suitable for both advanced and aspiring traders seeking visual clarity and tactical precision.
Mastering this tool means not just following signals, but actively reading and adapting to the conditions the dashboard provides for every phase of the market.
Gold Grid Lines (Fixed)Indicator function details: Gold Grid Lines (Fixed)
🧭 Purpose:
The indexer is designed to help structure the price of a horizontal line (Grid) on a graph of gold or any asset.
To use as a psychological reference, round-trip trading, or watch price fluctuations at equal levels.
⸻
🧩 Key Script Functions
1. 🔲 Draw horizontal lines in a grid (Grid Lines) style
• Use the Base Price that you specify, e.g. 2000.0.
• Draw a line up and down from the middle price with the same distance (Stepper Line).
• The number of lines on each side is set (Lines Up/Down).
• The line draws only one time when the graph is opened, so that the graph does not slow down.
✏️ Example:
• Base Price = 2000.0
• Stepper Line = 1.0 → means 100 gold dots.
• Lines = 5 → Draw 5 upper and 5 lower lines
→ get a price tag of 1995, 1996, … , 2005
⸻
2. 📉 Draw the day's open price line (Daily Open Line)
• When entering a new day, the system records the open price of the first bar of the day.
• Draw a horizontal line as "Daily Open Line" to help traders see how prices opened that day.
• Ideal for analysis of "over-open/under-open" behavior (e.g. trend, selling/buying force)
SENTIMENTSENTIMENT Indicator – User Guide
Summary
The SENTIMENT indicator provides a quick visual reference for current and recent market sentiment. It compares the closing price to a custom sentiment value, which is the average of the 100-period (default) simple moving averages (SMA) of the high and low prices. The indicator displays this information in a color-coded table and plots the difference between price and sentiment as a line on your chart.
How to Use
1. Table Overview
The table appears on your chart in your chosen position.
It displays four rows: the current bar (“Now”) and the previous three bars (“Bar -1”, “Bar -2”, “Bar -3”).
Each row shows:
The bar label (The current bar is live and active, constantly changing)
The closing price for that bar
The difference between the closing price and the sentiment value for that bar
The sentiment difference is color-coded:
Green: Price is above sentiment (bullish)
Red: Price is below sentiment (bearish)
2. Chart Plot
The indicator plots a line showing the difference between the current price and the sentiment value.
When the line is above zero: price is above sentiment (bullish).
When the line is below zero: price is below sentiment (bearish).
3. Settings
Number of Lookback Bars: Adjusts the SMA period for sentiment calculation (default is 100).
Table Position: Choose where to display the table on your chart (e.g., Top Left, Bottom Right).
How to Interpret
Green values in the table or a plot above zero suggest bullish sentiment.
Red values in the table or a plot below zero suggest bearish sentiment.
Use this indicator to quickly assess if the market is trading above or below its recent average sentiment level.
Tips
You can combine the SENTIMENT indicator with other tools or signals for more robust trading decisions.
Adjust the lookback period to suit your trading timeframe and style.
aiTrendview.com Option Calculator📊 aiTrendview Option Calculator - Complete Feature Guide
🎯 Overview
The aiTrendview Option Calculator is a comprehensive, professional-grade options trading dashboard that integrates live market data with advanced Black-Scholes pricing models and intelligent strategy recommendations. It transforms complex options analysis into an intuitive, visual interface for both novice and professional traders.
________________________________________
🎛️ Dashboard Settings & Customization
________________________________________
📋 Option Inputs - The Foundation
Strike Price (105 in example)
• Function: The contract's exercise price
• Analysis Impact: Determines moneyness (ITM/OTM status)
• Risk Assessment: Affects delta, probability of profit, and breakeven calculations
• Strategy Selection: Critical for spread strategies and risk/reward optimization
Days to Expiry (30 in example)
• Function: Time until option expiration
• Analysis Impact: Drives time decay (theta) calculations
• Risk Assessment: More days = higher time value but slower decay
• Strategy Selection: Short-term strategies favor <30 days, long-term >45 days
Risk Free Rate (5% in example)
• Function: Current treasury rate for theoretical pricing
• Analysis Impact: Affects all Greeks calculations and fair value pricing
• Risk Assessment: Higher rates increase call values, decrease put values
• Strategy Selection: Impacts carry strategies and early exercise decisions
Implied Volatility (25% in example)
• Function: Market's expectation of future price movement
• Analysis Impact: Primary driver of option premium
• Risk Assessment: High IV = expensive options, low IV = cheap options
• Strategy Selection: Determines whether to buy or sell premium
Option Type (Call/Put)
• Function: Directional bias selection
• Analysis Impact: Reverses delta sign and profit zones
• Risk Assessment: Calls profit from upward moves, puts from downward moves
• Strategy Selection: Foundation for all directional and neutral strategies
________________________________________
📊 Live Market Data Integration
Real-Time Price Feed
• Current Underlying Price: Live market price with percentage change
• Volume Analysis: Current volume vs. 20-day average (shows as multiplier like "1.5x")
• Price Momentum: Tracks intraday price movements
• Volatility Assessment: Uses VIX data or ATR-based calculations
________________________________________
🔢 The Greeks - Risk Metrics
Delta (Price Sensitivity)
• Range: -1.00 to +1.00
• Call Delta: 0 to +1 (positive exposure)
• Put Delta: -1 to 0 (negative exposure)
• Trading Use: Hedge ratio, directional exposure measurement
• Progress Bar: Visual representation of sensitivity strength
Gamma (Delta Acceleration)
• Function: Rate of delta change
• Peak: Highest at-the-money
• Trading Use: Risk management for large moves
• Display: Multiplied by 1000 for readability
Theta (Time Decay)
• Function: Daily premium erosion
• Always Negative: For long positions
• Trading Use: Time-based strategy selection
• Critical: Accelerates in final 30 days
Vega (Volatility Sensitivity)
• Function: Premium change per 1% IV change
• Trading Use: Volatility play strategies
• Risk Management: IV crush protection
• Strategy Selection: Buy low IV, sell high IV
Rho (Interest Rate Sensitivity)
• Function: Premium change per 1% rate change
• Less Critical: For short-term options
• Important: For LEAPS and rate-sensitive underlyings
________________________________________
📈 Market Analysis Section
Sentiment Analysis
• Bullish: PCR < 0.8 (more calls than puts)
• Bearish: PCR > 1.2 (more puts than calls)
• Neutral: PCR 0.8-1.2 (balanced activity)
• Calculation: Based on volume ratio and RSI momentum
Volume Analysis
• Current vs. Average: Spots unusual activity
• Ratio Display: Shows volume multiplier (e.g., "2.3x normal")
• Trading Signal: High volume confirms moves, low volume suggests consolidation
Risk Level Assessment
• Low: IV < 25% (cheap options)
• Medium: IV 25-40% (fairly valued)
• High: IV > 40% (expensive options)
• Color Coded: Green/Yellow/Red for quick identification
________________________________________
⚡ Strategy Recommendation Engine
Intelligent Analysis
The calculator analyzes 6 core strategies based on current market conditions:
1. Long Call: Best for bullish sentiment + low IV
2. Short Put: Best for bullish sentiment + high IV
3. Long Put: Best for bearish sentiment + low IV
4. Bull Call Spread: Best for moderate bullish moves
5. Long Straddle: Best for high volatility expected + low IV
6. Iron Butterfly: Best for neutral sentiment + high IV + low expected move
Scoring System
• Confidence Score: 0-100% based on market conditions
• Color Coding: Green (80%+), Yellow (60-80%), Red (<60%)
• Dynamic Updates: Recalculates with every price change
________________________________________
📊 Progress Bar Visualizations
Delta Strength: Visual representation of directional exposure
Time Decay: Days remaining until expiration
IV Level: Current implied volatility relative to extremes
Volume Activity: Current volume vs. historical average
Profit Probability: Calculated odds of profitable outcome
________________________________________
🎯 How to Achieve Risk-Optimized Trading
Step 1: Market Analysis
1. Check Sentiment: Is market bullish, bearish, or neutral?
2. Assess IV Level: Are options cheap, fair, or expensive?
3. Volume Confirmation: Is there institutional interest?
4. Time Frame: How many days until expiration?
Step 2: Strategy Selection
The calculator automatically recommends the highest probability strategy based on:
• Current market sentiment
• IV environment
• Expected move percentage
• Time to expiration
• Risk/reward optimization
Step 3: Risk Management Setup
For Long Strategies (Buying Options)
• Best When: IV rank is low (green), high probability score
• Risk Control: Maximum loss is premium paid
• Time Management: Avoid last 2 weeks before expiration
• Profit Taking: Close at 50% profit or 25% time decay
For Short Strategies (Selling Options)
• Best When: IV rank is high (red), neutral sentiment
• Risk Control: Use defined risk spreads
• Time Advantage: Target last 45 days
• Profit Taking: Close at 50% max profit
For Neutral Strategies
• Best When: Low expected move + high IV
• Risk Management: Iron butterflies and condors
• Time Decay: Benefits from theta decay
• Adjustment: Have roll/adjust plan ready
Step 4: Execution Guidelines
High Confidence Trades (80%+ Score)
• Position Size: Standard risk allocation
• Entry: Immediate execution
• Management: Hold to target or 21 DTE
Medium Confidence Trades (60-80% Score)
• Position Size: Reduced allocation
• Entry: Wait for better setup or confirmation
• Management: Tighter profit/loss targets
Low Confidence Trades (<60% Score)
• Action: Avoid or wait for better conditions
• Alternative: Consider opposite strategy
• Patience: Wait for higher probability setup
________________________________________
🔍 Real-Time Risk Monitoring
Live Greeks Tracking
• Delta Neutral: Maintain overall portfolio delta near zero
• Gamma Risk: Monitor acceleration risk on large moves
• Theta Decay: Track daily time value erosion
• Vega Exposure: Hedge volatility risk when needed
Probability Metrics
• Profit Probability: Statistical odds of profitable outcome
• Expected Move: Price range for 68% probability
• Breakeven Analysis: Exact price needed for profitability
• Time Value: Separation of intrinsic vs. extrinsic value
________________________________________
💡 Professional Trading Tips
Market Environment Adaptation
• Low IV Environment: Buy straddles, strangles, long options
• High IV Environment: Sell premium, iron condors, credit spreads
• Trending Markets: Directional strategies with trend
• Range-Bound Markets: Neutral strategies, short premium
Risk Management Rules
1. Never risk more than 2% of capital per trade
2. Close losing trades at 2x premium received (short) or 50% loss (long)
3. Take profits at 50% of maximum potential
4. Avoid earnings announcements unless specifically trading volatility
5. Have exit plan before entry
________________________________________
🎯 Achieving "Risk-Free" Trading
While no trading is truly risk-free, the calculator helps minimize risk through:
High Probability Setups
• Only trade strategies with 70%+ confidence scores
• Confirm with multiple indicators (sentiment, IV, volume)
• Use proper position sizing
Statistical Edge
• Mean reversion strategies in extreme IV environments
• Time decay advantages in short premium strategies
• Probability-based position sizing
Risk Mitigation
• Defined risk strategies only
• Proper diversification across time and strikes
• Systematic profit taking and loss cutting
• Continuous monitoring and adjustment
________________________________________
📊 Dashboard Interpretation Guide
Green Signals (Go)
• High strategy confidence score
• Favorable IV environment for strategy
• Strong volume confirmation
• Clear directional bias
Yellow Signals (Caution)
• Medium confidence scores
• Mixed market signals
• Average volume activity
• Reduce position size
Red Signals (Stop)
• Low confidence scores
• Unfavorable conditions
• Low volume/poor liquidity
• Wait for better setup
________________________________________
The aiTrendview Option Calculator transforms complex options analysis into actionable trading intelligence, helping traders make informed decisions based on mathematical models, live market data, and statistical probabilities rather than emotions or guesswork.
NSE: N50, BN, MIDCP, FINNIFTY Gainers/Losers Jitendra
Title: NSE: N50, BN, MIDCP, FINNIFTY Gainers/Losers + Compact View by Jitendra
Purpose
Script Designed to Check Advance Decline Stocks of that Indices
It is Divided in to Two Part
1st part - Full Gainers/Losers Table:
Lists stock names and their daily percentage change.
2nd part - Compact Count Table:
Shows the number of gaining and losing stocks.
How To Use This Script
To Analysis NSE Indices :- Stocks Component You Can Easily Plot On chart or in 1 click Dropdown setting You can change Indices
Settings Detail
drive.google.com
Symbol Lists Defined:
The script uses array.from() to define these symbol groups:
highWeightList: Top 39 Nifty stocks by weightage.
lowWeightList: Remaining 11 Nifty stocks.
bankNiftyList: 12 Bank Nifty stocks.
finServList: 20 Financial Services index stocks.
midcapList: 25 selected Midcap stocks.
All Stock Used in Script is As per Latest Data Published by NSE, you can also check buy clicking below link
www.niftyindices.com
📤 Data Fetch Logic:
For each symbol in the selected list:
= request.security(sym, 'D', [close, close ])
This fetches today's close (c) and previous close (y) using request.security().
Percentage change:
chg = na(y) ? na : (c - y) / y * 100
Display Logic:
🧾 Full Table:
Shows columns: Script Name and % Change.
Lists each symbol with its daily % change.
Row text color changes based on whether % change is positive, negative, or neutral.
📌 Compact Count Table:
Displays total number of gainers and losers in the list.
Each count shown with respective color-coded background.
📎 Data Fetch Command Summary:
= request.security(sym, 'D', [close, close ])
Additional Settings
You can choose from 9 positions for each table:
Table Location Option Available
Text Size Option Available
f_getPos(posStr) =>
posStr == "Top Left" ? position.top_left :
posStr == "Top Center" ? position.top_center :
posStr == "Top Right" ? position.top_right :
posStr == "Middle Left" ? position.middle_left :
posStr == "Middle Center" ? position.middle_center :
posStr == "Middle Right" ? position.middle_right :
posStr == "Bottom Left" ? position.bottom_left :
posStr == "Bottom Center" ? position.bottom_center :
posStr == "Bottom Right" ? position.bottom_right :
position.top_right // default fallback
Thanks
SMC BOS Strategy for XAUUSDThis is a custom-built TradingView strategy that uses Smart Money Concept (SMC) logic to identify high-probability trend continuation and reversal entries based on Break of Structure (BOS) on XAUUSD. It is designed for traders looking to test institutional-style structure breaks with dynamic entry and risk-managed exits.
The strategy detects BOS using swing highs and lows, then enters trades based on price momentum (bullish or bearish candle confirmation). Each trade is automatically managed using a fixed stop loss in pips and a customizable risk-to-reward (RR) ratio. The goal is to backtest how BOS alone can drive clean directional entries, simulating Smart Money precision without repainting or false signals.
🔑 Key Features:
BOS-Based Entry Logic: Enters trades only after a valid break of structure (new higher high or lower low), signaling continuation from a Smart Money shift.
Momentum Filtered Entry: Requires candle confirmation to validate direction (e.g., bullish close after bullish BOS).
Full Backtest Engine: Built using strategy() functions, allowing you to test SL/TP performance and adjust position sizing.
Custom Risk Control: Adjust Stop Loss (in pips) and Target Profit using a flexible RR ratio (e.g. 1:2 or 1:3 setups).
Works Across Timeframes: Optimized for 15m, 1H, and 4H on XAUUSD, but works on any asset that respects structure.
⚙️ Settings:
Swing Sensitivity – Controls how strict pivot highs/lows are
Minimum Bar Spacing – Prevents overtrading after recent BOS
Stop Loss (in pips) – Fixed distance from entry
Risk/Reward Ratio – Multiplies SL for dynamic take-profit
Trade Direction – Supports both long and short with momentum
📊 How It Works:
Detects new structure break (BOS)
Confirms momentum with candle direction (close > open for long, close < open for short)
Triggers entry and sets TP/SL automatically
Logs results in the Strategy Tester for full backtest evaluation
📌 Optimized For:
XAUUSD (Gold)
Smart Money / SMC / ICT traders
Trend continuation + reversal structures
Backtest-focused strategy building
Institutional-level analysis
📎 Release Notes:
v1.0 – Initial release of BOS-only SMC strategy with full entry/exit simulation and strategy tester support.
⚠️ Disclaimer:
This strategy is built for educational and research purposes only. It is not a signal provider or financial advice. Always combine with your personal confirmation, confluence tools, and risk management.
SMC Structure Levels – BOS & CHoCH for XAUUSDThis is a custom-made TradingView indicator designed to visualize high-confidence market structure shifts based on Smart Money Concepts (SMC), focusing on Break of Structure (BOS) and Change of Character (CHoCH) points. The tool is optimized for XAUUSD but works across all major forex, crypto, and index markets.
It identifies key pivot points and filters them using both price distance and bar spacing, helping traders focus only on meaningful structural changes — not noisy signals. This makes it ideal for traders looking to track institutional-style price behavior with clarity.
🔑 Key Features:
Clean BOS & CHoCH Labels: The indicator plots “BOS” above candles when a structural break occurs in the trend direction, and “CHoCH” below candles when early signs of a reversal appear.
Spaced Signals: Only plots structure shifts that meet both time and price distance filters, preventing clutter and overplotting on the chart.
Swing-Based Logic: Built on pivot high/low analysis with adjustable sensitivity, ensuring flexible structure detection on any timeframe.
Fully Customizable: Modify:
Swing Sensitivity (number of bars before/after pivot)
Minimum bar spacing between BOS/CHoCH signals
Minimum price movement (in pips) between labels
Toggle BOS or CHoCH visibility individually
No Repainting: Once confirmed, signals remain fixed on the chart for historical review.
Zero Clutter: Unlike typical SMC tools that flood the chart, this indicator prioritizes clarity and signal quality.
🧠 What is BOS & CHoCH?
Break of Structure (BOS): Indicates continuation of the current market trend.
Change of Character (CHoCH): Suggests a potential early trend reversal or shift in momentum.
These tools are often used by Smart Money traders to mark significant turning points and trend confirmations.
⚙️ Use Cases:
Structural tracking in Smart Money Concepts (SMC)
Identifying trend continuation or early reversal
XAUUSD (Gold) swing and intraday analysis
Support for Order Blocks, Liquidity Grabs, and FVG confluence
Backtesting market structure break behavior
📌 Best Pairs:
XAUUSD (Gold)
Any asset where structure-based analysis is relevant
📎 Release Notes:
v1.0 – Initial release of BOS/CHoCH structure tool with spacing and pip-distance filtering for XAUUSD analysis.
⚠️ Disclaimer:
This indicator is built for educational and analytical purposes only. It does not constitute trading advice or guarantee profitable signals. Always use with a proper risk management strategy and confirm signals with additional confluence.
✅ This matches the exact quality and structure of the description you showed earlier.
Just copy this into your TradingView script page when publishing. If you'd like the next version with Order Blocks or FVG, say the word.
aiTrendview.com Volume Pressure Analysis - Live DataaiTrendview.com Volume Pressure Analysis – Detailed Guide
This indicator provides live, advanced volume pressure analytics directly on your TradingView chart. It visually gauges the balance between buy and sell volume, the pace and quality of current trading activity, and contextualizes intra-day action with customizable visuals and alerts.
Detailed Description & Segment Advantages
1. Inputs & Configuration
• Volume Average Days: Choose the period (default 20 days) for average volume calculation.
Advantage: Adapts to different trading styles (short-term vs. long-term).
• Show Volume Info: Toggles the display of detailed volume statistics.
Advantage: Enables a focused or minimalist interface as preferred.
• Pie Chart Settings: Set chart size (small to extra large) and on-screen position (top-left, bottom-right, etc.).
Advantage: Ensures the indicator does not obscure price data, usable on all device screens.
• Colors: Customize buy/sell/neutral colors, background, and text.
Advantage: Boosts readability; fits any chart theme.
• Advanced Settings:
o Update Frequency: 'Real-time' or 'On Bar Close' for performance tradeoff.
o Show Percentages: Toggle display of numerical percentages.
o Show Volume Pace: Show/hide intra-session volume progress.
o Animated Updates: Smoother visual transitions.
Advantage: Balances smoothness, information density, and system performance.
2. Volume Calculations
• Today's Volume & Average Volume:
Shows both today’s and the average daily volume (in millions).
Advantage: Lets you instantly spot unusual trading activity.
• Percent of Average Volume:
Today’s volume as a percentage of average.
Advantage: Quickly reveals if the current session is calm or unusually active—a key clue for breakouts or reversals.
3. Volume Pace Calculation
• Volume Pace:
Estimates if today’s volume is “On Pace”, “Above Pace”, or “Below Pace” for this time of day.
Advantage: Useful for real-time traders to catch surges before they’re visible in price.
4. Volume Pressure Calculation
• Buy/Sell Pressure:
Quantifies and color-codes the percentage of buy vs. sell-side volume.
If the session range is zero, values default to neutral (50/50).
Advantage: Shows whether buyers or sellers dominate the current candle in real-time.
• Market Bias & Strength Assessment:
Displays whether the market is bullish, bearish, or neutral, and if that pressure is weak, moderate, strong, or very strong.
Advantage: Quickly identifies high-conviction market phases versus indecision.
5. Dynamic Pie Chart & Table
• Pie Chart Representation:
Uses Unicode/block characters for visual bar or pie-style display; colors match pressure side.
Advantage: At-a-glance reading of trading pressure—no number crunching needed.
• Pressure, Volume, and Pace Together:
Table rows summarize everything: buy/sell pressure, market bias, data strength, daily/average volume, volume percent, and intra-day pace.
Advantage: Traders get a compact “control center” for all major volume signals.
6. Visual Enhancements
• Background Color Hints:
Chart background shifts green or red during dominant buy/sell phases.
Advantage: Immediate, non-disruptive clue to market mood.
7. Alerts
• Alerts fire when buy/sell pressure exceeds or crosses thresholds, or if volume pace significantly deviates up or down.
Advantage: Set-and-forget—receive notifications for sudden actionable changes even if you’re off-screen.
How is this Useful for Traders?
• Confirms Trend Strength: Use volume pace and pressure to validate (or doubt) breakout strength.
• Spots Early Reversals: Watch for sudden flips in buy/sell dominance ahead of price moves.
• Avoids Low-Conviction Trades: If volume is low or bias is weak, stand aside or size down.
• Adapts to Any Timeframe: Works intraday and on daily/weekly charts.
• Minimizes Analysis Time: Integrated pie chart and table means less time spent scanning multiple indicators.
Step-by-Step Instructions for New Traders
1. Add the Indicator to Your Chart
• Open TradingView, access the Pine Script editor, and paste the indicator code.
• Save and add it to your favorite symbol’s chart.
2. Configure for Your Needs
• Set Volume Average Days (e.g., 20 for swing trading, lower for day trading).
• Use settings to move or resize the indicator to avoid chart overlap.
• Adjust color options to match your chart theme for best clarity.
3. Read the Market at a Glance
• Buy/Sell Bars: More green means buyers are in control, more red means sellers dominate.
• Market Bias: Strong colors and words (BULLISH, BEARISH, NEUTRAL) tell you where pressure is headed and its conviction.
• Volume Data: High “Vol % of Avg” means strong participation; low suggests possible false moves.
4. Respond to Alerts
• Turn on TradingView alerts for sudden volume or pressure swings.
• Use these as heads-up for potential entries, exits, or to tighten stops.
5. Interpret “Volume Pace” (For Intraday Action)
• Above Pace: Session volume is building faster than normal—moves may have follow-through.
• Below Pace: Market is sluggish—be wary of breakouts or breakdowns.
6. Make Informed Trade Decisions
• Consider Long: When pressure is bullish, strength is “Strong” or higher, and volume % is above 100%.
• Consider Short: When pressure is bearish, strength is high, and above-average sell volume appears.
• Avoid/Wait: If indicator says “NEUTRAL” or volume pace/pressure is weak.
Table Example
Segment What it Shows How to Use for Trading
🟢 BUY 80% ████████ Buyers have 80% volume control Favor long/buy trades
🔴 SELL 20% ██ Sellers only 20% pressure Exit short positions, avoid shorts
Market Bias: BULLISH Market preference Trade with the bias
Strength: Strong Confidence of the move Consider larger position
Volume: 2.5M / 1.8M Today’s vs. average volume High = valid move, Low = caution
Vol % of Avg: 138% Participation above average Confirms trend reliability
Pace: +15% (Above) Intraday pace above norm Moves may extend further
Tips for Success
• Use as a confirmation tool alongside price action and trend indicators.
• Don’t rely solely on volume pressure—look for confluence.
• Start on higher timeframes to learn normal volume behavior, then move to lower ones.
• Review indicator signals after market close for learning and confidence building.
This indicator transforms raw volume into actionable insights, making a complex concept approachable and practical for new and experienced traders.
📊 aiTrendview.com Volume Pressure Gauge + Volume %📊 Volume Pressure Gauge + Volume % Indicator Guide
This Pine Script TradingView indicator visualizes both volume pressure (the balance of buying vs. selling activity) and the current day's trading volume compared to a moving average. It's designed to give traders an at-a-glance understanding of whether buyers or sellers are dominating and whether today's volume is significant relative to history.
Key Segments of the Indicator
1. Inputs Section
• SMA Length for Volume Avg: Lets you set the period (default 20) for the Simple Moving Average (SMA) used to calculate average volume.
• Show Volume Pie / Gauge: Toggle the visible display of the volume gauge table.
• Table Position (X & Y): Customize where the indicator’s table appears on your chart for maximum visibility.
Advantage:
Personalization ensures the tool is flexible for different trading styles and chart setups.
2. Volume Data Calculations
• Daily Volume (volToday): Pulls the most recent daily trading volume of the security.
• X-day Average Volume (volAvg): Averages the daily volume over your chosen period (commonly 20 days).
• Volume Percentage (volPct): Shows today’s volume as a percent of the recent X-day average.
Advantage:
Spot unusual surges or drops in trading activity immediately, which can signal the start of strong trends or reversals.
3. Volume Pressure Calculation
• Buy Pressure: Volume allocated to upward price movement.
• Sell Pressure: Volume allocated to downward price movement.
• Percent Buy/Sell: Converts pressure values into easy-to-read percentages.
Advantage:
Quickly identifies who controls the current session (bulls or bears), even before price confirms direction.
4. Visual Gauge with Pseudo-Bars
• Progress Bars: Uses block characters to visually represent the proportion of buying or selling pressure out of 20 units (maximum).
• Sell Bar (red): Number of red blocks = % Sell Pressure.
• Buy Bar (green): Number of green blocks = % Buy Pressure.
Advantage:
Visual feedback is instantly graspable— a longer green bar means buyers dominate, red means sellers dominate, saving time on analysis.
5. Table Display with Progress
• Header: “📊 Volume Pressure”.
• Rows:
o Sell Pressure % and visual bar.
o Buy Pressure % and visual bar.
o Volume % vs. average.
Advantage:
Summarizes truly actionable data in one compressed table—no need to scan multiple chart overlays or indicators.
How This Indicator Helps Traders
• Spot Momentum Shifts: Volume pressure pivots can indicate trend reversals before price.
• Validate Breakouts: Unusually high volume with strong buy or sell pressure confirms breakout credibility.
• Avoid False Moves: Low volume or mixed pressure warns of unreliable price swings.
• Market Context: Know if a day's trading is typical, abnormally active, or sluggish.
Step-by-Step Instructions for New Traders
1. Add to Chart
• Open your TradingView chart.
• Paste or select the indicator code.
• Choose your preferred SMA length (20 is standard for most stocks).
2. Configure Display
• Decide where you want the gauge (e.g., bottom right).
• Ensure “Show Volume Pie / Gauge” is enabled.
3. Interpret the Data
• Sell/Buy Pressure: More red blocks = sellers leading; more green blocks = buyers leading.
• Volume %:
o If above 100%, today's volume exceeds the recent average (trend may be stronger).
o Green % → Volume surge; Orange % → Normal/subdued volume.
4. Make Trading Decisions
• Potential Buy: High buy pressure + above-average volume.
• Potential Sell/Short: High sell pressure + above-average volume.
• Wait or Avoid: Low volume, no clear pressure; consider sitting out until conviction improves.
5. Combine with Other Tools
• This is a volume-based confirmation tool—use with price action, support/resistance, or trend indicators for best results.
Practical Example
Row What It Shows How to Use
Sell: 70% ████████ Sellers have 70% of pressure Look for short opportunities
Buy: 30% ███ Buyers have 30% of pressure Caution on long entries
Volume %: 120% Volume surge (120% of the average) Move may have conviction
Tips for Beginners
• Don’t trade exclusively on one indicator—combine signals for more reliable setups.
• Start with longer-term charts while learning (daily or 4h bars).
• Observe several examples to recognize how volume pressure patterns precede strong moves.
• Always use a stop loss—no indicator guarantees success.
This tool provides clear, actionable volume insight for new and experienced traders alike, making complex underlying behaviour much more accessible.
High-Mid-Low 200 Day and Buy Levels and labels
Volume-Scaled PVR with Dynamic Buy Levels (ETF investing Visual Aid)
Description
This indicator is designed primarily for exchange-traded fund (ETF) traders and investors who seek a broad, visual tool to assist in identifying favorable buy and sell regions based on key price levels in relation to High and Lows of the ETF.
Key Features
Lookback Reference Levels:
Automatically identifies and plots key price levels within a user-defined lookback period:
Period High: Highest price in the lookback window.
Period Low: Lowest price in the lookback window.
Mid-Line: Midpoint between the period high and low.
Detailed Percentage Labels:
Displays percentage distances from the current price to the period high, period low, and their respective most recent occurrences, along with bar-counts for context, allowing quick assessment of price positioning relative to significant recent highs and lows.
Dynamic Buy-Level Lines for Multiple ETFs:
Supports a configurable list of ETF tickers with predefined buy price levels. When charting one of these ETFs, a horizontal line and label mark the specified buy price level, serving as a visual reminder or guide for entries.
Lightweight and Visual:
Designed to overlay directly on price charts with minimal clutter, providing clean and insightful visual references to inform buy-low and sell-high decisions.
How It Helps You
Offers broad, contextual cues to guide "buy low, sell high" strategies on ETFs by visualizing:
Where price currently stands within recent high/low ranges.
Specific buy price levels personalized for tracked ETFs as a check before committing.
Flexible lookback parameters allow tuning sensitivity to your preferred timeframes and trading style.
Usage Notes
Customize the list of ETFs and associated buy prices within the script via arrays to suit your watchlist. (Make a working copy to update Arrays, ensure pair matching).
Best applied on daily or higher timeframes for clearer trend dynamics.
This is a visual aid and should be combined with your own analysis and risk management techniques and other standard/established indicators.
Confirmed Entry Grid Pro//@version=5
indicator("Confirmed Entry Grid Pro", overlay=true)
// === المتوسطات ===
ma9 = ta.sma(close, 9)
ma21 = ta.sma(close, 21)
ma200 = ta.sma(close, 200)
// === الاتجاه ===
trendBull = close > ma200
trendBear = close < ma200
// === الزخم ===
rsi = ta.rsi(close, 14)
rsiBull = rsi > 50
rsiBear = rsi < 50
// === الحجم ===
volMA = ta.sma(volume, 20)
volHigh = volume > volMA
// === شموع ابتلاعية ===
bullEngulf = close > open and open < close and close > open
bearEngulf = close < open and open > close and close < open
// === بولنجر باند ===
basis = ta.sma(close, 20)
dev = ta.stdev(close, 20)
upper = basis + 2 * dev
lower = basis - 2 * dev
bbBreakUp = close > upper
bbBreakDown = close < lower
// === دعم / مقاومة ديناميكية ===
support = ta.lowest(low, 20)
resistance = ta.highest(high, 20)
nearSupport = math.abs(close - support) / close < 0.015
nearResistance = math.abs(close - resistance) / close < 0.015
// === تقاطع المتوسطات ===
crossUp = ta.crossover(ma9, ma21)
crossDown = ta.crossunder(ma9, ma21)
// === ATR ===
atr = ta.atr(14)
atrActive = atr > ta.sma(atr, 14)
// === SMC: BOS + CHOCH ===
bosUp = high > high and low > low
bosDown = low < low and high < high
chochUp = close > high and close < high
chochDown = close < low and close > low
smcBuy = bosUp and chochUp
smcSell = bosDown and chochDown
// === مناطق السيولة ===
liqHigh = ta.highest(high, 30)
liqLow = ta.lowest(low, 30)
liquidityBuyZone = close < liqLow
liquiditySellZone = close > liqHigh
// === حساب النقاط لكل صفقة ===
buyScore = (trendBull ? 1 : 0) + (rsiBull ? 1 : 0) + (volHigh ? 1 : 0) + (bullEngulf ? 1 : 0) + (smcBuy ? 1 : 0) + (bbBreakUp ? 1 : 0) + (nearSupport ? 1 : 0) + (crossUp ? 1 : 0) + (atrActive ? 1 : 0) + (liquidityBuyZone ? 1 : 0)
sellScore = (trendBear ? 1 : 0) + (rsiBear ? 1 : 0) + (volHigh ? 1 : 0) + (bearEngulf ? 1 : 0) + (smcSell ? 1 : 0) + (bbBreakDown ? 1 : 0) + (nearResistance ? 1 : 0) + (crossDown ? 1 : 0) + (atrActive ? 1 : 0) + (liquiditySellZone ? 1 : 0)
// === شروط الإشارات مع منع التكرار خلال آخر 5 شموع ===
var int lastBuyBar = na
var int lastSellBar = na
canBuy = buyScore >= 5 and (na(lastBuyBar) or bar_index - lastBuyBar > 5)
canSell = sellScore >= 5 and (na(lastSellBar) or bar_index - lastSellBar > 5)
if canBuy
lastBuyBar := bar_index
if canSell
lastSellBar := bar_index
showBuy = canBuy
showSell = canSell
// === طول الخطوط ===
var int lineLen = 5
// === رسم الإشارات ===
plotshape(showBuy, title="BUY", location=location.belowbar, style=shape.triangleup, size=size.small, color=color.green)
plotshape(showSell, title="SELL", location=location.abovebar, style=shape.triangledown, size=size.small, color=color.red)
// === خطوط الصفقة ===
var line buyLines = array.new_line(0)
var line sellLines = array.new_line(0)
if (showBuy)
entry = low
label.new(bar_index, entry, "Entry " + str.tostring(entry, format.mintick), style=label.style_label_left, textcolor=color.white, size=size.normal)
tpLevels = array.new_float(5)
array.set(tpLevels, 0, 0.618)
array.set(tpLevels, 1, 1.0)
array.set(tpLevels, 2, 1.272)
array.set(tpLevels, 3, 1.618)
array.set(tpLevels, 4, 2.0)
slLevel = -0.618
for i = 0 to 4
fibLabel = "TP" + str.tostring(i + 1) + " - Fib " + str.tostring(array.get(tpLevels, i))
tp = entry + array.get(tpLevels, i) * atr
line = line.new(bar_index, tp, bar_index + lineLen, tp, color=color.green)
label.new(bar_index + lineLen, tp, fibLabel + " (TP" + str.tostring(i + 1) + ") " + str.tostring(tp, format.mintick), style=label.style_label_right, textcolor=color.lime, size=size.normal)
array.push(buyLines, line)
sl = entry + slLevel * atr
slLine = line.new(bar_index, sl, bar_index + lineLen, sl, color=color.red)
label.new(bar_index + lineLen, sl, "SL " + str.tostring(sl, format.mintick), style=label.style_label_right, textcolor=color.red, size=size.normal)
array.push(buyLines, slLine)
if (showSell)
entry = high
label.new(bar_index, entry, "Entry " + str.tostring(entry, format.mintick), style=label.style_label_left, textcolor=color.white, size=size.normal)
tpLevels = array.new_float(5)
array.set(tpLevels, 0, -0.618)
array.set(tpLevels, 1, -1.0)
array.set(tpLevels, 2, -1.272)
array.set(tpLevels, 3, -1.618)
array.set(tpLevels, 4, -2.0)
slLevel = 0.618
for i = 0 to 4
fibLabel = "TP" + str.tostring(i + 1) + " - Fib " + str.tostring(math.abs(array.get(tpLevels, i)))
tp = entry + array.get(tpLevels, i) * atr
line = line.new(bar_index, tp, bar_index + lineLen, tp, color=color.green)
label.new(bar_index + lineLen, tp, fibLabel + " (TP" + str.tostring(i + 1) + ") " + str.tostring(tp, format.mintick), style=label.style_label_right, textcolor=color.green, size=size.normal)
array.push(sellLines, line)
sl = entry + slLevel * atr
slLine = line.new(bar_index, sl, bar_index + lineLen, sl, color=color.red)
label.new(bar_index + lineLen, sl, "SL " + str.tostring(sl, format.mintick), style=label.style_label_right, textcolor=color.red, size=size.normal)
array.push(sellLines, slLine)
// === متابعة نتائج الصفقة ===
// تحقق نجاح الصفقة (وصل أول TP)
buyHitTP = showBuy and high >= low + 0.618 * atr
sellHitTP = showSell and low <= high - 0.618 * atr
// تحقق فشل الصفقة (ضرب SL)
buyHitSL = showBuy and low <= low - 0.618 * atr
sellHitSL = showSell and high >= high + 0.618 * atr
// رسم الإشارة
plotshape(buyHitTP, title="Buy Success", style=shape.labelup, location=location.abovebar, color=color.green, size=size.small)
plotshape(sellHitTP, title="Sell Success", style=shape.labelup, location=location.abovebar, color=color.green, size=size.small)
plotshape(buyHitSL, title="Buy Failed", style=shape.labeldown, location=location.abovebar, color=color.red, size=size.small)
plotshape(sellHitSL, title="Sell Failed", style=shape.labeldown, location=location.abovebar, color=color.red, size=size.small)
Anomalías en Rendimientos LogarítmicosLogarithmic Returns Anomalies
This indicator detects unusual or extreme movements in the logarithmic returns of price data, helping to identify atypical market events.
It calculates the moving average and standard deviation of logarithmic returns over a configurable period, and visually highlights when the return deviates significantly from the average using thresholds based on multiples of the standard deviation.
Features:
Identifies high and low anomalies in logarithmic returns.
Clear visualization with lines for the mean and upper/lower thresholds.
Circle markers highlight anomalies in a separate pane.
Customizable parameters to adjust indicator sensitivity.
Ideal for quantitative traders and technical analysts looking to spot sharp changes or unusual behavior in financial assets.
Confirmed Entry Grid Pro//@version=5
indicator("Confirmed Entry Grid Pro", overlay=true)
// === المتوسطات ===
ma9 = ta.sma(close, 9)
ma21 = ta.sma(close, 21)
ma200 = ta.sma(close, 200)
// === الاتجاه ===
trendBull = close > ma200
trendBear = close < ma200
// === الزخم ===
rsi = ta.rsi(close, 14)
rsiBull = rsi > 50
rsiBear = rsi < 50
// === الحجم ===
volMA = ta.sma(volume, 20)
volHigh = volume > volMA
// === شموع ابتلاعية ===
bullEngulf = close > open and open < close and close > open
bearEngulf = close < open and open > close and close < open
// === بولنجر باند ===
basis = ta.sma(close, 20)
dev = ta.stdev(close, 20)
upper = basis + 2 * dev
lower = basis - 2 * dev
bbBreakUp = close > upper
bbBreakDown = close < lower
// === دعم / مقاومة ديناميكية ===
support = ta.lowest(low, 20)
resistance = ta.highest(high, 20)
nearSupport = math.abs(close - support) / close < 0.015
nearResistance = math.abs(close - resistance) / close < 0.015
// === تقاطع المتوسطات ===
crossUp = ta.crossover(ma9, ma21)
crossDown = ta.crossunder(ma9, ma21)
// === ATR ===
atr = ta.atr(14)
atrActive = atr > ta.sma(atr, 14)
// === SMC: BOS + CHOCH ===
bosUp = high > high and low > low
bosDown = low < low and high < high
chochUp = close > high and close < high
chochDown = close < low and close > low
smcBuy = bosUp and chochUp
smcSell = bosDown and chochDown
// === مناطق السيولة ===
liqHigh = ta.highest(high, 30)
liqLow = ta.lowest(low, 30)
liquidityBuyZone = close < liqLow
liquiditySellZone = close > liqHigh
// === حساب النقاط لكل صفقة ===
buyScore = (trendBull ? 1 : 0) + (rsiBull ? 1 : 0) + (volHigh ? 1 : 0) + (bullEngulf ? 1 : 0) + (smcBuy ? 1 : 0) + (bbBreakUp ? 1 : 0) + (nearSupport ? 1 : 0) + (crossUp ? 1 : 0) + (atrActive ? 1 : 0) + (liquidityBuyZone ? 1 : 0)
sellScore = (trendBear ? 1 : 0) + (rsiBear ? 1 : 0) + (volHigh ? 1 : 0) + (bearEngulf ? 1 : 0) + (smcSell ? 1 : 0) + (bbBreakDown ? 1 : 0) + (nearResistance ? 1 : 0) + (crossDown ? 1 : 0) + (atrActive ? 1 : 0) + (liquiditySellZone ? 1 : 0)
// === شروط الإشارات مع منع التكرار خلال آخر 5 شموع ===
var int lastBuyBar = na
var int lastSellBar = na
canBuy = buyScore >= 5 and (na(lastBuyBar) or bar_index - lastBuyBar > 5)
canSell = sellScore >= 5 and (na(lastSellBar) or bar_index - lastSellBar > 5)
if canBuy
lastBuyBar := bar_index
if canSell
lastSellBar := bar_index
showBuy = canBuy
showSell = canSell
// === طول الخطوط ===
var int lineLen = 5
// === رسم الإشارات ===
plotshape(showBuy, title="BUY", location=location.belowbar, style=shape.triangleup, size=size.small, color=color.green)
plotshape(showSell, title="SELL", location=location.abovebar, style=shape.triangledown, size=size.small, color=color.red)
// === خطوط الصفقة ===
var line buyLines = array.new_line(0)
var line sellLines = array.new_line(0)
if (showBuy)
entry = low
tpLevels = array.new_float(5)
array.set(tpLevels, 0, 0.618)
array.set(tpLevels, 1, 1.0)
array.set(tpLevels, 2, 1.272)
array.set(tpLevels, 3, 1.618)
array.set(tpLevels, 4, 2.0)
slLevel = -0.618
for i = 0 to 4
tp = entry + array.get(tpLevels, i) * atr
line = line.new(bar_index, tp, bar_index + lineLen, tp, color=color.green)
array.push(buyLines, line)
sl = entry + slLevel * atr
slLine = line.new(bar_index, sl, bar_index + lineLen, sl, color=color.red)
array.push(buyLines, slLine)
if (showSell)
entry = high
tpLevels = array.new_float(5)
array.set(tpLevels, 0, -0.618)
array.set(tpLevels, 1, -1.0)
array.set(tpLevels, 2, -1.272)
array.set(tpLevels, 3, -1.618)
array.set(tpLevels, 4, -2.0)
slLevel = 0.618
for i = 0 to 4
tp = entry + array.get(tpLevels, i) * atr
line = line.new(bar_index, tp, bar_index + lineLen, tp, color=color.green)
array.push(sellLines, line)
sl = entry + slLevel * atr
slLine = line.new(bar_index, sl, bar_index + lineLen, sl, color=color.red)
array.push(sellLines, slLine)
// === نسبة المخاطرة ===
label.new(bar_index, showBuy ? low : na, "Risk: 38.2%", style=label.style_label_left, textcolor=color.white, size=size.tiny, color=color.gray)
label.new(bar_index, showSell ? high : na, "Risk: 38.2%", style=label.style_label_left, textcolor=color.white, size=size.tiny, color=color.gray)
ICT Unicorn Strategy [RoboQuant]Baseline Calculation –
• A «period‑length» «moving average / VWAP / Donchian midline» establishes directional bias.
Momentum Layer –
• A «RSI / MACD histogram / custom oscillator» gauges buying vs. selling pressure.
Signal Generation –
• A long/short arrow prints when both:
Price closes «above / below» the baseline, and
Momentum crosses «+/- zero line / threshold X».
• Color‑coded background highlights confirmed trends; gray background warns of chop.
Day Trading Buy/Sell (EMA+RSI+VWAP)This is designed for quick day trading signals but still filters out some noise.
Force Acheteurs vs VendeursRSI Money Flow and Obv. Working like an RSI so above 70 it's buyers who control the flow and below 30 it's the seller.
MA Crossover with Dots📘 Strategy Description – Moving Average Crossover with Dot Signals
This indicator is based on a Simple Moving Average (SMA) crossover strategy, which is a classic method to identify trend changes and potential buy/sell signals in the market.
📊 Core Logic:
It calculates two SMAs:
Fast SMA: 20-period moving average (short-term trend)
Slow SMA: 50-period moving average (longer-term trend)
✅ Buy Signal (Green Dot):
When the Fast SMA crosses above the Slow SMA, a Buy signal is generated.
This suggests bullish momentum or the start of an uptrend.
❌ Sell Signal (Red Dot):
When the Fast SMA crosses below the Slow SMA, a Sell signal is generated.
This suggests bearish momentum or the start of a downtrend.
📍 Visual Representation:
The Buy and Sell signals are plotted as colored dots at different levels:
Green dot = Buy
Red dot = Sell
The dots are plotted at fixed vertical positions in a separate panel below the chart for better clarity and to avoid overlap.
FG_Index v1.5.3 Pro (Multi-Asset Time4H) === FG_Index 4H Sentiment Indicator ===
// 多品种4小时情绪评分指标,适用于黄金、比特币、美股、原油等。
// 分数范围 0~100:
// - score > 70:贪婪,考虑减仓
// - score < 30:恐慌,关注低吸
// - score > 80:极度贪婪,注意风险
// - score < 20:极度恐慌,可能超卖
// 建议搭配趋势/结构指标一起使用
// 图表自动显示主因子解释,辅助判断情绪来源
//
// === English Usage ===
// FG_Index is a 4H sentiment score indicator for multi-assets (Gold, BTC, SPX, Oil, etc.).
// Score scale: 0–100
// - score > 70: Greed – consider reducing positions
// - score < 30: Fear – potential buy zone
// - score > 80: Extreme greed – risk warning
// - score < 20: Extreme fear – may be oversold
// Recommended to use with trend/structure filters
// Top factor contributions are displayed on chart
RSI CONPECT - GBPUSDToday, I will share with you about the Relative Strength Index (RSI) and its value range, which is displayed relatively for the GBPUSD currency pair on the chart. This helps us anticipate which support level the price will retrace to and which resistance level it will reach to exit the entry.
HDJ Multi-Divergence Trend Indicator(MACD/RSI/OBV/VOL)HDJ Indicator is named after the initials of the Chinese name of its author. The HDJ Indicator features powerful automatic detection of multi-indicator divergences (MACD/RSI/OBV/VOL) and includes multi-timeframe resonance recognition for identifying bullish and bearish trends.
The HDJ Indicator’s view consists of three main lines:
· Price Line (Closing Price, Green/Red)
· VWAP Line (Yellow)
· EMA200 Line (Blue)
The RSI value is displayed in real-time at the top-right corner of the indicator’s view.
Usage Guide :
1. Bottom Divergence / Top Divergence
Bottom Divergence Signal : Typically appears below the Price Line (Closing Price, Red), marked with a triangle symbol (△) and the name of the diverging indicator (in Green). The △ symbol corresponds to the candlestick’s position.
Top Divergence Signal : Typically appears above the Price Line (Closing Price, Green), marked with a triangle symbol (△) and the name of the diverging indicator (in Red). The △ symbol corresponds to the candlestick’s position.
Note: A divergence signal will only be displayed if two or more indicators show divergence simultaneously. Single-indicator divergences will not trigger a marker.
2. Bull / Bear Trend
Bull Trend : When the MACD Line and Signal Line of the MACD indicator are above the zero line on the 1-minute, 5-minute, 15-minute, and 1-hour timeframes, and the current timeframe’s MACD Line crosses above the Signal Line (while also above the zero line), and the current closing price is above both VWAP and EMA200, a "×" symbol with a green "Bull Trend" label will appear. The × symbol corresponds to the candlestick’s position.
Bear Trend : When the MACD Line and Signal Line of the MACD indicator are below the zero line on the 1-minute, 5-minute, 15-minute, and 1-hour timeframes, and the current timeframe’s MACD Line crosses below the Signal Line (while also below the zero line), and the current closing price is below both VWAP and EMA200, a "×" symbol with a red "Bear Trend" label will appear. The × symbol corresponds to the candlestick’s position.
3. RSI
· RSI < 30: Displayed in Red.
· RSI ≥ 30: Displayed in Green.
中文版:
HDJ指标采用了编写该指标的本作者的中文名字首字母为命名,HDJ指标有着强大的自动识别多重指标背离的功能(MACD/RSI/OBV/VOL),同时还带了多周期共振识别看涨、看跌趋势的功能。HDJ指标视图中主要由3条线组成, 分别是 价格线(收盘价, 绿色/红色)、VWAP线(黄色)、EMA200线(蓝色), 指标视图右上角实时显示的是RSI指标值。
使用方法:
1. 底背离 / 顶背离
- 底背离信号: 一般出现在 价格线(收盘价, 红色) 的下方, 三角形符号(△)+背离的指标名称作标记(绿色), △符号对应的是K线的坐标。
- 顶背离信号: 一般出现在 价格线(收盘价, 绿色) 的上方, 三角形符号(△)+背离的指标名称作标记(红色), △符号对应的是K线的坐标。
* 注意:单个指标背离不会被触发背离标记符号显示,仅显示两个指标以上的同时背离信号标记。
2. Bull / Bear 趋势
- Bull Trend:当 1分钟、5分钟、15分钟、1小时视图MACD指标的MACD线、Single线都在0轴上方时,并且HDJ指标所在当前周期MACD指标的MACD线上穿了Single线, 同时也在MACD指标0轴上方和当前周期的价格(收盘价)大于VWAP、EMA200, 此时会显示×符号带"Bull Trend"绿色标签的信号标记,×符号对应的是K线的坐标。
- Bear Trend: 当 1分钟、5分钟、15分钟、1小时视图MACD指标的MACD线、Single线都在0轴下方时,并且HDJ指标所在当前周期MACD指标的MACD线下穿了Single线, 同时也在MACD指标0轴下方和当前周期的价格(收盘价)小于VWAP、EMA200, 此时会显示×符号带"Bear Trend"红色标签的信号标记,×符号对应的是K线的坐标。
3. RSI
- RSI值 < 30 时显示红色,RSI值 >= 30 时显示绿色。