Session Start & Day BackgroundThis indicator visually enhances your TradingView charts by highlighting the start of each new trading day and coloring the background based on the day of the week.
The first candle of each new trading day is marked in gray for better session separation.
The background color changes based on the current day of the week, making it easier to recognize market patterns and trends at a glance.
Works across all markets including Forex, Stocks, and Crypto.
Designed to improve chart readability and market structure visualization.
Ideal for traders who want a clearer overview of daily sessions and better differentiation between trading days! 🚀
Analisi trend
MTF Fibonacci Pivots with Mandelbrot FractalsMTF Fibonacci Pivots with Mandelbrot Fractals: Advanced Market Structure Analysis
Overview
The MTF Fibonacci Pivots with Mandelbrot Fractals indicator represents a significant advancement in technical analysis by combining multi-timeframe Fibonacci pivot levels with sophisticated fractal pattern recognition. This powerful tool identifies key support and resistance zones while predicting potential price reversals with remarkable accuracy.
Key Capabilities
This indicator provides traders with three distinct layers of market structure analysis:
Automatic Timeframe Adaptation: The primary pivot set automatically adjusts to your chart's timeframe, ensuring relevant support and resistance levels for your specific trading horizon.
1-Year Fibonacci Pivots: The second layer displays yearly pivots that reveal long-term market cycles and institutional price levels that often act as significant reversal points.
3-Year Fibonacci Pivots: The third layer unveils major market structure zones that typically remain relevant for extended periods, offering strategic context for position trading and long-term investment decisions.
Predictive Technology
What truly distinguishes this indicator is its advanced predictive capability powered by:
Mandelbrot Fractal Pattern Recognition: The indicator implements a sophisticated fractal detection algorithm that identifies recurring price patterns across multiple timeframes. Unlike conventional fractal indicators, it incorporates noise filtering and adaptive sensitivity to market volatility.
Tesla's 3-6-9 Principle Integration: The system incorporates Nikola Tesla's mathematical principle through a cubic Mandelbrot equation (Z_{n+1} = Z_n^3 + C where Z_0 = 0), creating a unique approach to pattern recognition that aligns with natural market rhythms.
Historical Pattern Matching: When a current price pattern exhibits strong similarity to historical formations, the indicator generates predictive targets with confidence ratings. Each prediction undergoes rigorous validation against multiple parameters including trend alignment, volatility context, and mathematical coherence.
Visual Intelligence System
The indicator's visual presentation enhances trading decision-making through:
Confidence-Based Visualization: Predictions display with intuitive star ratings, percentage confidence scores, and contextual information including price movement magnitude and estimated time to target.
Adaptive Color Harmonization: The color system intelligently adjusts to provide optimal visibility while maintaining a professional appearance suitable for any chart setup.
Trend Alignment Indicators: Each prediction includes references to the broader trend context, helping traders avoid counter-trend trades unless the reversal signal carries exceptional strength.
Strategic Applications
This indicator excels in multiple trading scenarios:
Intraday Trading: Identify high-probability reversal zones with precise timing
Swing Trading: Anticipate significant market turns at key structural levels
Position Trading: Recognize major cycle shifts for strategic entry and exit
The automatic 1-year and 3-year Fibonacci pivots provide institutional-grade reference points that typically define major market movements. These longer timeframes reveal critical zones that might be invisible on shorter-term analysis, giving you a significant edge in understanding where price is likely to encounter substantial buying or selling pressure.
This innovative approach to market analysis combines classical Fibonacci mathematics with cutting-edge fractal theory to create a comprehensive market structure visualization system that illuminates both present support/resistance levels and future price targets with exceptional clarity.
Setting Up MTF Fibonacci Pivots with Mandelbrot Fractals
Initial Setup
Adding this indicator to your TradingView charts is straightforward:
Navigate to the "Indicators" button on your chart toolbar
Search for "MTF Fibonacci Pivots with Mandelbrot Fractals"
Select the indicator to add it to your chart
A configuration panel will appear with various setting categories
Recommended Settings
The indicator comes pre-configured with optimal default settings, but you may want to adjust them based on your trading style:
For Day Trading (Timeframes 1-minute to 1-hour)
Pivots Timeframe 1: Auto (automatically adapts to your chart)
Pivots Timeframe 2: Daily
Pivots Timeframe 3: Weekly
Fractal Sensitivity: 2-3
Fractal Lookback Period: 20
Prediction Strength: 2
Color Theme: High Contrast or Dark Mode
For Swing Trading (Timeframes 4-hour to Daily)
Pivots Timeframe 1: Daily
Pivots Timeframe 2: Weekly
Pivots Timeframe 3: Monthly
Fractal Sensitivity: 1-2
Fractal Lookback Period: 30
Prediction Strength: 2-3
Color Theme: Default or Dimmed
For Position Trading (Timeframes Daily to Weekly)
Pivots Timeframe 1: Weekly
Pivots Timeframe 2: Monthly
Pivots Timeframe 3: Quarterly
Fractal Sensitivity: 1
Fractal Lookback Period: 50
Prediction Strength: 1
Color Theme: Monochrome or Pastel
Restoring Default Settings
If you've adjusted settings and wish to return to the defaults:
Right-click on the indicator name on your chart
Select "Settings" from the context menu
In the settings dialog, look for the "Reset All" button at the bottom
Confirm the reset when prompted
Alternatively, you can remove the indicator and add it again for a fresh start with default settings.
Advanced Settings Guidance
Visual Appearance
Use Gradient Colors: Enable for better visual differentiation between pivot levels
Color Transparency: 15% provides an optimal balance between visibility and chart clutter
Line Width: 1-2 for cleaner charts, 3+ for enhanced visibility
Fractal Analysis
Enable Fractal Analysis: Keep enabled for prediction capabilities
Fractal Box Spacing: Higher values (5-10) for cleaner displays, lower values (1-3) for more signals
Maximum Forecast Bars: 20 is optimal for most timeframes, adjust higher for longer predictions
Performance Considerations
Enable Self-Optimization: Keep enabled to maintain smooth chart performance
Resource Priority: Use "Balanced" for most computers, "Performance" for older systems
Force Pivot Display: Enable only when checking specific historical periods
Common Setup Mistakes to Avoid
Setting all timeframes too close together (e.g., Daily, Daily, Weekly) reduces the multi-timeframe advantage
Using high fractal sensitivity (4+) on noisy markets creates excessive signals
Setting fractal box spacing too low causes cluttered prediction boxes
Disabling self-optimization may cause performance issues on complex charts
Using incompatible color themes for your chart background reduces visibility
The indicator's power comes from its default 1-year and 3-year Fibonacci pivot settings, which highlight institutional levels while the auto-timeframe setting adapts to your trading horizon. These carefully balanced defaults provide an excellent starting point for most traders.
For optimal results, I recommend making minimal adjustments at first, then gradually customizing settings as you become familiar with the indicator's behavior in your specific markets and timeframes.
Screenshots:
MACD with TrendIndicator Name: MACD with Trend & Multi-Timeframe Dashboard
Why Use This Indicator?
Two MACDs for Double Confirmation:
It integrates both a standard MACD (fast/slow lengths of your choice) and a Trend MACD (longer lengths). The standard MACD identifies short-term momentum shifts, while the Trend MACD helps confirm the higher-level market trend.
Multi-Timeframe 50/200 SMA Overview:
A built-in dashboard quickly shows whether the 50-period moving average is above or below the 200-period moving average across multiple timeframes (Monthly, Weekly, Daily, etc.). At a glance, you can see if higher timeframes agree with your immediate trading setup.
Clear Buy/Sell Signals:
The script plots buy arrows when the MACD histogram crosses from negative to positive, plus an additional label for the Trend MACD crossing. The same goes for sell signals if momentum flips from positive to negative. This clarity can reduce guesswork.
Customizable & Intuitive:
Easily adjust moving average types (SMA or EMA), lengths, and source inputs to suit different asset classes or personal preferences. Visual color coding helps you quickly interpret bullish vs. bearish conditions.
Recommended Trading Approach
Identify Overall Trend
Check the Trend MACD histogram and the multi-timeframe dashboard (50/200 SMAs). If you see bullish alignment on higher timeframes (e.g., Daily, Weekly) and the Trend MACD is above zero, you know the market environment is supportive for long trades.
Pinpoint Entry Using Standard MACD
Wait for the standard MACD histogram to cross above zero or for a labeled “Buy Signal.” This indicates short-term momentum turning bullish in sync with the broader trend. If the market is already trending up (confirmed by the dashboard), the probability of a successful long entry often improves.
Set a Stop-Loss & Take-Profit
While not included in the code, adding an ATR- or price-based stop-loss can protect against sudden reversals. A simple approach is risking 1–2% per trade and aiming for a 1.5–2× reward relative to that risk.
Monitor Sell Signals
If the short-term MACD crosses below zero—triggering a “Sell Signal”—and the Trend MACD also turns down (or the dashboard flips bearish), consider exiting the position or tightening stops. This alignment of short- and long-term indicators often signals a shift in momentum that could threaten your open profits.
Summary
The MACD with Trend & Multi-Timeframe Dashboard is a versatile, all-in-one toolkit. It combines the immediacy of short-term MACD signals, the validation of a longer-term trend oscillator, and the broader insight of multi-timeframe moving averages. Whether you are a swing trader looking for alignment across bigger trends or a shorter-term trader wanting clear momentum triggers, this indicator helps streamline decision-making and reduce noise.
Disclaimer: As with all technical analysis tools, there is no guarantee of success. Always combine indicator signals with sound risk management and a thorough understanding of market conditions
Breakout Support & Resistance SwiftEdgeBreakout Support & Resistance
The Breakout is a technical analysis tool designed to identify breakout opportunities in the market by detecting price movements through support and resistance levels. It plots potential entry points, stop-loss (SL), and take-profit (TP) levels based on user-defined percentages, helping traders visualize breakout setups on their charts.
How It Works
Support and Resistance Detection: The indicator uses pivot points to identify support and resistance levels over a user-defined lookback period.
Breakout Identification: A breakout is confirmed when the price crosses above a resistance level (bullish) or below a support level (bearish) and remains there for a specified number of bars.
Entry, SL, and TP Levels: Upon a confirmed breakout, the indicator sets an entry point at the closing price and calculates SL, TP1, and TP2 levels based on user-defined percentages.
Directional Filtering: To avoid conflicting signals, the indicator filters breakouts based on the current trade direction. A new entry in the opposite direction is only set if the price moves a user-defined percentage away from the previous entry or if the previous trade hits its SL, TP1, or TP2.
Visuals: The indicator plots support and resistance lines, breakout labels, and entry/SL/TP levels on the chart. Users can choose to display only the latest entry or up to 5 recent entries.
Features
Customizable Settings: Adjust the lookback period for pivot points, breakout confirmation bars, SL/TP percentages, and more.
Directional Change Control: A direction change is indicated when the price moves significantly in the opposite direction, helping to manage trend reversals.
Multiple Entry Display: Option to show up to 5 recent entries for tracking multiple breakouts.
Alerts: Receive alerts when a breakout is confirmed, including entry, SL, TP1, and TP2 levels.
Settings
Pivot Lookback Length: Number of bars to look back for identifying support and resistance levels (default: 5).
Breakout Confirmation Bars: Number of bars the price must stay above/below the level to confirm a breakout (default: 2).
Take Profit 1 (%): First take-profit level as a percentage above/below the entry (default: 2.0%).
Take Profit 2 (%): Second take-profit level as a percentage above/below the entry (default: 4.0%).
Stop Loss (%): Stop-loss level as a percentage below/above the entry (default: 1.0%).
Show Multiple Entries: Toggle to display up to 5 recent entries or only the latest (default: false).
Direction Change Threshold (%): Percentage the price must move away from the entry to allow a direction change (default: 2.0%).
How to Use
Add the Breakout Scanner to your chart.
Adjust the settings to match your trading style (e.g., tweak the pivot lookback or SL/TP percentages).
Watch for breakout labels ("Breakout") on the chart, indicating a confirmed breakout.
Use the plotted entry, SL, TP1, and TP2 levels to plan your trades.
Enable alerts to be notified of new breakouts in real-time.
Notes
This indicator is designed to assist with identifying breakout opportunities and does not guarantee specific results. Always combine it with other analysis and risk management techniques.
The direction change feature helps filter breakouts in the opposite direction, but significant price movements may still trigger a new entry in the opposite direction.
For best results, test the indicator on a demo account to understand its behavior in your preferred market and timeframe.
Trend Detection
#### *Description:*
This *Trend Detection* indicator is designed to help traders identify and confirm trends in the market using a combination of moving averages, volume analysis, and MACD filters. It provides clear visual signals for uptrends and downtrends, along with customizable settings to adapt to different trading styles and timeframes. The indicator is suitable for both beginners and advanced traders who want to improve their trend-following strategies.
---
#### *Key Features:*
1. *Trend Detection:*
- Uses *Moving Averages (MA)* to determine the overall trend direction.
- Supports multiple MA types: *SMA (Simple), **EMA (Exponential), **WMA (Weighted), and **HMA (Hull)*.
2. *Advanced Filters:*
- *MACD Filter:* Confirms trends using MACD crossovers.
- *Volume Filter:* Ensures trends are supported by above-average volume.
- *Multi-Timeframe Filter:* Validates trends using a higher timeframe (e.g., Daily or Weekly).
3. *Visual Signals:*
- Plots a *trend line* on the chart to indicate the current trend direction.
- Fills the background with *green* for uptrends and *red* for downtrends.
4. *Customizable Settings:*
- Adjust the *MA lengths, **MACD parameters, and **confirmation thresholds* to suit your trading strategy.
- Control the transparency of the background fill for better chart readability.
5. *Alerts:*
- Generates *buy/sell signals* when a trend is confirmed.
- Alerts can be set to trigger at the close of a candle for precise entry/exit points.
---
#### *How to Use:*
1. *Adding the Indicator:*
- Copy and paste the Pine Script code into the TradingView Pine Script editor.
- Add the indicator to your chart.
2. *Configuring the Settings:*
- *Trend Settings:*
- Choose the *MA type* (e.g., EMA for faster response, HMA for smoother trends).
- Set the *Trend MA Period* (e.g., 200 for long-term trends) and *Filter MA Period* (e.g., 100 for medium-term trends).
- *Advanced Filters:*
- Enable/disable the *MACD Filter* and adjust its parameters (Fast, Slow, Signal).
- Enable/disable the *Volume Filter* to ensure trends are supported by volume.
- *Multi-Timeframe Filter:*
- Enable this filter to validate trends using a higher timeframe (e.g., Daily or Weekly).
3. *Interpreting the Signals:*
- *Uptrend:* The trend line turns *green*, and the background is filled with a transparent green color.
- *Downtrend:* The trend line turns *red*, and the background is filled with a transparent red color.
- *Alerts:* Buy/sell signals are generated when the trend is confirmed.
4. *Using Alerts:*
- Set up alerts for *Buy Signal* (bullish reversal) and *Sell Signal* (bearish reversal).
- Alerts can be configured to trigger at the close of a candle for precise execution.
---
#### *Settings and Their Effects:*
1. *MA Type:*
- *SMA:* Smooth but lagging. Best for long-term trends.
- *EMA:* Faster response to price changes. Suitable for medium-term trends.
- *WMA:* Gives more weight to recent prices. Useful for short-term trends.
- *HMA:* Combines speed and smoothness. Ideal for all timeframes.
2. *Trend MA Period:*
- A longer period (e.g., 200) identifies long-term trends but may lag.
- A shorter period (e.g., 50) reacts faster but may produce false signals.
3. *Filter MA Period:*
- Acts as a secondary filter to confirm the trend.
- A shorter period (e.g., 50) provides tighter confirmation but may increase noise.
4. *MACD Filter:*
- Ensures trends are confirmed by MACD crossovers.
- Adjust the *Fast, **Slow, and **Signal* lengths to match your trading style.
5. *Volume Filter:*
- Ensures trends are supported by above-average volume.
- Reduces false signals during low-volume periods.
6. *Multi-Timeframe Filter:*
- Validates trends using a higher timeframe (e.g., Daily or Weekly).
- Increases reliability but may delay signals.
7. *Confirmation Value:*
- Sets the minimum percentage deviation from the trend MA required to confirm a trend.
- A higher value (e.g., 2.0%) reduces false signals but may delay trend detection.
8. *Confirmation Bars:*
- Sets the number of bars required to confirm a trend.
- A higher value (e.g., 5 bars) ensures sustained trends but may delay signals.
---
#### *Who Should Use This Indicator?*
1. *Trend Followers:*
- Traders who focus on identifying and riding long-term trends.
- Suitable for *swing traders* and *position traders*.
2. *Day Traders:*
- Can use shorter MA periods and faster filters (e.g., EMA, HMA) for intraday trends.
3. *Volume-Based Traders:*
- Traders who rely on volume confirmation to validate trends.
4. *Multi-Timeframe Traders:*
- Traders who use higher timeframes to confirm trends on lower timeframes.
5. *Beginners:*
- Easy-to-understand visual signals and alerts make it beginner-friendly.
6. *Advanced Traders:*
- Customizable settings allow for fine-tuning to match specific strategies.
---
#### *Example Use Cases:*
1. *Long-Term Investing:*
- Use a *200-period SMA* with a *Daily* higher timeframe filter to identify long-term trends.
- Enable the *Volume Filter* to ensure trends are supported by strong volume.
2. *Swing Trading:*
- Use a *50-period EMA* with a *4-hour* higher timeframe filter for medium-term trends.
- Enable the *MACD Filter* to confirm trend reversals.
3. *Day Trading:*
- Use a *20-period HMA* with a *1-hour* higher timeframe filter for short-term trends.
- Disable the *Volume Filter* for faster signals.
---
#### *Conclusion:*
The *Trend Detection* indicator is a versatile tool for traders of all levels. Its customizable settings and advanced filters make it suitable for various trading styles and timeframes. By combining moving averages, volume analysis, and MACD filters, it provides reliable trend signals with minimal lag. Whether you're a beginner or an advanced trader, this indicator can help you make better trading decisions by identifying and confirming trends in the market.
---
#### *Publishing on TradingView:*
- *Title:* Trend Detection with Advanced Filters
- *Description:* A powerful trend detection tool using moving averages, volume analysis, and MACD filters. Suitable for all trading styles and timeframes.
- *Tags:* Trend, Moving Averages, MACD, Volume, Multi-Timeframe
- *Category:* Trend-Following
- *Access:* Public or Private (depending on your preference).
---
Let me know if you need further assistance or additional features!
fractal candle The fractal candle technical indicator to identify potential trend reversals in financial markets. It works by counting a series of price bars and looking for specific patterns that indicate when a trend is likely to reverse.
How the Indicator Works:
Counting Candles:
The indicator compares the closing price of the current candle with the closing price from 4 candles ago.
If the current close is higher, the bullish (buy) count increases.
If the current close is lower, the bearish (sell) count increases.
When a count reaches 9 or 13, it may signal a trend reversal.
Buy and Sell Setup:
A buy setup occurs when there have been 9 consecutive candles where each close is lower than the close 4 candles before. This suggests a possible bullish reversal.
A sell setup occurs when there have been 9 consecutive candles where each close is higher than the close 4 candles before. This suggests a possible bearish reversal.
Support and Resistance Levels:
The indicator tracks previous highs and lows during buy/sell setups to identify potential support and resistance levels.
These levels can help traders decide where price might reverse or consolidate.
Candle Coloring for Visual Aid:
The script changes candle colors:
Red for sell signals 📉
Green for buy signals 📈
Different shades for overshoot conditions (extended trends)
Jigga-SectorTrendViewThe Jigga-SectorView script is indicator designed to analyze and visualize sector trends based on given input. Based on input of multiple sector indices, calculates key technical values, and presents a structured summary in a table.
Calculating Sector Strength & Momentum:
For each selected symbol
Step 1 - 52-week lowest low is fetched.
Step 2 - Daily closing price is retrieved.
Step 3 - A crossover between 50-day EMA and 200-day EMA determines trend shifts.
Step 4 - Percentage difference from the identified level is calculated.
Output:
A bottom-right table is created with sector-wise trend insights which shows Symbol name and how much its away from SL in percentage terms.
JL - DWM OHLCThis indicator plots the following price levels on your chart automatically AND will not show up if you are using a timeframe bigger than 60 minutes, 1 day, or 1 week.
Here are the price levels that are automatically plotted for you, and so you know the styling is different for Daily, Weekly, Monthly levels so you can easily distinguish between them:
- Prior Day: High / Low / Close
- Current Day: Open
- Prior Week: High / Low / Close
- Current Week: Open
- Prior Month: High / Low / Close
- Current Month: Open
These plots are timeframe dependent and will not plot on subsequently higher timeframes, here is how they work:
Daily Price Levels are only shown on timeframes that are smaller than 60 minutes.
Weekly Price Levels are only shown on timeframes smaller than 1 Day.
Monthly Price Levels are only shown on timeframes smaller than 1 Week.
This way, you can turn on the indicator and not have to think about turning off certain price levels if you switch to a larger / longer timeframe than what you typically use.
For example, Daily OHLC price levels will quickly clutter the 60 minute chart, and likely you don't need to know the HLC of the Prior Day if you are looking at the 60 minute chart. Therefor it may be helpful to automatically hide the Daily price level plots, and only show the Weekly and Monthly plots on the 60 minute timeframe.
I hope you find this indicator helpful, thanks for reading.
day of Month | xilixMonthly Marker (1D Only)
The Monthly Marker indicator automatically highlights a specific day of the month on a daily (1D) chart by drawing a vertical line. Users can select their desired day of the month and customize the line color.
Features:
✅ Marks the chosen day of each month with a vertical line.
✅ Customizable line color (set in the indicator settings).
✅ Helps traders quickly identify key monthly dates.
Note: This indicator will not work on lower timeframes (e.g., 4H, 1H) and will show an error if applied outside the 1D timeframe.
Best Use Cases: Monthly trend tracking, economic event alignment, and custom date-based analysis. 🚀
Forex Pips Tracker PinescriptlabsThis algorithm is exclusively designed for the Forex market 🌐 and serves as a tool to measure volatility, helping to determine on average how many pips positions move per hour. With this information, a trader can place take profit and stop loss orders with greater certainty, since they know the average pip movement range during each hour of the day.
What does it do and how does it work?
• Volatility measurement in pips 📊:
The algorithm calculates the size of the movement (or range) of each candle expressed in pips. To do this, it takes the difference between the highest and lowest price of each candle and converts it into pips.
👉
• Time zone adjustment ⏰:
It allows you to configure the time zone so that the data aligns with your desired schedule. This is especially useful for comparing movements at different times based on the trader's location.
• Analysis by time intervals 🕒:
The algorithm’s logic organizes the information for each hour of the day. It stores data for the current day, the previous day, weekly, and historically (200 candles). This allows you to see how volatility varies across different periods, providing a dynamic view of market behavior.
👉
• Directionality of movement 🔄:
In addition to averaging the pip range, the algorithm determines the predominant direction of each candle (bullish or bearish). This translates into visual indicators (like arrows) that help identify whether, on average, the movement during that hour tends to go up or down.
• Table visualization 📈:
Finally, the information is presented in an integrated table on the chart. Each row corresponds to an hour of the day and shows the average number of pips and the direction (bullish, bearish, or neutral) for each analyzed period. This table makes it easy to quickly and practically interpret the volatility data.
By combining these features, the algorithm becomes an essential tool for traders looking to better understand market dynamics and optimize their trading strategies! 💼✨
Español:
Este algoritmo está diseñado exclusivamente para el mercado Forex 🌐 y sirve como una herramienta para medir la volatilidad, ayudando a determinar en promedio cuántos pips se mueven las posiciones por hora. Con esta información, un trader puede colocar el take profit y el stop loss con mayor certeza, ya que conoce el rango promedio de movimiento en pips durante cada hora del día.
¿Qué hace y cómo funciona?
• Medición de volatilidad en pips 📊:
El algoritmo calcula el tamaño del movimiento (o rango) de cada vela expresado en pips. Para ello, toma la diferencia entre el precio máximo y el mínimo de cada vela y la convierte a pips.
👉
• Ajuste de zona horaria ⏰:
Permite configurar la zona horaria para que los datos se ajusten al horario deseado. Esto es especialmente útil para comparar movimientos durante distintas horas en función de la localización del trader.
• Análisis por intervalos de tiempo 🕒:
La lógica del algoritmo organiza la información por cada hora del día. Guarda datos para el día actual, el día anterior, a nivel semanal e histórico (200 velas). Esto permite ver cómo varía la volatilidad en diferentes periodos, proporcionando una visión dinámica del comportamiento del mercado.
👉
• Direccionalidad del movimiento 🔄:
Además de promediar el rango en pips, el algoritmo determina la dirección predominante de cada vela (alcista o bajista). Esto se traduce en indicadores visuales (como flechas) que permiten identificar si, en promedio, el movimiento en esa hora tiende a subir o bajar.
• Visualización en tabla 📈:
Finalmente, la información se presenta en una tabla integrada en el gráfico. Cada fila corresponde a una hora del día y muestra el promedio de pips y la dirección (alcista, bajista o neutral) para cada uno de los periodos analizados. Esta tabla facilita la interpretación rápida y práctica de los datos de volatilidad.
Al combinar estas funciones, el algoritmo se convierte en una herramienta esencial para traders que buscan entender mejor la dinámica del mercado y optimizar sus estrategias de trading! 💼✨
Machine Learning Trendlines Cluster [LuxAlgo]The ML Trendlines Cluster indicator allows traders to automatically identify trendlines using a machine learning algorithm based on k-means clustering and linear regression, highlighting trendlines from clustered prices.
For trader's convenience, trendlines can be filtered based on their slope, allowing them to filter out trendlines that are too horizontal, or instead keep them depending on the user-selected settings.
🔶 USAGE
Traders only need to set the number of trendlines (clusters) they want the tool to detect and the algorithm will do the rest.
By default the tool is set to detect 4 clusters over the last 500 bars, in the image above it is set to detect 10 clusters over the same period.
This approach only focuses on drawing trendlines from prices that share a common trading range, offering a unique perspective to traditional trendlines. Trendlines with a significant slope can highlight higher dispersion within its cluster.
🔹 Trendline Slope Filtering
Traders can filter trendlines by their slope to display only steep or flat trendlines relative to a user-defined threshold.
The image above shows the three different configurations of this feature:
Filtering disabled
Filter slopes above threshold
Filter slopes below threshold
🔶 DETAILS
K-means clustering is a popular machine-learning algorithm that finds observations in a data set that are similar to each other and places them in a group.
The process starts by randomly assigning each data point to an initial group and calculating the centroid for each. A centroid is the center of the group. K-means clustering forms the groups in such a way that the variances between the data points and the centroid of the cluster are minimized.
The trendlines are displayed according to the linear regression function calculated for each cluster.
🔶 SETTINGS
Window Size: Maximum number of bars to get data from
Clusters: Maximum number of clusters (trendlines) to detect
🔹 Optimization
Maximum Iteration Steps: Maximum loop iterations for cluster computation
🔹 Slope Filter
Threshold Multiplier: Multiplier applied to a volatility measure, higher multiplier equals higher threshold
Filter Slopes: Enable/Disable Trendline Slope Filtering, select to filter trendlines with slopes ABOVE or BELOW the threshold
🔹 Style
Upper Zone: Color to display in the top zone
Lower Zone: Color to display in the bottom zone
Lines: Style for the lines
Size: Line size
Premarket High/Low Breakout AlertsPremarket High/Low Breakout Alerts
Description: This custom TradingView indicator helps you track premarket breakouts and breakdowns for a list of selected stocks. The indicator monitors the premarket session and sends an alert every time the stock's price breaks above the premarket high or below the premarket low.
Key Features:
Track Multiple Stocks: Easily monitor multiple stocks (e.g., AAPL, TSLA, NVDA, etc.) and get alerts when they break premarket levels.
Premarket Session Monitoring: The indicator checks for price movements during the premarket session (4:00 AM to 9:30 AM EST).
Customizable Ticker List: Modify the list of tickers directly from the TradingView settings to suit your daily trading needs.
Breakout and Breakdown Alerts: Receive instant alerts for both breakout (above premarket high) and breakdown (below premarket low) conditions.
Plot Premarket Levels: The premarket high and low levels are plotted on the chart for easy reference.
How to Use:
Add this indicator to your chart.
Go to the indicator settings and input your desired stock tickers (e.g., AAPL, TSLA, MSFT).
The indicator will automatically track the premarket levels and send alerts when those levels are broken.
Customize the tickers daily if needed.
Ideal For:
Day Traders who want to track premarket movements.
Swing Traders looking for strong breakouts from premarket levels.
Scalpers who need quick alerts to catch price action early.
EM Yield Curve IndexThis script calculates the Emerging Markets (EM) Yield Curve Index by aggregating the 2-year and 10-year bond yields of major emerging economies. The bond yields are weighted based on each country's bond market size, with data sourced from TradingView. The yield curve is derived by subtracting the 2-year yield from the 10-year yield, providing insights into economic conditions, risk sentiment, and potential recessions in emerging markets. The resulting EM Yield Curve Index is plotted for visualization.
Note: In some cases, TradingView's TVC data did not provide a 2-year bond yield. When this occurred, the best available alternative yield (such as 3-month, 1-year or 4-year yields) was used to approximate the short-term interest rate for that country.
Multi-Faceted Analysis ToolHere’s a detailed description for the **Multi-Faceted Analysis Tool** TradingView indicator:
---
## Multi-Faceted Analysis Tool
### Overview
The **Multi-Faceted Analysis Tool** is a powerful TradingView indicator designed to enhance your technical analysis by combining several popular indicators: Simple Moving Average (SMA), Relative Strength Index (RSI), and Moving Average Convergence Divergence (MACD). This indicator provides traders with insightful market signals that can be tailored to fit various trading strategies and timeframes.
### Key Features
1. **Simple Moving Average (SMA)**:
- Plots a customizable SMA on the price chart. The length of the SMA can be adjusted to suit your analysis needs (default is set to 50). The SMA helps identify the overall trend direction.
2. **Relative Strength Index (RSI)**:
- Calculates and plots RSI values, providing insights into potential overbought or oversold market conditions. The user can customize the length of the RSI calculation (default is 14).
- Overbought (70) and oversold (30) levels are visually marked, helping traders identify potential reversal points.
3. **MACD**:
- Computes MACD values with customizable parameters for fast length, slow length, and signal length (defaults are 12, 26, and 9 respectively).
- The MACD histogram is displayed, highlighting the difference between the MACD line and the signal line, which can help traders visualize momentum shifts.
4. **Buy and Sell Signals**:
- Generates clear buy and sell signals based on RSI crossover with established thresholds (buy when RSI crosses above 30, sell when RSI crosses below 70). These signals are visually represented on the chart for easy decision-making.
5. **User-Friendly Customization**:
- All parameters are adjustable, allowing traders to set their preferred values based on individual strategies or market conditions. This flexibility ensures that the tool can cater to a wide range of trading styles.
Price Levels by Market Cap (Manual)This indicator will forecast the price by marketcap. The crypto's current circulating supply should be inputted manually.
Big Candles FilterHow It Works
A candle is considered "big" only if its body (distance from open to close) exceeds the barHeight value.
** NOT calculated by Range !!!
Features :
Bullish candles (close > open) are marked with a green "Buy" triangle if the body is large enough.
Bearish candles (close < open) are marked with a red "Sell" triangle if the body is large enough.
The bars are colored for big candles, and optional labels show the open and close prices.
Fibonacci - DolphinTradeBot
OVERVIEW
The 'Fibonacci - DolphinTradeBot' indicator is a Pine Script-based tool for TradingView that dynamically identifies key Fibonacci retracement levels using ZigZag price movements. It aims to replicate the Fibonacci Retracement tool available in TradingView’s drawing tools. The indicator calculates Fibonacci levels based on directional price changes, marking critical retracement zones such as 0, 0.236, 0.382, 0.5, 0.618, 0.786, and 1.0 on the chart. These levels are visualized with lines and labels, providing traders with precise areas of potential price reversals or trend continuation.
HOW IT WORKS ?
The indicator follows a zigzag formation. After a large swing movement, when new swings are formed without breaking the upper and lower levels, it places Fibonacci levels at the beginning and end points of the major swing movement."
▪️(Bullish) Structure :High → HigherLow → LowerHigh
▪️(Bearish) Structure :Low → LowerHigh → HigherLow
▪️When Fibonacci retracement levels are determined, a "📌" mark appears on the chart.
▪️If the price closes outside of these levels, a "❌" mark will appear.
USAGE
This indicator is designed to plot Fibonacci levels within an accumulation zone following significant price movements, helping you identify potential support and resistance. You can adjust the pivot periods to customize the zigzag settings to your preference. While classic Fibonacci levels are used by default, you also have the option to input custom levels and assign your preferred colors.
Set the Fibonacci direction option to "upward" to detect only bullish structures, "downward" to detect only bearish structures, and "both" to see both at the same time.
"To view past levels, simply enable the ' Show Previous Levels ' option, and to display the zigzag lines, activate the ' Show Zigzag ' setting."
ALERTS
The indicator, by default, triggers an alarm when both a level is formed and when a level is broken. However, if you'd like, you can select the desired level from the " Select Level " section in the indicator settings and set the alarm based on one of the conditions below.
▪️ cross-up → If the price breaks the Fibonacci level to the upside.
▪️ cross-down → If the price breaks the Fibonacci level to the downside.
▪️ cross-any → If the price breaks the Fibonacci level in any direction.
Price and Volume Breakout - Jemmy TradeThe "Price and Volume Breakout" indicator is designed to identify potential breakout opportunities by analyzing both price and volume trends. It uses a combination of historical price highs, volume peaks, and a customizable Simple Moving Average (SMA) to signal bullish breakouts. When the price exceeds the highest price of the defined breakout period and is supported by high volume, the indicator triggers visual alerts on the chart. These include dotted lines, labels, and boxes highlighting accumulation zones, along with dynamically calculated stop loss and take profit levels.
Key Features:
• Breakout Detection: Compares the current closing price to the highest price and volume over specified periods to signal a breakout.
• Customizable Stop Loss Options: Offers three methods for setting stop loss levels:
o Below SMA: Positions stop loss a user-defined percentage below the SMA.
o Lowest Low: Uses the lowest low over a specific look-back period.
o Range Average: Calculates an average based on the previous price range.
• Dynamic Take Profit Calculation: Automatically computes take profit levels based on the defined risk-to-reward ratio.
• Visual Chart Elements: Draws breakout lines, stop loss and take profit indicators, labels (e.g., "🚀 Breakout Buy", "🔴 Stop Loss", "🟢 Take Profit"), and boxes marking accumulation zones for easy visualization.
• Alert Conditions: Includes alert functionality to notify traders when breakout conditions are met, enabling timely trading decisions.
How to Use:
1. Customization: Adjust settings such as the breakout periods for price and volume, the length of the SMA, stop loss options, and the risk-to-reward ratio to fit your trading strategy.
2. Signal Identification: When the price exceeds the highest value from the previous period, accompanied by high volume and confirmation from the SMA, the indicator displays a "Breakout Buy" signal.
3. Risk Management: The indicator calculates appropriate stop loss and take profit levels automatically based on your selected parameters, ensuring a balanced risk/reward setup.
4. Alerts: Utilize the built-in alert conditions to receive notifications whenever the breakout criteria are satisfied, helping you act promptly.
PLEASE USE IT AS PER YOUR OWN RISK MANAGEMENT STRATEGIES.
Keywords:
#Breakout #Trading #VolumeAnalysis #TechnicalAnalysis #PriceAction #RiskManagement #TrendFollowing #TradingSignals #PriceBreakout #SmartTrading #JemmyTrade
Initial BalanceInitial Balance Pro – Precision Trading with Market Open Dynamics
The Initial Balance Pro indicator is designed to provide traders with a clear, structured view of the market's opening price action, helping to identify key levels for intraday trading. It automatically calculates and plots the initial balance (IB) high and low, allowing traders to gauge early market sentiment and potential breakout zones.
Features:
✅ Customizable Initial Balance Period – Set your preferred IB range, whether the first 30, 60, or any custom minutes after market open.
✅ Breakout & Rejection Zones – Visually highlight key areas where price action may find support, resistance, or breakout opportunities.
✅ Midpoint & Extension Levels – Identify the IB midpoint and customizable extension levels to anticipate possible price targets.
✅ Session Flexibility – Works across various trading sessions, including pre-market and post-market hours.
✅ Alerts & Notifications – Get notified when price breaches IB levels, helping you stay ahead of key moves.
Why Use Initial Balance?
The initial balance is a fundamental concept in market profile analysis. Institutional traders often set their positions within this range, making it a crucial reference point for potential trend continuation or reversal. When price breaks above or below the IB, it can signal high-probability trade opportunities, especially when combined with volume and order flow analysis.
Perfect For:
📈 Futures & Forex Traders – Utilize the IB for breakout and mean-reversion strategies.
📊 Equity & Options Traders – Identify key levels for intraday momentum plays.
🔍 Price Action Traders – Improve trade execution with a structured market approach.
Optimize your intraday trading strategy with Initial Balance Pro , giving you a refined edge in market structure and price action analysis. 🚀
Similar Bars Pattern DetecterDescription:
The Similar Bars Pattern Detector is a professional Pine Script indicator designed for TradingView users who want to identify sequences of similar candlesticks in a row. Whether you're looking for bullish or bearish patterns, this tool helps you spot repeating formations based on customizable settings.
Features:
✅ Detects patterns of consecutive similar bars
✅ Works for both bullish and bearish trends
✅ Uses tick-based range filtering for precise detection
✅ Fully customizable: adjust number of candles, trend type, and range
✅ Highlights detected patterns directly on the chart
🔹 Ideal for traders who rely on pattern recognition to confirm trends and price movements.
🔹 Works across all markets and timeframes.
💡 How to Use:
1️⃣ Set the number of candles to detect a repeating pattern.
2️⃣ Choose bullish or bearish trend direction.
3️⃣ Adjust the tick range to fine-tune pattern similarity.
🚀 Enhance your trading analysis with this powerful pattern recognition tool!
DMI + ADX + Key Level NACHOMIXCRYPTOThe DMI + ADX + Key Level NACHOMIXCRYPTO indicator is a technical analysis tool that combines the Directional Movement Index (DMI) and the Average Directional Index (ADX) to assess trend strength and direction. It also includes customizable key levels for better visualization.
Components:
ADX (Average Directional Index):
Measures the strength of a trend, regardless of its direction.
Values below 25 indicate a weak trend or range-bound market.
Values between 25-50 suggest a strong trend.
Values between 50-75 indicate a very strong trend.
Values above 75 represent an extremely strong trend.
+DI (Positive Directional Indicator) and -DI (Negative Directional Indicator):
+DI indicates bullish strength, shown in green.
-DI indicates bearish strength, shown in red.
The comparison between these two lines helps determine the market direction.
Features:
Trend Detection:
When +DI is above -DI and ADX is above the key level, it signals a bullish trend.
When -DI is above +DI and ADX is above the key level, it signals a bearish trend.
Key Level Line:
A customizable horizontal line that marks the threshold for trend strength.
Trend Background Color:
Green for strong uptrends and red for strong downtrends.
Signal Arrows:
A green upward triangle is plotted when a new bullish trend starts.
A red downward triangle is plotted when a new bearish trend starts.
Trend Strength Labels:
The indicator displays the current market strength classification and whether the trend is bullish, bearish, or neutral.
Strength Analysis Table:
Provides insights on whether the market has bullish, bearish, mixed strength, or no strength at all.
This indicator is particularly useful for traders looking to identify strong trends and catch early trend reversals.
Volume Predictor [PhenLabs]📊 Volume Predictor
Version: PineScript™ v6
📌 Description
The Volume Predictor is an advanced technical indicator that leverages machine learning and statistical modeling techniques to forecast future trading volume. This innovative tool analyzes historical volume patterns to predict volume levels for upcoming bars, providing traders with valuable insights into potential market activity. By combining multiple prediction algorithms with pattern recognition techniques, the indicator delivers forward-looking volume projections that can enhance trading strategies and market analysis.
🚀 Points of Innovation:
Machine learning pattern recognition using Lorentzian distance metrics
Multi-algorithm prediction framework with algorithm selection
Ensemble learning approach combining multiple prediction methods
Real-time accuracy metrics with visual performance dashboard
Dynamic volume normalization for consistent scale representation
Forward-looking visualization with configurable prediction horizon
🔧 Core Components
Pattern Recognition Engine : Identifies similar historical volume patterns using Lorentzian distance metrics
Multi-Algorithm Framework : Offers five distinct prediction methods with configurable parameters
Volume Normalization : Converts raw volume to percentage scale for consistent analysis
Accuracy Tracking : Continuously evaluates prediction performance against actual outcomes
Advanced Visualization : Displays actual vs. predicted volume with configurable future bar projections
Interactive Dashboard : Shows real-time performance metrics and prediction accuracy
🔥 Key Features
The indicator provides comprehensive volume analysis through:
Multiple Prediction Methods : Choose from Lorentzian, KNN Pattern, Ensemble, EMA, or Linear Regression algorithms
Pattern Matching : Identifies similar historical volume patterns to project future volume
Adaptive Predictions : Generates volume forecasts for multiple bars into the future
Performance Tracking : Calculates and displays real-time prediction accuracy metrics
Normalized Scale : Presents volume as a percentage of historical maximums for consistent analysis
Customizable Visualization : Configure how predictions and actual volumes are displayed
Interactive Dashboard : View algorithm performance metrics in a customizable information panel
🎨 Visualization
Actual Volume Columns : Color-coded green/red bars showing current normalized volume
Prediction Columns : Semi-transparent blue columns representing predicted volume levels
Future Bar Projections : Forward-looking volume predictions with configurable transparency
Prediction Dots : Optional white dots highlighting future prediction points
Reference Lines : Visual guides showing the normalized volume scale
Performance Dashboard : Customizable panel displaying prediction method and accuracy metrics
📖 Usage Guidelines
History Lookback Period
Default: 20
Range: 5-100
This setting determines how many historical bars are analyzed for pattern matching. A longer period provides more historical data for pattern recognition but may reduce responsiveness to recent changes. A shorter period emphasizes recent market behavior but might miss longer-term patterns.
🧠 Prediction Method
Algorithm
Default: Lorentzian
Options: Lorentzian, KNN Pattern, Ensemble, EMA, Linear Regression
Selects the algorithm used for volume prediction:
Lorentzian: Uses Lorentzian distance metrics for pattern recognition, offering excellent noise resistance
KNN Pattern: Traditional K-Nearest Neighbors approach for historical pattern matching
Ensemble: Combines multiple methods with weighted averaging for robust predictions
EMA: Simple exponential moving average projection for trend-following predictions
Linear Regression: Projects future values based on linear trend analysis
Pattern Length
Default: 5
Range: 3-10
Defines the number of bars in each pattern for machine learning methods. Shorter patterns increase sensitivity to recent changes, while longer patterns may identify more complex structures but require more historical data.
Neighbors Count
Default: 3
Range: 1-5
Sets the K value (number of nearest neighbors) used in KNN and Lorentzian methods. Higher values produce smoother predictions by averaging more historical patterns, while lower values may capture more specific patterns but could be more susceptible to noise.
Prediction Horizon
Default: 5
Range: 1-10
Determines how many future bars to predict. Longer horizons provide more forward-looking information but typically decrease accuracy as the prediction window extends.
📊 Display Settings
Display Mode
Default: Overlay
Options: Overlay, Prediction Only
Controls how volume information is displayed:
Overlay: Shows both actual volume and predictions on the same chart
Prediction Only: Displays only the predictions without actual volume
Show Prediction Dots
Default: false
When enabled, adds white dots to future predictions for improved visibility and clarity.
Future Bar Transparency (%)
Default: 70
Range: 0-90
Controls the transparency of future prediction bars. Higher values make future bars more transparent, while lower values make them more visible.
📱 Dashboard Settings
Show Dashboard
Default: true
Toggles display of the prediction accuracy dashboard. When enabled, shows real-time accuracy metrics.
Dashboard Location
Default: Bottom Right
Options: Top Left, Top Right, Bottom Left, Bottom Right
Determines where the dashboard appears on the chart.
Dashboard Text Size
Default: Normal
Options: Small, Normal, Large
Controls the size of text in the dashboard for various display sizes.
Dashboard Style
Default: Solid
Options: Solid, Transparent
Sets the visual style of the dashboard background.
Understanding Accuracy Metrics
The dashboard provides key performance metrics to evaluate prediction quality:
Average Error
Shows the average difference between predicted and actual values
Positive values indicate the prediction tends to be higher than actual volume
Negative values indicate the prediction tends to be lower than actual volume
Values closer to zero indicate better prediction accuracy
Accuracy Percentage
A measure of how close predictions are to actual outcomes
Higher percentages (>70%) indicate excellent prediction quality
Moderate percentages (50-70%) indicate acceptable predictions
Lower percentages (<50%) suggest weaker prediction reliability
The accuracy metrics are color-coded for quick assessment:
Green: Strong prediction performance
Orange: Moderate prediction performance
Red: Weaker prediction performance
✅ Best Use Cases
Anticipate upcoming volume spikes or drops
Identify potential volume divergences from price action
Plan entries and exits around expected volume changes
Filter trading signals based on predicted volume support
Optimize position sizing by forecasting market participation
Prepare for potential volatility changes signaled by volume predictions
Enhance technical pattern analysis with volume projection context
⚠️ Limitations
Volume predictions become less accurate over longer time horizons
Performance varies based on market conditions and asset characteristics
Works best on liquid assets with consistent volume patterns
Requires sufficient historical data for pattern recognition
Sudden market events can disrupt prediction accuracy
Volume spikes may be muted in predictions due to normalization
💡 What Makes This Unique
Machine Learning Approach : Applies Lorentzian distance metrics for robust pattern matching
Algorithm Selection : Offers multiple prediction methods to suit different market conditions
Real-time Accuracy Tracking : Provides continuous feedback on prediction performance
Forward Projection : Visualizes multiple future bars with configurable display options
Normalized Scale : Presents volume as a percentage of maximum volume for consistent analysis
Interactive Dashboard : Displays key metrics with customizable appearance and placement
🔬 How It Works
The Volume Predictor processes market data through five main steps:
1. Volume Normalization:
Converts raw volume to percentage of maximum volume in lookback period
Creates consistent scale representation across different timeframes and assets
Stores historical normalized volumes for pattern analysis
2. Pattern Detection:
Identifies similar volume patterns in historical data
Uses Lorentzian distance metrics for robust similarity measurement
Determines strength of pattern match for prediction weighting
3. Algorithm Processing:
Applies selected prediction algorithm to historical patterns
For KNN/Lorentzian: Finds K nearest neighbors and calculates weighted prediction
For Ensemble: Combines multiple methods with optimized weighting
For EMA/Linear Regression: Projects trends based on statistical models
4. Accuracy Calculation:
Compares previous predictions to actual outcomes
Calculates average error and prediction accuracy
Updates performance metrics in real-time
5. Visualization:
Displays normalized actual volume with color-coding
Shows current and future volume predictions
Presents performance metrics through interactive dashboard
💡 Note:
The Volume Predictor performs optimally on liquid assets with established volume patterns. It’s most effective when used in conjunction with price action analysis and other technical indicators. The multi-algorithm approach allows adaptation to different market conditions by switching prediction methods. Pay special attention to the accuracy metrics when evaluating prediction reliability, as sudden market changes can temporarily reduce prediction quality. The normalized percentage scale makes the indicator consistent across different assets and timeframes, providing a standardized approach to volume analysis.
Money Flow Divergence IndicatorOverview
The Money Flow Divergence Indicator is designed to help traders and investors identify key macroeconomic turning points by analyzing the relationship between U.S. M2 money supply growth and the S&P 500 Index (SPX). By comparing these two crucial economic indicators, the script highlights periods where market liquidity is outpacing or lagging behind stock market growth, offering potential buy and sell signals based on macroeconomic trends.
How It Works
1. Data Sources
S&P 500 Index (SPX500USD): Tracks the stock market performance.
U.S. M2 Money Supply (M2SL - Federal Reserve Economic Data): Represents available liquidity in the economy.
2. Growth Rate Calculation
SPX Growth: Percentage change in the S&P 500 index over time.
M2 Growth: Percentage change in M2 money supply over time.
Growth Gap (Delta): The difference between M2 growth and SPX growth, showing whether liquidity is fueling or lagging behind market performance.
3. Visualization
A histogram displays the growth gap over time:
Green Bars: M2 growth exceeds SPX growth (potential bullish signal).
Red Bars: SPX growth exceeds M2 growth (potential bearish signal).
A zero line helps distinguish between positive and negative growth gaps.
How to Use It
✅ Bullish Signal: When green bars appear consistently, indicating that liquidity is outpacing stock market growth. This suggests a favorable environment for buying or holding positions.
❌ Bearish Signal: When red bars appear consistently, meaning stock market growth outpaces liquidity expansion, signaling potential overvaluation or a market correction.
Best Timeframes for Analysis
This indicator works best on monthly timeframes (M) since it is designed for long-term investors and macro traders who focus on broad economic cycles.
Who Should Use This Indicator?
📈 Long-term investors looking for macroeconomic trends.
📊 Swing traders who incorporate liquidity analysis in their strategies.
💰 Portfolio managers assessing market liquidity conditions.
🚀 Use this indicator to stay ahead of market trends and make informed investment decisions based on macroeconomic liquidity shifts! 🚀