Market Capital Gain Loss By Abhay B. JagdaleMarket Capital Gain Loss (MCGL) by Abhay B. Jagdale is an advanced indicator designed to visualize and analyze the market capitalization of a stock based on real-time price data. It leverages financial metrics and price action to help traders and investors understand how the stock's valuation evolves over time.
This script calculates market capitalization using the stock's Total Shares Outstanding (TSO), combined with open, high, low, and close prices. The results are displayed in an easy-to-read format, using the following visual elements:
Step Line Plot: Shows the market capitalization trend, where green indicates a positive change and red indicates a negative change compared to the previous bar.
Custom Candles: Represent the market cap's open, high, low, and close values, offering a candle-like visualization for valuation.
Dynamic Labels: Display the high, current, and low market capitalization values for each bar, giving users a clear snapshot of key data points.
Features:
Automatically calculates market capitalization using financial data for supported stocks.
Highlights gains and losses with intuitive color-coding (green for gains, red for losses).
Displays detailed market capitalization metrics in labels for added clarity.
Suitable for all trading styles, including day trading and long-term analysis.
Use Cases:
Stock Valuation Tracking: Understand how market cap changes in real-time based on price action.
Trend Identification: Spot valuation trends and reversals using color-coded step lines and candles.
Market Cap Insights: Gain additional context about stock performance with dynamic labels showcasing high, low, and current capitalization.
Note: This indicator relies on the request.financial function to fetch the total shares outstanding (TSO). For stocks that don't support this data, the TSO will default to 0, and calculations will not be displayed. Ensure the stock symbol supports financial data to use this indicator effectively.
Disclaimer:
This script is intended for informational purposes only and should not be used as the sole basis for making trading decisions. Always conduct your own research before investing.
Komut dosyalarını "track" için ara
BB Context PanelThe BB Context Panel indicator is designed to provide a customizable and informative overlay on your chart. It offers key contextual details to enhance your trading experience by combining essential market data, user-defined messages, and time-based insights in an easily accessible panel. Whether you use it for quick reference, sharing screenshots, or maintaining focus with motivational reminders, this tool adapts to your unique trading needs.
Key Features
1. Futures Contract Tracking:
• Automatically displays the current or nearest futures contract (e.g., MNQH5), including support for continuous contracts.
• Adjusts dynamically based on the quarterly roll schedule (March, June, September, December).
2. Time and Date Display:
• Choose to display either:
• Bar Time: Reflects the timestamp of the most recent bar.
• Current Time: Updates in real time based on your selected timezone.
• Formats the timestamp as hh:mm Day mm-dd-yy for easy readability.
3. Custom User Messages:
• Add personalized messages, motivational reminders, or trading affirmations (e.g., “Patience | Discipline | Confidence”).
• Supports multiline messages for greater customization.
4. Customizable Placement:
• Select from multiple placement options (e.g., Top Right, Bottom Left, etc.) to integrate seamlessly with your chart layout.
5. Time Zone Support:
• Supports a wide range of global time zones, ensuring accurate time synchronization based on your location or trading session preferences.
6. Clean and Minimalist Design:
• Aesthetic panel with customizable text and background colors for better integration with your chart theme.
• Bolded key information like contract symbols and timeframes for quick recognition.
How to Use
1. Enable the Context Panel:
• Select a location for the panel using the Show Chart Context Panel? setting (e.g., Top Right).
2. Choose Time Display:
• Decide whether to show Bar Time, Current Time, or disable the time display entirely (None).
3. Add Custom Messages:
• Use the Panel Message input to add motivational reminders, strategy notes, or any text you’d like to see during your trading sessions.
4. Set Your Time Zone:
• Configure the time zone using the Select Timezone dropdown to ensure time data aligns with your trading hours.
Example Use Cases
1. Screenshot-Friendly Context:
• Capture annotated screenshots with clear context, including contract symbol, timeframe, timestamp, and reminders.
2. Quick Market Overview:
• Use the panel to stay informed about the current futures contract and trading session details without cluttering your chart.
3. Trading Psychology Support:
• Display affirmations like “Patience | Discipline | Confidence” to help maintain focus and emotional discipline while trading.
R-based Strategy Template [Daveatt]Have you ever wondered how to properly track your trading performance based on risk rather than just profits?
This template solves that problem by implementing R-multiple tracking directly in TradingView's strategy tester.
This script is a tool that you must update with your own trading entry logic.
Quick notes
Before we dive in, I want to be clear: this is a template focused on R-multiple calculation and visualization.
I'm using a basic RSI strategy with dummy values just to demonstrate how the R tracking works. The actual trading signals aren't important here - you should replace them with your own strategy logic.
R multiple logic
Let's talk about what R-multiple means in practice.
Think of R as your initial risk per trade.
For instance, if you have a $10,000 account and you're risking 1% per trade, your 1R would be $100.
A trade that makes twice your risk would be +2R ($200), while hitting your stop loss would be -1R (-$100).
This way of measuring makes it much easier to evaluate your strategy's performance regardless of account size.
Whenever the SL is hit, we lose -1R
Proof showing the strategy tester whenever the SL is hit: i.imgur.com
The magic happens in how we calculate position sizes.
The script automatically determines the right position size to risk exactly your specified percentage on each trade.
This is done through a simple but powerful calculation:
risk_amount = (strategy.equity * (risk_per_trade_percent / 100))
sl_distance = math.abs(entry_price - sl_price)
position_size = risk_amount / (sl_distance * syminfo.pointvalue)
Limitations with lower timeframe gaps
This ensures that if your stop loss gets hit, you'll lose exactly the amount you intended to risk. No more, no less.
Well, could be more or less actually ... let's assume you're trading futures on a 15-minute chart but in the 1-minute chart there is a gap ... then your 15 minute SL won't get filled and you'll likely to not lose exactly -1R
This is annoying but it can't be fixed - and that's how trading works anyway.
Features
The template gives you flexibility in how you set your stop losses. You can use fixed points, ATR-based stops, percentage-based stops, or even tick-based stops.
Regardless of which method you choose, the position sizing will automatically adjust to maintain your desired risk per trade.
To help you track performance, I've added a comprehensive statistics table in the top right corner of your chart.
It shows you everything you need to know about your strategy's performance in terms of R-multiples: how many R you've won or lost, your win rate, average R per trade, and even your longest winning and losing streaks.
Happy trading!
And remember, measuring your performance in R-multiples is one of the most classical ways to evaluate and improve your trading strategies.
Daveatt
BTC Dominance/Price vs Alts Logic (QKWESI)BTC Dominance & Price vs. Alts Indicator
Overview: The BTC Dominance & Price vs. Alts indicator is designed to help cryptocurrency traders understand the relationship between Bitcoin's market dominance, its price movements, and the subsequent impact on altcoin trends. By analyzing these key metrics, the indicator provides actionable insights to inform trading decisions.
Key Features:
BTC Dominance Tracking: Monitors Bitcoin's dominance percentage to assess its influence over the crypto market.
Real-Time BTC Price: Displays the latest Bitcoin price movements for informed analysis.
Alts Trend Prediction: Predicts altcoin behavior—such as Pump, Dump, Stable, or Increase—based on the combined trends of BTC Dominance and BTC Price.
Color-Coded Table: Presents data in a structured table with color indicators for easy interpretation.
Trend Indicators: Utilizes clear symbols to represent the direction of each metric, aiding quick decision-making.
Logic Table:
BTC Dominance BTC Price Alts Result
Increases Increases Decrease
Increases Decreases Dump
Increases Stable Stable
Decreases Increases Pump
Decreases Decreases Stable
Decreases Stable Increase
Explanation:
Increases in BTC Dominance & Increases in BTC Price: Altcoins are likely to Decrease in value.
Increases in BTC Dominance & Decreases in BTC Price: Altcoins may Dump, experiencing a sharp drop.
Increases in BTC Dominance & Stable BTC Price: Altcoins are expected to remain Stable.
Decreases in BTC Dominance & Increases in BTC Price: Altcoins may Pump, gaining significant value.
Decreases in BTC Dominance & Decreases in BTC Price: Altcoins are likely to remain Stable.
Decreases in BTC Dominance & Stable BTC Price: Altcoins may Increase moderately.
Benefits:
Informed Trading Decisions: Leverage BTC metrics to anticipate altcoin movements.
Efficient Market Analysis: Quickly assess market conditions without multiple indicators.
Structured Insights: The color-coded table and trend indicators provide a clear overview of key market dynamics.
ROI Levels IndicatorROI Levels Indicator 📈💰
Description: The "ROI Levels Indicator" helps you visualize key Return on Investment (ROI) levels directly on your chart, making it easier to track your profit milestones! 🚀 This tool allows you to enter your entry price, and it calculates levels from 100% up to 1000% ROI, each with a spread to represent potential support and resistance zones. The levels are visually represented by red rectangles to help identify zones where the market might react. This is a great way for traders to easily understand profit-taking points and psychological price levels!
Features:
🛠️ Custom Entry Price: Set your own entry price to start calculating ROI levels.
📊 Multiple ROI Levels: Levels from 100% to 1000%, with a customizable spread for visual clarity.
🔴 Visual Representation: Each level is marked with a full-screen-width rectangle and label, making it easy to track.
🚨 Entry Price Plot: A red dashed line marks your entry price for easy reference.
How to Use:
Enter Your Price: Use the "Entry Price" input field to specify the entry price of your trade.
Spread Adjustment: Adjust the spread percentage if you want more or less tolerance around each ROI level.
View the Levels: The script automatically plots 100% to 1000% ROI levels. Each level is represented by a red rectangle and labeled on the right side for quick identification.
Track Profit Zones: Use the plotted ROI levels to identify key profit-taking areas or potential zones of support and resistance.
Pro Tip: Use these levels as reference points to decide when to scale out of positions or manage risk effectively! 🎯
Happy trading, and may your ROI always be on the rise! 📈🔥
Exponential growthPurpose
The indicator plots an exponential curve based on historical price data and supports toggling between exponential regression and linear logarithmic regression. It also provides offset bands around the curve for additional insights.
Key Inputs
1. yxlogreg and dlogreg:
These are the "Endwert" (end value) and "Startwert" (start value) for calculating the slope of the logarithmic regression.
2. bars:
Specifies how many historical bars are considered in the calculation.
3.offsetchannel:
Adds an adjustable percentage-based offset to create upper and lower bands around the main exponential curve.
Default: 1 (interpreted as 10% bands).
4.lineareregression log.:
A toggle to switch between exponential function and linear logarithmic regression.
Default: false (exponential is used by default).
5.Dynamic Labels:
Creates a label showing the calculated regression values and historical bars count at the latest bar. The label is updated dynamically.
Use Cases
Exponential Growth Tracking:
Useful for assets or instruments exhibiting exponential growth trends.
Identifying Channels:
Helps identify support and resistance levels using the offset bands.
Switching Analysis Modes:
Flexibility to toggle between exponential and linear logarithmic analysis.
Comprehensive Time Chain Indicator - AYNETFeatures and Enhancements
Dynamic Timeframe Handling:
The script monitors new intervals of a user-defined timeframe (e.g., daily, weekly, monthly).
Flexible interval selection allows skipping intermediate time periods (e.g., every 2 days).
Custom Marker Placement:
Markers can be placed at:
High, Low, or Close prices of the bar.
A custom offset above or below the close price.
Special Highlights:
Automatically detects the start of a week (Monday) and the start of a month.
Highlights these periods with a different marker color.
Connecting Lines:
Markers are connected with lines to visually link the events.
Line properties (color, width) are fully customizable.
Dynamic Labels:
Optional labels display the timestamp of the event, formatted as per user preferences (e.g., yyyy-MM-dd HH:mm).
How It Works:
Timeframe Event Detection:
The is_new_interval flag identifies when a new interval begins in the selected timeframe.
Special flags (is_new_week, is_new_month) detect key calendar periods.
Dynamic Marker Drawing:
Markers are drawn using label.new at the specified price levels.
Colors dynamically adjust based on the type of event (interval vs. special highlight).
Connecting Lines:
The script dynamically connects markers with line.new, creating a time chain.
Previous lines are updated for styling consistency.
Customization Options:
Timeframe (main_timeframe):
Adjust the timeframe for detecting new intervals, such as daily, weekly, or hourly.
Interval (interval):
Skip intermediate events (e.g., draw a marker every 2 days).
Visualization:
Enable or disable markers and labels independently.
Customize colors, line width, and marker positions.
Special Periods:
Highlight the start of a week or month with distinct markers.
Applications:
Event Tracking:
Highlight and connect key time intervals for easier analysis of patterns or trends.
Custom Time Chains:
Visualize periodic data, such as specific trading hours or cycles.
Market Session Analysis:
Highlight market opens, closes, or other critical time-based events.
Usage Instructions:
Copy and paste the code into the Pine Script editor on TradingView.
Adjust the input settings for your desired timeframe, visualization preferences, and special highlights.
Apply the script to a chart to see the time chain visualized.
This implementation provides robust functionality while remaining easy to customize. Let me know if further enhancements are required! 😊
Supply and Demand Areas Responsible and Origins [PRO][keypoems]Supply and Demand Areas Responsible and Origins by Keypoems
This indicator highlights supply and demand areas responsible for breaking market structure (SNDR) and tracks how many times these have been "tapped". This is a very advanced and unique capability not present on TradingView at the moment. It also draws and track the "Origins" of breakout moves.
Using this fellow traders can to track with great precision order flow by gauging the reaction of price to these very sensitive areas.
Various powerful trading models can be built around this indicator. Here's an example on how to use it: Price Action will tend to retrace and visit ("tap") critical areas where orders are accumulated (SNDR and Origins) usually twice ("double tap") before continuing a trend. With this knowledge traders can either enter profitably a pro-trend trade after a "double tap" retracement in a responsible area or a origin or if those areas are violated, understand the change in narrative and enter a counter-trend trade.
This indicator is not a mashup of something you have already seen. It is absolutely unique: early testers and fellow traders have been very loud in requesting this to be released to the public (I love you moderators!).
SNDRs (Supply and Demand Responsible)
- Advanced Detection: Looks for the last up-move swing in a bearish zone, or the last down-move in a bullish zone. Adjust the sensitivity choosing a customizable pivot length.
- Mitigation Extension: Option to extend SNDR zones until they are fully mitigated.
- First Tap Indication: Zones change color and text upon the first tap, signaling initial mitigation.
- Second Tap Indication: Zones change color and text upon the first tap, signaling possible trade idea.
- Set pivot length for swing detection.
- Enable bullish and bearish SNDR zones separately.
- Customize texts, colors, and border colors for SNDR zones.
- Adjust line styles, widths, and display of 30%, 50%, and 70% levels within SNDR zones.
Origins
- Definition Flexibility: Mark Origins as the last down-close candle in a bullish zone, last up-close candle in a bearish zone or use the initial swing point with a customizable pivot length.
- Mitigation Extension: Extend origin zones until they are fully mitigated.
- First Tap Indication: Similar to SNDR, origin zones can change appearance upon the first tap.
- Set pivot length for swing detection.
- Enable bullish and bearish origin zones separately.
- Customize texts, colors, borders, and line styles.
- Adjust display of 30%, 50%, and 70% levels within origin zones.
Zones
To be able to draw SNDRs (which are internal counter-trend areas in a zone) the indicator needs to track market structure zones. So the indicator can also draw those zones if needed. The indicator can also extend the current price zones until the 50% of the zone is mitigated.
Info Box
Displays a box with detailed information about the last identified zone, including risk and range size.
- Risk Management: Set the risk amount to calculate contract sizes or position sizing.
- Visibility Options: Adjust the labels' size within the info box for better readability.
- Set the risk amount for calculations.
SMC StructuresTitle: SMC Structures Indicator
Description:
The SMC Structures indicator is a powerful tool designed to identify and visualize key structural elements in price action, based on the principles of Smart Money Concepts (SMC). This indicator helps traders identify potential areas of support, resistance, and price reversals by highlighting significant market structures.
Key Features:
Structure Identification: The indicator automatically detects and marks important high and low structures in the market.
Break of Structure (BOS) Detection: It identifies and labels instances where previous structures are broken, indicating potential trend changes or continuations.
Change of Character (CHoCH) Detection: The indicator recognizes and marks Changes of Character, which are significant shifts in market behavior.
Customizable Visuals: Users can personalize the appearance of BOS and CHoCH markings, including colors, line styles, and widths.
Current Structure Display: The indicator can optionally show the current active structure, helping traders understand the immediate market context.
Historical Structure Tracking: Users can specify the number of historical structure breaks to display, allowing for a cleaner chart while maintaining relevant information.
Flexible Break Confirmation: The indicator offers the option to confirm structure breaks using either the candle body or wick, accommodating different trading styles.
Technical Details:
The indicator uses advanced algorithms to identify significant price structures based on local highs and lows.
It employs a lookback period of 10 bars for structure detection, ensuring relevance to current market conditions.
The code includes safeguards to handle different market phases and avoid false signals during ranging periods.
Customization Options:
Colors for Bullish and Bearish BOS and CHoCH markings
Line styles and widths for all structure markings
Number of historical breaks to display
Option to show or hide the current active structure
Choice between candle body or wick for structure break confirmation
Use Cases:
Trend Analysis: Identify the start of new trends or potential trend reversals.
Support and Resistance: Pinpoint key levels where price may react.
Trade Entry and Exit: Use structure breaks as potential entry or exit signals.
Market Context: Understand the broader market structure to make informed trading decisions.
This indicator is particularly useful for traders who follow Smart Money Concepts and those looking to enhance their understanding of market structure. It provides a visual representation of complex market dynamics, helping traders make more informed decisions based on structural analysis.
Note: This indicator is best used in conjunction with other analytical tools and a solid understanding of market dynamics. Always practice proper risk management when using any trading indicator.
Would you like me to explain or break down any part of the code?
Statistics plot1. setting the price range
At the beginning of the script, set the price range (interval). Price ranges are used to divide prices into several groups (buckets) and record how many prices have been reached within each group. For example, setting the price range to “10” will divide the price into intervals 0-10, 10-20, 20-30, and so on.
The price range can also be set manually by the user or automatically calculated based on the initial price. This allows for flexibility in adjusting price ranges for different assets and different time frames.
2. aggregate the number of times a price is reached
Record how many times the price reached each price range (e.g., 100-110, 110-120, etc.). This aggregate data is stored in a data structure called an array.
Each element of the array corresponds to a price range, and when a price reaches that range, the corresponding array value is incremented by one. This process is performed in real time, tracking price movements.
3. initializing and extending price ranges
The first bar of the script (when the chart is first loaded) divides the price ranges into several groups and initializes a count of 0 for each range.
When a price reaches a new range, the array is expanded as needed to add the new price range. This allows the script to work with any price movement, even if the price range continues to grow.
4. visualize the number of price arrivals with a histogram
The aggregated number of arrivals per price range is visually displayed in the form of a histogram. This histogram is designed to allow the user to see at a glance which price range is being reached most frequently.
For example, if prices frequently reach the 100-110 range, the histogram bar corresponding to that range will appear higher than the other ranges. This allows you to visually identify price “dwell points” or support and resistance levels.
5. display of moving averages
A moving average (MA) of the number of times a price has been reached is drawn above the histogram. Moving averages are indicators that show a smooth trend for the number of price arrivals and are useful for understanding the overall direction of price movements.
The duration of the moving average (how many data points it is calculated based on) can be set by the user. This allows for flexible analysis of short or long term price trends. 6.
6. price range tracking and labeling
The script keeps track of which price range the current price is located in. Based on this, information related to the current price range is displayed on the chart as labels.
In particular, labels indicate the beginning and end points of the price range, including which range the price was in at the beginning and which range the price reached at the end. These labels are a useful feature to visually identify price ranges on the chart.
7. labeling of current price range
To confirm which price range the current price is in, when a price reaches a specific price range, a label corresponding to that price range is displayed. This label indicates the position of the price in real-time, allowing traders to visually track where the current price is in the area.
8. calculating the start and end points of the range
The script calculates the start and end points of a range with a non-zero number of price arrivals to find the minimum and maximum of the range. This calculation allows you to see where prices are concentrated within a range.
9. out-of-range price processing
When a price reaches outside the range, the script automatically adds the array element corresponding to that price range and inserts the data in the appropriate location for the count. This allows the script to follow the price as it moves unexpectedly.
Simultaneous INSIDE Bar Break IndicatorSimultaneous Inside Bar Break Indicator (SIBBI) for The Strat Community
Overview:
The Simultaneous Inside Bar Break Indicator (SIBBI) is designed to help traders using The Strat methodology identify one of the most powerful breakout patterns: the Simultaneous Inside Bar Break across multiple symbols. This indicator detects when all four user-selected symbols form inside bars on the previous candle and then break those inside bars in the same direction (either bullish or bearish) on the current candle.
Inside bars represent consolidation periods where price action does not break the high or low of the previous candle. When a simultaneous break occurs across multiple symbols, this often signals a strong move in the market, making this a key actionable signal in The Strat trading strategy.
Key Features:
Multi-Symbol Analysis: You can track up to four different symbols simultaneously. By default, the indicator comes with SPY, QQQ, IWM, and DIA, but you can modify these to track any other assets or symbols.
Inside Bar Detection: The indicator checks whether all four symbols have inside bars on the previous candle. It only triggers when all symbols meet this condition, making it a highly specific and reliable signal.
Simultaneous Break Detection: Once all symbols have inside bars, the indicator waits for a breakout in the same direction across all four symbols. A simultaneous bullish break (prices breaking above the previous candle’s high) triggers a green label, while a simultaneous bearish break (prices breaking below the previous candle’s low) triggers a red label.
Dynamic Label Timeframe: The indicator dynamically adjusts the timeframe in the label based on the user’s selected timeframe. This allows traders to know precisely which timeframe the break is occurring on. If the user selects "Chart Timeframe," the indicator will evolve with the current chart's timeframe, making it more versatile.
Timeframe Flexibility: The indicator can be set to analyze any timeframe—15-minute, 30-minute, 60-minute, daily, weekly, and so on. It only works for the specific timeframe you set it to in the settings. If set to "Chart Timeframe," the label will adapt dynamically based on the timeframe you are currently viewing.
Customizable Labels: The user can choose the size of the labels (tiny, small, or normal), ensuring that the visual output is tailored to individual preferences and chart layouts.
Best Use Case:
The Simultaneous Inside Bar Break Indicator is particularly powerful when applied to multiple timeframes. Here’s how to use it for maximum impact:
Multi-Timeframe Setup: Set the indicator on various timeframes (e.g., 15-minute, 30-minute, 60-minute, and daily) across multiple charts. This allows you to monitor different timeframes and identify when lower timeframe breaks trigger potential moves on higher timeframes.
Anticipating Strong Moves: When a simultaneous inside bar break occurs on one timeframe (e.g., 30-minute), keep an eye on the higher timeframes (e.g., 60-minute or daily) to see if those timeframes also break. This stacking of inside bar breaks can signal powerful market moves.
Higher Conviction Signals: The indicator is designed to provide high-conviction signals. Since it requires all four symbols to break in the same direction simultaneously, it reduces false signals and focuses on higher probability setups, which is crucial for traders using The Strat to time their trades effectively.
How the Indicator Works:
Inside Bar Formation: The indicator first checks that all four selected symbols had inside bars in the previous bar (i.e., the current high and low are contained within the previous bar’s high and low).
Simultaneous Break Detection: After detecting inside bars, the indicator checks if all four symbols break out in the same direction—bullish (breaking above the previous bar’s high) or bearish (breaking below the previous bar’s low).
Label Display: When a simultaneous inside bar break occurs, a label is plotted on the chart—either green for a bullish break (below the candle) or red for a bearish break (above the candle). The label will display the timeframe you set in the settings (e.g., "IBSB 60" for a 60-minute break).
Chart Timeframe Option: If you prefer, you can set the indicator to evolve with the chart’s current timeframe. In this mode, the label will not show a specific timeframe but will still display the simultaneous inside bar break when it occurs.
Recommendations for Usage:
Focus on Multiple Timeframes: The Strat methodology is all about understanding the relationship between different timeframes. Use this indicator on multiple timeframes to get a better picture of potential moves.
Pair with Other Strat Techniques: This indicator is most powerful when combined with other Strat tools, such as broadening formations, timeframe continuity, and actionable signals (e.g., 2-2 reversals). The simultaneous inside bar break can help confirm or invalidate other signals.
Customize Symbols and Timeframes: Although the default symbols are SPY, QQQ, IWM, and DIA, feel free to replace them with symbols more relevant to your trading. This indicator works well across equities, indices, futures, and forex pairs.
How to Set It Up:
Select Symbols: Choose four symbols that you want to track. These can be index ETFs (like SPY and QQQ), individual stocks, or any other tradable instruments.
Set Timeframe: In the indicator’s settings, choose a specific timeframe (e.g., 15-minute, 30-minute, daily). The label will reflect the selected timeframe, making it clear which time-based break you are seeing.
Optional - Chart Timeframe Mode: If you want the indicator to adapt to the chart’s current timeframe, select the "Chart Timeframe" option in the settings. The indicator will plot the breaks without showing a specific timeframe in the label.
Customize Label Size: Depending on your chart layout and personal preference, you can adjust the size of the labels (tiny, small, or normal) in the settings.
Conclusion:
The Simultaneous Inside Bar Break Indicator is a powerful tool for traders using The Strat methodology, offering a highly specific and reliable signal that can indicate potential large market moves. By monitoring multiple symbols and timeframes, you can gain deeper insight into the market's behavior and act with greater confidence. This indicator is ideal for traders looking to catch high-conviction moves and align their trades with broader market continuity.
Note: The indicator works best when paired with multi-timeframe analysis, allowing you to see how breaks on lower timeframes might influence larger trends. For traders who prefer simplicity, setting it to the "Chart Timeframe" mode offers flexibility while maintaining the core benefits of this indicator.
Gaussian Filter [BigBeluga]The Gaussian Filter - BigBeluga indicator is a trend-following tool that uses a Gaussian filter to smooth price data and identify directional shifts in the market. It provides dynamic signals for entering and exiting trades based on trend changes, helping traders stay aligned with the market's momentum. What sets this indicator apart is its ability to display precise entry and exit points with real-time tracking of percentage price changes, making it ideal for trend-based strategies.
SP500:
NIFTY50:
🔵 KEY FEATURES & USAGE
◉ Gaussian Filter Trend Line:
//@function GaussianFilter is used for smoothing, reducing noise, and computing derivatives of data.
//@param src (float) The source data (e.g., close price) to be smoothed.
//@param params (GaussianFilterParams) Gaussian filter parameters that include length and sigma.
//@returns (float) The smoothed value from the Gaussian filter.
gaussian_filter(float src, params) =>
var float weights = array.new_float(params.length) // Array to store Gaussian weights
total = 0.0
pi = math.pi
for i = 0 to params.length - 1
weight = math.exp(-0.5 * math.pow((i - params.length / 2) / params.sigma, 2.0))
/ math.sqrt(params.sigma * 2.0 * pi)
weights.set(i, weight)
total := total + weight
for i = 0 to params.length - 1
weights.set(i, weights.get(i) / total)
sum = 0.0
for i = 0 to params.length - 1
sum := sum + src * weights.get(i)
sum
The core functionality of the Gaussian Filter line is to show trend direction. When the trend line increases four times consecutively, it indicates an uptrend signal. Similarly, if it decreases four times in a row, it signals a downtrend. The smoothness of the filter helps traders stay on the right side of the market by filtering out noise and emphasizing the dominant trend direction.
◉ Entry and Exit Levels with Real-Time Price and Performance Data:
Each time the indicator detects a trend change, it plots an entry or exit level on the chart. For an uptrend, an entry level is marked, and for a downtrend, an exit level is plotted. These levels display the price at the time of the signal.
While the trend is ongoing, the indicator tracks the percentage change in price from the initial entry or exit signal to the current bar, updating in real-time. When a trend concludes, it displays the total percentage change from the entry or exit point to the trend's end. This feature provides valuable insights into how much the price has moved during each trend phase and allows traders to monitor the performance of each trade.
◉ Color-Coded Candlestick Representation with Trend Shift Alerts:
In addition to coloring the candlesticks based on the trend direction, the indicator also uses gray candles to highlight potential early trend shifts. For example, if the Gaussian Filter detects a downtrend but the price moves above the filter line, the candles turn gray, signaling a possible reversal or shift in momentum. Similarly, in an uptrend, if the price moves below the Gaussian Filter line, the candles turn gray as an early indication of potential bearish momentum. This visual cue helps traders stay alert to possible faster shifts in market direction, allowing for quicker decision-making.
🔵 CUSTOMIZATION
Length and Sigma for Gaussian Filter:
Adjust the length and sigma parameters to control how the Gaussian Filter smooths the price data. A longer length provides smoother trend lines, while adjusting sigma can fine-tune the level of smoothing applied.
Levels Display and Candle Coloring:
You can toggle the visibility of entry and exit levels as well as enable or disable the dynamic coloring of candlesticks based on the trend direction. The additional gray color setting provides an extra layer of information, allowing you to spot potential trend reversals early.
🔵 CONCLUSION
The Gaussian Filter indicator is a powerful tool for identifying and following market trends. By providing clear entry and exit signals, along with real-time tracking of price changes, it gives traders a structured way to manage trades and monitor performance. The color-coded candles, including gray to highlight possible trend shifts, add another dimension to visualizing market dynamics. The added flexibility of customizing colors and trend levels makes it a versatile indicator suitable for both trend-following and reversal strategies.
Time-based Vertical LinesThe Time-Based Vertical Line Script is a Pine Script tool designed to plot vertical lines at specific times during the trading day. The script allows users to mark important time-based events or price movement patterns by plotting fully customizable vertical lines on the chart. Each line can be configured with a specific time, color, width, and style, providing a clear visual reference for key moments throughout the trading session.
Key Features:
Custom Time Inputs:
Users can specify the hour and minute for each vertical line to mark crucial times, such as the opening or closing of a market session, or events like news releases.
The script can accommodate up to 24 vertical lines, each with individual time settings.
Customizable Appearance:
Color: Select different colors for each line to visually distinguish between important events or trading sessions.
Width: Adjust the thickness of the vertical lines to emphasize specific times.
Style: Choose from solid, dashed, or dotted lines for further customization.
No Built-in UTC Offset:
Important: This script does not automatically adjust for time zones or UTC offsets. The user must manually set the time for each vertical line based on the platform's server time or the desired trading session time.
If you are in a different time zone, you will need to calculate the time difference between your local time and the platform's time zone (which could be UTC or any other time zone).
For example, if the platform is set to UTC and you are in New York (UTC-4 during daylight savings), you will need to manually adjust your time inputs to match the time zone difference.
Static Time Configuration: The times you input for the vertical lines are fixed, meaning they won’t automatically adjust based on daylight savings or time zone shifts. You'll need to manually reconfigure the times if such changes occur.
Use Cases:
Session Marking: Mark the beginning and end of specific market sessions like New York, London, or Asian trading hours.
Event Monitoring: Plot lines to mark important economic events or news releases, ensuring you're prepared for potential market movements.
Strategy Tracking: For traders using time-sensitive strategies, such as the ICT (Inner Circle Trader) models, the script can help you highlight critical time windows for potential setups.
Important Note on Time Zone:
Since the script doesn't automatically apply a UTC offset, users need to figure out the correct time to input based on their own time zone and the platform's time zone. For example:
If you're in New York (UTC-4) and want to mark the New York session open at 9:30 AM, but your platform runs on UTC time, you would input 13:30 as the hour for the vertical line (since 9:30 AM UTC-4 corresponds to 13:30 UTC).
Example:
If your platform’s time is set to UTC, and you want to mark an event that happens at 10:00 AM in your local time zone (UTC-5), you'll need to set the vertical line to 15:00 (because 10:00 AM UTC-5 is 15:00 in UTC).
This means you'll need to calculate the offset based on your location and input the adjusted time into the script manually.
Vmoon By:VasmaVmoon Indicator by Vasma
Overview:
The Vmoon indicator is an advanced tool designed for trend following and momentum trading, uniquely combining the Average True Range (ATR) with a Double Exponential Moving Average (DEMA). Unlike standard indicators, Vmoon provides traders with a dual-layered approach to detect trend reversals and confirm momentum, making it a robust solution for identifying trading opportunities in various market conditions.
Key Features and Calculation Methodology:
Average True Range (ATR) Based Trend Detection:
ATR Period: The user can define the ATR period, with a default setting of 12 periods. This period is crucial for accurately measuring market volatility over the chosen timeframe.
ATR Multiplier: Set at a default of 3.0, the multiplier adjusts the ATR range to determine dynamic support and resistance levels, allowing the indicator to adapt to different market conditions.
Custom ATR Calculation Method: Traders can choose between a simple moving average of the true range or the built-in ATR method. This flexibility allows for personalized risk management and signal sensitivity.
Upper and Lower Bands: These bands are calculated by adding and subtracting the ATR value from the price (hl2 by default). The bands serve as dynamic thresholds—when price breaks above the upper band, it suggests an upward trend, and breaking below the lower band suggests a downward trend.
The Vmoon indicator doesn't just plot these bands; it dynamically adjusts them based on price action, providing a real-time, adaptive system for trend detection.
Innovative Trend Identification:
Real-Time Trend Tracking: The indicator monitors price movements relative to the ATR bands, continuously updating the trend direction. This allows for quick identification of trend changes, which is critical in volatile markets.
Trend Change Detection: Vmoon captures shifts from upward to downward trends (and vice versa) with precision, generating actionable buy or sell signals. This feature helps traders stay ahead of market reversals.
Double Exponential Moving Average (DEMA) Integration:
DEMA Calculation: The Vmoon indicator uses a 200-period DEMA, which is known for reducing lag and providing a faster reaction to price changes compared to traditional moving averages. This ensures that the indicator responds promptly to emerging trends.
Crossover-Based Momentum Confirmation: The indicator generates signals based on price crossovers with the 200-period DEMA:
Buy Signal: A green triangle appears when the price crosses above the DEMA, signaling potential bullish momentum.
Sell Signal: A red triangle is displayed when the price crosses below the DEMA, indicating possible bearish momentum.
The DEMA component of Vmoon offers a long-term perspective on market momentum, acting as a filter to confirm the strength and direction of the trend.
Customizable Alerts:
Vmoon includes fully customizable alert conditions, allowing traders to stay informed about critical market movements:
Buy Signal Alert: Notifies when the trend changes from downward to upward, indicating a potential buying opportunity.
Sell Signal Alert: Alerts when the trend shifts from upward to downward, signaling a possible selling point.
General Trend Change Alert: Keeps traders aware of any direction changes, helping them to react quickly to potential reversals.
How to Use Vmoon:
Dynamic Trend Following: Use the ATR-based upper and lower bands as dynamic support and resistance levels. Monitor for breakouts to identify trend reversals.
Momentum Confirmation with DEMA: Validate trend signals by watching for price crossovers with the 200-period DEMA, ensuring that the trend is supported by strong momentum.
Signal Interpretation: Act on the buy and sell signals displayed on the chart, supported by optional alerts, to make informed trading decisions in real time.
Enhanced Customization Options:
Adjustable ATR Settings: Modify the ATR period and multiplier to better align with your trading strategy and market conditions.
Selectable ATR Calculation Method: Choose the ATR method that best suits your risk tolerance and market analysis approach.
Configurable Signal Display: Tailor the indicator to show or hide buy/sell signals based on your preferences.
Personalized Alerts: Set alerts that match your specific trading needs, ensuring that you never miss a significant market move.
Visual Representation:
Vmoon provides a clear and concise visual representation on the chart, with distinct markers for buy and sell signals, dynamic ATR bands, and the 200-period DEMA. This visualization helps traders quickly interpret market conditions and make timely decisions.
Why Vmoon is Unique:
Vmoon stands out by integrating ATR-based dynamic thresholds with the reduced-lag DEMA, offering a comprehensive solution for trend identification and momentum confirmation. This combination is not commonly found in standard indicators, and the flexibility in customization ensures that Vmoon can be adapted to suit various trading strategies and market environments. The proprietary logic behind Vmoon’s signal generation, particularly in how it adjusts to market volatility, is what makes it both powerful and worthy of protection as a closed-source script.
Triple Moving Average CrossoverBelow is the Pine Script code for TradingView that creates an indicator with three user-defined moving averages (with default periods of 10, 50, and 100) and labels for buy and sell signals at key crossovers. Additionally, it creates a label if the price increases by 100 points from the buy entry or decreases by 100 points from the sell entry, with the label saying "+100".
Explanation:
Indicator Definition: indicator("Triple Moving Average Crossover", overlay=true) defines the script as an indicator that overlays on the chart.
User Inputs: input.int functions allow users to define the periods for the short, middle, and long moving averages with defaults of 10, 50, and 100, respectively.
Moving Averages Calculation: The ta.sma function calculates the simple moving averages for the specified periods.
Plotting Moving Averages: plot functions plot the short, middle, and long moving averages on the chart with blue, orange, and red colors.
Crossover Detection: ta.crossover and ta.crossunder functions detect when the short moving average crosses above or below the middle moving average and when the middle moving average crosses above or below the long moving average.
Entry Price Tracking: Variables buyEntryPrice and sellEntryPrice store the buy and sell entry prices. These prices are updated whenever a bullish or bearish crossover occurs.
100 Points Move Detection: buyTargetReached checks if the current price has increased by 100 points from the buy entry price. sellTargetReached checks if the current price has decreased by 100 points from the sell entry price.
Plotting Labels: plotshape functions plot the buy and sell labels at the crossovers and the +100 labels when the target moves are reached. The labels are displayed in white and green colors.
ATH finder showing passed daysATH Finder Showing Passed Days Indicator
Introducing the "ATH Finder Showing Passed Days" – a cutting-edge TradingView indicator meticulously designed for traders and investors focused on capturing and analyzing the all-time highs (ATHs) of financial markets. Whether you're navigating the volatile waves of cryptocurrencies, the dynamic shifts of the stock market, forex, or any other trading instrument, this indicator is your essential tool for highlighting and understanding ATHs with precision.
Core Features:
Dynamic ATH Tracking: Seamlessly identifies and marks the most recent ATHs in any given market, ensuring that you are always up-to-date with significant price levels that matter the most.
Days Since ATH Visualization: Innovatively displays the number of days that have passed since the last ATH was reached. This powerful feature provides crucial insights into market sentiment, offering a clear view of how long the current price has been consolidating or retreating from its peak.
Visual Enhancements: Features a striking yellow arrow precisely at the ATH point, drawing immediate attention to pivotal market moments without cluttering your chart.
Strategic Placement of Information: Incorporates a non-intrusive label placed in the top right corner of your chart, summarizing the ATH value alongside the days elapsed since its occurrence. This approach ensures your chart remains clean and organized, allowing for other analyses to be conducted without distraction.
Customizable to Fit Your Needs: While it's ready to use out of the box, the indicator provides flexibility for customization, making it adaptable to various timeframes and individual trading strategies.
Benefits for Traders and Investors:
Provides a historical context to current price levels, helping to gauge the strength and potential of market trends.
Aids in identifying potential resistance levels, offering strategic insights for entry and exit points.
Enhances market analysis with a clear, visual representation of significant price milestones and their temporal context.
Easy Setup:
To integrate the "ATH Finder Showing Passed Days" indicator into your trading strategy, simply add it from the TradingView Indicators menu to your chart. Customize according to your preferences and let the indicator illuminate your path to more informed decision-making.
Why Choose the ATH Finder Showing Passed Days?
In the quest for market excellence, understanding the nuances of price movements and their historical significance is paramount. The "ATH Finder Showing Passed Days" indicator not only highlights where and when the market reached its zenith but also contextualizes these moments within the broader tapestry of trading days. Equip yourself with the insight to discern the momentum and potential retracements, elevating your trading to new heights.
Within Standard Deviation Bounds ProbabilityThis indicator calculates the probability of the closing price remaining within the upper and lower bounds defined by the mean and standard deviation of historical percent changes. It also plots the probability line and a horizontal line at 68%, which would be the expected probability for a normal distribution. It is designed to be used with my other indicator "Mean and Standard Deviation Lines.
Inputs:
period (Days): This defines the number of bars used to calculate the mean and standard deviation.
Calculations:
Percent change: Calculates the daily percentage change between closing prices.
Mean and standard deviation: Calculates the mean and standard deviation of the percent changes over the specified period.
Bounds: Calculates the upper and lower bounds by adding/subtracting the standard deviation from the mean, multiplied by the closing price.
Crossover tracking: Iterates through bars and counts crosses above and below the bounds.
Probability calculation: Calculates the total crossover probability as a percentage of the period.
Plotting: Plots the probability line and the horizontal line at 68%.
Limitations:
Assumes a normal distribution of price changes, which may not be accurate in real markets.
Overall:
This indicator provides a way to visualize the probability of the price staying within calculated bounds based on historical volatility. However, it's important to be aware of its limitations and interpret the results within the context of your trading strategy and risk management.
Simple Volume-Based Support & Resistance IndicatorWelcome to my open-source indicator that uses trading volume and market trends to identify potential support and resistance levels. This tool is great for seeing where the price might pause or reverse, helping you make more informed trading decisions.
Why You'll Love This Indicator:
Volume Awareness: It looks at how much trading is happening to better predict support (where the price might stop falling) and resistance (where the price might stop rising).
Trend Tracking: The indicator uses the market's ups and downs to refine these support and resistance areas.
Easy to Read: We've made the lines and zones clear and simple to understand, so you can focus on what matters.
How to Use This Tool:
No complicated settings needed! Since it's open-source, feel free to explore the code and tweak it if you like.
The chart will show support zones in green and resistance zones in red. These are your clues for potential price turns.
The Open-Source Advantage:
This script is completely open for you to use, modify, and share. I believe in community-driven improvements, so dive into the code, see how it works, and if you've got a knack for coding, you can even make it better!
Understanding the Chart:
You'll see the support and resistance levels dynamically drawn on your chart. Green shades are where the price might bounce up, and red shades indicate where it might bounce down.
This indicator is my way of giving back to the trading community. By sharing it openly, I hope we can all help improve it and learn from each other. Happy trading!
Standardized Median Proximity [AlgoAlpha]Introducing the Standardized Median Proximity by AlgoAlpha 🚀📊 – a dynamic tool designed to enhance your trading strategy by analyzing price fluctuations relative to the median value. This indicator is built to provide clear visual cues on the price deviation from its median, allowing for a nuanced understanding of market trends and potential reversals.
🔍 Key Features:
1. 📈 Median Tracking: At the core of this indicator is the calculation of the median price over a specified lookback period. By evaluating the current price against this median, the indicator provides a sense of whether the price is trending above or below its recent median value.
medianValue = ta.median(priceSource, lookbackLength)
2. 🌡️ Normalization of Price Deviation: The deviation of the price from the median is normalized using standard deviation, ensuring that the indicator's readings are consistent and comparable across different time frames and instruments.
standardDeviation = ta.stdev(priceDeviation, 45)
normalizedValue = priceDeviation / (standardDeviation + standardDeviation)
3. 📌 Boundary Calculations: The indicator sets upper and lower boundaries based on the normalized values, helping to identify overbought and oversold conditions.
upperBoundary = ta.ema(positiveValues, lookbackLength) + ta.stdev(positiveValues, lookbackLength) * stdDevMultiplier
lowerBoundary = ta.ema(negativeValues, lookbackLength) - ta.stdev(negativeValues, lookbackLength) * stdDevMultiplier
4. 🎨 Visual Appeal and Clarity: With carefully chosen colors, the plots provide an intuitive and clear representation of market states. Rising trends are indicated in a shade of green, while falling trends are shown in red.
5. 🚨 Alert Conditions: Stay ahead of market movements with customizable alerts for trend shifts and impulse signals, enabling timely decisions.
alertcondition(ta.crossover(normalizedValue, 0), "Bullish Trend Shift", "Median Proximity Crossover Zero Line")
🔧 How to Use:
- 🎯 Set your preferred lookback lengths and standard deviation multipliers to tailor the indicator to your trading style.
- 💹 Utilize the boundary plots to understand potential overbought or oversold conditions.
- 📈 Analyze the color-coded column plots for quick insights into the market's direction relative to the median.
- ⏰ Set alerts to notify you of significant trend changes or conditions that match your trading criteria.
Basic Logic Explained:
- The indicator first calculates the median of the selected price source over your chosen lookback period. This median serves as a baseline for measuring price deviation.
- It then standardizes this deviation by dividing it by the standard deviation of the price deviation over a 45-period lookback, creating a normalized value.
- Upper and lower boundaries are computed using the exponential moving average (EMA) and standard deviation of these normalized values, adjusted by your selected multiplier.
- Finally, color-coded plots provide a visual representation of these calculations, offering at-a-glance insights into market conditions.
Remember, while this tool offers valuable insights, it's crucial to use it as part of a comprehensive trading strategy, complemented by other analysis and indicators. Happy trading!
🚀
COT CFTC Title: Enhanced COT CFTC Analysis Tool
Description:
Introducing the 'Enhanced COT CFTC Analysis Tool', meticulously designed to dissect the CFTC's Commitments of Traders (COT) data. This sophisticated tool aims to equip traders and investors with profound insights into market dynamics, utilizing the positions of Large Speculators, Commercials, and Non-Reportable Positions for a comprehensive market overview.
Key Features:
Large Speculators Analysis: Visualizes the net positions of large speculators, offering insights into speculative market sentiments.
Commercials Insights: Provides a deep dive into the trading activities of commercials, known for their strategic hedging practices.
Non-Reportable Positions Tracking: Displays the activities of smaller speculators, often considered as contrarian indicators.
Additional Plots:
Options Share: Allows selection between the proportion of options in the market.
Net, Short, and Long Positions: Offers options to view net, short, and long positions.
Percentage of Net Short and Long Positions: Displays the percentage of net short and long positions, either as raw data or as an index over a specified time period.
Extreme Value Indicators: Highlights extreme values in the market data, providing critical insights into market peaks and troughs.
This tool features an intuitive display with color-coded lines and charts, simplifying the complex data analysis process. It also includes an innovative 5% detector, highlighting extreme market positions for enhanced market understanding.
Spread Analysis: This feature provides an insightful visualization of the spread between various COT data points, enabling users to gauge the market’s depth and liquidity effectively.
Usage Tips:
Utilize divergence analysis between different groups to identify potential trend reversals.
Keep a close eye on the 5% detector for early indications of market overextensions.
The 'Enhanced COT CFTC Analysis Tool' is a vital addition to your trading arsenal, designed to enrich your trading strategy with precise and actionable market insights. It’s not just an indicator; it’s a comprehensive market analysis suite.
Disclaimer: This indicator is for educational purposes only. Trading decisions should always be approached with caution and based on thorough personal analysis.
Regression Candle Conversion IndicatorHey everyone!
I got a pseudo-request a while ago for something like this, essentially the ability to track where another ticker would fall based on an alternative ticker.
I did create my ticker correlation reference indicator which directly looks at the correlation between 2 tickers. However, this is an indicator that operates on the same principle but is more pragmatic for trading.
What does it do?
Well, in keeping with the theme of what I call my indicators, this has a title that explains exactly what it does, "Regression Candle Conversion Indicator" or "RCCI" for short. It uses simple regression to convert one ticker to another. So while you are tracking one indicator, you can see where the expected value should fall on the other.
Applications?
The big application of this for me is being able to track where SPY/QQQ or IWM is falling during overnight trading sessions. Extended trading hours close at 8 pm NYSE time. After that, you have to guess where futures prices will put the ETF version of it. This indicator will allow you to track where, theoretically, the underlying ETF ticker will fall based on the current trading behaviour.
Some other applications are just the ability to track how similar or dissimilar one stock is to the other. For example, if we wanted to trade, say, Boeing using shares of DFEN or ITA (a defence specific ETF), here is what we get:
In the chart above we can see BA as the primary chart and ITA as the RCCI converted chart. We will see 2 major things that should cause us concern.
First, there is a really poor correlation between the two tickers. This indicates that ITA may not produce the best exposure if I am directly looking for Boeing exposure.
Second, there is a wide standard error. this means that the results that the RCCI is providing may be skewed up to +/- 2 points (as indicated by the standard error chart).
Let's take a look at BA and DFEN:
In the above, we can see that the correlation is not great, but the standard error is quite low.
This means that, while this may not be the best ticker for Boeing exposure, the RCCI is able to confidently calculate the ticker within +/- 0.50 cents based on BA's underlying data.
However, its important to note that it is not advisable to really rely on these results if the correlation is less than + 0.5 or greater than -0.5.
Let's take a look at a few more examples:
Above we have BA (NYSE) vs BA (NEO TSX CAD Hedged). We can see the strong relationship and high confidence calculations.
And some others:
SPX (primary) and ES1! (secondary):
RTY and IWM:
ES1! and SPY:
Customizations:
As you can see above, it is pretty straight forward. There are 3 options:
Lookback Length: Determines the length of assessment for correlation and the regression assessment.
Manual Ticker Input: The indicator will pull the data from your current chart and compare it against a manually selected indicator. You must tell the indicator which ticker you are comparing against.
Data Table: This will show you the data table which contains the standard error assessment and the correlation assessment. These are determined by your lookback length. The lookback length is defaulted to 500.
And that's the indicator! It's pretty straight forward. Hopefully you find it helpful, especially if you track futures during overnight sessions.
Leave your comments/questions and feedback below.
Thanks for checking it out!
SMT Divergence [promuckaj]SMT Divergence indicator will track your main symbol on the chart against other one you set, for example you can use it on S&P 500 chart while you set there to track and compare it with Nasdaq, it will search for divergence between them, according to swing points, and print it on the chart for you.
There is option to set custom swing points period, colors, lines, debug info panel that will show you in real time values and times of last two swing highs and lows points that is formed on second symbol you want to track.
You can activate also alerts for bullish and bearish divergences separately, as you wish.
There is option to setup divergence types you want to get:
#1
100% aligned divergences only - means both swing points are aligned at the same bar and time between two assets.
#2
all divergences - means you will get also the rest potential divergences that is not 100% aligned between two assets according to swing points. This means that, while swing points is formed on main symbol, indicator will compare their bars and times to the second symbol and if it looks like divergence you will get it on the chart.
Just to clarify "divergence" between two symbols, it means that for bearish one symbol need to form higher low while the other need to form higher high, and vice versa for bullish, lower low / lower high.
Everyone enjoy !
Volume FootprintThe Volume Footprint chart is analyzing volume data from inside the candle and split them into Up and Down Volume in the same way as Volume Profile analyzes the volume data from a fragment of the chart.
The visualization is little different:
Down Volume (sells) are shown on the left side of a candle.
Up Volume (Buys) are shown on the right side of a candle.
User can pick data precision used by Volume Footprint. We recomend to use the highest possible precision.
Unfortunatelly Trading View has many limitations.
If after adding script nothing is visible with error: "'The study references too many candles in history'" you need to use lower precision - It can be changed in script settings.
This script is a part of a toolkit called "Volume Footprint", containing few tools:
Volume Footprint - Scripts drawing Volume Footprint chart.
Volume Footprint Statistics - Script showing table with basic statistics about Up and Down volume inside the candles.
Volume Delta In Candle - Chart showing history of delta (difference between Up and Down volume) changes inside the current candle.
Volume Cumulative Delta - Chart showing history of cumulative delta (sum of difference between Up and Down volume in trading period equal to chart interval).
This script can be used by any user. You do not need to have PRO or PREMIUM account to use it.
Script with limited access, contact author to get authorization
User Interface:
Script is grouping Up and Down Volume into slots based on price. Slots height is controled by "Slot height" param in settings.
On left side of a candle Down Volume is shown and on right side Up Volume is shown.
Before Down Volume may appear imbalance symbols:
⠀↓ - 3 times
⠀↡ - 5 times
⠀⇊ - 10 times
After Up Volume may appear imbalance symbols:
⠀↑ - 3 time
⠀↟ - 5 times
⠀⇈ - 10 times
Above the candle we can show some basic statistics of that candle:
"V:" - Row with volume statistics:
⠀∑ - Total volume,
⠀Δ - Difference between Up and Down Volume.
⠀min Δ - Smallest difference between Up and Down Volume in that candle
⠀max Δ - Biggest difference between Up and Down Volume in that candle
Script settings:
Slot height = 10^ - Price slot height on the chart:
⠀ 0 - 1$
⠀ 1 - 10$
⠀ 2 - 100$
⠀ 3 - 1000$
⠀-1 - 0.1$
⠀-2 - 0.01$
⠀-3 - 0.001$
Data precision - One of 6 levels of data precision: ▉▇▆▅▃▁, where ▉ means the highest precision and ▁ the lowest available precision. On 15 minute chart highest precision should be available, but on 1D it will probably hit TradingView limitations and script will not be even launched by the platform with error: "'The study references too many candles in history'". The general recommendation is to use the highest available precision for a given instrument and interval.
Precise warnings - Option to show precise warnings about missing volume in candle footprint (warning connected with one of TradingView limitations).
Draw candles - Option of drawing candles fiting to volume labels and 2 fields for picking colors of up and down candles. The general recommendation is to hide chart candles and turn on this option.
Show stats - Showing stats over the candle: ∑, Δ, min Δ, max Δ. You can use 'Volume Footprint Statistics' script instead
Font size - Used to draw all the data over the chart: T(iny), S(mall), N(ormal), L(arge)
Centered - If checked volume labels are stick to candle (centered).
Color values - Option to draw labels with use of Up or Down color, depending which value (Volume Up or Volume Down) is bigger in the price slot.
Filter - Filtering option than allow hinding labels with small values:
⠀0 - filter turned off.
⠀1-5 - filtering with transparency
⠀6-10 - Filtering with hiding values.
Show zeros - It can show zeros or leave empty places
Highlight biggest slot - Option to highlight price slot with biggest volume in the candle.
Imbalances - Showing imbalance symbols before Down or after Up Volume
Only over average - Showing imbalances symbols only for volume not smaller than the average value.
Value area - Option to identify group of slots with biggest volume in each candle. A group is a smallest set of neighboring slots that have at least n(param) % of candle volume .
⠀ Value Area Minimal Volume (%) - Value area size as % of candle volume .
⠀ Color - Color of the Value area.
⠀ Show borders - Showing border lines of value areas over the candle.
⠀ Track - Option to track value areas. Potencial Support-Resistance zones.
⠀ Only active - Hide areas that were crossed by the price.
Show Values - Show volume value over tracked value areas.
Troubleshooting:
In case of any problems, send error details to the author of the script.
Known issues:
"The study references too many candles in history" - Change "Data precision" settings to some lower value.