EMAs + VWAP + SMADaytrade Dream:
5 EMAs
1SMA
VWAP
This script is used to plot on the chart:
5 EMAS:
10,20,50,100 and 200
VWAP:
White Vwap line
1 SMA:
200 SMA
Penunjuk dan strategi
MACD + Stochastic Power Scalper Version 4.0Stochastic RSI + MACD Scalper. Works for Crypto Futures pairs across multiple timeframes.
EMA Ribbon with TableThis indicator plots multiple EMAs (5, 8, 13, 21, 34, 55, 89, 144, 233, 377) based on Fibonacci levels. Each line has a distinct color, and a clean table displays their real-time values. Great for spotting trend direction, crossovers, and momentum at a glance.
RSI with Williams %R Coloringsimple fusion of RSI to seek divergence and williams % R coloring to see overbought/oversold price.
not my own work, just merely took two standard indicators and infused them.
(EMA/KAMA/Kijun)EMA/KAMA/Kijun with background is a versatile trend-detection indicator that allows users to choose between three types of moving averages:
EMA (Exponential Moving Average)
KAMA (Kaufman Adaptive Moving Average)
Kijun-sen (from the Ichimoku system)
The indicator automatically detects trend shifts based on candlestick interactions with the selected MA line, and visually reflects the current trend direction using dynamic background coloring. Its goal is to help traders quickly interpret trend strength and direction—without relying on multiple indicators.
How it works
The indicator follows this logic to detect bullish and bearish conditions:
Bullish signal (green trend):
When the candle closes above the selected MA and both the open and close are above the MA, a bullish trend is signaled and the chart background turns green.
Bearish signal (red trend):
When the candle closes below the MA and both the open and close are below it, a bearish trend is triggered and the background turns red.
The background color remains until an opposite signal appears, ensuring a consistent visual representation of the current trend phase.
What it does and why it’s useful
Unlike standard moving average indicators that only plot lines, KINSKI Flexi Trend MA provides:
Flexibility to switch between different MA types (EMA, KAMA, or Kijun), allowing users to adapt it to various market environments.
Visual context via background color that enhances clarity—even when scanning multiple charts or working across timeframes.
KAMA uses fixed internal parameters (fast=2, slow=30) to provide a responsive, noise-filtering MA line.
Kijun-sen is calculated as the midpoint between the highest high and lowest low over a user-defined period, similar to its role in Ichimoku.
This combination of visual clarity and analytical flexibility makes the indicator highly suitable for:
Trend-following strategies
Breakout confirmation
Scalping (on lower timeframes)
Swing trading
How to use it
Select the MA type from the dropdown:
EMA (standard exponential moving average)
KAMA (adaptive smoothing)
Kijun-sen (Ichimoku mid-line)
Adjust the MA length depending on your trading style or timeframe:
e.g., EMA 50 for medium-term trend, Kijun 9 for faster signals.
Observe the background color:
Green → bullish trend in progress.
Red → bearish trend in progress.
Background color change may serve as an entry or exit confirmation.
Volume Labels BABYBOTVolume labels babybot spwan for use with 1 min breakout volume candles OKLO NFLX ASML HIMS
Seasonality Seasonality chart showing accurate monthly average % gains and win rate over a user defined time period.
The chart displays the possible pattern of price moves over the year and aligns with the start of the current year, projecting into the future.
Works on both calendar day and trading day charts. Not suitable for other timeframes.
aiTrendview.com Trading Dashboard with Volume AnalysisaiTrendview.com Trading Dashboard with Volume Analysis – Comprehensive Guide
The aiTrendview.com Trading Dashboard is a sophisticated multi-factor trading overlay for TradingView designed to streamline technical analysis for all trader levels. It integrates price action signals, real-time volume analytics, position/profit management, and momentum cues—all in a single, visually rich dashboard table.
Indicator Overview & Detailed Segment Advantages
1. Dashboard Settings
• Table Position & Size:
Place the dashboard wherever it's most visible (top/middle/bottom/left/center/right) and size it for your viewing comfort.
Advantage: Ensures unintrusive, clear access to actionable insights regardless of device or workspace setup.
• Show Brand:
Toggle branding to keep the dashboard minimal or visibly sourced for team environments.
Advantage: Personal or professional customization.
2. Volume Analysis
• Volume Average Days (Default: 20):
Sets the lookback period for volume averages, aligning analytics with your trading timeframe.
Advantage: Adaptable for short-term, swing, or position trading.
• Show Volume Details:
Displays metrics like today's vs. average volume and buy/sell ratios.
Advantage: Instantly spot unusual activity or volume spikes tied to big moves—crucial for spotting valid breakouts or breakdowns.
• Show Volume Pace:
Reveals how current volume tracks versus expected pace for the session.
Advantage: Supports intraday traders in catching momentum surges early.
3. Trading Signal Settings
• RSI & Supertrend Configuration:
Set lengths and sensitivity for two of the most popular trading indicators (RSI and Supertrend).
Advantage: Fine-tune signals for your asset and timeframe for more accurate entries/exits.
4. Color Settings
Customize all visual cues, from header backgrounds to buy/sell pressure and profit signals.
Advantage: Personalized shades maximize readability and reduce cognitive load, especially in multi-indicator setups.
Core Analytical Segments of the Dashboard
Segment Shows... Trading Value
SIGNALS Real-time "BUY", "SELL", "BULLISH", or "BEARISH" status Entry/exit & directional bias at a glance
MOMENTUM Momentum strength (Bullish, Bearish, Neutral) via RSI + price Gauge conviction behind price moves
POSITION ACTIVE/INACTIVE tracker for sample trade logic Monitor mock/real positions
PROFIT % return since notional entry Quick profit/loss assessment
VOLUME % Buy vs. Sell ratio Who dominates—bulls or bears?
PRESSURE Graphical gauge (🟢/🔴 icons) showing volume pressure balance Immediate view of pressure trends
LEVELS Confirmed entry price & key support/resistance from Supertrend Entry/stop/trailing logic
STATUS Position to previous day close (Bullish/Bearish/Neutral) Daily context for overall trend
Further secondary labels describe entry averages, RSI value, book action (take profit/hold/stop loss), trailing stop, volume pace, buy/sell percentages, supertrend direction, and symbol—all intuitive for real-time review.
5. Signal & Trading Logic
• Buy Signal:
Fires when price crosses above supertrend and RSI <70—suggests bullish entry.
• Sell Signal:
Fires when price crosses below supertrend and RSI >30—suggests bearish entry.
• Automatic Position/Profit Tracking:
Illustrates entry price, calculates % profit, and suggests book actions (Take Profit, Partial, Stop Loss, Hold).
Advantage: Reduces emotional decisions and supports disciplined, systematic trading.
6. Volume & Pressure Gauges
• Buy/Sell Pressure:
Calculates and visually displays active buying/selling force as a % plus colored markers.
Advantage: Quickly tells you if buyers or sellers are dominating the session and lets you avoid weak, low-conviction environments.
• Volume Pace:
Shows whether session volume is "Above Pace," "Below Pace," or "On Pace" relative to expectations for that time of day.
Advantage: Vital for momentum or breakout traders looking for early confirmation.
7. Visual Enhancements
• Dynamic Background Coloring:
Light green/red overlay hints when bulls/bears are in clean control.
Advantage: Instant situational awareness without searching for a number.
• Buy/Sell Signal Plotting:
Arrow markers on the chart for clear entry/exit timings.
• Supertrend Line:
Visual stop/confirmation for trending trades.
8. Real-Time Alerts
• Built-in conditions to alert on:
o Buy/Sell signals.
o Extremely strong buy/sell pressure.
o Volume pace spikes/drops.
Advantage: You’re never late to market changes, even if you’re not watching every candle.
Step-by-Step Instructions for New Traders
Step 1: Add the Indicator
• Go to TradingView, open the Pine Script editor, paste the code, and add to chart.
Step 2: Dashboard Customization
• Choose preferred dashboard placement and size for comfortable viewing.
• Select color and branding options.
Step 3: Volume Analysis Setup
• Set "Volume Average Days" in line with your trading style (shorter for day trades, longer for swing/position).
• Enable "Show Volume Details" for enhanced insight.
• Turn on "Show Volume Pace" especially for intraday monitoring.
Step 4: Signal Calibration
• Choose your RSI and Supertrend parameters based on asset volatility and your timeframe.
Step 5: Read & React to Signals
• Signals Section: Look for "BUY" or "SELL" cues in green/red.
• Momentum: Use as confidence check for entries/exits.
• Volume, Pressure: Favor trades with high buy/sell ratio and strong pressure matches.
• Profit, Book Action: Reference for possible profit-taking or loss mitigation.
Step 6: Trade & Manage Risk
• Use entry/stop/target cues from LEVELS and TRAILING SL columns.
• Adjust trade size and stops when momentum and volume strongly confirm each other.
Step 7: Use Alerts & Review
• Set alerts for key events so you’re notified of major moves.
• Review dashboard data after each session to learn from outcomes and strengthen your strategy.
Practical Dashboard Example
Segment Example Value What It Means/How to Use
SIGNALS BUY Consider opening a long position
MOMENTUM BULLISH Confirms long trade bias
POSITION ACTIVE Mock/real long position is on
PROFIT 3.20% Profit exceeds 2%—ready for partial book
VOLUME 66.2% Buy Buyers are in clear control
PRESSURE 🟢🟢🟢🟢🟢🔴🔴 Green > red, strong bull pressure
LEVELS 544.80 (entry) Use for stop/target planning
STATUS Bullish Today > prev. day’s close, upward bias
Tips for Beginners
• Always combine dashboard insights with chart support/resistance and price action analysis.
• Avoid trading when dashboard shows mixed/neutral readings—look for confluence.
• Start with demo trades to build dashboard reading skills and strengthen decision-making routines.
• Use alerts to stay responsive, but don’t act blindly—always apply risk controls.
This dashboard unites vital trade signals, volume analytics, and risk tools in one seamless, customizable display—making professional analysis accessible for traders at any level.
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.
aiTrendview.com Professional Technical Analysis Dashboard📊 Professional Technical Analysis Dashboard - Complete Guide
🎯 Overview
This is a comprehensive, institutional-grade technical analysis dashboard that combines multiple proven indicators into a single, visually stunning interface. It provides real-time market sentiment analysis through three critical categories: Summary, Oscillators, and Moving Averages, all displayed in a professional royal blue and white theme with intuitive progress indicators.
________________________________________
🔬 Technical Foundation & Methodology
📈 Summary Section - The Master Signal
The Summary section is the crown jewel of this dashboard, combining all 16 individual indicators into one powerful, unified signal.
What It Does:
• Aggregates 16 Technical Indicators: Combines 8 oscillators + 8 moving averages
• Weighted Scoring System: Each indicator contributes equally to the final score
• Real-Time Analysis: Updates with every bar close for current market conditions
• Universal Compatibility: Works on any symbol (stocks, forex, crypto, commodities)
How It Works:
Summary Score = Oscillator Signals + Moving Average Signals
Range: -16 to +16
├── Strong Buy: +6 to +16 (Green)
├── Buy: +2 to +5 (Light Green)
├── Neutral: -1 to +1 (Gray)
├── Sell: -5 to -2 (Light Red)
└── Strong Sell: -16 to -6 (Red)
Trading Advantages:
✅ Quick Decision Making: One glance tells you market sentiment
✅ Reduces Analysis Paralysis: No need to check 16 indicators individually
✅ Higher Accuracy: Multiple confirmations reduce false signals
✅ Risk Management: Clear zones help position sizing decisions
✅ Time Efficient: Perfect for busy traders managing multiple positions
When To Use Summary:
• Entry Decisions: Strong Buy/Sell signals for new positions
• Portfolio Overview: Quick assessment of multiple holdings
• Risk Assessment: Understanding overall market bias
• Position Sizing: Stronger signals warrant larger positions
________________________________________
⚡ Oscillators Section - Market Momentum Analysis
The Oscillators section focuses on momentum and overbought/oversold conditions, using 8 powerful momentum indicators.
Included Indicators & Their Purposes:
1. RSI (Relative Strength Index) - 14 Period
• Purpose: Identifies overbought (>70) and oversold (<30) conditions
• Trading Signal: RSI > 70 = Sell | RSI < 30 = Buy
• Best For: Mean reversion strategies, divergence analysis
2. Stochastic Oscillator - 14 Period
• Purpose: Compares closing price to price range over time
• Trading Signal: >80% = Overbought | <20% = Oversold
• Best For: Short-term swing trading, momentum confirmation
3. CCI (Commodity Channel Index) - 20 Period
• Purpose: Measures deviation from statistical mean
• Trading Signal: >100 = Sell | <-100 = Buy
• Best For: Cycle analysis, breakout confirmation
4. Williams %R - 14 Period
• Purpose: Momentum oscillator measuring closing vs. high-low range
• Trading Signal: >-20 = Overbought | <-80 = Oversold
• Best For: Timing entries in trending markets
5. MACD (Moving Average Convergence Divergence)
• Purpose: Trend-following momentum indicator
• Trading Signal: MACD Line > Signal Line = Buy | Below = Sell
• Best For: Trend identification, momentum shifts
6. Momentum - 10 Period
• Purpose: Rate of price change over specified period
• Trading Signal: Positive = Bullish | Negative = Bearish
• Best For: Early trend detection, momentum confirmation
7. ROC (Rate of Change) - 9 Period
• Purpose: Percentage change in price over time
• Trading Signal: >2% = Buy | <-2% = Sell
• Best For: Identifying acceleration in price movements
8. Bollinger Bands - 20 Period, 2 StdDev
• Purpose: Volatility-based support/resistance levels
• Trading Signal: Above Upper Band = Sell | Below Lower Band = Buy
• Best For: Volatility trading, mean reversion strategies
Oscillator Trading Advantages:
✅ Timing Precision: Excellent for entry/exit timing
✅ Overbought/Oversold Detection: Identifies potential reversals
✅ Divergence Analysis: Spots weakening trends early
✅ Short-Term Focus: Perfect for day trading and swing trading
✅ Momentum Confirmation: Validates trend strength
When Oscillators Are Most Effective:
• Range-Bound Markets: Excellent for buying dips, selling peaks
• Reversal Trading: High probability setups at extreme levels
• Momentum Trading: Confirming breakouts and trend acceleration
• Risk Management: Avoiding entries at poor risk/reward levels
________________________________________
📊 Moving Averages Section - Trend Analysis
The Moving Averages section provides trend identification and direction, using 8 different moving averages across multiple timeframes.
Included Moving Averages:
Simple Moving Averages (SMA):
• SMA 10: Very short-term trend (2 weeks of daily data)
• SMA 20: Short-term trend (1 month of daily data)
• SMA 50: Medium-term trend (2.5 months of daily data)
• SMA 100: Long-term trend (5 months of daily data)
• SMA 200: Major trend (10 months of daily data)
Exponential Moving Averages (EMA):
• EMA 10: Responsive short-term trend
• EMA 20: Responsive medium-term trend
• EMA 50: Responsive long-term trend
Signal Logic:
Price vs Moving Average Analysis:
├── Strong Buy: Price > MA by 2%+ (Strong uptrend)
├── Buy: Price > MA by 0-2% (Mild uptrend)
├── Neutral: Price ≈ MA (Sideways/transition)
├── Sell: Price < MA by 0-2% (Mild downtrend)
└── Strong Sell: Price < MA by 2%+ (Strong downtrend)
Moving Average Trading Advantages:
✅ Trend Identification: Clear bullish/bearish bias
✅ Support/Resistance: MAs act as dynamic support/resistance
✅ Multi-Timeframe Analysis: Short to long-term perspectives
✅ Position Management: Trend following for position sizing
✅ Market Context: Understanding broader market direction
Strategic Applications:
• Trend Following: Buy above MAs, sell below MAs
• Support/Resistance Trading: MAs as dynamic levels
• Position Management: Trailing stops using moving averages
• Market Bias: Understanding institutional positioning
________________________________________
🎯 Step-by-Step Trading Guide for New Traders
Phase 1: Dashboard Setup (5 Minutes)
Step 1: Installation
1. Copy the Pine Script code
2. Open TradingView Pine Editor
3. Paste code and click "Add to Chart"
4. The dashboard appears at bottom center
Step 2: Initial Configuration
1. Size Selection: Choose "Normal" for balanced view
2. Enable All Sections: Keep Summary, Oscillators, and MAs enabled
3. Progress Bars: Keep enabled for visual clarity
4. Timeframe: Start with "60" (1-hour analysis)
Step 3: Visual Verification
• Confirm dashboard shows at bottom center
• Verify all three sections are visible
• Check that progress bars are displaying
• Ensure colors are clear (green=bullish, red=bearish)
________________________________________
Phase 2: Understanding the Signals (10 Minutes Practice)
Step 1: Summary Section Reading
Practice Exercise: Look at 5 different stocks and note:
• What color is the signal? (Green=Buy, Red=Sell, Gray=Neutral)
• What's the text saying? (Strong Buy, Buy, Neutral, Sell, Strong Sell)
• How filled is the progress bar? (More filled = stronger signal)
Example Reading:
SUMMARY: BUY (Green text)
Progress: ▰▰▰▰▰▰▱▱▱▱ (60% filled, positive)
BUY: 8 | NEUTRAL: 4 | SELL: 4
Interpretation: Moderately bullish, 8 indicators bullish vs 4 bearish
Step 2: Oscillator Analysis
Key Questions to Ask:
• Is the oscillator signal the same as summary?
• Are we in overbought territory (red signal)?
• Are we in oversold territory (green signal)?
• Is momentum building (progress bar filling)?
Trading Application:
• Green Oscillator + Green Summary = High probability buy
• Red Oscillator + Red Summary = High probability sell
• Conflicting signals = Wait for clarity
Step 3: Moving Average Confirmation
Trend Analysis Checklist:
• What's the MA signal? (Bullish/Bearish)
• Does it match the summary?
• How strong is the trend? (Progress bar intensity)
• Are we trading with or against the trend?
________________________________________
Phase 3: Practical Trading Application (Real Trading)
Strategy 1: Conservative Confirmation Trading
Entry Rules (Low Risk):
1. All three sections must agree (Summary, Oscillators, MAs)
2. Signal strength >60% (progress bars more than half filled)
3. Wait for "Strong Buy" or "Strong Sell" signals only
4. Enter in direction of strongest signal
Example:
Summary: STRONG BUY (▰▰▰▰▰▰▰▰▱▱)
Oscillators: BUY (▰▰▰▰▰▱▱▱▱▱)
Moving Averages: STRONG BUY (▰▰▰▰▰▰▰▰▰▱)
Action: LONG position with high confidence
Strategy 2: Scalping with Oscillators
Entry Rules (Active Trading):
1. Focus primarily on Oscillator section
2. Look for oversold (strong green) for buys
3. Look for overbought (strong red) for sells
4. Use 5-15 minute timeframes
5. Quick exits when signal changes
Strategy 3: Trend Following with MAs
Entry Rules (Position Trading):
1. Moving Average section must be bullish for longs
2. Summary should confirm the trend
3. Use pullbacks in oscillators for entries
4. Hold positions while MAs remain favorable
________________________________________
Phase 4: Risk Management Integration
Position Sizing Based on Signal Strength
Signal Strength Guide:
├── 90-100% filled bars: 3-5% of capital (very high confidence)
├── 70-89% filled bars: 2-3% of capital (high confidence)
├── 50-69% filled bars: 1-2% of capital (moderate confidence)
└── <50% filled bars: No position or paper trade only
Stop Loss Placement
• Oscillator Trades: 2-3% stops (short-term)
• Trend Following: 5-8% stops (give room for noise)
• Strong Signal Trades: Tighter stops (1-2%)
Take Profit Strategy
• First Target: When signal changes from Strong to Normal
• Second Target: When signal goes neutral
• Full Exit: When signal reverses completely
________________________________________
🏆 Advanced Trading Applications
Multi-Timeframe Analysis
Professional Technique:
1. Daily Chart: Check overall trend (MAs section)
2. 1-Hour Chart: Find entry timing (Oscillators)
3. 15-Minute Chart: Precise entry execution
Divergence Trading
Advanced Setup:
• Price makes new highs but Oscillators show weakness
• Price makes new lows but Oscillators show strength
• High probability reversal signals
Market Correlation Analysis
Portfolio Management:
• Check dashboard on multiple correlated assets
• Look for broad market agreement or divergence
• Adjust position sizes based on correlation
________________________________________
🚨 Common Mistakes to Avoid
Beginner Errors:
❌ Trading against all three signals (very low probability)
❌ Ignoring progress bar intensity (signal strength matters)
❌ Using wrong timeframe (scalping on daily signals)
❌ Over-leveraging on weak signals (<50% progress bars)
❌ Not waiting for confirmation (jumping on first green/red)
Proper Approach:
✅ Wait for alignment between sections
✅ Use signal strength for position sizing
✅ Match timeframe to trading style
✅ Start small while learning the system
✅ Keep trading journal of signal accuracy
________________________________________
📊 Performance Optimization Tips
Best Timeframes for Different Strategies:
• Scalping: 5-15 minute analysis
• Day Trading: 15-60 minute analysis
• Swing Trading: 1-4 hour analysis
• Position Trading: Daily analysis
Market Condition Adaptation:
• Trending Markets: Focus on MA section, use oscillator pullbacks
• Range-Bound Markets: Focus on oscillator extremes
• High Volatility: Reduce position sizes, wait for stronger signals
• Low Volatility: Can take moderate signals with proper stops
________________________________________
🎯 Success Metrics & Tracking
Key Performance Indicators:
• Signal Accuracy: Track win rate by signal strength
• Risk-Adjusted Returns: Profit per unit of risk taken
• Signal Consistency: How well signals align across sections
• Market Condition Performance: Which signals work best when
Recommended Practice Routine:
1. Daily Review: Check dashboard on 5-10 watchlist stocks
2. Signal Logging: Note signal strength and outcomes
3. Weekly Analysis: Review which signals performed best
4. Monthly Optimization: Adjust strategy based on performance data
________________________________________
This Professional Technical Analysis Dashboard represents a complete trading solution that combines institutional-grade analysis with retail trader accessibility. By following this comprehensive guide, traders of all experience levels can harness the power of 16 technical indicators through one beautiful, intuitive interface. 🚀📈
Remember: Consistent profitability comes from disciplined application of proven systems, proper risk management, and continuous learning from market feedback.
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.
RSI Long Only with Confirmed CrossbacksThis RSI-based long-only strategy aims to identify and trade potential reversals with confirmation to reduce false signals. It enters a long position only after the Relative Strength Index (RSI) first dips below a specified oversold threshold (default 44) and then crosses back above it, signaling a possible bullish reversal with momentum. The strategy avoids premature entries by requiring this two-step confirmation. Similarly, it exits the long position only after RSI first rises above the overbought threshold (default 70) and then crosses back below it, indicating a potential loss of bullish momentum. By waiting for RSI to travel beyond the thresholds and then revert, the strategy attempts to capture stronger and more reliable directional moves while filtering out temporary spikes.
Unified Signal EngineThis Pine Script titled "Unified Signal Engine" is a comprehensive multi-indicator trading tool designed to generate buy and sell signals based on the combined logic of five different technical indicators:
🔍 Core Components
PMO (Price Momentum Oscillator)
Uses double-smoothed rate of change to detect momentum shifts.
Buy signal: when PMO crosses above its signal line.
Average Force
Measures the strength of price movement within a range.
Buy signal: when the force is positive.
Dynamic Sentiment RSI
A sentiment-weighted RSI with smoothing and step rounding.
Buy signal: when sentiment RSI is above zero.
Adaptive Resonance Oscillator
Uses Hilbert Transform and adaptive RSI logic.
Buy signal: when RSI crossover occurs and RSI is above 50 (added filter for stronger confirmation).
Turbo Oscillator
Combines RSI, MFI, and Stochastic indicators with divergence detection and take-profit logic.
Buy signal: when oscillator conditions and reversal patterns align.
📈 Signal Logic
Buy Signal (long) is triggered when all selected indicators (based on user input toggles) align positively.
Sell Signal (short) is triggered when all selected indicators align negatively.
🔔 Alerts and Visuals
Plots triangle shapes below/above bars for buy/sell signals.
Alerts are configured for buy, sell, and combined conditions.
🧠 Customisation
Users can toggle each indicator on/off.
Includes smoothing, divergence detection, and visual styling options.
This script is ideal for traders looking to unify multiple momentum and sentiment indicators into a single decision engine, offering flexibility and layered confirmation for entries and exits.
Price discovery indicatorGives an ability to show places where price drops more than n percent in x candles. Use cases: see dips of btc, get a notification when a stablecoin goes crazy, validate that webhook integration works as expected using keep alive messages.
Features included:
- Price dip alerts. Create an alert that sends a notification every time price dips more than expected (yellow zone at the chart).
- Percentage drop threshold. Define how many percents price should drop to trigger an alert and to show a yellow zone.
- Candles length threshold. Define within how many candles this drop should happen. If price drops in 2% within 10 candles, but this option is 5 - the alert will not be triggered because price dropped not as fast as expected.
- Templates of messages on price dip and price recovery. Set your message that should be triggered with alert.
- Keep alive feature. Set to trigger keep alive alerts every period. Can be helpful if you don't check charts often - this feature will trigger alert every period with "hey, the integration is alive" message. I use it to validate on weekly basis that tradingview triggers my alerts (example: you created an alert with expiration date and forgot to recreate it), that webhook integration receives these alerts, that the integration sends these alerts to telegram. Example: I expect to see this message every monday's morning, otherwise something is broken and I have to check what is wrong with my alerting system.
EMA Strength V2This indicator plots a single Exponential Moving Average (EMA) line whose color changes based on a comparison with a second EMA. The user can customize both EMA lengths and choose separate price sources (like close, hlc3, etc.) for each EMA.
The line turns green when EMA 1 is greater than EMA 2, indicating bullish momentum, and red when EMA 1 is less than EMA 2, signaling potential bearishness. This dynamic coloring helps traders visually track trend strength and possible reversals.
The Scalper System XAUUnlock powerful breakout opportunities with this precision tool designed for professional traders.
This indicator combines breakout logic with a smart VWAP filter anchored to the New York session, ensuring only high-quality, directional trades are highlighted, I suggest to use only on GOLD timeframe 5 min.
📈 Features:
Breakout Signals: Detects price breakouts above/below key range levels based on a customizable lookback period.
Session-Aware VWAP Filter: Filters out low-probability trades by validating signal direction against the anchored VWAP starting from the New York open (9:30 AM EST).
Smart Signal Management: Prevents repeated signals in the same direction until a reversal is detected.
Visual Alerts: Clear BUY and SELL labels on the chart, no repainting, no ambiguity.
Multi-Timeframe Friendly: Optimized for scalping and intraday strategies (ideal on 3m or 5m timeframes).
🎯 Why use it?
This indicator is designed to keep you aligned with the institutional flow by using the VWAP as a dynamic support/resistance filter. It eliminates noise and focuses only on breakout setups that occur in the direction of session momentum, increasing your probability of success.
🛠 Settings:
Lookback Period: Define how many candles to scan for the range breakout.
VWAP Session Start: Fixed to New York session open to track real institutional volume-weighted average price.
💡 Ideal for:
Futures Traders (GC, NQ, ES)
Forex & Metals (XAUUSD)
Scalpers and Day Traders
Breakout and VWAP Strategy Followers
----------------------------------------------------------------------------
Sblocca opportunità di breakout ad alta precisione con questo strumento pensato per trader professionisti.
L’indicatore combina la logica di breakout con un intelligente filtro VWAP ancorato all’apertura della sessione di New York, mostrando solo segnali di trading di alta qualità e direzionali, il mio consiglio è di usarlo solo sul GOLD indicativamente sui 5 minuti.
📈 Caratteristiche principali:
Segnali di Breakout: Rileva rotture al rialzo/ribasso sopra o sotto i livelli chiave, calcolati su un periodo di analisi personalizzabile.
Filtro VWAP basato sulla sessione: Esclude i trade a bassa probabilità, validando i segnali solo se in linea con la direzione del VWAP della sessione di New York (apertura 15:30 ora italiana).
Gestione Intelligente dei Segnali: Evita segnali ripetuti nella stessa direzione finché non si verifica un’inversione.
Avvisi Visivi: Etichette chiare di BUY e SELL sul grafico, senza repaint, zero ambiguità.
Ottimizzato per Multi-Timeframe: Funziona perfettamente per scalping e intraday (ideale su timeframe 3m o 5m).
🎯 Perché usarlo?
Questo indicatore ti mantiene allineato con il flusso istituzionale utilizzando il VWAP come supporto/resistenza dinamico. Elimina il rumore di fondo e si concentra solo su configurazioni di breakout che avvengono nella direzione della forza della sessione, aumentando la probabilità di successo.
🛠 Impostazioni personalizzabili:
Periodo di analisi: Imposta il numero di candele da analizzare per calcolare i livelli di breakout.
Inizio sessione VWAP: Fissato all'apertura della sessione di New York per tracciare il vero prezzo medio ponderato per volume istituzionale.
💡 Ideale per:
Trader su Futures (GC, NQ, ES)
Forex & Metalli (es. XAUUSD)
Scalper e Day Trader
Strategie basate su Breakout e VWAP
Stock Table📊 Professional Stock Market Table - Pine Script v5
🎯 Overview
This is a comprehensive, real-time stock monitoring table designed for TradingView that transforms your chart into a professional trading dashboard. Built with Pine Script v5, it displays live market data for up to 10 customizable securities in an organized, color-coded table format.
________________________________________
🚀 Core Capabilities
📈 Real-Time Data Processing
• Live Price Feeds: Direct integration with TradingView's request.security() function
• Multi-Timeframe Support: Adapts to any chart timeframe automatically
• Instant Updates: Refreshes on every bar close with current market data
• Cross-Market Coverage: Supports stocks, forex, crypto, indices, commodities
• Data Accuracy: Uses lookahead=barmerge.lookahead_off for historical accuracy
🎨 Advanced Visual Customization
• 9 Strategic Positions: Place anywhere on chart (all corners, centers, middle positions)
• Dynamic Layout: 1-5 column configurations with auto-calculating rows
• 4 Size Options: Tiny, Small, Normal, Large text sizing
• Professional Color Scheme: Customizable background, headers, text colors
• Smart Color Coding: Green/red price change indicators with neutral states
📊 Intelligent Table Structure
• Auto-Responsive Design: Table dimensions adjust based on column count
• Professional Headers: Optional Symbol | Price | Change column headers
• Compact Data Display: Symbol name, current price, absolute & percentage change
• Clean Formatting: Precise decimal places, proper alignment, readable layout
• Error Handling: Handles null data, division by zero, invalid symbols gracefully
________________________________________
🔧 Technical Specifications
Data Architecture
- Stock Data Arrays: Dynamic string and float arrays for efficient data management
- Security Requests: Individual request.security() calls for each symbol
- Real-time Processing: Uses barstate.islast for optimal performance
- Memory Management: Efficient array operations with proper cleanup
Performance Optimizations
• Conditional Rendering: Only processes data on the latest bar
• Efficient Memory Usage: Clears and rebuilds table data on each update
• Minimal Resource Impact: Lightweight code structure with no unnecessary loops
• Fast Execution: Direct data access without complex calculations
Symbol Processing
• Exchange Extraction: Automatically removes exchange prefixes (NASDAQ:, NYSE:)
• Clean Display Names: Shows only ticker symbols (AAPL, GOOGL, etc.)
• Flexible Input: Accepts any TradingView-supported symbol format
• Error Resilience: Continues operation even if some symbols fail
________________________________________
🎛️ User Controls & Settings
Securities Configuration
• 10 Customizable Slots: Input any combination of stocks, ETFs, crypto, forex
• Global Market Support: Works with any TradingView-supported instrument
• Easy Symbol Changes: Simple dropdown interface for quick modifications
• Default Professional Portfolio: Pre-loaded with major tech and financial stocks
Layout Customization
Position Options:
├── Top: Left, Center, Right
├── Middle: Left, Center, Right
└── Bottom: Left, Center, Right
Column Configurations:
├── 1 Column: 10 rows (vertical list)
├── 2 Columns: 5 rows (balanced view)
├── 3 Columns: 4 rows (compact display)
├── 4 Columns: 3 rows (wide format)
└── 5 Columns: 2 rows (ultra-wide)
Visual Customization
• Background Control: Transparency settings (0-90%)
• Header Styling: Toggle headers with custom colors
• Text Appearance: Four size options with color controls
• Change Indicators: Separate colors for up/down movements
• Professional Theming: Dark theme optimized for trading environments
________________________________________
💼 Professional Trading Advantages
Market Monitoring
✅ Multi-Asset Oversight: Monitor diverse portfolios in one view
✅ Quick Performance Scan: Instant visual identification of winners/losers
✅ Real-Time Alerts: Color changes provide immediate market feedback
✅ Space Efficient: Minimal chart real estate usage
✅ Always Visible: Persistent display regardless of chart zooming
Decision Making Support
✅ Comparative Analysis: Side-by-side performance comparison
✅ Trend Recognition: Immediate color-coded trend identification
✅ Portfolio Balance: Quick assessment of position performance
✅ Market Correlation: Observe sector movements simultaneously
✅ Risk Management: Rapid identification of adverse movements
Workflow Integration
✅ Chart Integration: Seamlessly blends with existing chart analysis
✅ Non-Intrusive: Doesn't interfere with technical analysis
✅ Customizable Placement: Adapts to any chart layout preference
✅ Professional Appearance: Suitable for client presentations
✅ Multi-Monitor Setup: Works perfectly on secondary displays
________________________________________
🔬 Technical Implementation Details
Pine Script Architecture
Data Flow:
Input Symbols → Security Requests → Data Processing → Table Creation → Visual Rendering
Key Functions:
├── get_name(): Symbol parsing and cleaning
├── get_table_position(): Dynamic positioning system
├── get_table_size(): Responsive sizing control
├── Array Management: Efficient data storage and retrieval
└── Table Operations: Creation, clearing, and population
Security & Reliability
• Error Handling: Comprehensive null checks and data validation
• Fallback Systems: Graceful degradation for missing data
• Performance Monitoring: Optimized for minimal CPU usage
• Memory Safety: Proper array cleanup and resource management
• Version Compatibility: Built for Pine Script v5 standards
Advanced Features
• Dynamic Calculations: Real-time percentage and absolute change computation
• Conditional Formatting: Context-aware color application
• Responsive Design: Auto-adjusting layout based on configuration
• Professional Typography: Optimized text sizing and spacing
• Cross-Platform Compatibility: Works on all TradingView platforms
________________________________________
📱 Use Cases & Applications
Day Trading
• Monitor watchlist stocks during active trading sessions
• Quick identification of breakout opportunities
• Real-time portfolio performance tracking
• Sector rotation analysis
Portfolio Management
• Long-term investment monitoring
• Diversification balance assessment
• Performance comparison across holdings
• Risk exposure evaluation
Market Analysis
• Sector strength comparison
• Market correlation studies
• Index component analysis
• Cross-asset performance review
Professional Trading
• Client portfolio dashboards
• Trading room displays
• Educational presentations
• Research and analysis support
________________________________________
🎯 Competitive Advantages
Versus Standard Watchlists
✅ Visual Integration: Embedded directly in charts
✅ Customizable Layout: Flexible positioning and sizing
✅ Professional Appearance: Trading-room quality display
✅ Real-Time Updates: Immediate price and change updates
Versus External Tools
✅ No Additional Software: Built into TradingView platform
✅ Synchronized Data: Uses same data source as charts
✅ Customizable Symbols: Not limited to pre-defined lists
✅ Cost Effective: No additional subscription fees
Versus Basic Pine Scripts
✅ Professional Quality: Production-ready code standards
✅ Error Resilience: Comprehensive error handling
✅ User-Friendly: Intuitive settings and controls
✅ Performance Optimized: Minimal resource consumption
________________________________________
🔧 Installation & Setup
Quick Start
1. Copy Pine Script code to TradingView Pine Editor
2. Add to chart - table appears with default settings
3. Customize symbols through indicator settings
4. Adjust position and appearance as needed
Optimization Tips
• Position table to avoid interfering with chart analysis
• Use 2-3 columns for optimal readability
• Choose contrasting colors for better visibility
• Regular symbol updates for current market focus
________________________________________
This Professional Stock Market Table represents a complete solution for serious traders and investors who demand real-time, customizable, and visually integrated market monitoring directly within their chart analysis workflow. 📊🚀
EMA StrengthThis indicator plots a single Exponential Moving Average (EMA) line whose color changes based on a comparison with a second EMA. The user can customize both EMA lengths and choose separate price sources (like close, hlc3, etc.) for each EMA.
The line turns green when EMA 1 is greater than EMA 2, indicating bullish momentum, and red when EMA 1 is less than EMA 2, signaling potential bearishness. This dynamic coloring helps traders visually track trend strength and possible reversals.
Bronx Key LevelsThis indicator plots crucial high and low price levels from various trading sessions (Asia, London, New York) and key historical periods (Previous Day, Week, and Month) directly onto your chart.
It is designed for traders who use key liquidity levels for their analysis. The script features real-time tracking of highs and lows as they form within active sessions and can display historical levels for a configurable number of past days.
Users have extensive control over the visual presentation, including the ability to set a global style for all lines or customize each level's color, width, and line style individually. For a cleaner chart, the script includes a feature to automatically merge labels that overlap at the same price level. Additionally, it provides optional session boxes to visually highlight the duration of each trading session.
The script is also equipped with a comprehensive alert system that can notify you whenever the price touches one of the enabled key levels.
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)
Momentum Candle ProjectionThis indicator projects future price momentum by calculating a directional vector from recent price movements. It uses a custom implementation of the atan2 function to create a vector average of the last N candles and visualizes this projection as a synthetic future candle.
🔍 What It Does:
✅ Tracks recent momentum using geometric vectors from price change.
✅ Projects a synthetic "momentum candle" one bar ahead, showing anticipated direction and magnitude.
✅ Optionally plots a secondary "future candle" based on a smoothed estimate of projected price vs. real current close.
⚙️ Settings:
Vector Lookback (bars): Controls how many bars are used to calculate the momentum vector.
Projection Length Multiplier: Adjusts how far forward the vector is projected based on its strength.
🟢 How To Use:
Use the lime/red projection candle to anticipate short-term directional bias.
Use the orange/maroon future candle to compare projected continuation vs. current closing price.
Spot early reversals, continuation zones, and momentum decay in real-time.