Support & Resistance - Volume Based [Splirus]The Support & Resistance - Volume Based indicator is a sophisticated tool designed for TradingView to assist traders in identifying key support and resistance levels based on volume and price action dynamics.
I have used the concept and code of @ChartPrime indicator to perform my own upgrade/Modification.
URL:
Here the main modification I have done from @ChartPrime indicator:
Volume Strength Calculation: I have review the calculation of the Strength of the Volume to have less levels but strength ones.
Extra Levels from Custom Timeframe: I have add the possibility to add extra levels from a Custom TimeFrame to have a better overview of significant level from Higher TimeFrame. So for example you can Set the Extra Levels to Dayly TimeFrame and switch from lower TimeFrame ( 1H / 2H / 4H / ... ) and continue to have on Screen Dayly Levels in Yellow Color
Here’s a breakdown of its functionality:
Core Features:
1. Dynamic Support and Resistance Zones:
Automatically detects and plots support and resistance zones using swing highs and lows.
Zones are calculated based on the Average True Range (ATR) to ensure dynamic adaptability to market volatility.
2. Volume Integration:
Incorporates volume data to validate the strength of support and resistance zones.
Highlights zones where volume activity indicates significant market interest.
3. Customizable Trading Modes:
Offers three trading styles: Scalper, Intraday, and Swing, each with adjustable parameters to suit different timeframes and strategies.
4. Breakout and Retest Detection:
Identifies breakouts above resistance or below support.
Tracks retests of broken levels to confirm their validity as new support or resistance.
5. Multi-Timeframe Analysis:
Includes an option to display custom support and resistance levels derived from higher timeframes for enhanced perspective.
6. Visual Enhancements:
Configurable colors and labels for resistance and support zones.
Displays volume labels and key level annotations for clarity.
Settings Overview:
Trading Settings:
Adjust parameters like swing length and retest bar count to refine level detection.
Visual Settings:
Control the appearance of zones, including width, history retention, and color customization.
Alert Conditions:
Alerts for testing, breaking, and retesting support or resistance zones, ensuring traders never miss critical events.
Usage Scenarios:
Intraday Traders: Quickly identify intraday levels to base entries and exits.
Swing Traders: Utilize historical zones to plan trades around significant support and resistance areas.
Scalpers: Benefit from precise, short-term level detection tailored for high-frequency trading.
This indicator is highly versatile, combining technical precision with visual clarity, making it an essential tool for traders aiming to optimize their decision-making in dynamic markets.
תמיכה והתנגדות
Auto Last Earnings AVWAP
This script provides an automated approach to tracking critical post-earnings price levels. You can add it to a chart and then flip through your watchlist to see the anchored AVWAPs without the need to do it manually one by one.
Core Features:
Automatically detects earnings dates and anchors VWAP calculations without manual input
Calculates volume-weighted average price specifically from the last earnings release
Identifies and visualizes significant earnings gaps between reporting periods
Volume-Based Signal Detection:
Monitors VWAP crosses with volume confirmation (requires 1.5x normal volume)
Labels high-volume breakouts with clear directional signals
Uses a 6-bar adaptive volume baseline to filter out noise
Practical Applications:
AVWAP anchored at earnings offers a great price support level that should be considered when deciding to buy/sell the stock. This script eliminates manual VWAP anchoring and reduces chart management time
Key Differentiators:
First note: coding VWAP anchoring in pine is more challenging that one would think. The source code is open to help other users and hopefully inspire different applications.
No need to manually anchor the VWAP
Draws earnings gap from earnings to earnings (if auto mode)
Detects breakouts through the AVWAP line
Gaussian Channel Strategy v3.0- Open long position as soon as the gaussian channel is green, the close price is above the high gaussian channel band and when the Stochastic RSI is above 80 or below 20.
- Close long positions when the close price crosses the high gaussian channel band to the downside.
Date range can be adjusted in settings
SUP & RECIdentifying Support and Resistance: An indicator (likely visual) highlights areas on a price chart where the asset's price has historically struggled to break through. These are crucial levels to watch for potential price reversals.
Bullish Divergence + Support Levels Custom//@version=5
indicator("Bullish Divergence + Support Levels", overlay=true)
// RSI Calculation
rsiLength = 14
rsi = ta.rsi(close, rsiLength)
// Detect Bullish Divergence
low1 = ta.lowest(low, 5)
low2 = ta.lowest(low, 5)
rsiLow1 = ta.lowest(rsi, 5)
rsiLow2 = ta.lowest(rsi, 5)
// Condition: Price Lower Low but RSI Higher Low (Bullish Divergence)
bullishDivergence = (low1 < low2) and (rsiLow1 > rsiLow2)
// Support Level Detection
supportLevel = ta.lowest(close, 20)
// Moving Averages for Trend Confirmation
ema50 = ta.ema(close, 50)
ema200 = ta.ema(close, 200)
trendConfirmation = close > ema50 and ema50 > ema200 // Strong uptrend confirmation
// Price Change % for Early Recovery
change1H = (close - close ) / close * 100 // 1-hour change
change4H = (close - close ) / close * 100 // 4-hour change
earlyRecovery = change1H > 0 or change4H > 0
// Final Buy Signal: Bullish Divergence + Support Level + Trend + Early Recovery
buySignal = bullishDivergence and close >= supportLevel and trendConfirmation and earlyRecovery
// Plot Buy Signal
plotshape(series=buySignal, location=location.belowbar, color=color.green, style=shape.labelup, title="BUY 🚀")
plot(supportLevel, color=color.blue, title="Support Level", linewidth=2)
plot(ema50, color=color.orange, title="50 EMA")
plot(ema200, color=color.red, title="200 EMA")
Onky's DikFat Supreme Supply and Demand
Onky's DikFat Supreme Supply and Demand (DFAT S&D)
This indicator identifies and marks potential Demand and Supply zones based on sharp price movements and volume spikes. It is designed to assist traders in recognizing areas where price could potentially reverse or move impulsively, based on the concept of supply and demand.
Key Features:
- Dynamic Demand and Supply Zones : The indicator uses historical price data and sharp price movements to detect areas where demand or supply may be concentrated. The zones are drawn as boxes on the chart for visual reference.
- Volume Spike Detection : The zones are only marked when a volume spike occurs, indicating increased market activity and potentially stronger support or resistance at those levels.
- Adjustable Parameters : Traders can adjust the Zone Size to control the lookback period for detecting supply and demand zones, and can fine-tune the Volume Multiplier to control the sensitivity of volume spikes.
- Alerts : Alerts are available for both Demand and Supply zones when they are detected, allowing traders to be notified when price enters or reacts to these areas.
How Traders Use Supply and Demand Zones:
Supply and Demand Theory suggests that prices often move in response to the balance between the amount of supply (selling pressure) and demand (buying pressure) at specific price levels. When demand exceeds supply, prices tend to rise, and when supply exceeds demand, prices tend to fall.
1. Demand Zones : These are areas where price has previously fallen to a low point and buyers have stepped in, pushing prices higher. Traders may view these zones as potential areas for price to reverse upward again.
2. Supply Zones : These are areas where price has risen to a high point and sellers have stepped in, pushing prices lower. Traders may see these zones as potential areas for price to reverse downward again.
Traders use these zones to identify potential entry points (for buying in demand zones or selling in supply zones) and exit points (if price reaches these zones in the future). The volume spike further validates the strength of these zones, as it indicates heightened market interest at those levels.
This indicator offers a flexible, visual way to identify and act upon these market dynamics. It is neutral and does not guarantee any specific outcomes, but it may assist traders in recognizing important price levels where price action could change.
Disclaimer:
This indicator is provided for informational purposes only. It is not intended to be trading advice or a recommendation to buy or sell any financial instruments. Trading involves risk, and the use of this tool does not guarantee any specific results or profits. Past performance is not indicative of future results. Users are responsible for their own decisions and should seek independent financial advice before making any investment decisions.
Price Imbalance as Consecutive Levels of AveragesOverview
The Price Imbalance as Consecutive Levels of Averages indicator is an advanced technical analysis tool designed to identify and visualize price imbalances in financial markets. Unlike traditional moving average (MA) indicators that update continuously with each new price bar, this indicator employs moving averages calculated over consecutive, non-overlapping historical windows. This unique approach leverages comparative historical data to provide deeper insights into trend strength and potential reversals, offering traders a more nuanced understanding of market dynamics and reducing the likelihood of false signals or fakeouts.
Key Features
Consecutive Rolling Moving Averages: Utilizes three distinct simple moving averages (SMAs) calculated over consecutive, non-overlapping windows to capture different historical segments of price data.
Dynamic Color-Coded Visualization: SMA lines change color and style based on the relationship between the averages, highlighting both extreme and normal market conditions.
Median and Secondary Median Lines: Provides additional layers of price distribution insight during normal trend conditions through the plotting of primary and secondary median lines.
Fakeout Prevention: Filters out short-term volatility and sharp price movements by requiring consistent historical alignment of multiple moving averages.
Customizable Parameters: Offers flexibility to adjust SMA window lengths and line extensions to align with various trading strategies and timeframes.
Real-Time Updates with Historical Context: Continuously recalculates and updates SMA lines based on comparative historical windows, ensuring that the indicator reflects both current and past market conditions.
Inputs & Settings
Rolling Window Lengths:
Window 1 Length (Most Recent) Bars: Number of bars used to calculate the most recent SMA. (Default: 5, Range: 2–300)
Window 2 Length (Preceding) Bars: Number of bars for the second SMA, shifted by Window 1. (Default: 8, Range: 2–300)
Window 3 Length (Third Rolling) Bars: Number of bars for the third SMA, shifted by the combined lengths of Window 1 and Window 2. (Default: 13, Range: 2–300)
Horizontal Line Extension:
Horizontal Line Extension (Bars): Determines how far each SMA line extends horizontally on the chart. (Default: 10 bars, Range: 1–100)
Functionality and Theory
1. Calculating Consecutive Simple Moving Averages (SMAs):
The indicator calculates three SMAs, each based on distinct and consecutive historical windows of price data. This approach contrasts with traditional MAs that continuously update with each new price bar, offering a static view of past trends rather than an ongoing one.
Mean1 (SMA1): Calculated over the most recent Window 1 Length bars. Represents the short-term trend.
Mean1=∑i=1N1CloseiN1
Mean1=N1∑i=1N1Closei
Where N1N1 is the length of Window 1.
Mean2 (SMA2): Calculated over the preceding Window 2 Length bars, shifted back by Window 1 Length bars. Represents the medium-term trend.
\text{Mean2} = \frac{\sum_{i=1}^{N_2} \text{Close}_{i + N_1}}}{N_2}
Where N2N2 is the length of Window 2.
Mean3 (SMA3): Calculated over the third rolling Window 3 Length bars, shifted back by the combined lengths of Window 1 and Window 2 bars. Represents the long-term trend.
\text{Mean3} = \frac{\sum_{i=1}^{N_3} \text{Close}_{i + N_1 + N_2}}}{N_3}
Where N3N3 is the length of Window 3.
2. Determining Market Conditions:
The relationship between the three SMAs categorizes the market condition into either extreme or normal states, enabling traders to quickly assess trend strength and potential reversals.
Extreme Bullish:
Mean3Mean2>Mean1
Mean3>Mean2>Mean1
Indicates a strong and sustained downward trend. SMA lines are colored purple and styled as dashed lines.
Normal Bullish:
Mean1>Mean2andnot in extreme bullish condition
Mean1>Mean2andnot in extreme bullish condition
Indicates a standard upward trend. SMA lines are colored green and styled as solid lines.
Normal Bearish:
Mean1Mean2>Mean1
Mean3>Mean2>Mean1
Normal Bullish:
Mean1>Mean2andnot in Extreme Bullish
Mean1>Mean2andnot in Extreme Bullish
Normal Bearish:
Mean1 Mean2 > Mean3
Visualization: All three SMAs are displayed as gold dashed lines.
Median Lines: Not displayed to maintain chart clarity.
Interpretation: Indicates a strong and sustained upward trend. Traders may consider entering long positions, confident in the trend's strength without the distraction of additional lines.
2. Normal Bullish Condition:
SMAs Alignment: Mean1 > Mean2 (not in extreme condition)
Visualization: Mean1 and Mean2 are green solid lines; Mean3 is gray.
Median Lines: A thin blue dotted median line is plotted between Mean1 and Mean2, with two additional thin blue dashed lines as secondary medians.
Interpretation: Confirms an upward trend while providing deeper insights into price distribution. Traders can use the median and secondary median lines to identify optimal entry points and manage risk more effectively.
3. Extreme Bearish Condition:
SMAs Alignment: Mean3 > Mean2 > Mean1
Visualization: All three SMAs are displayed as purple dashed lines.
Median Lines: Not displayed to maintain chart clarity.
Interpretation: Indicates a strong and sustained downward trend. Traders may consider entering short positions, confident in the trend's strength without the distraction of additional lines.
4. Normal Bearish Condition:
SMAs Alignment: Mean1 < Mean2 (not in extreme condition)
Visualization: Mean1 and Mean2 are red solid lines; Mean3 is gray.
Median Lines: A thin blue dotted median line is plotted between Mean1 and Mean2, with two additional thin blue dashed lines as secondary medians.
Interpretation: Confirms a downward trend while providing deeper insights into price distribution. Traders can use the median and secondary median lines to identify optimal entry points and manage risk more effectively.
Customization and Flexibility
The Price Imbalance as Consecutive Levels of Averages indicator is highly adaptable, allowing traders to tailor it to their specific trading styles and market conditions through adjustable parameters:
SMA Window Lengths: Modify the lengths of Window 1, Window 2, and Window 3 to capture different historical trend segments, whether focusing on short-term fluctuations or long-term movements.
Line Extension: Adjust the horizontal extension of SMA and median lines to align with different trading horizons and chart preferences.
Color and Style Preferences: While default colors and styles are optimized for clarity, traders can customize these elements to match their personal chart aesthetics and enhance visual differentiation.
This flexibility ensures that the indicator remains versatile and applicable across various markets, asset classes, and trading strategies, providing valuable insights tailored to individual trading needs.
Conclusion
The Price Imbalance as Consecutive Levels of Averages indicator offers a comprehensive and innovative approach to analyzing price trends and imbalances within financial markets. By utilizing three consecutive, non-overlapping SMAs and incorporating median lines during normal trend conditions, the indicator provides clear and actionable insights into trend strength and price distribution. Its unique design leverages comparative historical data, distinguishing it from traditional moving averages and enhancing its utility in identifying genuine market movements while minimizing false signals. This dynamic and customizable tool empowers traders to refine their technical analysis, optimize their trading strategies, and navigate the markets with greater confidence and precision.
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.
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.
Multi-Indicator Strategy v6highly profitable pinescript strategy with macd, EMA, pivot levels, bollinger bands, rsi, keltner channel or Money flow indicator
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.
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.
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.
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
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.
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.