Swing High/Low (ZigZag) [ChartPrime]Swing High/Low (ZigZag) Indicator
The Swing High/Low (ZigZag) Indicator is a versatile tool for identifying and visualizing price swings, swing highs, and swing lows. It dynamically plots levels for significant price points while connecting them with a ZigZag line, enabling traders to analyze market structure and trends with precision.
⯁ KEY FEATURES
Swing Highs and Lows Detection
Accurately detects and marks swing highs and lows, providing a clear structure of market movements.
Real-Time ZigZag Line
Connects swing points with a dynamic ZigZag line for a visual representation of price trends.
Customizable Swing Sensitivity
Swing length input allows traders to adjust the sensitivity of swing detection to match their preferred market conditions.
Swing Levels with Shadows
Option to display swing levels with extended shadows for better visibility and market analysis.
Broken Levels Marking
Tracks and visually updates levels as dashed lines when broken, providing insights into shifts in market structure.
Swing Direction Display
At the top-right corner, the indicator displays the current swing direction (up or down) with a directional arrow for quick reference.
Interactive Labels
Marks swing levels with labels, showing the price of swing highs and lows for added clarity.
Dynamic Market Structure Analysis
Automatically adjusts ZigZag lines and levels as the market evolves, ensuring real-time updates for accurate trading decisions.
⯁ HOW TO USE
Analyze Market Trends
Use the ZigZag line and swing levels to identify the overall direction and structure of the market.
Spot Significant Price Points
Swing highs and lows act as potential support and resistance levels for trading opportunities.
Adjust Swing Sensitivity
Modify the swing length setting to match your trading strategy, whether scalping, day trading, or swing trading.
Monitor Broken Levels
Use the dashed lines of broken levels to identify changes in market dynamics and potential breakout or breakdown zones.
Plan Entries and Exits
Leverage swing levels and direction to determine optimal entry, stop-loss, and take-profit points.
⯁ CONCLUSION
The Swing High/Low (ZigZag) Indicator is a powerful tool for traders seeking to visualize price swings and market structure. Its real-time updates, customizable settings, and dynamic swing direction make it an invaluable resource for technical analysis and decision-making.
Поддержка и сопротивление
Easy Profit SR Buy Sell By DSW The "Fast 9 MA" refers to a 9-period simple moving average (SMA) that tracks the average price of an asset over the last 9 bars, providing a shorter-term view of price trends. The "Slow 21 MA" is a 21-period SMA, which smooths out price fluctuations over a longer period, giving a broader perspective on the market trend. The 9-period fast moving average reacts more quickly to price changes, while the 21-period slow moving average lags behind, making it useful for identifying more stable trends. The combination of these two moving averages helps traders identify potential buy or sell signals through crossovers, with the fast MA crossing above the slow MA signaling a buy and vice versa for a sell. The 14 RSI (Relative Strength Index) is a momentum oscillator that measures the speed and change of price movements, indicating overbought or oversold conditions when it reaches levels above 70 or below 30, respectively. Together, these indicators provide a comprehensive view of both trend direction and market momentum, assisting traders in making informed decisions.
Easy Profit SR Buy Sell By DSW This script, titled "Easy Profit 500-1000 Buy Sell By DSW with Support and Resistance," is designed for use in TradingView and provides a simple yet effective trading strategy. The indicator uses moving averages to generate buy and sell signals based on crossovers between a fast (9-period) and slow (21-period) simple moving average (SMA). When the fast MA crosses above the slow MA, a buy signal is triggered, and when the fast MA crosses below the slow MA, a sell signal is generated. Additionally, the script integrates the Relative Strength Index (RSI) for confirmation, using an overbought level of 70 and an oversold level of 30 to further refine the buy and sell signals. Enhanced buy and sell signals are plotted when the crossover conditions align with the RSI confirmation, providing clearer entry and exit points. The script also includes dynamic support and resistance levels based on the highest high and lowest low over a customizable lookback period, helping traders identify key price levels. The resistance and support lines are plotted directly on the chart, with the resistance level marked in red and the support level in green. An optional shaded area between support and resistance can also be displayed to visually highlight potential trading ranges.
Auto Fibonacci Extension and Retracement with Visual AlertsThis indicator automatically calculates and plots Fibonacci retracement and extension levels based on recent swing highs and lows, making it a powerful tool for traders who use Fibonacci analysis in their strategies.
Key Features:
• Dynamic Fibonacci Levels: Automatically detects swing highs and lows over a user-defined lookback period to calculate key Fibonacci retracement (e.g., 0.236, 0.382, 0.618, etc.) and extension (e.g., 1.618, 2.618, etc.) levels.
• Visual Alerts: Displays intuitive visual alerts when the price crosses important Fibonacci levels.
• Blue dashed lines for retracement levels.
• Green dashed lines for extension levels.
• Labels with up or down arrows indicating price interactions with these levels.
• Swing High/Low Visualization: Marks recent swing highs and lows with crosses for better clarity.
• Customizable: Adjust the lookback period and Fibonacci levels to suit your trading style.
Who is it for?
This indicator is perfect for:
• Swing Traders: To identify potential reversal or continuation zones.
• Day Traders: For short-term setups based on Fibonacci levels.
• Fibonacci Enthusiasts: To automate the time-consuming process of manually plotting levels.
Usage Ideas:
1. Use retracement levels (e.g., 0.618) to identify areas of potential support or resistance.
2. Use extension levels (e.g., 1.618) to target potential breakout or continuation zones.
3. Combine this indicator with candlestick patterns, volume analysis, or other tools for confirmation.
Limitations:
• This is a standalone indicator and does not provide buy/sell signals. It’s recommended to combine it with other technical analysis tools for best results.
• The lookback period and swing detection rely on past data, so adjustments may be needed based on the asset or timeframe.
Whether you’re looking to streamline your Fibonacci analysis or explore new opportunities in your trading, this indicator is designed to save time, increase accuracy, and enhance your overall trading experience.
RSI & DPO support/resistanceThis indicator combines the Relative Strength Index (RSI) to identify overbought and oversold conditions with the Detrended Price Oscillator (DPO) to highlight support and resistance levels.
Unlike traditional indicators that display these metrics in a separate window, this tool integrates them directly onto the main price chart.
This allows for a more cohesive analysis, enabling traders to easily visualize the relationship between price movements and momentum indicators in one unified view.
How to Use It:
Identify Overbought and Oversold Conditions:
Look for RSI values above 70 to identify overbought conditions, suggesting a potential price reversal or pullback. Conversely, RSI values below 30 indicate oversold conditions, which may signal a potential price bounce or upward movement.
Analyze Support and Resistance Levels:
Observe the DPO lines on the main chart to identify key support and resistance levels. When the price approaches these levels, it can provide insights into potential price reversals or breakouts.
Combine Signals for Trading Decisions:
Use the RSI and DPO signals together to make informed trading decisions. For example, if the RSI indicates an overbought condition while the price is near a resistance level identified by the DPO, it may be a good opportunity to consider selling or taking profits.
Monitor Divergences:
Watch for divergences between the RSI and price movements. If the price is making new highs while the RSI is not, it could indicate weakening momentum and a potential reversal.
Set Alerts:
Consider setting alerts for when the RSI crosses above or below the overbought or oversold thresholds, or when the price approaches significant support or resistance levels indicated by the DPO.
Practice Risk Management:
Always use proper risk management techniques, such as setting stop-loss orders and position sizing, to protect your capital while trading based on these indicators.
By following these steps, traders can effectively utilize this indicator to enhance their market analysis and improve their trading strategies.
TOL LANGIT ATR v7 - AI EnhancedThe TOL LANGIT ATR v7 is an adaptive technical indicator designed to identify market trends, support and resistance levels, and breakout points. It uses the Average True Range (ATR) and volatility to dynamically adjust trend bands, with visual markers for buy and sell signals. The indicator also highlights key support (blue) and resistance (orange) levels, and alerts users when these levels are broken. It’s perfect for trend following, breakout trading, and reversal strategies, and includes easy-to-set alerts for key market changes.
Multi-Indicator Strategy v6highly profitable pinescript strategy with macd, EMA, pivot levels, bollinger bands, rsi, keltner channel or Money flow indicator
9/21 EMA Support & ResistanceThis script includes: 1. Support and resistance levels based on pivot highs and lows 2. 9 EMA and 21 EMA 3. Crossover signals using a plus sign 4. Alert conditions for crossovers You can adjust the look back period and threshold in the input parameters to fine-tune the support and resistance levels. The EMAs are plotted on the chart, and crossover signals are displayed using plus signs above and below the price bars.
9/21 EMA Support & Resistance By DSWIf you're looking to plot two lines on an EMA crossover strategy, you can do that by using two EMAs and then plotting them on the chart. You can also highlight the crossover signals where one EMA crosses over or under the other
Fibonacci 3-D🟩 The Fibonacci 3-D indicator is a visual tool that introduces a three-dimensional approach to Fibonacci projections, leveraging market geometry. Unlike traditional Fibonacci tools that rely on two points and project horizontal levels, this indicator leverages slopes derived from three points to introduce a dynamic element into the calculations. The Fibonacci 3-D indicator uses three user-defined points to form a triangular structure, enabling multi-dimensional projections based on the relationships between the triangle’s sides.
This triangular framework forms the foundation for the indicator’s calculations, with each slope (⌳AB, ⌳AC, and ⌳BC) representing the rate of price change between its respective points. By incorporating these slopes into Fibonacci projections, the indicator provides an alternate approach to identifying potential support and resistance levels. The Fibonacci 3-D expands on traditional methods by integrating both historical price trends and recent momentum, offering deeper insights into market dynamics and aligning with broader market geometry.
The indicator operates across three modes, each defined by the triangular framework formed by three user-selected points (A, B, and C):
1-Dimensional (1-D): Fibonacci levels are based on a single side of the triangle, such as AB, AC, or BC. The slope of the selected side determines the angle of the projection, allowing users to analyze linear trends or directional price movements.
2-Dimensional (2-D): Combines two slopes derived from the sides of the triangle, such as AB and BC or AC and BC. This mode adds depth to the projections, accounting for both historical price swings and recent market momentum.
3-Dimensional (3-D): Integrates all three slopes into a unified projection. This mode captures the full geometric relationship between the points, revealing a comprehensive view of geometric market structure.
🌀 THEORY & CONCEPT 🌀
The Fibonacci 3-D indicator builds on the foundational principles of traditional Fibonacci analysis while expanding its scope to capture more intricate market structures. At its core, the indicator operates based on three user-selected points (A, B, and C), forming the vertices of a triangle that provides the structural basis for all calculations. This triangle determines the slopes, projections, and Fibonacci levels, aligning with the unique geometric relationships between the chosen points. By introducing multiple dimensions and leveraging this triangular framework, the indicator enables a deeper examination of price movements.
1️⃣ First Dimension (1-D)
In technical analysis, traditional Fibonacci retracement and extension tools operate as one-dimensional instruments. They rely on two price points, often a swing high and a swing low, to calculate and project horizontal levels at predefined Fibonacci ratios. These levels identify potential support and resistance zones based solely on the price difference between the selected points.
A one-dimensional Fibonacci showing levels derived from two price points (B and C).
The Fibonacci 3-D indicator extends this one-dimensional concept by introducing Ascending and Descending projection options. These options calculate the levels to align with the directional movement of price, creating sloped projections instead of purely horizontal levels.
1-D mode with an ascending projection along the ⌳BC slope aligned to the market's slope. Potential support is observed at 0.236 and 0.382, while resistance appears at 1.0 and 0.5.
2️⃣ Second Dimension (2-D)
The second dimension incorporates a second side of the triangle, introducing relationships between two slopes (e.g., ⌳AB and ⌳BC) to form a more dynamic three-point structure (A, B, and C) on the chart. This structure enables the indicator to move beyond the single-axis (price) calculations of traditional Fibonacci tools. The sides of the triangle (AB, AC, BC) represent slopes calculated as the rate of price change over time, capturing distinct components of market movement, such as trend direction and momentum.
2-D mode of the Fibonacci 3-D indicator using the ⌳AC slope with a descending projection. The Fibonacci projections align closely with observed market behavior, providing support at 0.236 and resistance at 0.618. Unlike traditional zigzag setups, this configuration uses two swing highs (A and B) and a swing low (C). The alignment along the descending slope highlights the geometric relationships between selected points in identifying potential support and resistance levels.
3️⃣ Third Dimension (3-D)
The third dimension expands the analysis by integrating all three slopes into a unified calculation, encompassing the entire triangle structure formed by points A, B, and C. Unlike the second dimension, which analyzes pairwise slope relationships, the 3-D mode reflects the combined geometry of the triangle. Each slope contributes a distinct perspective: AB and AC provide historical context, while BC emphasizes the most recent price movement and is given greater weight in the calculations to ensure projections remain responsive to current dynamics.
Using this integrated framework, the 3-D mode dynamically adjusts Fibonacci projections to balance long-term patterns and short-term momentum. The projections extend outward in alignment with the triangle’s geometry, offering a comprehensive framework for identifying potential support and resistance zones and capturing market structures beyond the scope of simpler 1-D or 2-D modes.
Three-dimensional Fibonacci projection using the ⌳AC slope, aligning closely with the market's directional movement. The projection highlights key levels: resistance at 0.0 and 0.618, and support at 1.0, 0.786, and 0.382.
By leveraging all three slopes simultaneously, the 3-D mode introduces a level of complexity particularly suited for volatile or non-linear markets. The weighted slope calculations ensure no single price movement dominates the analysis, allowing the projections to adapt dynamically to the broader market structure while remaining sensitive to recent momentum.
Three-dimensional ascending projection. In 3D mode, the indicator integrates all three slopes to calculate the angle of projection for the Fibonacci levels. The resulting projections adapt dynamically to the overall geometry of the ABC structure, aligning with the market’s current direction.
🔂 Interactions: Dimensions. Slope Source, Projections, and Orientation
The Dimensions , Projections , and Orientation settings work together to define Fibonacci projections within the triangular framework. Each setting plays a specific role in the geometric analysis of price movements.
♾️ Dimension determines which of the three modes (1-D, 2-D, or 3-D) is used for Fibonacci projections. In 1-D mode, the projections are based on a single side of the triangle, such as AB, AC, or BC. In 2-D mode, two sides are combined, producing levels based on their geometric relationship. The 3-D mode integrates all three sides of the triangle, calculating projections using weighted averages that emphasize the BC side for its relevance to recent price movement while maintaining historical context from the AB and AC sides.
A one-dimensional Fibonacci projection using the ⌳AB slope with a neutral projection. Important levels of interaction are highlighted: repeated resistance at Level 1.0 and repeated support at Levels 0.5 and 0.618. The projection aligns horizontally, reflecting the relationship between points A, B, and C while identifying recurring zones of market structure.
🧮 Slope Source determines which side of the triangle (AB, AC, or BC) serves as the foundation for Fibonacci projections. This selection directly impacts the calculations by specifying the slope that anchors the geometric relationships within the chosen Dimension mode (1-D, 2-D, or 3-D).
In 1-D mode, the selected Source defines the single side used for the projection. In 2-D and 3-D modes, the Source works in conjunction with other settings to refine projections by integrating the selected slope into the multi-dimensional framework.
One-dimensional Fibonacci projection using the ⌳AC Slope Source and Ascending projection. The projection continues on the AC slope line.
🎯 Projection controls the direction and alignment of Fibonacci levels. Neutral projections produce horizontal levels, similar to traditional Fibonacci tools. Ascending and Descending projections adjust the levels along the calculated slope to reflect market trends. These options allow the indicator’s outputs to align with different market behaviors.
An ascending projection along the ⌳BC slope aligns with resistance levels at 1.0, 0.618, and 0.236. The geometric relationship between points A, B, and C illustrates how the projection adapts to market structure, identifying resistance zones that may not be captured by traditional Fibonacci tools.
🧭 Orientation modifies the alignment of the setup area defined by points A, B, and C, which influences Fibonacci projections in 2-D and 3-D modes. In Default mode, the triangle aligns naturally based on the relative positions of points B and C. In Inverted mode, the geometric orientation of the setup area is reversed, altering the slope calculations while preserving the projection direction specified in the Projection setting. In 1-D mode, Orientation has no effect since only one side is used for the projection.
Adjusting the Orientation setting provides alternative views of how Fibonacci levels align with the market's structure. By recalibrating the triangle’s setup, the inverted orientation can highlight different relationships between the sides, providing additional perspectives on support and resistance zones.
2-D inverted. The ⌳AC slope defines the projection, and the inverted orientation adjusts the alignment of the setup area, altering the angles used in level calculations. Key levels are highlighted: resistance at 0.786, strong support at 0.5 and 0.236, and a resistance-turned-support interaction at 0.618.
🛠️ CONFIGURATION AND SETTINGS 🛠️
The Fibonacci 3-D indicator includes configurable settings to adjust its functionality and visual representation. These options include customization of the dimensions (1-D, 2-D, or 3-D), slope calculations, orientations, projections, Fibonacci levels, and visual elements.
When adding the indicator to a new chart, select three reference points (A, B, and C). These are usually set to recent swing points. All three points can be easily changed at any time by clicking on the reference point and dragging it to a new location.
By default, all settings are set to Auto . The indicator uses an internal algorithm to estimate the projections based on the orientation and relative positions of the reference points. However, all values can be overridden to reflect the user's interpretation of the current market geometry.
⚙️ Core Settings
Dimensions : Defines how many sides of the triangle formed by points A, B, and C are incorporated into the calculations for Fibonacci projections. This setting determines the level of complexity and detail in the analysis. 1-D : Projects levels along the angle of a single user-selected side of the triangle.
2-D : Projects levels based on a composite slope derived from the angles of two sides of the triangle.
3-D : Projects levels based on a composite slope derived from all three sides of the triangle (A-B, A-C, and B-C), providing a multi-dimensional projection that adapts to both historical and recent market movements.
Slope Source : Determines which side of the triangle is used as the basis for slope calculations. A–B: The slope between points A and B. In 1-D mode, this determines the projection. In 2-D and 3-D modes, it contributes to the composite slope calculation.
A–C: The slope between points A and C. In 1-D mode, this determines the projection. In 2-D and 3-D modes, it contributes to the composite slope calculation.
B--C: The slope between points B and C. In 1-D mode, this determines the projection. In 2-D and 3-D modes, it contributes to the composite slope calculation.
Orientation : Defines the triangle's orientation formed by points A, B, and C, influencing slope calculations. Auto : Automatically determines orientation based on the relative positions of points B and C. If point C is to the right of point B, the orientation is "normal." If point C is to the left, the orientation is inverted.
Inverted : Reverses the orientation set in "Auto" mode. This flips the triangle, reversing slope calculations ⌳AB becomes ⌳BA).
Projection : Determines the direction of Fibonacci projections: Auto : Automatically determines projection direction based on the triangle formed by A, B, and C.
Ascending : Projects the levels upward.
Neutral : Projects the levels horizontally, similar to traditional Fibonacci retracements.
Descending : Projects the levels downward.
⚙️ Fibonacci Level Settings Show or hide specific levels.
Level Value : Adjust Fibonacci ratios for each level. The 0.0 and 1.0 levels are fixed.
Color : Set level colors.
⚙️ Visibility Settings Show Setup : Toggle the display of the setup area, which includes the projected lines used in calculations.
Show Triangle : Toggle the display of the triangle formed by points A, B, and C.
Triangle Color : Set triangle line colors.
Show Point Labels : Toggle the display of labels for points A, B, and C.
Show Left/Right Labels : Toggle price labels on the left and right sides of the chart.
Fill % : Adjust the fill intensity between Fibonacci levels (0% for no fill, 100% for full fill).
Info : Set the location or hide the Slope Source and Dimension. If Orientation is Inverted , the Slope Source will display with an asterisk (*).
⚙️ Time-Price Points : Set the time and price for points A, B, and C, which define the Fibonacci projections.
A, B, and C Points : User-defined time and price coordinates that form the foundation of the indicator's calculations.
Interactive Adjustments : Changes made to points on the chart automatically synchronize with the settings panel and update projections in real time.
Notes
Unlike traditional Fibonacci tools that include extensions beyond 1.0 (e.g., 1.618 or 2.618), the Fibonacci 3-D indicator restricts Fibonacci levels to the range between 0.0 and 1.0. This is because the projections are tied directly to the proportional relationships along the sides of the triangle formed by points A, B, and C, rather than extending beyond its defined structure.
The indicator's calculations dynamically sort the user-defined A, B, and C points by time, ensuring point A is always the earliest, point C the latest, and point B the middle. This automatic sorting allows users to freely adjust the points directly on the chart without concern for their sequence, maintaining consistency in the triangular structure.
🖼️ ADDITIONAL CHART EXAMPLES 🖼️
Three-dimensional ⌳AC slope is used with an ascending projection, even as the broader market trend moves downward. Despite the apparent contradiction, the projected Fibonacci levels align closely with price action, identifying zones of support and resistance. These levels highlight smaller countertrend movements, such as pullbacks to 0.382 and 0.236, followed by continuations at resistance levels like 0.618 and 0.786.
In 2-D mode, an ascending projection based on the BC slope highlights the market's geometric structure. A setup triangle, defined by a swing high (A), a swing low (B), and another swing high (C), reveals Fibonacci projections aligning with support at 0.236, 0.382, and 0.5, and resistance at 0.618, 0.786, and 1.0, as shown by the green and red arrows. This demonstrates the ability to uncover dynamic support and resistance levels not calculated in traditional Fibonacci tools.
In 2-D mode with an ascending projection from the ⌳AB slope, price movement is contained within the 0.5 and 0.786 levels. The 0.5 level serves as support, while the 0.786 level acts as resistance, with price action consistently interacting with these boundaries.
An AC (2-D) ascending projection is derived from two swing highs (A and B) and a swing low (C), reflecting a non-linear market structure that deviates from traditional zigzag patterns. The ascending projection aligns closely with the market's upward trajectory, forming a channel between the 0.0 and 0.5 Fibonacci levels. Note how price action interacts with the projected levels, showing support at 0.236 and 0.382, with the 0.5 level acting as a mid-channel equilibrium.
Two-dimensional ascending Fibonacci projection using the ⌳AC slope. Arrows highlight resistance at 0.786 and support at 0.0 and 0.236. The projection follows the ⌳AC slope, reflecting the geometric relationship between points A, B, and C to identify these levels.
Three-dimensional Fibonacci projection using the ⌳AC slope, aligned with the actual market's directional trend. By removing additional Fibonacci levels, the image emphasizes key areas: resistance at Level 0.0 and support at Levels 1.0 and 0.5. The projection dynamically follows the ⌳AC slope, adapting to the market's structure as defined by points A, B, and C.
A three-dimensional configuration uses the ⌳AB slope as the baseline for projections while incorporating the geometric influence of point C. Only the 0.0 and 0.618 levels are enabled, emphasizing the relationship between support at 0.0 and resistance at 0.618. Unlike traditional Fibonacci tools, which operate in a single plane, this setup reveals levels that rely on the triangular relationship between points A, B, and C. The third dimension allows for projections that align more closely with the market’s structure and reflect its multi-dimensional geometry.
The Fibonacci 3-D indicator can adapt to non-traditional point selection. Point A serves as a swing low, while points B and C are swing highs, forming an unconventional configuration. ⌳The BC slope is used in 2-D mode with an inverted orientation, flipping the projection direction and revealing resistance at Level 0.786 and support at Levels 0.618 and 0.5.
⚠️ DISCLAIMER ⚠️
The Fibonacci 3-D indicator is a visual analysis tool designed to illustrate Fibonacci relationships. While the indicator employs precise mathematical and geometric formulas, no guarantee is made that its calculations will align with other Fibonacci tools or proprietary methods. Like all technical and visual indicators, the Fibonacci projections generated by this tool may appear to visually align with key price zones in hindsight. However, these projections are not intended as standalone signals for trading decisions. This indicator is intended for educational and analytical purposes, complementing other tools and methods of market analysis.
🧠 BEYOND THE CODE 🧠
The Fibonacci 3-D indicator, like other xxattaxx indicators , is designed to encourage both education and community engagement. Your feedback and insights are invaluable to refining and enhancing the Fibonacci 3-D indicator. We look forward to the creative applications, adaptations, and observations this tool inspires within the trading community.
Support, Resistance, and Price Action SetupHow to Use This:
Support and Resistance: The green and red lines represent Support and Resistance levels based on past price action.
Breakout Signals: When the price breaks above resistance or below support, the background color changes (green for breakout above resistance, red for breakout below support), and labels are created at the breakout points.
Rejection Signals: If the price rejects the support or resistance level (i.e., price moves away from it), a visual marker is added on the chart.
Conclusion:
This corrected script should now work without the NA type assignment issue. The breakout logic is properly handled and should now plot the Support, Resistance, and Price Action signals correctly. You can set alerts based on the breakout or rejection events to make this even more useful in live trading.
MARTINGALE8MARTINGALE8 Indicator: Comprehensive User Guide
Welcome to the MARTINGALE8 Indicator, your ultimate tool for implementing a customizable martingale trading strategy directly on TradingView! Whether you're a beginner trader or an experienced strategist, this indicator offers flexibility and clarity, empowering you to trade with confidence. Let’s dive into how you can make the most of it!
What Is the Martingale Principle?
The martingale strategy is a betting technique often used in gambling and trading. The idea is simple: double down on losing positions so that when a trade eventually succeeds, the profits will recover all previous losses and yield a small profit. In trading, this translates to placing incrementally larger buy orders as the price moves against your initial position, assuming the price will eventually reverse in your favor.
The martingale principle works under the asumption of mean reversion —that the price will eventually recover to a point where all accumulated losses are recouped, and a profit is made. By increasing order sizes at lower levels, the average entry price moves closer to the current price, reducing the price move required to reach profitability. However, like any strategy, it carries risks — if the price continues to move against your position without reversing, losses can escalate quickly .
What Does MARTINGALE8 Do?
The MARTINGALE8 Indicator is an open source script designed to:
Calculate multiple price levels (buy and take-profit) using a martingale strategy.
Allow full customization of entry size, order deviation, profit targets, and order multipliers.
Visualize key trading levels directly on the chart for better decision-making.
Provide helpful labels with real-time metrics like total cost, range analysis, and high-volume bar prices.
This indicator is ideal for traders looking to automate and refine their martingale-based trading approaches.
Features
1. Customizable Inputs
You have complete control over key parameters:
Start Price: Set a custom starting price, or let it default to the market price.
Entry Size: Choose your initial trade size (default: equivalent to 7.5 USDT).
Order Multiplier: Adjust the size of each subsequent order in the martingale sequence.
Order Deviation: Define the percentage deviation for each buy level.
Profit Deviation: Determine the target percentage deviation for take-profit levels.
Length: Specify the lookback period for market analysis (default: 84 bars).
2. Market Analysis
The script calculates key metrics, including:
Highest Volume Bar (HVB): Identifies the bar with the highest trading volume in the selected period.
Range Analysis: Computes the high-to-low range percentage to help you understand market volatility.
3. Martingale Levels
Automatically generates :
10 Buy Levels: Strategically placed below the starting price.
Take-Profit Level: A target above the starting price based on the profit deviation.
4. Cost Calculation
The script calculates the total cost of all orders, including a 10% buffer for safety, so you can plan your capital allocation effectively.
5. Visual Elements
The indicator draws clean and intuitive lines for:
Take-Profit Level: Highlighted in fuchsia.
Buy Levels: Clearly marked with aqua lines.
Zero Line: Your base price, shown in white.
Additional labels provide:
A summary of key metrics like total cost, entry price, and range.
Precise price values for the take-profit and lowest buy levels.
How to Use MARTINGALE8
Step 1: Add the Indicator to Your Chart
Click on the “Indicators” tab in TradingView.
Search for “MARTINGALE8” and add it to your chart.
Step 2: Configure the Inputs
Navigate to the Settings menu of the indicator and adjust the following parameters:
Start Price : Set your starting price or leave it as 0 to use the current market price.
Entry Size : Define the size of your initial trade (e.g., 7.5 USDT).
Order Multiplier : Choose how much larger each subsequent order should be.
Order Deviation : Specify the percentage distance between buy levels.
Profit Deviation : Set your desired percentage for the take-profit level.
Length : Adjust the number of bars to analyze for high volume.
Step 3: Visualize the Levels
The indicator will plot:
A white line for the base price.
Aqua lines for the buy levels.
A fuchsia line for the take-profit level.
Step 4: Monitor the Labels
Look for the summary label on the chart, which shows:
Total cost of the martingale orders.
Entry price and key market metrics (range, high-volume bar price).
Tips for Optimal Use
Adjust Inputs to Match Market Conditions : Experiment with order and profit deviations to account for volatile or steady markets.
Manage Risk : Use the cost calculation feature to ensure you allocate capital responsibly.
Technical Details
The script is written in Pine Script v6 and uses:
Switch Statements : For flexible default values.
Line Objects : To draw and update key price levels dynamically.
Labels : To display relevant trading metrics.
I’m glad to share this tool with the TradingView community. If you enjoy using MARTINGALE8, please keep it going and share your feedback. Let’s trade smarter, not harder!
Weekly Pivot, S&RThis indicator is for calculating pivot point and 2 support and resistance levels arround that pivot point.
(IK) Base Break Buy (Updated to v6)An update to tapRoot_coding 's (IK) Base Break Buy strategy.
Key Changes from Pine Script v4 to v6:
Version Declaration: Updated the version declaration from //@version=4 to //@version=6 to specify the use of Pine Script v6.
Input Functions: Changed input functions to use the new input.int, input.float, and input.string functions, which are more explicit and provide better type safety compared to the generic input function used in v4.
Persistent Variables: Used the var keyword for persistent variables (e.g., bases, closestBase, brokenBase) to ensure they retain their values across script executions. This is a best practice in v6 to clearly indicate variables that should persist.
Function Definitions: Updated function definitions to use the new arrow function syntax (=>) introduced in v6, which provides a more concise way to define functions.
Array Handling: Ensured that array operations (e.g., array.new_float(), array.get(), array.size()) are compatible with v6, which may have introduced new methods or changed existing ones.
Strategy Entry and Exit: Corrected the strategy.entry function to use the direction parameter instead of the long argument, which is not recognized in v6. This specifies whether the trade is long or short.
Plotting: Verified that plotting functions (e.g., plot()) are compatible with v6, ensuring that any new features or changes in syntax are accounted for.
Ichimoku with Cumulative Delta Volume Trend Buy/Sell SignalsCombines Ichimoku with depth of Cumulative Volume Delta to bring buying/selling strength to areas of Ichimoku supports/resistances.
Best used with CumulativeVolumeDelta by LonesomeTheBlue as a subchart with Heikin-Ashi candles with values of the subchart of SMA 50, EMA 100 and EMA 200 as these are the values I used to confirm supports and resistances within the delta volume.
Meant for all timeframes, but more accurate on the daily, weekly and monthly timeframes for swings and commons.
NFA and good luck.
Auto Fibonacci LinesThis TradingView script is a modded version of the library called "VisibleChart" created by Pinecoder.
This version has the option for users to change the Fibonacci lines and price labels. This makes the script user-friendly.
Fibonacci extensions are a tool that traders can use to establish profit targets or estimate how far a price may travel after a retracement/pullback is finished. Extension levels are also possible areas where the price may reverse. This study automatically draws horizontal lines that are used to determine possible support and resistance levels.
It's designed to automatically plot Fibonacci retracement levels on chart, aiding in technical analysis for traders.
First, the highest and lowest bars on the chart are calculated. These values are used for Fibonacci extensions.
These values update as traders scroll or zoom their charts, this shows that it is a useful indicator that can dynamically calculate and draw visuals on visible bars only.
Yearly Open LevelsThe Yearly Open Levels indicator is designed to help traders visualize the opening price of each year on a price chart.
Key Features:
Yearly Open Display: Automatically calculates and displays the opening price for each year starting from a user-defined starting year. This helps traders quickly spot where the price opens each year.
Customizable Start Year: Users can set a specific year to begin displaying opening levels. The default starting year is 2022, but this can be adjusted based on individual trader needs.
Visual Lines and Labels: Each yearly open is represented by a horizontal line that extends to the right of the chart, making it easy to see the level throughout the year.
A label is placed next to the line, indicating the year and the opening price, enhancing clarity and reference while analyzing price movements.
Color Customization: Traders can choose the color of the lines and labels to fit their charting style or preferences, enhancing the visual representation on different market charts.
Order Blocks with Volume Heatmap & Clusters - VK TradingOrder Blocks with Volume Heatmap & Clusters - VK Trading
This script is designed to identify and highlight Order Blocks, a key concept in institutional trading, and combines it with powerful tools like volume heatmaps and accumulation clusters for enhanced market analysis. Suitable for traders of all experience levels, this script provides a clear and customizable visualization to help identify significant market zones effectively.
What Does This Script Do?
Order Block Identification: Highlights bullish and bearish order blocks directly on the chart, making it easier to spot key supply and demand zones.
Volume Heatmap: A dynamic heatmap adjusts colors based on relative volume, allowing you to quickly identify areas of heightened activity.
Institutional Accumulation Clusters: Zones of potential institutional accumulation are calculated using a combination of ATR (Average True Range), standardized volume, and RSI (Relative Strength Index).
Automatic Clearing: Invalidated order blocks are automatically removed, ensuring your charts remain clean and focused.
Key Features
Customizable Sensitivity: Adjust the script’s sensitivity to tailor order block detection to different market conditions and strategies.
Advanced Volume Display Options: Toggle volume visibility on or off. Customize the position, size, and color of volume labels for better integration with your chart's design.
Dynamic Heatmap Intensity: Fine-tune the heatmap’s intensity and color to highlight areas of interest based on trading volume.
Dual Order Block Detection: Uses two independent detection settings to analyze the market from multiple perspectives.
Visual Alerts: Automatically draws key level lines based on detected order blocks for better clarity.
User Benefits:
Clear Market Analysis: Helps pinpoint institutional activity and key levels with minimal effort.
Increased Efficiency: Automates plotting and analysis, allowing you to focus on decision-making.
Versatile Compatibility: Complements strategies like Smart Money Concepts, Wyckoff, and Price Action approaches.
Disclaimer
This script is intended as an analytical and educational tool. It does not guarantee specific outcomes or eliminate trading risks. Use this tool at your own discretion and always practice proper risk management.
Ultra Round NumbersThe Ultra Round Numbers indicator is designed to improve your market analysis by visually emphasizing significant price levels. These round numbers often act as psychological levels where traders and investors tend to make decisions. With this tool, you can easily spot these levels, adjust their precision, and customize their appearance.
Detailed Description
Ultra Round Numbers dynamically plots horizontal lines at key price intervals based on user-defined step sizes. These intervals represent round-numbered price levels, which can serve as critical support and resistance zones.
Step Configurations
The indicator features three customizable steps: Biggest, Middle, and Smallest.
Each step allows you to define:
The step size in price to determine the intervals for the lines.
The maximum number of lines above and below the current price.
The color, style, and thickness of the lines for better visualization.
The script efficiently handles the creation and deletion of lines to prevent clutter on the chart. It ensures only the relevant lines (from biggest step to lowest step) are displayed based on your settings and the current price movement.
This indicator is a powerful yet user-friendly indicator for identifying psychological price levels on your charts. With fully customizable steps, dynamic line management, and clean visuals, this tool empowers traders of all skill levels to make more informed trading decisions.
VWAP Fibonacci Bands (Zeiierman)█ Overview
The VWAP Fibonacci Bands is a sophisticated yet user-friendly indicator designed to assist traders in visualizing market trends, volatility, and potential support/resistance levels. Developed by Zeiierman, this tool integrates the MIDAS (Market Interpretation Data Analysis System) methodology with Standard Deviation Bands and user-defined Fibonacci levels to provide a comprehensive market analysis framework.
This indicator is built for traders who want a dynamic and customizable approach to understanding market movements, offering features that adapt to varying market conditions. Whether you're a scalper, swing trader, or long-term investor.
█ How It Works
⚪ Anchor Point System
The indicator begins its calculations based on an anchor point, which can be set to:
A specific date for historical analysis or alignment with significant market events.
A timeframe-based reset, dynamically restarting calculations at the beginning of each selected period (e.g., daily, weekly, or monthly).
This dual-anchor method ensures flexibility, allowing the indicator to align with various trading strategies.
⚪ MIDAS Calculation
The MIDAS calculation is central to this indicator. It uses cumulative price and volume data to compute a volume-weighted average price (VWAP), offering a trendline that reflects the true value weighted by trading activity.
⚪ Standard Deviation Bands
The upper and lower bands are calculated using the standard deviation of price movements around the MIDAS line.
⚪ Fibonacci Levels
User-defined Fibonacci ratios are used to plot additional support and resistance levels between the bands. These levels provide visual cues for potential price reversals or trend continuations.
█ How to Use
⚪ Trend Identification
Uptrend: The price remains above the MIDAS line.
Downtrend: The price stays below the MIDAS line and aligns with the lower bands.
⚪ Support and Resistance
The upper and lower bands act as support and resistance levels.
Fibonacci levels provide intermediate zones for potential price reversals.
⚪ Volatility Analysis
Wider bands indicate periods of high volatility.
Narrower bands suggest low-volatility conditions, often preceding breakouts.
⚪ Overbought/Oversold Conditions
Look for the price beyond the upper or lower bands to identify extreme conditions.
█ Settings
Set Anchor Method
Anchor Method: Choose between Timeframe or Date to define the starting point of calculations.
Anchor Timeframe: For Timeframe mode, specify the interval (e.g., Daily, Weekly).
Anchor Date: For Date mode, set the exact starting date for historical alignment.
Set Std Dev Multiplier
Controls the width of the bands:
Higher values widen the bands, filtering out minor fluctuations.
Lower values tighten the bands for more responsive analysis.
Set Fibonacci Levels
Define custom Fibonacci ratios (e.g., 0.236, 0.382) to plot intermediate levels between the bands.
█ Tips for Fine-Tuning
⚪ For Trend Trading:
Use higher Std Dev Multipliers to focus on long-term trends and avoid noise. Adjust Anchor Timeframe to Weekly or Monthly for broader trend analysis.
⚪ For Reversal Trading:
Tighten the bands with a lower Std Dev Multiplier.
Use shorter anchor timeframes for intraday reversals (e.g., Hourly).
⚪ For Volatile Markets:
Increase the Std Dev Multiplier to accommodate wider price swings.
⚪ For Quiet Markets:
Decrease the Std Dev Multiplier to highlight smaller fluctuations.
-----------------
Disclaimer
The information contained in my Scripts/Indicators/Ideas/Algos/Systems does not constitute financial advice or a solicitation to buy or sell any securities of any type. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
My Scripts/Indicators/Ideas/Algos/Systems are only for educational purposes!
Multi-Band Comparison (Uptrend)Multi-Band Comparison
Overview:
The Multi-Band Comparison indicator is engineered to reveal critical levels of support and resistance in strong uptrends. In a healthy upward market, the price action will adhere closely to the 95th percentile line (the Upper Quantile Band), effectively “riding” it. This indicator combines a modified Bollinger Band (set at one standard deviation), quantile analysis (95% and 5% levels), and power‑law math to display a dynamic picture of market structure—highlighting a “golden channel” and robust support areas.
Key Components & Calculations:
The Golden Channel: Upper Bollinger Band & Upper Std Dev Band of the Upper Quantile
Upper Bollinger Band:
Calculation:
boll_upper=SMA(close,length)+(boll_mult×stdev)
boll_upper=SMA(close,length)+(boll_mult×stdev) Here, the 20-period SMA is used along with one standard deviation of the close, where the multiplier (boll_mult) is 1.0.
Role in an Uptrend:
In a healthy uptrend, price rides near the 95th percentile line. When price crosses above this Upper Bollinger Band, it confirms strong bullish momentum.
Upper Std Dev Band of the Upper Quantile (95th Percentile) Band:
Calculation:
quant_upper_std_up=quant_upper+stdev
quant_upper_std_up=quant_upper+stdev The Upper Quantile Band, quant_upperquant_upper, is calculated as the 95th percentile of recent price data. Adding one standard deviation creates an extension that accounts for normal volatility around this extreme level.
The Golden Channel:
When the price crosses above the Upper Bollinger Band, the Upper Std Dev Band of the Upper Quantile immediately shifts to gold (yellow) and remains gold until price falls below the Bollinger level. Together, these two lines form the “golden channel”—a visual hallmark of a healthy uptrend where the price reliably hugs the 95th percentile level.
Upper Power‑Law Band
Calculation:
The Upper Power‑Law Band is derived in two steps:
Determine the Extreme Return Factor:
power_upper=Percentile(returns,95%)
power_upper=Percentile(returns,95%) where returns are computed as:
returns=closeclose −1.
returns=close close−1.
Scale the Current Price:
power_upper_band=close×(1+power_upper)
power_upper_band=close×(1+power_upper)
Rationale and Correlation:
By focusing on the upper 5% of returns (reflecting “fat tails”), the Upper Power‑Law Band captures extreme but statistically expected movements. In an uptrend, its value often converges with the Upper Std Dev Band of the Upper Quantile because both measures reflect heightened volatility and extreme price levels. When the Upper Power‑Law Band exceeds the Upper Std Dev Band, it can signal a temporary overextension.
Upper Quantile Band (95% Percentile)
Calculation:
quant_upper=Percentile(price,95%)
quant_upper=Percentile(price,95%) This level represents where 95% of past price data falls below, and in a robust uptrend the price action practically rides this line.
Color Logic:
Its color shifts from a neutral (blackish) tone to a vibrant, bullish hue when the Upper Power‑Law Band crosses above it—signaling extra strength in the trend.
Lower Quantile and Its Support
Lower Quantile Band (5% Percentile):
Calculation:
quant_lower=Percentile(price,5%)
quant_lower=Percentile(price,5%)
Behavior:
In a healthy uptrend, price remains well above the Lower Quantile Band. It turns red only when price touches or crosses it, serving as a warning signal. Under normal conditions it remains bright green, indicating the market is not nearing these extreme lows.
Lower Std Dev Band of the Lower Quantile:
This line is calculated by subtracting one standard deviation from quant_lowerquant_lower and typically serves as absolute support in nearly all conditions (except during gap or near-gap moves). Its consistent role as support provides traders with a robust level to monitor.
How to Use the Indicator:
Golden Channel and Trend Confirmation:
As price rides the Upper Quantile (95th percentile) perfectly in a healthy uptrend, the Upper Bollinger Band (1 stdev above SMA) and the Upper Std Dev Band of the Upper Quantile form a “golden channel” once price crosses above the Bollinger level. When this occurs, the Upper Std Dev Band remains gold until price dips back below the Bollinger Band. This visual cue reinforces trend strength.
Power‑Law Insights:
The Upper Power‑Law Band, which is based on extreme (95th percentile) returns, tends to align with the Upper Std Dev Band. This convergence reinforces that extreme, yet statistically expected, price moves are occurring—indicating that even though the price rides the 95th percentile, it can only stretch so far before a correction or consolidation.
Support Indicators:
Primary and Secondary Support in Uptrends:
The Upper Bollinger Band and the Lower Std Dev Band of the Upper Quantile act as support zones for minor retracements in the uptrend.
Absolute Support:
The Lower Std Dev Band of the Lower Quantile serves as an almost invariable support area under most market conditions.
Conclusion:
The Multi-Band Comparison indicator unifies advanced statistical techniques to offer a clear view of uptrend structure. In a healthy bull market, price action rides the 95th percentile line with precision, and when the Upper Bollinger Band is breached, the corresponding Upper Std Dev Band turns gold to form a “golden channel.” This, combined with the Power‑Law analysis that captures extreme moves, and the robust lower support levels, provides traders with powerful, multi-dimensional insights for managing entries, exits, and risk.
Disclaimer:
Trading involves risk. This indicator is for educational purposes only and does not constitute financial advice. Always perform your own analysis before making trading decisions.
Fibonacci Retracement MTF/LOGIn Pine Script, there’s always a shorter way to achieve a result. As far as I can see, there isn’t an indicator among the community scripts that can produce Fibonacci Retracement levels (linear and logarithmic) as multiple time frame results based on a reference 🍺 This script, which I developed a long time ago, might serve as a starting point to fill this gap.
OVERVIEW
This indicator is a short and simple script designed to display Fibonacci Retracement levels on the chart according to user preferences, aiming to build the structure of support and resistance.
ORIGINALITY
This script:
Can calculate 'retracement' results from higher time frames.
Can recall previous time frame results using its reference parameter.
Performs calculations based on both linear and logarithmic scales.
Offers optional multipliers and appearance settings to simplify users’ tasks
CONCEPTS
Fibonacci Retracement is a technical analysis tool used to predict potential reversal points in an asset's price after a significant movement. This indicator identifies possible support and resistance levels by measuring price movements between specific points in a trend, using certain ratios derived from the Fibonacci sequence. It is based on impulsive price actions.
MECHANICS
This indicator first identifies the highest and lowest prices in the time frame specified by the user. Next, it determines the priority order of the bars where these prices occurred. Finally, it defines the trend direction. Once the trend direction is determined, the "Retracement" levels are constructed.
FUNCTIONS
The script contains two functions:
f_ret(): Generates levels based on the multiplier parameter.
f_print(): Handles the visualization by drawing the levels on the chart and positioning the labels in alignment with the levels. It utilizes parameters such as ordinate, confirmation, multiplier, and color for customization
NOTES
The starting bar for the time frame entered by the user must exist on the chart. Otherwise, the trend direction cannot be determined correctly, and the levels may be drawn inaccurately. This is also mentioned in the tooltip of the TimeFrame parameter.
I hope it helps everyone. Do not forget to manage your risk. And trade as safely as possible. Best of luck!