Trend SCANThe visually important moving averages EMA5, EMA20, EMA144 and EMA169 are seen on the indicator.
However, the main purpose of the indicator is to combine the changes in the rsi, ema, volume, momentum and cci data on the stock and to display them in a label on the chart with a formula aimed at determining the stocks that are in an uptrend.
The group that the stock group is desired to be scanned from the indicator settings is selected and the scanning process is instantly visible on the label in the chart period or in the time interval selected outside the chart period.
The stock groups are grouped as BIST50, BIST100, Yildiz Pazar and Main Pazar. But these can be selected as desired.
Trend Analizi
Advanced Session Profile Predictor with ArrowsIndicator Description: Advanced Session Profile Predictor with Arrows
Overview
The Advanced Session Profile Predictor with Arrows is a powerful indicator designed to analyze price action across three major trading sessions—Asia, London, and New York—and provide actionable trading insights. Built on session-based profiling and enhanced with Traders Dynamic Index (TDI) and momentum-driven arrows, this indicator helps traders identify potential market profiles and key entry points for long and short positions. It combines visual session highlighting, dynamic profile labels, and momentum signals to offer a comprehensive trading tool.
Key Features
Session Visualization:
Highlights the Asia (00:00-08:00 UTC, yellow), London (08:00-16:00 UTC, red), and New York (13:00-21:00 UTC, blue) sessions with customizable time zones (UTC, Europe/London, America/New_York).
Tracks high, low, open, and close prices for each session, resetting daily.
Profile Prediction:
Analyzes price behavior in the Asia and London sessions to predict one of four market profiles during the London session:
Profile 1: Trend Continuation: Strong trend from Asia continues into London. Long if price breaks asien_high (uptrend) or short if it breaks asien_low (downtrend).
Profile 2: NY Manipulation: Asia trends, London consolidates. Long at asien_high or london_high (uptrend), short at london_low (downtrend), with New York breakout potential.
Profile 3: London+NY Manipulation: London manipulates asien_high, potential reversal in NY. Short at asien_close, long at asien_high.
Profile 4: Consolidation+Continuation: London manipulates asien_low, continuation in NY. Short at asien_low, long at asien_close.
Displays the current profile and entry conditions in three compact labels (Profile, Short, Long) near the latest price.
Dynamic Entry Conditions:
Labels show "IF price hits LONG/SHORT" for levels yet to be reached, updating based on the current price (close).
Indicates "Ingen Long/Short (over/under )" if the price has already passed the target, ensuring relevance across sessions.
Momentum Arrows (TDI Integration):
Incorporates Traders Dynamic Index (TDI) with customizable RSI period (default 21), band length (34), fast MA (2), and slow MA (7).
Adds momentum (12-period) to generate:
Green Up Arrows: When TDI fast MA exceeds the upper band (>68) with rising momentum, signaling bullish strength (above bar).
Red Down Arrows: When TDI fast MA falls below the lower band (<32) with falling momentum, signaling bearish strength (below bar).
Arrows complement session profiles, providing additional confirmation for entries.
High/Low Lines:
Plots session highs and lows (yellow for Asia, red for London, blue for New York) as crosses for easy reference.
How to Use
Setup: Add the indicator to your chart and adjust the time zone and session times if needed (default: UTC). Customize TDI and momentum settings under "Traders Dynamic Index Settings" for your preferred sensitivity.
Trading:
Watch the labels in the top-right corner for the current profile and entry conditions (e.g., "IF price hits 1.2000 LONG (A/L/NY)").
Use green up arrows as bullish confirmation and red down arrows as bearish confirmation alongside profile signals.
Monitor session high/low lines to track key levels visually.
Profiles: Interpret the profile to anticipate market behavior:
Trend Continuation: Ride momentum with breaks of asien_high/asien_low.
NY Manipulation: Prepare for New York breakouts after London consolidation.
London+NY Manipulation: Look for reversals after false breaks.
Consolidation+Continuation: Trade continuation after consolidation ends.
Best Timeframes: Works on intraday timeframes (e.g., 15M, 1H) for session-based trading.
Settings
Time Zone: Choose your preferred session time zone (default: UTC).
Trend Threshold: Adjust sensitivity for trend detection (default: 1.5).
TDI Settings: Fine-tune RSI, bands, and MAs for arrow signals.
Momentum Length: Set momentum period (default: 12).
Directional Movement Index//@version=6
//this is an open source code and strictly for educational purpose
// the concept is to identify when the moving average is sloping upward or when the moving average is sloping downward
//since there are various ways to generate signal from moving average but the slope of moving average has much weight of evidence we are using the slope
//THE IDEA IS SIMPLE TO REMAIN RIGHT SIDE OF THE TREND
TASHAEntry Trigger
Parabolic SAR (PSAR): This indicator helps identify potential trend reversals. A sell signal might occur when the PSAR is above the price, indicating a downtrend. When developing your strategy, look for PSAR dots to switch positions relative to the price chart.
Confluence Indicators:
MACD (Moving Average Convergence Divergence): Look for bearish crossovers (when the MACD line crosses below the signal line) to confirm your entry signal from PSAR.
Stochastic Oscillator: A reading above 80 can indicate overbought conditions. Confirmation here would include the %K line crossing below the %D line.
ZLEMA (Zero-Lag Exponential Moving Average): Use this to identify the trend's direction. A downward slope or the price being below the ZLEMA could confirm a bearish bias.
Accumulation Distribution Line (ADL): This technical indicator can confirm the trend's strength. If the ADL is declining while price moves upwards, it can confirm that the upward move may not be sustainable.
Exit Trigger
Parabolic SAR (PSAR): Use the PSAR flip (when it moves below the price) as an exit signal, indicating a potential trend reversal to the upside.
Confirmation Indicators:
RSI (Relative Strength Index): Look for overbought conditions, typically above 70, to confirm an exit signal.
Stochastic Oscillator: A reading above 80, combined with a crossover (where %K crosses below %D), can signal a good opportunity to exit a trade.
VWAP (Volume Weighted Average Price): If the price crosses below the VWAP, it may indicate a shift in sentiment from bullish to bearish.
PPS (Pivots Points Standard): Look for price action around pivot levels. If the price is failing to hold above a key pivot level, it could be a reason to exit.
Weekly MA SuiteThe Weekly MA Suite is a multi-layered moving average indicator designed for traders and investors who analyze market trends across weekly and long-term timeframes. It combines three critical trend layers—short-term (1W EMA/VWMA), mid-term (30W EMA/VWMA), and long-term (200W HMA)—providing clear insights into market momentum, structure, and cycle trends.
This indicator is ideal for:
✅ Swing traders looking for weekly momentum shifts
✅ Position traders tracking multi-week to multi-month trends
✅ Long-term investors monitoring macro market cycles
Each layer has customizable colors, transparency, and visibility toggles, ensuring traders can tailor the indicator to their specific needs.
📊 Breakdown of Components
🔹 Short-Term Trend (1W EMA/VWMA Ribbon – Top Layer)
Purpose: Captures weekly momentum and volume dynamics
• 1W EMA (Exponential Moving Average) reacts quickly to price changes
• 1W VWMA (Volume-Weighted Moving Average) accounts for volume to confirm trend strength
• Ribbon fill highlights the divergence between price-based momentum (EMA) and volume-weighted trends (VWMA), making trend shifts easier to spot
Usage:
• If the 1W EMA is above the 1W VWMA, momentum is strong and price is trending higher with support from volume
• If the EMA crosses below the VWMA, it may indicate weakening trend strength or distribution
• A widening ribbon suggests increasing momentum, while a narrowing ribbon signals potential consolidation or reversal
🔸 Mid-Term Trend (30W EMA/VWMA Ribbon – Middle Layer)
Purpose: Provides insight into the broader market structure over multiple months
• 30W EMA represents the dominant trend direction over roughly half a year
• 30W VWMA smooths this trend while weighting price by trading volume
• Ribbon fill allows for a visual representation of how volume impacts trend direction
Usage:
• A bullish trend is confirmed when price remains above the 30W EMA, with the ribbon widening in an uptrend
• A bearish shift occurs when the 30W EMA crosses below the 30W VWMA, signaling weakening demand
• If the ribbon narrows or twists frequently, the market may be in a choppy, range-bound phase
🔻 Long-Term Trend (200W HMA – Background Layer)
Purpose: Identifies major market cycles and deep trend shifts
• The 200W Hull Moving Average (HMA) is a long-term smoothing tool that reduces lag while maintaining trend clarity
• Unlike traditional moving averages, the HMA reacts faster to trend changes without excessive noise
Usage:
• When price is above the 200W HMA, the broader trend remains bullish, even during short-term corrections
• A cross below the 200W HMA may indicate a macro downtrend or deep market cycle shift
• Long-term investors can use this as a dynamic support or resistance zone
🎯 How to Use the Weekly MA Suite for Trading
📅 Identifying Market Phases
• In strong uptrends, the 1W EMA and 30W EMA will be aligned above their VWMA counterparts, with price well above the 200W HMA
• In sideways markets, the ribbons will frequently narrow or cross, signaling indecision
• In bear markets, price will typically trade below the 30W EMA, with the 200W HMA acting as a long-term resistance
📈 Entry and Exit Strategies
• A bullish trade setup occurs when the 1W EMA crosses above the 1W VWMA while the 30W EMA holds above the 30W VWMA, confirming multi-timeframe momentum
• A bearish setup is confirmed when the 1W EMA crosses below the 1W VWMA and price is also trending below the 30W EMA
• The 200W HMA can be used as a trend filter—staying long when price is above it and avoiding longs when price is below
🚦 Customizing for Your Trading Style
• Scalpers can focus on the 1W ribbon for faster trend shifts
• Swing traders can use the 30W ribbon for trend-following entries and exits
• Long-term investors should watch price action relative to the 200W HMA for market cycle positioning
🔧 Final Thoughts
The Weekly MA Suite simplifies multi-timeframe analysis by layering key moving averages in an intuitive and structured format. By combining short, medium, and long-term trend indicators, traders can confidently navigate market conditions and improve decision-making. Whether trading weekly trends or monitoring multi-year cycles, this tool provides a clear visual framework to enhance market insights.
Beki cAn indicator combination of 3 things.
1 ) trend analysis
2 ) average price
3 ) price reversals
Pearson OscillatorThe Pearson Oscillator is a custom TradingView indicator that leverages statistical correlation analysis to gauge the trend strength of a given price series. By calculating the Pearson correlation coefficient between time (as an index) and price over a user-defined period, the indicator provides traders with an insight into how strongly the market is trending or oscillating.
──────────────────────────────
Key Features
- User-Defined Parameters:
– Set the calculation length, price source, and smoothing period.
– Adjust upper and lower threshold levels to suit your trading strategy.
– Customize color settings for increasing, decreasing, and neutral conditions.
- Dynamic Trend Analysis:
– Computes the Pearson correlation coefficient to measure the relationship between time and price.
– Applies a simple moving average to smooth out fluctuations in the coefficient, offering a more stable reading.
- Visual Representation:
– Plots the smoothed Pearson coefficient as a continuous line.
– Displays a histogram showing the variation (first derivative) of the coefficient to highlight changes in trend strength.
– Draws horizontal reference lines at the specified upper and lower thresholds as well as at the zero level for quick visual assessment.
- Alerts and Dynamic Labeling:
– Automatically triggers alerts when the smoothed Pearson coefficient crosses the predefined threshold levels, so you never miss a potential market turning point.
– Generates a dynamic label on the last bar that displays important statistical information, including:
- The current Pearson coefficient (rounded to three decimals).
- A classification of correlation strength (e.g., STRONG, MEDIUM, WEAK, NEUTRAL) based on the absolute value of the coefficient.
- The trend direction (Upward, Downward, or Stable).
- The delta of the coefficient, offering insight into how quickly the trend is evolving.
──────────────────────────────
How It Works
1. Calculation of the Pearson Coefficient:
- A custom function iterates over a specified number of price bars, summing time indices, price values, and their squared and cross-products.
- Using the Pearson correlation formula, it computes a coefficient that ranges between -1 and 1—values close to ±1 indicate a strong trend or linear relationship, while values near 0 suggest a weak or non-existent trend.
2. Smoothing Process:
- The raw Pearson coefficient is then smoothed using a simple moving average (SMA) to reduce noise and provide a clearer view of the underlying trend.
3. Delta (Variation) Computation:
- The script calculates the change (delta) between the current smoothed coefficient and its value on the previous bar.
- This derivative is plotted as a histogram, signaling the speed at which the correlation (and thus the trend) is changing.
4. Visual and Alert Mechanisms:
- The smoothed coefficient and its delta are plotted with colors that dynamically update to reflect increasing or decreasing trends.
- Horizontal lines set at user-defined thresholds help to quickly identify overbought or oversold (or extreme correlation) scenarios.
- Alerts are defined to notify you when the smoothed coefficient crosses these key levels, ensuring timely trade decisions.
5. Dynamic Label:
- At the last bar, a dynamic label is created displaying the current Pearson value, its strength, the direction of the trend, and the delta.
- This quick snapshot helps traders assess the market condition at a glance without diving into detailed analysis.
──────────────────────────────
Why Use the Pearson Oscillator?
This indicator is particularly useful for traders who need a quantitative measure of trend strength that goes beyond traditional moving averages. By integrating statistical correlation directly into market analysis, the Pearson Oscillator helps you:
- Identify periods of strong trending behavior or potential reversals.
- Enhance your risk management through early alerts.
- Visualize the rate of change in market sentiment, enabling more informed entry and exit decisions.
Whether you are a technical analyst or a systematic trader, this indicator provides a robust tool to complement your existing trading toolkit.
──────────────────────────────
The Pearson Oscillator merges statistical insights with technical charting, creating an intuitive yet powerful tool for market analysis. With its adjustable parameters, visual cues, dynamic labeling, and automated alerts, it assists traders in monitoring and responding to evolving market conditions efficiently. This makes it a valuable addition to any TradingView chart, particularly for those looking to quantify the strength and evolution of market trends.
Feel free to adapt the parameters and visual settings to best align the indicator with your trading strategy. Happy trading!
Moving Average DifferenceThe indicator computes the difference between m-day MA and n-day MA. It can be used to tell the price trend.
Advanced Support and Resistance Levels[MAP]Advanced Support and Resistance Levels Indicator
Author
Developed by:
Overview
The "Advanced Support and Resistance Levels" indicator, created, is a sophisticated tool designed for TradingView's Pine Script v6 platform. It identifies and plots key support and resistance levels on a price chart, enhancing technical analysis by incorporating pivot strength, volume weighting, and level decay. The indicator overlays lines, zones, and labels on the chart, providing a visual representation of significant price levels where the market has historically reversed or consolidated.
Purpose
This indicator, authored by , aims to:
Detect significant pivot points (highs and lows) with customizable strength requirements.
Track and rank support/resistance levels based on their recency, volume, and number of touches.
Display these levels as lines and optional zones, with strength-based visual cues (e.g., line thickness and opacity).
Offer flexibility through user-configurable settings to adapt to different trading styles and market conditions.
Features
Pivot Detection:
Identifies high and low pivots using a strength parameter, requiring a specified number of bars on either side where no higher highs or lower lows occur.
Incorporates closing price checks and SMA-based trend confirmation to filter out noise and ensure pivots align with the broader market direction.
Level Management:
Maintains a dynamic array of levels with attributes: price, type (support/resistance), bars since last touch, strength, and volume.
Merges nearby levels within a tolerance percentage, updating prices with a strength-weighted average.
Prunes weaker or older levels when exceeding the maximum allowed, prioritizing those with higher calculated strength.
Strength Calculation:
Combines the number of touches (strength), volume (if enabled), and age decay (if enabled) into a single metric.
Volume weighting uses a logarithmic scale to emphasize high-volume pivots without over-amplifying extreme values.
Age decay reduces the importance of older levels over time, ensuring relevance to current price action.
Visualization:
Draws horizontal lines at each level, with thickness reflecting the number of touches (up to a user-defined maximum).
Optional price zones around levels, sized as a percentage of the price, to indicate areas of influence.
Labels display the level type (S for support, R for resistance), price, and strength score, with position (left or right) customizable.
Line opacity varies with strength, providing a visual hierarchy of level significance.
Plots small triangles at detected pivot points for reference.
Inputs
Lookback Period (lookback, default: 20): Number of bars to consider for trend confirmation via SMA. Range: 5–100.
Pivot Strength (strength, default: 2): Number of bars required on each side of a pivot to confirm it. Range: 1–10.
Price Tolerance % (tolerance, default: 0.5): Percentage range for merging similar levels. Range: 0.1–5.
Max Levels to Show (maxLevels, default: 10): Maximum number of levels displayed. Range: 2–50.
Zone Size % (zoneSizePercent, default: 0.1): Size of the S/R zone as a percentage of the price. Range: 0–1.
Line Width (lineWidth, default: 1): Maximum thickness of level lines. Range: 1–5.
Show Labels (showLabels, default: true): Toggle visibility of level labels.
Label Position (labelPos, default: "Right"): Position of labels ("Left" or "Right").
Level Strength Decay (levelDecay, default: true): Enable gradual reduction in strength for older levels.
Volume Weighting (volumeWeight, default: true): Incorporate volume into level strength calculations.
Support Color (supportColor, default: green): Color for support levels.
Resistance Color (resistColor, default: red): Color for resistance levels.
How It Works
Pivot Detection:
Checks for pivots only after enough bars (2 * strength) have passed.
A high pivot requires strength bars before and after with no higher highs or closes, and a short-term SMA above a long-term SMA.
A low pivot requires strength bars before and after with no lower lows or closes, and a short-term SMA below a long-term SMA.
Level Tracking:
New pivots create levels with initial strength and volume.
Existing levels within tolerance are updated: strength increases, volume takes the maximum value, and price adjusts via a weighted average.
Levels older than lookback * 4 bars with strength below 0.5 are removed.
If the number of levels exceeds maxLevels, the weakest (by calculated strength) are pruned using a selection sort algorithm.
Drawing:
Updates on the last confirmed bar or in real-time.
Lines extend lookback bars left and right from the current bar, with thickness based on touches.
Zones (if enabled) are drawn symmetrically around the level price.
Labels show detailed info, with opacity tied to strength.
Usage
Add to Chart: Apply the indicator to any TradingView chart via the Pine Script editor, as designed by .
Adjust Settings: Customize inputs to match your trading strategy (e.g., increase strength for stronger pivots, adjust tolerance for tighter level merging).
Interpret Levels: Focus on thicker, less transparent lines for stronger levels; use zones to identify potential reversal areas.
Combine with Other Tools: Pair with trend indicators or oscillators for confluence in trading decisions.
Notes
Performance: The indicator uses arrays and sorting, which may slow down on very long charts with many levels. Keep maxLevels reasonable for efficiency.
Accuracy: Enhanced by trend confirmation and volume weighting, making it more reliable than basic S/R indicators, thanks to 's design.
Limitations: Real-time updates may shift levels as new pivots form; historical levels are more stable.
Example Settings
For day trading: lookback=10, strength=1, tolerance=0.3, maxLevels=5.
For swing trading: lookback=50, strength=3, tolerance=0.7, maxLevels=10.
Credits
Author: – Creator of this advanced support and resistance tool, blending precision and customization for traders.
Avi - TablesThe "Avi - Tables" indicator is a comprehensive tool designed to display a wealth of technical information directly on your TradingView chart using dynamic tables and visual elements. It combines multiple analysis techniques and multi-timeframe metrics into an easy-to-read layout. Key features include:
Moving Averages & VWMA:
The indicator calculates up to six user-configurable moving averages (with options for both SMA and EMA) and a 20-period Volume-Weighted Moving Average (VWMA). It plots these averages on the chart and computes the percentage difference between the current price and each moving average. It also checks if the price has touched these levels.
ATR and Volatility:
A 14-period Average True Range (ATR) is calculated and expressed as a percentage of the close price, providing a measure of market volatility.
Volume Analysis:
Using daily volume data and a user-defined volume period, the indicator computes the relative volume (RVOL) as a multiple compared to the average volume. It estimates the full-day volume based on the elapsed trading day and compares it with the previous day’s volume, applying conditional formatting based on these comparisons.
Pressure Metrics:
The script calculates buyer and seller pressure based on price movement and volume, determining the dominant pressure (BP or SP) and displaying the result with corresponding color cues.
Multi-Timeframe Analysis Table:
Users can select various timeframes (15-min, 1-hour, 4-hour, daily, weekly, and monthly) for additional indicators such as MACD, ADX, CCI, and RSI. Each timeframe’s data is displayed in a dedicated table cell, with colors and text dynamically indicating bullish, bearish, or neutral conditions.
Customizable Tables & Layout:
The indicator provides several inputs for table positioning, text size, and layout options—including an option to flip the table rows and columns—allowing you to customize the display to best suit your chart and analysis needs.
Pivot Points & Gap Analysis:
Beyond the tables, the script includes functionality for detecting pivot highs and lows as well as identifying chart gaps. It draws labels for pivot points and, in an optional section, detects and manages gaps (with partial or full closures) and triggers alerts when new gaps appear or are closed.
Overall, "Avi - Tables" is designed to deliver a multi-layered view of market data—from moving averages and volatility to volume dynamics and multi-timeframe indicator signals—all organized neatly into customizable tables. This makes it a powerful resource for traders seeking an integrated and visually intuitive technical analysis tool.
Avi - TrendlinesThe "Avi - Support Resistance Diagonal" indicator is designed to automatically detect and draw diagonal support and resistance lines on your TradingView chart. It uses recent price history to identify key pivot points, connecting them with dynamically extended lines. The script includes the following features:
Pivot Detection:
It identifies local minima and maxima using a configurable "Pivot Lookback Period (bars)" input, ensuring that only significant price extremes are used in forming the lines.
Dynamic Line Drawing:
The indicator calculates the price at any given point along a line connecting two pivot points. It then draws these lines with a right extension, updating them as new bars form.
Alerts:
Alerts are set up to notify you when the price crosses a drawn diagonal support (crossed down) or resistance (crossed up) level.
Line Management:
The script automatically removes outdated lines and labels whenever a new bar appears, ensuring that only current and relevant support and resistance levels are displayed.
Customization:
Users can adjust the history range for analysis, the pivot lookback period, and the visual properties (colors and styles) of the support and resistance lines.
Overall, this indicator is a powerful tool for visualizing dynamic support and resistance levels, providing traders with a clearer picture of potential price reversal zones and breakouts.
Avi - 8 MA Moving Averages (MA) Section
User Inputs:
The script lets you enable/disable and configure eight different moving averages. For each MA, you can choose:
The type: Simple Moving Average (SMA) or Exponential Moving Average (EMA)
The period (length)
The color used for plotting
Calculation:
A custom function (maFunc) calculates the MA value based on the selected type and length. Each moving average (from MA 1 to MA 8) is computed accordingly and then plotted on the chart.
2. EMA Cloud
Inputs:
There are inputs for a "Fast EMA" (default 8) and a "Slow EMA" (default 21).
Calculation & Plotting:
The script calculates the 8-period and 21-period EMAs. Although these EMAs are not directly plotted (they’re set with display.none), they are used to determine the market condition:
If the fast EMA is above the slow EMA, the area between them is filled with a greenish color.
If the fast EMA is below the slow EMA, the fill color turns reddish.
3. Buyer/Seller Pressure & ATR Calculations
Price Difference:
The script computes the difference between the close and open prices (as well as the percentage difference), which can be used as a measure of buyer vs. seller pressure.
ATR (Average True Range):
A 14-period ATR is calculated and then expressed as a percentage of the current close price. This gives a sense of volatility relative to the price level.
4. Volume Metrics & Relative Volume
Daily Volume & Averages:
The script retrieves daily volume data and computes a moving average for volume over a configurable length (default 20).
Relative Volume:
It calculates:
The average volume for the current period.
A relative volume multiplier comparing current volume to its moving average.
An estimated full-day volume based on the elapsed trading time, and checks if it will exceed the previous day’s volume.
The values are then formatted (e.g., converting to millions) for easier reading.
Conditional Formatting:
A background color is set based on whether the estimated relative volume is above or below a threshold.
5. Table Display
Purpose:
A table is created (position is configurable) to display key metrics:
14-day ATR percentage
Relative volume information (as a multiple and whether it exceeds the previous day)
Price difference (absolute and percentage change)
Style:
The table cells include conditional background and text colors to highlight different market conditions.
6. Pivot Points & Labels
Pivot Calculation:
The script calculates pivot highs and lows using user-defined left/right bar lengths.
Label Drawing:
When a pivot point is detected, a label is drawn on the chart to display its value. The style and colors for these labels are also configurable by the user.
Summary
This indicator script is quite comprehensive. It not only provides multiple moving averages and an EMA cloud to help visualize trend conditions but also includes features to assess market volatility, volume dynamics, and pivot levels—all of which are displayed neatly on the chart through plots and a customizable table. The commented-out gap detection code suggests that further features could be integrated if gap analysis is required.
If you have any specific questions or need further modifications, feel free to ask!
Market Participation Index [PhenLabs]📊 Market Participation Index
Version: PineScript™ v6
📌 Description
Market Participation Index is a well-evolved statistical oscillator that constantly learns to develop by adapting to changing market behavior through the intricate mathematical modeling process. MPI combines different statistical approaches and Bayes’ probability theory of analysis to provide extensive insight into market participation and building momentum. MPI combines diverse statistical thinking principles of physics and information and marries them for subtle changes to occur in markets, levels to become influential as important price targets, and pattern divergences to unveil before it is visible by analytical methods in an old-fashioned methodology.
🚀 Points of Innovation:
Automatic market condition detection system with intelligent preset selection
Multi-statistical approach combining classical and advanced metrics
Fractal-based divergence system with quality scoring
Adaptive threshold calculation using statistical properties of current market
🚨 Important🚨
The ‘Auto’ mode intelligently selects the optimal preset based on real-time market conditions, if the visualization does not appear to the best of your liking then select the option in parenthesis next to the auto mode on the label in the oscillator in the settings panel.
🔧 Core Components
Statistical Foundation: Multiple statistical measures combined with weighted approach
Market Condition Analysis: Real-time detection of market states (trending, ranging, volatile)
Change Point Detection: Bayesian analysis for finding significant market structure shifts
Divergence System: Fractal-based pattern detection with quality assessment
Adaptive Visualization: Dynamic color schemes with context-appropriate settings
🔥 Key Features
The indicator provides comprehensive market analysis through:
Multi-statistical Oscillator: Combines Z-score, MAD, and fractal dimensions
Advanced Statistical Components: Includes skewness, kurtosis, and entropy analysis
Auto-preset System: Automatically selects optimal settings for current conditions
Fractal Divergence Analysis: Detects and grades quality of divergence patterns
Adaptive Thresholds: Dynamically adjusts overbought/oversold levels
🎨 Visualization
Color-coded Oscillator: Gradient-filled oscillator line showing intensity
Divergence Markings: Clear visualization of bullish and bearish divergences
Threshold Lines: Dynamic or fixed overbought/oversold levels
Preset Information: On-chart display of current market conditions
Multiple Color Schemes: Modern, Classic, Monochrome, and Neon themes
Classic
Modern
Monochrome
Neon
📖 Usage Guidelines
The indicator offers several customization options:
Market Condition Settings:
Preset Mode: Choose between Auto-detection or specific market condition presets
Color Theme: Select visual theme matching your chart style
Divergence Labels: Choose whether or not you’d like to see the divergence
✅ Best Use Cases:
Identify potential market reversals through statistical divergences
Detect changes in market structure before price confirmation
Filter trades based on current market condition (trending vs. ranging)
Find optimal entry and exit points using adaptive thresholds
Monitor shifts in market participation and momentum
⚠️ Limitations
Requires sufficient historical data for accurate statistical analysis
Auto-detection may lag during rapid market condition changes
Advanced statistical calculations have higher computational requirements
Manual preset selection may be required in certain transitional markets
💡 What Makes This Unique
Statistical Depth: Goes beyond traditional indicators with advanced statistical measures
Adaptive Intelligence: Automatically adjusts to current market conditions
Bayesian Analysis: Identifies statistically significant change points in market structure
Multi-factor Approach: Combines multiple statistical dimensions for confirmation
Fractal Divergence System: More robust than traditional divergence detection methods
🔬 How It Works
The indicator processes market data through four main components:
Market Condition Analysis:
Evaluates trend strength, volatility, and price patterns
Automatically selects optimal preset parameters
Adapts sensitivity based on current conditions
Statistical Oscillator:
Combines multiple statistical measures with weights
Normalizes values to consistent scale
Applies adaptive smoothing
Advanced Statistical Analysis:
Calculates higher-order statistical moments
Applies information-theoretic measures
Detects distribution anomalies
Divergence Detection:
Uses fractal theory to identify pivot points
Detects and scores divergence quality
Filters signals based on current market phase
💡 Note:
The Market Participation Index performs optimally when used across multiple timeframes for confirmation. Its statistical foundation makes it particularly valuable during market transitions and periods of changing volatility, where traditional indicators often fail to provide clear signals.
Correlation Table Small MonitorCorrelation table for small Monitor (separato in 2 Tabelle)
Uno strumento avanzato per l'analisi delle correlazioni in tempo reale
Funzionalità Principali:
1. **Monitoraggio Multi-Asset**
Analizza **32 coppie/strumenti** simultaneamente, includendo:
- Forex maggiori e incroci (EURUSD, GBPJPY, ecc.)
- Materie prime (Oro, Argento, Petrolio WTI e Brent)
- Coppie esotiche (NZDCAD, AUDNZD, ecc.)
2.Correlazione Dinamica
Calcola la correlazione rispetto allo strumento principale visualizzato sul grafico:
- Periodo regolabile (default: 50 candele)
- Formula matematica basata sulla covarianza
- Risultati in percentuale (-100% a +100%)
3. Visualizzazione Intuitiva
- Tabella verticale con codifica colore:
- **Verde**: Correlazione positiva (↑↑)
- **Rosso**: Correlazione negativa (↑↓)
- **Bianco**: Neutralità (-0.1 < correlazione < +0.1)
- Intensità del colore proporzionale alla forza della correlazione
4. Aggiornamento in Tempo Reale
- Dati sincronizzati con il timeframe selezionato
- Posizionamento non invasivo (angolo inferiore destro)
Componenti Tecnici:
- input Personalizzabili:
- Simboli modificabili direttamente dalle impostazioni
- Lunghezza periodo di correlazione regolabile
- Supporto per simboli personalizzati (es. CFD su materie prime)
- Logica di Calcolo:
```pinescript
correlation = covarianza / √(varianza1 * varianza2)
```
- Utilizza SMA per smoothing
- Normalizzazione statistica per risultati comparabili
Use Case Pratici:
1. Diversificazione del Portafoglio
Identifica asset non correlati per ridurre il rischio.
2. Conferma di Trend
Verifica co-movimenti con strumenti correlati (es. EURUSD e GBPUSD).
3. Hedging Strategico
Trova correlazioni inverse per operazioni di copertura (es. Oro vs USD).
4. Analisi Intermarket
Monitora relazioni tra valute e materie prime (es. CAD vs petrolio).
Personalizzazione:
- Aggiungi/rimuovi coppie modificando gli input `pair1`-`pair32`
- Modifica la soglia di neutralità (`neutral_threshold`)
- Regola l'opacità dei colori modificando `intensity`
Limitazioni:
- Dipendente dalla qualità dei dati del broker
- Le correlazioni storiche non garantiscono performance future
Ideale per: Swing trader, portafogli multi-asset, analisti macro. Offre una visione d'insieme rapida delle relazioni di mercato senza bisogno di multipli grafici aperti.
Consiglio:
In time frame inferiori a M15, si consiglia di aumentare i periodi per evitare un rumore statistico eccessivo. (Es. 80 - 100)
Günlük Alış ve Satış Sinyalleri (5 Günlük ve 22 Günlük)//@version=6
indicator('Günlük Alış ve Satış Sinyalleri (5 Günlük ve 22 Günlük)', overlay = true)
// 5 günlük ve 22 günlük hareketli ortalamaların hesaplanması
sma5 = ta.sma(close, 5) // 5 günlük SMA
sma22 = ta.sma(close, 22) // 22 günlük SMA
// Alış ve satış sinyalleri
longCondition = ta.crossover(sma5, sma22) // 5 günlük SMA'nın 22 günlük SMA'yı yukarıdan kesmesi
shortCondition = ta.crossunder(sma5, sma22) // 5 günlük SMA'nın 22 günlük SMA'yı aşağıdan kesmesi
// Sinyalleri grafikte gösterme
plotshape(longCondition, style = shape.labelup, location = location.belowbar, color = color.green, size = size.small, text = 'AL', offset = -1)
plotshape(shortCondition, style = shape.labeldown, location = location.abovebar, color = color.red, size = size.small, text = 'SAT', offset = -1)
// Hareketli ortalamaların grafikte gösterimi
plot(sma5, color = color.orange, title = '5 Günlük SMA', linewidth = 2)
plot(sma22, color = color.blue, title = '22 Günlük SMA', linewidth = 2)
// Fiyattan uzaklığı görselleştirmek için SMA'lar arası mesafenin gösterilmesi
fill(plot(sma5, color = color.orange, title = '5 Günlük SMA'), plot(sma22, color = color.blue, title = '22 Günlük SMA'), color = color.new(color.gray, 90), title = 'SMA Alanı')
EMA & VWAP Indicatorja indicator to use to see movement
This script:
Plots the 9 EMA, 21 EMA, 50 EMA, and 200 EMA with different colors.
Adds the VWAP as a purple step-line.
Uses overlay=true so it appears directly on your price chart.
Let me know if you want any modifications! 🚀
EMA of ATRI want to identify whether the market is currently in a sideway or trending condition. To achieve this, I use the ATR (Average True Range) as an indicator. However, ATR alone does not clearly define the market condition.
To improve accuracy, I calculate an EMA (Exponential Moving Average) of ATR as a reference.
If ATR is above the EMA → The market is in a trend.
If ATR is below the EMA → The market is in a sideway phase.
This is my definition of market conditions.
Dynamic Timeframe Trend AnalyzerThe Dynamic Timeframe Trend Analyzer is an advanced trading indicator designed to dynamically adjust key trading metrics based on the selected timeframe. It identifies market regimes, trends, and mean reversion conditions, making it a powerful tool for traders looking to adapt to changing market dynamics.
🔍 Key Features
✅ Timeframe-Aware Calculations – Automatically scales indicators (ADX, EMA, RSI, ATR) based on the selected timeframe for improved adaptability.
✅ Market Regime Detection – Classifies the market as Strong Uptrend, Strong Downtrend, Choppy, or Mean Reversion based on ADX, DI, RSI, and volatility factors.
✅ Mean Reversion Signals – Detects extreme price deviations and RSI extremes, indicating potential reversal zones.
✅ Dynamic Stop Loss & Take Profit – Adapts SL/TP levels based on volatility, trend strength, and regime conditions.
✅ Visual Signals & Alerts – Provides buy/sell signals with color-coded background changes, persistence settings, and alerts for key trading opportunities.
✅ Status Table Display – A real-time dashboard showing the current trend, ADX strength, RSI levels, volatility, and market conditions.
📈 How It Works
Uses ADX and DI to determine trend strength and classify the market.
EMA Alignment helps identify strong or weak trends.
Volatility Adjustments dynamically modify stop-loss and take-profit levels.
Mean Reversion Detection finds extreme price deviations for potential reversals.
Custom Alerts notify traders about trend changes, buy/sell opportunities, and stop loss hits.
🛠️ How to Use
Apply the indicator to your chart.
Choose your preferred timeframe – the script automatically adjusts indicator settings for optimal performance.
Watch for trend changes and reversal signals to refine your entries and exits.
Use the status table for real-time insights into the current market regime.
🚀 Perfect for traders who want a dynamic and intelligent trend-following system with built-in risk management!
is_strategyCorrection-Adaptive Trend Strategy (Open-Source)
Core Advantage: Designed specifically for the is_correction indicator, with full transparency and customization options.
Key Features:
Open-Source Code:
✅ Full access to the strategy logic – study how every trade signal is generated.
✅ Freedom to customize – modify entry/exit rules, risk parameters, or add new indicators.
✅ No black boxes – understand and trust every decision the strategy makes.
Built for is_correction:
Filters out false signals during market noise.
Works only in confirmed trends (is_correction = false).
Adaptable for Your Needs:
Change Take Profit/Stop Loss ratios directly in the code.
Add alerts, notifications, or integrate with other tools (e.g., Volume Profile).
For Developers/Traders:
Use the code as a template for your own strategies.
Test modifications risk-free on historical data.
How the Strategy Works:
Main Goal:
Automatically buys when the price starts rising and sells when it starts falling, but only during confirmed trends (ignoring temporary pullbacks).
What You See on the Chart:
📈 Up arrows ▼ (below the candle) = Buy signal.
📉 Down arrows ▲ (above the candle) = Sell signal.
Gray background = Market is in a correction (no trades).
Key Mechanics:
Buy Condition:
Price closes higher than the previous candle + is_correction confirms the main trend (not a pullback).
Example: Red candle → green candle → ▼ arrow → buy.
Sell Condition:
Price closes lower than the previous candle + is_correction confirms the trend (optional: turn off short-selling in settings).
Exit Rules:
Closes trades automatically at:
+0.5% profit (adjustable in settings).
-0.5% loss (adjustable).
Or if a reverse signal appears (e.g., sell signal after a buy).
User-Friendly Settings:
Sell – On (default: ON):
ON → Allows short-selling (selling when price falls).
OFF → Strategy only buys and closes positions.
Revers (default: OFF):
ON → Inverts signals (▼ = sell, ▲ = buy).
%Profit & %Loss:
Adjust these values (0-30%) to increase/decrease profit targets and risk.
Example Scenario:
Buy Signal:
Price rises for 3 days → green ▼ arrow → strategy buys.
Stop loss set 0.5% below entry price.
If price keeps rising → trade closes at +0.5% profit.
Correction Phase:
After a rally, price drops for 1 day → gray background → strategy ignores the drop (no action).
Stop Loss Trigger:
If price drops 0.5% from entry → trade closes automatically.
Key Features:
Correction Filter (is_correction):
Acts as a “noise filter” → avoids trades during temporary pullbacks.
Flexibility:
Disable short-selling, flip signals, or tweak profit/loss levels in seconds.
Transparency:
Open-source code → see exactly how every signal is generated (click “Source” in TradingView).
Tips for Beginners:
Test First:
Run the strategy on historical data (click the “Chart” icon in TradingView).
See how it performed in the past.
Customize It:
Increase %Profit to 2-3% for volatile assets like crypto.
Turn off Sell – On if short-selling confuses you.
Trust the Stop Loss:
Even if you think the price will rebound, the strategy will close at -0.5% to protect your capital.
Where to Find Settings:
Click the strategy name on the top-left of your chart → adjust sliders/toggles in the menu.
Русская Версия
Трендовая стратегия с открытым кодом
Главное преимущество: Полная прозрачность логики и адаптация под ваши нужды.
Особенности:
Открытый исходный код:
✅ Видите всю «кухню» стратегии – как формируются сигналы, когда открываются сделки.
✅ Меняйте правила – корректируйте тейк-профит, стоп-лосс или добавляйте новые условия.
✅ Никаких секретов – вы контролируете каждое правило.
Заточка под is_correction:
Игнорирует ложные сигналы в коррекциях.
Работает только в сильных трендах (is_correction = false).
Гибкая настройка:
Подстройте параметры под свой риск-менеджмент.
Добавьте свои индикаторы или условия для входа.
Для трейдеров и разработчиков:
Используйте код как основу для своих стратегий.
Тестируйте изменения на истории перед реальной торговлей.
Простыми словами:
Почему это удобно:
Открытый код = полный контроль. Вы можете:
Увидеть, как именно стратегия решает купить или продать.
Изменить правила закрытия сделок (например, поставить TP=2% вместо 1.5%).
Добавить новые условия (например, торговать только при высоком объёме).
Примеры кастомизации:
Новички: Меняйте только TP/SL в настройках (без кодинга).
Продвинутые: Добавьте RSI-фильтр, чтобы избегать перекупленности.
Разработчики: Встройте стратегию в свою торговую систему.
Как начать:
Скачайте код из TradingView.
Изучите логику в разделе strategy.entry/exit.
Меняйте параметры в блоке input.* (безопасно!).
Тестируйте изменения и оптимизируйте под свои цели.
Как работает стратегия:
Главная задача:
Автоматически покупает, когда цена начинает расти, и продаёт, когда падает. Но делает это «умно» — только когда рынок в основном тренде, а не во временном откате (коррекции).
Что видно на графике:
📈 Стрелки вверх ▼ (под свечой) — сигнал на покупку.
📉 Стрелки вниз ▲ (над свечой) — сигнал на продажу.
Серый фон — рынок в коррекции (не торгуем).
Как это работает:
Когда покупаем:
Если цена закрылась выше предыдущей и индикатор is_correction показывает «основной тренд» (не коррекция).
Пример: Была красная свеча → стала зелёная → появилась стрелка ▼ → покупаем.
Когда продаём:
Если цена закрылась ниже предыдущей и is_correction подтверждает тренд (опционально, можно отключить в настройках).
Когда закрываем сделку:
Автоматически при достижении:
+0.5% прибыли (можно изменить в настройках).
-0.5% убытка (можно изменить).
Или если появился противоположный сигнал (например, после покупки пришла стрелка продажи).
Настройки для чайников:
«Sell – On» (включено по умолчанию):
Если включено → стратегия будет продавать в шорт.
Если выключено → только покупки и закрытие позиций.
«Revers» (выключено по умолчанию):
Если включить → стратегия будет работать наоборот (стрелки ▼ = продажа, ▲ = покупка).
«%Profit» и «%Loss»:
Меняйте эти цифры (от 0 до 30), чтобы увеличить/уменьшить прибыль и риски.
Пример работы:
Сигнал на покупку:
Цена 3 дня растет → появляется зелёная стрелка ▼ → стратегия покупает.
Стоп-лосс ставится на 0.5% ниже цены входа.
Если цена продолжает расти → сделка закрывается при +0.5% прибыли.
Коррекция:
После роста цена падает на 1 день → фон становится серым → стратегия игнорирует это падение (не закрывает сделку).
Стоп-лосс:
Если цена упала на 0.5% от точки входа → сделка закрывается автоматически.
Важные особенности:
Фильтр коррекций (is_correction):
Это «защита от шума» — стратегия не реагирует на мелкие откаты, работая только в сильных трендах.
Гибкие настройки:
Можно запретить шорты, перевернуть сигналы или изменить уровни прибыли/убытка за 2 клика.
Прозрачность:
Весь код открыт → вы можете увидеть, как формируется каждый сигнал (меню «Исходник» в TradingView).
Советы для новичков:
Начните с теста:
Запустите стратегию на исторических данных (кнопка «Свеча» в окне TradingView).
Посмотрите, как она работала в прошлом.
Настройте под себя:
Увеличьте %Profit до 2-3%, если торгуете валюты.
Отключите «Sell – On», если не понимаете шорты.
Доверяйте стоп-лоссу:
Даже если кажется, что цена развернётся — стратегия закроет сделку при -0.5%, защитив ваш депозит.
Где найти настройки:
Кликните на название стратегии в верхнем левом углу графика → откроется меню с ползунками и переключателями.
Важно: Стратегия предоставляет «рыбу» – чтобы она стала «уловистой», адаптируйте её под свой стиль торговли!