Weight Convergence DivergenceWeight Convergence Divergence ⚖️
1. Introduction
The Weight Convergence Divergence (WCD) indicator applies principles of rotational equilibrium from classical physics to financial market analysis. By quantifying market momentum as a physical balance system, this indicator helps traders identify potential price reversals and continuation patterns through the visualization of market forces .
2. Theoretical Grounds 📚
The WCD draws inspiration from the physical concept of rotational equilibrium, where opposing forces create a balance or imbalance in a system (Giancoli, 2016, pp.247–249). In market analysis, this can be translated to the comparative measurement of bullish and bearish momentum (Bouchaud and Potters, 2003) . Lo and MacKinlay (1988) and Corbet and Katsiampa (2018) demonstrate that markets exhibit both mean-reverting and momentum characteristics, supporting the concept of opposing market forces that the WCD seeks to visualize. Bouchaud and Potters (2003) further highlight that principles from statistical physics can be applied to financial markets, providing a theoretical foundation for approaches like we are doing with the WCD.
3. Methodology 🧪
The WCD indicator quantifies market mass through the following approach:
Calculates mass by multiplying the candle's body (close-open) with volume mass = body * volume
Compares recent market mass (right side) with historical mass (left side)
Visualizes the equilibrium point with a dynamic balance line balance_ln
Generates signals when the balance shifts buy_signal = ta.crossover(right_mass, 0) and left_mass <= 0 and ly > middle_level
sell_signal = ta.crossunder(right_mass, 0) and left_mass >= 0 and ly < middle_level
4. Visual Elements 🎨
Balance Line: A tilting dashed line representing equilibrium between past and present market forces
🟩 Green Boxes: Positive market mass (bullishness)
🟥 Red Boxes: Negative market mass (bearishness)
▲ Buy Signals: When right mass turns positive while left mass is negative
▼ Sell Signals: When right mass turns negative while left mass is positive
5. Integrated Risk Management 🛡️
Automatic stop loss calculation based on Average True Range (ATR)
Dynamic profit targets calibrated to user-defined risk-reward ratios
Visual position management table to track entries, targets, and stops throughout trade duration
6. Parametrization ⚙️
Distance: Number of bars for mass calculation
ATR Length: Period for volatility calculation
ATR Factor: Multiplier applied to ATR for stop loss determination
Risk-Reward Ratio: Factor used for target calculation
7. Implementation Strategies 📈
7.1. Trend Reversal Strategy (More Risky) 🔄
Identify overextended market conditions
Wait for a counter-trend signal
Consider the calculated stop loss and take profit
7.2. Momentum Continuation Strategy (Less Risky) ➡️
Identify the prevailing trend
Look for multiple signals in the trend direction ( the balance line is not the trend! )
Wait for a second or third signal confirmation
Consider the calculated stop loss and take profit
8. Timeframe Flexibility: ⏱️
Lower timeframes (5-15m): Quick signals for scalping
Medium timeframes (30m-4h): Balanced for day trading
Higher timeframes (Daily+): Reliable signals for swing trading
9. References 📗
Bouchaud, J.-P. and Potters, M. (2003). Theory of Financial Risk and Derivative Pricing. doi: doi.org .
Corbet, S. and Katsiampa, P. (2018). Asymmetric mean reversion of Bitcoin price returns. International Review of Financial Analysis. doi: doi.org .
Giancoli, D.C. (2016). Physics : Principles with Applications. 7th ed. Harlow: Pearson Education, pp.247–249.
Lo, A.W. and MacKinlay, A.C. (1988). Stock Market Prices Do Not Follow Random Walks: Evidence from a Simple Specification Test. Review of Financial Studies, 1(1), pp.41–66. doi: doi.org .
Disclaimer ⚠️
The Weight Convergence Divergence indicator is designed for informational and educational purposes only. Past performance is not necessarily indicative of future results. Traders should conduct thorough analysis and employ proper risk management techniques. This tool does not constitute financial advice and should be used at the user's own discretion.
Statistics
ML Deep Regression Pro (TechnoBlooms)ML Deep Regression Pro is a machine-learning-inspired trading indicator that integrates Polynomial Regression, Linear Regression and Statistical Deviation models to provide a powerful, data-driven approach to market trend analysis.
Designed for traders, quantitative analysts and developers, this tool transforms raw market data into predictive trend insights, allowing for better decision-making and trend validation.
By leveraging statistical regression techniques, ML Deep Regression Pro eliminates market noise and identifies key trend shifts, making it a valuable addition to both manual and algorithmic trading strategies.
REGRESSION ANALYSIS
Regression is a statistical modeling technique used in machine learning and data science to identify patterns and relationships between variables. In trading, it helps detect price trends, reversals and volatility changes by fitting price data into a predictive model.
1. Linear Regression -
The most widely used regression model in trading, providing a best-fit plotted line to track price trends.
2. Polynomial Regression -
A more advanced form of regression that fits curved price structures, capturing complex market cycles and improving trend forecasting accuracy.
3. Standard Deviation Bands -
Based on regression calculations, these bands measure price dispersion and identify overbought/ oversold conditions, similar to Bollinger Bands. By default, these lines are hidden and user can make it visible through Settings.
KEY FEATURES :-
✅ Hybrid Regression Engine – Combines Linear and Polynomial Regression to detect market trends with greater accuracy.
✅ Dynamic Trend Bias Analysis – Identifies bullish & bearish market conditions using real-time regression models.
✅ Standard Deviation Bands – Measures price volatility and potential reversals with an advanced deviation model.
✅ Adaptive EMA Crossover Signals – Generates buy/sell signals when price momentum shifts relative to the regression trend.
Buy on 5% dip strategy with time adjustment
This script is a strategy called "Buy on 5% Dip Strategy with Time Adjustment 📉💡," which detects a 5% drop in price and triggers a buy signal 🔔. It also automatically closes the position once the set profit target is reached 💰, and it has additional logic to close the position if the loss exceeds 14% after holding for 230 days ⏳.
Strategy Explanation
Buy Condition: A buy signal is triggered when the price drops 5% from the highest price reached 🔻.
Take Profit: The position is closed when the price hits a 1.22x target from the average entry price 📈.
Forced Sell Condition: If the position is held for more than 230 days and the loss exceeds 14%, the position is automatically closed 🚫.
Leverage & Capital Allocation: Leverage is adjustable ⚖️, and you can set the percentage of capital allocated to each trade 💸.
Time Limits: The strategy allows you to set a start and end time ⏰ for trading, making the strategy active only within that specific period.
Code Credits and References
Credits: This script utilizes ideas and code from @QuantNomad and jangdokang for the profit table and algorithm concepts 🔧.
Sources:
Monthly Performance Table Script by QuantNomad:
ZenAndTheArtOfTrading's Script:
Strategy Performance
This strategy provides risk management through take profit and forced sell conditions and includes a performance table 📊 to track monthly and yearly results. You can compare backtest results with real-time performance to evaluate the strategy's effectiveness.
The performance numbers shown in the backtest reflect what would have happened if you had used this strategy since the launch date of the SOXL (the Direxion Daily Semiconductor Bull 3x Shares ETF) 📅. These results are not hypothetical but based on actual performance from the day of the ETF’s launch 📈.
Caution ⚠️
No Guarantee of Future Results: The results are based on historical performance from the launch of the SOXL ETF, but past performance does not guarantee future results. It’s important to approach with caution when applying it to live trading 🔍.
Risk Management: Leverage and capital allocation settings are crucial for managing risk ⚠️. Make sure to adjust these according to your risk tolerance ⚖️.
HBND ReferenceChart the HBND as an index based on weighting found on the HBND Etf website. For best results display the adjusted close since HBND is a high yielding fund. The weightings have to be updated manually.
There are three display options:
1. Normalize the index relative to the symbol on the chart (presumably HBND) and this is the default.
2. Percentage change relative to the first bar of the index
3. The raw value which will be the tlt price * tlt percentage weighting + vglt price * vglt percentage weighting + edv percentage weighting * edv price.
MF Global Money Supply M2 by MigueFinanceglobal m2 offset 70/aspdoifcjapsodifjpa oswedf pxaciswfpmqonvjswdf
sessionRangeLib6Library for calculating Ticks Range of the 6 MCR Sessions
Library "sessionRangeLib6"
initAllSessions()
processSessions(state, price)
Parameters:
state (AllSessions)
price (float)
getAsiaTicks(state)
Parameters:
state (AllSessions)
getLondonTicks(state)
Parameters:
state (AllSessions)
getNYAMTicks(state)
Parameters:
state (AllSessions)
getNYPMTicks(state)
Parameters:
state (AllSessions)
getCoilTicks(state)
Parameters:
state (AllSessions)
getSecretTicks(state)
Parameters:
state (AllSessions)
getAsiaAvg(state)
Parameters:
state (AllSessions)
getLondonAvg(state)
Parameters:
state (AllSessions)
getNYAMAvg(state)
Parameters:
state (AllSessions)
getNYPMAvg(state)
Parameters:
state (AllSessions)
getCoilAvg(state)
Parameters:
state (AllSessions)
getSecretAvg(state)
Parameters:
state (AllSessions)
Session
Fields:
high (series float)
low (series float)
s_range (series float)
ranges (array)
active_prev (series bool)
AllSessions
Fields:
as_session (Session)
lo_session (Session)
na_session (Session)
nl_session (Session)
coil_session (Session)
secret_session (Session)
LockedSessionLibLibrary "LockedSessionLib"
f_getLockedTicksAsia()
f_getLockedTicksCoil()
f_getLockedTicksLondon()
f_getLockedTicksSecret()
f_getLockedTicksNYAM()
f_getLockedTicksNYPM()
This is a script that get corrects session range Ticks Values
ALPHATOTAL1Library "ALPHATOTAL1"
TODO: add library description here
alpha(beta, asset)
Parameters:
beta (float)
asset (float)
ADX BoxDescription:
The ADX Box indicator provides traders with a quick and intuitive way to monitor the current trend strength based on the Average Directional Index (ADX), calculated with a customisable period (default: 7 periods).
This compact indicator neatly displays the current ADX value rounded to one decimal place, along with a clear directional arrow:
Green upward triangle (▲): Indicates that ADX is rising above its moving average, signaling increasing trend strength.
Red downward triangle (▼): Indicates that ADX is declining below its moving average, signaling weakening trend strength.
Key Features:
Small and clean visual representation.
Dynamically updates in real-time directly on the chart.
Ideal for quick trend strength assessment without cluttering your workspace.
Recommended Usage:
Quickly identifying whether market trends are strengthening or weakening.
Enhancing decision-making for trend-following or breakout trading strategies.
Complementing other indicators such as ATR boxes for volatility measurement.
Feel free to use, share, and incorporate this indicator into your trading setups for clearer insights and more confident trading decisions!
BetaTOTAL1Library "BetaTOTAL1"
TODO: add library description here
beta(x, y)
Parameters:
x (int)
y (float)
30-Minute Candle Breakout with Fibonacci and Stop Loss a code that just indicates a 30-minute candle.
broken after 15 minutes, if these criteria are present in the candle, choose the candle's top with a line in 30 minutes and its bottom with a line.
Custom 6H Candle HighlightHighlights a certain 6H candle on the chart. Input which 6H Candle in the settings for the indicator.
Trade size calculatorOverview
The Trade Size Calculator helps traders determine optimal trade sizes based on risk management principles. It calculates the number of shares to buy, stop-loss levels, and target prices while analyzing market trends and volatility.
How It Works
Risk & Allocation: Users input their account size, risk percentage per trade, and allocation percentage to determine capital exposure. ATR-based stop-loss can be enabled for volatility-adjusted risk management.
Market Trend Detection: Uses 9 & 21 EMA to identify short-term trend direction. Bollinger Bands and ATR help detect consolidation phases (low volatility).
Trade Calculations: Computes position size, stop-loss, shares to buy, and target price (2:1 Risk-Reward Ratio).
On-Chart Table: Displays key trading metrics:
Current Price
Shares to Buy
Stop-Loss Price
Target Price (2:1 RRR)
Short-Term Trend
How to Use
Add to Chart: Paste this script into TradingView's Pine Script Editor and click Add to Chart.
Adjust Settings: Modify account size, risk percentage, and ATR stop-loss multiplier as needed.
Use the Table Data: Follow the trade size, stop-loss, target price, and trend indicator to plan trades effectively.
Correlation TableThis indicator displays a vertical table that shows the correlation between the asset currently loaded on the chart and up to 32 selected trading pairs. It offers the following features:
Chart-Based Correlation: Correlations are calculated based on the asset you have loaded in your chart, providing relevant insights for your current market focus.
Configurable Pairs: Choose from a list of 32 symbols (e.g., AUDUSD, EURUSD, GBPUSD, etc.) with individual checkboxes to include or exclude each pair in the correlation analysis.
Custom Correlation Length: Adjust the lookback period for the correlation calculation to suit your analysis needs.
Optional EMA Smoothing: Enable an Exponential Moving Average (EMA) on the price data, with a configurable EMA length, to smooth the series before calculating correlations.
Color-Coded Output: The table cells change color based on the correlation strength and direction—neutral, bullish (green), or bearish (red)—making it easy to interpret at a glance.
Clear Table Layout: The indicator outputs a neatly organized vertical table with headers for "Pair" and "Correlation," ensuring the information is displayed cleanly and is easy to understand.
Ideal for traders who want a quick visual overview of how different instruments correlate with their current asset, this tool supports informed multi-asset analysis
ITALIANO:
Questo indicatore visualizza una tabella verticale che mostra la correlazione tra l'asset attualmente caricato sul grafico e fino a 32 coppie di trading selezionate. Offre le seguenti funzionalità:
Correlazione basata sul grafico: le correlazioni vengono calcolate in base all'asset caricato nel grafico, fornendo informazioni pertinenti per il tuo attuale focus di mercato.
Coppie configurabili: scegli da un elenco di 32 simboli (ad esempio, AUDUSD, EURUSD, GBPUSD, ecc.) con caselle di controllo individuali per includere o escludere ciascuna coppia nell'analisi della correlazione.
Lunghezza di correlazione personalizzata: regola il periodo di lookback per il calcolo della correlazione in base alle tue esigenze di analisi.
Smoothing EMA opzionale: abilita una media mobile esponenziale (EMA) sui dati dei prezzi, con una lunghezza EMA configurabile, per smussare la serie prima di calcolare le correlazioni.
Output codificato a colori: le celle della tabella cambiano colore in base alla forza e alla direzione della correlazione, neutra, rialzista (verde) o ribassista (rosso), rendendola facile da interpretare a colpo d'occhio.
Clear Table Layout: l'indicatore genera una tabella verticale ordinatamente organizzata con intestazioni per "Coppia" e "Correlazione", assicurando che le informazioni siano visualizzate in modo chiaro e siano facili da comprendere.
Ideale per i trader che desiderano una rapida panoramica visiva di come diversi strumenti siano correlati con il loro asset corrente, questo strumento supporta un'analisi multi-asset informata
Standard Deviation (fadi)The Standard Deviation indicator uses standard deviation to map out price movements. Standard deviation measures how much prices stray from their average—small values mean steady trends, large ones mean wild swings. Drawing from up to 20 years of data, it plots key levels using customizable Fibonacci lines tied to that standard deviation, giving traders a snapshot of typical price behavior.
These levels align with a bell curve: about 68% of price moves stay within 1 standard deviation, 95% within roughly 2, and 99.7% within roughly 3. When prices break past the 1 StDev line, they’re outliers—only 32% of moves go that far. Prices often snap back to these lines or the average, though the reversal might not happen the same day.
How Traders Use It
If prices surge past the 1 StDev line, traders might wait for momentum to fade, then trade the pullback to that line or the average, setting a target and stop.
If prices dip below, they might buy, anticipating a bounce—sometimes a day or two later. It’s a tool to spot overstretched prices likely to revert and/or measure the odds of continuation.
Settings
Higher Timeframe: Sets the Higher Timeframe to calculate the Standard Deviation for
Show Levels for the Last X Days: Displays levels for the specified number of days.
Based on X Period: Number of days to calculate standard deviation (e.g., 20 years ≈ 5,040 days). Larger periods smooth out daily level changes.
Mirror Levels on the Other Side: Plots symmetric positive and negative levels around the average.
Fibonacci Levels Settings: Defines which levels and line styles to show. With mirroring, negative values aren’t needed.
Background Transparency: Turn on Background color derived from the level colors with the specified transparency
Overrides: Lets advanced users input custom standard deviations for specific tickers (e.g., NQ1! at 0.01296).
Crypto Breakout Screener (1H)The Crypto Breakout Screener (1H) identifies coins showing early signs of bullish momentum after testing bottom support levels. It combines gap percentage, volume surge, RSI range, and MACD crossover to highlight potential breakout setups. Designed for the 1-hour timeframe, this tool helps traders catch moves before they fully develop.
StatPivot- Dynamic Range Analyzer - indicator [PresentTrading]Hello everyone! In the following few open scripts, I would like to share various statistical tools that benefit trading. For this time, it is a powerful indicator called StatPivot- Dynamic Range Analyzer that brings a whole new dimension to your technical analysis toolkit.
This tool goes beyond traditional pivot point analysis by providing comprehensive statistical insights about price movements, helping you identify high-probability trading opportunities based on historical data patterns rather than subjective interpretations. Whether you're a day trader, swing trader, or position trader, StatPivot's real-time percentile rankings give you a statistical edge in understanding exactly where current price action stands within historical contexts.
Welcome to share your opinions! Looking forward to sharing the next tool soon!
█ Introduction and How it is Different
StatPivot is an advanced technical analysis tool that revolutionizes retracement analysis. Unlike traditional pivot indicators that only show static support/resistance levels, StatPivot delivers dynamic statistical insights based on historical pivot patterns.
Its key innovation is real-time percentile calculation - while conventional tools require new pivot formations before updating (often too late for trading decisions), StatPivot continuously analyzes where current price stands within historical retracement distributions.
Furthermore, StatPivot provides comprehensive statistical metrics including mean, median, standard deviation, and percentile distributions of price movements, giving traders a probabilistic edge by revealing which price levels represent statistically significant zones for potential reversals or continuations. By transforming raw price data into statistical insights, StatPivot helps traders move beyond subjective price analysis to evidence-based decision making.
█ Strategy, How it Works: Detailed Explanation
🔶 Pivot Point Detection and Analysis
The core of StatPivot's functionality begins with identifying significant pivot points in the price structure. Using the parameters left and right, the indicator locates pivot highs and lows by examining a specified number of bars to the left and right of each potential pivot point:
Copyp_low = ta.pivotlow(low, left, right)
p_high = ta.pivothigh(high, left, right)
For a point to qualify as a pivot low, it must have left higher lows to its left and right higher lows to its right. Similarly, a pivot high must have left lower highs to its left and right lower highs to its right. This approach ensures that only significant turning points are recognized.
🔶 Percentage Change Calculation
Once pivot points are identified, StatPivot calculates the percentage changes between consecutive pivot points:
For drops (when a pivot low is lower than the previous pivot low):
CopydropPercent = (previous_pivot_low - current_pivot_low) / previous_pivot_low * 100
For rises (when a pivot high is higher than the previous pivot high):
CopyrisePercent = (current_pivot_high - previous_pivot_high) / previous_pivot_high * 100
These calculations quantify the magnitude of each market swing, allowing for statistical analysis of historical price movements.
🔶 Statistical Distribution Analysis
StatPivot computes comprehensive statistics on the historical distribution of drops and rises:
Average (Mean): The arithmetic mean of all recorded percentage changes
CopyavgDrop = array.avg(dropValues)
Median: The middle value when all percentage changes are arranged in order
CopymedianDrop = array.median(dropValues)
Standard Deviation: Measures the dispersion of percentage changes from the average
CopystdDevDrop = array.stdev(dropValues)
Percentiles (25th, 75th): Values below which 25% and 75% of observations fall
Copyq1 = array.get(sorted, math.floor(cnt * 0.25))
q3 = array.get(sorted, math.floor(cnt * 0.75))
VaR95: The maximum expected percentage drop with 95% confidence
Copyvar95D = array.get(sortedD, math.floor(nD * 0.95))
Coefficient of Variation (CV): Measures relative variability
CopycvD = stdDevDrop / avgDrop
These statistics provide a comprehensive view of market behavior, enabling traders to understand the typical ranges and extreme moves.
🔶 Real-time Percentile Ranking
StatPivot's most innovative feature is its real-time percentile calculation. For each current price, it calculates:
The percentage drop from the latest pivot high:
CopycurrentDropPct = (latestPivotHigh - close) / latestPivotHigh * 100
The percentage rise from the latest pivot low:
CopycurrentRisePct = (close - latestPivotLow) / latestPivotLow * 100
The percentile ranks of these values within the historical distribution:
CopyrealtimeDropRank = (count of historical drops <= currentDropPct) / total drops * 100
This calculation reveals exactly where the current price movement stands in relation to all historical movements, providing crucial context for decision-making.
🔶 Cluster Analysis
To identify the most common retracement zones, StatPivot performs a cluster analysis by dividing the range of historical drops into five equal intervals:
CopyrangeSize = maxVal - minVal
For each interval boundary:
Copyboundaries = minVal + rangeSize * i / 5
By counting the number of observations in each interval, the indicator identifies the most frequently occurring retracement zones, which often serve as significant support or resistance areas.
🔶 Expected Price Targets
Using the statistical data, StatPivot calculates expected price targets:
CopytargetBuyPrice = close * (1 - avgDrop / 100)
targetSellPrice = close * (1 + avgRise / 100)
These targets represent statistically probable price levels for potential entries and exits based on the average historical behavior of the market.
█ Trade Direction
StatPivot functions as an analytical tool rather than a direct trading signal generator, providing statistical insights that can be applied to various trading strategies. However, the data it generates can be interpreted for different trade directions:
For Long Trades:
Entry considerations: Look for price drops that reach the 70-80th percentile range in the historical distribution, suggesting a statistically significant retracement
Target setting: Use the Expected Sell price or consider the average rise percentage as a reasonable target
Risk management: Set stop losses below recent pivot lows or at a distance related to the statistical volatility (standard deviation)
For Short Trades:
Entry considerations: Look for price rises that reach the 70-80th percentile range, indicating an unusual extension
Target setting: Use the Expected Buy price or average drop percentage as a target
Risk management: Set stop losses above recent pivot highs or based on statistical measures of volatility
For Range Trading:
Use the most common drop and rise clusters to identify probable reversal zones
Trade bounces between these statistically significant levels
For Trend Following:
Confirm trend strength by analyzing consecutive higher pivot lows (uptrend) or lower pivot highs (downtrend)
Use lower percentile retracements (20-30th percentile) as entry opportunities in established trends
█ Usage
StatPivot offers multiple ways to integrate its statistical insights into your trading workflow:
Statistical Table Analysis: Review the comprehensive statistics displayed in the data table to understand the market's behavior. Pay particular attention to:
Average drop and rise percentages to set reasonable expectations
Standard deviation to gauge volatility
VaR95 for risk assessment
Real-time Percentile Monitoring: Watch the real-time percentile display to see where the current price movement stands within the historical distribution. This can help identify:
Extreme movements (90th+ percentile) that might indicate reversal opportunities
Typical retracements (40-60th percentile) that might continue further
Shallow pullbacks (10-30th percentile) that might represent continuation opportunities in trends
Support and Resistance Identification: Utilize the plotted pivot points as key support and resistance levels, especially when they align with statistically significant percentile ranges.
Target Price Setting: Use the expected buy and sell prices calculated from historical averages as initial targets for your trades.
Risk Management: Apply the statistical measurements like standard deviation and VaR95 to set appropriate stop loss levels that account for the market's historical volatility.
Pattern Recognition: Over time, learn to recognize when certain percentile levels consistently lead to reversals or continuations in your specific market, and develop personalized strategies based on these observations.
█ Default Settings
The default settings of StatPivot have been carefully calibrated to provide reliable statistical analysis across a variety of markets and timeframes, but understanding their effects allows for optimal customization:
Left Bars (30) and Right Bars (30): These parameters determine how pivot points are identified. With both set to 30 by default:
A pivot low must be the lowest point among 30 bars to its left and 30 bars to its right
A pivot high must be the highest point among 30 bars to its left and 30 bars to its right
Effect on performance: Larger values create fewer but more significant pivot points, reducing noise but potentially missing important market structures. Smaller values generate more pivot points, capturing more nuanced movements but potentially including noise.
Table Position (Top Right): Determines where the statistical data table appears on the chart.
Effect on performance: No impact on analytical performance, purely a visual preference.
Show Distribution Histogram (False): Controls whether the distribution histogram of drop percentages is displayed.
Effect on performance: Enabling this provides visual insight into the distribution of retracements but can clutter the chart.
Show Real-time Percentile (True): Toggles the display of real-time percentile rankings.
Effect on performance: A critical setting that enables the dynamic analysis of current price movements. Disabling this removes one of the key advantages of the indicator.
Real-time Percentile Display Mode (Label): Chooses between label display or indicator line for percentile rankings.
Effect on performance: Labels provide precise information at the current price point, while indicator lines show the evolution of percentile rankings over time.
Advanced Considerations for Settings Optimization:
Timeframe Adjustment: Higher timeframes generally benefit from larger Left/Right values to identify truly significant pivots, while lower timeframes may require smaller values to capture shorter-term swings.
Volatility-Based Tuning: In highly volatile markets, consider increasing the Left/Right values to filter out noise. In less volatile conditions, lower values can help identify more potential entry and exit points.
Market-Specific Optimization: Different markets (forex, stocks, commodities) display different retracement patterns. Monitor the statistics table to see if your market typically shows larger or smaller retracements than the current settings are optimized for.
Trading Style Alignment: Adjust the settings to match your trading timeframe. Day traders might prefer settings that identify shorter-term pivots (smaller Left/Right values), while swing traders benefit from more significant pivots (larger Left/Right values).
By understanding how these settings affect the analysis and customizing them to your specific market and trading style, you can maximize the effectiveness of StatPivot as a powerful statistical tool for identifying high-probability trading opportunities.
Time Marker Pro: Vertical Line at Key Times)Smart Vertical Line at Specific Time (with Timezone, Color, and Width Controls)
This script draws a vertical line on your chart at a user-defined time once per day, based on the selected timezone.
🕒 Key Features:
Set your target hour and minute
Choose from a list of common timezones (Tehran, UTC, New York, etc.)
Customize the line color and thickness
Works across all intraday timeframes (1min, 5min, 15min, etc.)
Adjusts automatically to bar intervals — no need for exact time matching
This is perfect for traders who want to:
Highlight the start of a session
Mark specific news times, breakouts, or routine entries
Visualize key time-based levels on the chart
EMA 5/13/20/50/100/200Dieses TradingView-Skript zeigt sechs Exponentielle Gleitende Durchschnitte (EMAs) mit unterschiedlichen Perioden auf dem Chart an. EMAs sind ein beliebtes technisches Analysetool, das dabei hilft, Trends und mögliche Umkehrpunkte zu identifizieren.
Enthaltene EMAs:
EMA 5 (rot): Sehr kurzfristiger Trendindikator
EMA 13 (aqua): Kurzfristiger Trendindikator
EMA 20 (schwarz): Mittelfristiger Trendindikator
EMA 50 (blau): Längerfristiger Trendindikator
EMA 100 (grün, dicke Linie): Langfristiger Trendindikator
EMA 200 (orange, dicke Linie): Sehr langfristiger Trendindikator
Die EMA 100 und EMA 200 werden mit einer dickeren Linie dargestellt, da sie häufig als starke Unterstützungs- oder Widerstandszonen dienen. Dieses Skript eignet sich für verschiedene Trading-Strategien, insbesondere für Trendfolge-Strategien und zur Identifikation von Trendwenden.
🔹 Skalptrading:
Die EMAs sind besonders gut für das Skalptrading im 3- und 5-Minuten-Chart geeignet. Trader können schnelle Marktbewegungen nutzen, indem sie auf kurzfristige Kreuzungen und Abpraller an den EMAs achten.
MA Smoothed RSI For LoopMA Smoothed Source For RSI Loop
Conceptual Foundation and Innovation
The "MA Smoothed Source For RSI Loop" indicator innovates by smoothing the source data used for RSI calculation with various moving averages before feeding it into a for-loop scoring system. Rather than smoothing the RSI itself, this approach focuses on pre-processing the price data to reduce noise, thereby providing a cleaner input for RSI computation. The for-loop then evaluates this smoothed RSI to generate momentum signals, offering traders a refined method for detecting market trends and potential reversals.
Technical Composition and Calculation
The indicator's functionality is divided into two main parts:
Source Smoothing: Before calculating RSI, the source data (typically close price) is smoothed using one of several moving averages (EMA, SMA, WMA, VWMA, HMA, RMA, DEMA, or none) as selected by the user. This smoothing aims to filter out short-term volatility, providing a more consistent base for RSI calculation.
RSI Calculation and For-Loop Scoring:
RSI: Calculated using the smoothed source data over a user-defined length.
For-Loop Mechanism: A loop runs from a to b, comparing the current RSI value with past values of this smoothed RSI. A score (counter) is generated, which increases or decreases based on whether the current RSI exceeds or falls below past values. If the weighted option is activated, this comparison gives more weight to recent data points, adjusting the score accordingly.
The final score is then potentially normalized for better interpretation, compared against thresholds to determine market momentum signals.
Features and User Inputs
This indicator is highly customizable, allowing traders to tailor its behavior:
Weighted Calculation: Option to adjust scoring to favor recent price action.
RSI Length: Sets the period for RSI calculation.
Source: The price data to be smoothed before RSI calculation, default is close.
MA Type: Choice from various moving averages to smooth the source data.
Smooth Length: Length of the moving average used for smoothing.
For Loop Range: Defines the historical range (a to b) for the scoring loop.
Thresholds: Custom thresholds to define when signals for uptrends or downtrends are generated.
Practical Applications
This indicator is particularly beneficial for:
Identifying Momentum Shifts: The scoring system helps in detecting potential changes in market momentum.
Noise Reduction: By smoothing the source data, it aims to provide more reliable RSI signals in volatile markets.
Trend Analysis: Assists in confirming or challenging the current market trend based on the smoothed RSI's performance.
Advantages and Strategic Value
The "MA Smoothed Source For RSI Loop" offers an advantage by focusing on cleaning the input data for RSI, which can lead to more accurate momentum readings. Its flexibility in configuration allows traders to adapt the indicator to different market conditions or asset volatilities, enhancing its strategic value in trading decisions.
Alerts and Visual Cues
Visual Signals: The indicator plots the loop score, with colors indicating uptrends (gold) or downtrends (blue). Horizontal lines at thresholds and shaded areas between them provide visual aids for trend analysis.
**No explicit alerts in the script, but users can set up custom alerts based on the signals.
Summary and Usage Tips
The "MA Smoothed Source For RSI Loop" provides a nuanced approach to RSI by smoothing the price data before its calculation, resulting in potentially more reliable signals. Traders can use this indicator to gain a clearer picture of market momentum, adjusting parameters to fit different market behaviors or trading strategies. Remember, the effectiveness of this tool largely depends on its customization to the specific market context.
Note: Backtests are based on past results and do not guarantee future performance.