Gaps Profile [vnhilton]Note: If you get an error preventing indicator from executing due to a loop running longer than >500ms, please lower the amount of boxes shown and/or increase the minimum gap % threshold.
OVERVIEW
The Gaps Profile (GP) simply shows the remaining gaps on the chart that have yet to be closed. Gaps are created where there's a distance between the current open and the previous close. Big gaps suggest change in sentiment and volatility causing prices to pull away thereby creating gaps. Gaps can be used as pivot areas where price may attempt to close the inefficiency entirely and/or serve as supply/demand zones.
(FEATURES)
- 3 to 499 remaining up/down gaps can be displayed on the chart (furthest gaps away from price are removed to make way for new gaps)
- Minimum gap % threshold
- Ability to highlight largest or newest up/down gap
- 4 GP color themes: Mono, Up/Down, Up/Down Largest Gradients, Up/Down Newest Gradients
- GP Type: Left, Right (how it is built - overlapping gaps plotted from left/right to right/left)
- GP offset from current bar
- Box border width
- Box border style for up/down: Dashed, Dotted, Solid
- Toggles to hide border/box with ease
Pivot points and levels
Multi Pivot (S/R) & Previous Period (OHLC)█ Multi Pivot (Support/Resistance) & Previous Period (Open/High/Low/Close)
The previous script was deleted because of a copyrighted word.
From JayRogers description.
█ Multi Pivot Selector
Allows you to set up to 3 distinct sets of pivots, each with their own resolution settings and the ability to select how many support|resistance levels are shown.
The maximum amount of S|R levels available varies with different pivot types, the options available are:
Traditional
Fibonacci
Woodie
Classic
Copyrighted word
Camarilla
Fibonacci Extended
█ Previous Period Levels
A simple but highly customisable display of previous higher time-frame OHLC values.
Customised resolution input which excludes time frames lower than 1 hour while extending the common higher reference inputs.
This script is based on JayRogers script, I only added some features so please check out his script.
I added the timeframe in the labels, in order to make it easier to differentiate when using multiple pivot set.
As well as making it possible to change the lines color of each pivot set separately.
Labels can now be displayed on each side (right, left and both) or just disabled.
The type of pivot can be shown on the right side.
Lines extension can be disabled and lines width value can be changed.
I also added another one of his script to display OHLC levels, I made similar changes.
Converted to Pine Script v5.
Previous Period Levels - X Alerts
Pivotal - Multi Pivot Selector (which was also deleted because of the copyrighted word)
Prior Day LevelsA simple script that plots the previous day's high, midway, and low points. You can also set alerts with this script, allowing you the ability to not have to stare at the charts all day.
Fibonacci Archer Box [ChartPrime]Fibonacci Archer Box (ChartPrime) is a full featured Fibonacci box indicator that automatically plots based on pivot points. This indicator plots retracement levels, time lines, fan lines, and angles. Each one of these features are fully customizable with the ability to disable individual features. A unique aspect to this implementation is the ability to set targets based on retracement levels and time zones. This is set to 0.618 by default but you can pick any Fibonacci zone you like. Also included are markings that show you when Fibonacci levels are met or exceeded. These moments are plotted on the chart as colored dots that can be enabled or disabled. Along with these markings are crosses that can be shown when targets are hit. Both of these markings are colored with the related Fibonacci level colors.
When there is a zig-zag, this indicator will test to see if the zig-zag meets the criteria set up by the user before plotting a new Fibonacci box. You can pick from either higher highs or lower highs for bearish patterns, and higher lows or lower lows for bullish patterns. Both patterns can be set to use both when finding new boxes if you want to make it more sensitive. You also have the option to filter based on minimum and maximum size. If the box isn't within the selected size range, it will simply be ignored. The pivot levels can be configured to use either candle wicks or candle bodies. By default this is configured to use candle wick with a lookforward of 5 and lookback of 10.
We have included alerts for Fibonacci level crosses, Fibonacci time crosses, and target hits. All alerts are found in the add alert section built into tradingview to make alert creation as easy as possible. Each alert is labeled with their correct names to make navigation simple.
W.D. Gann, a renowned figure in the world of trading and market analysis, is often questioned for his use of Fibonacci levels in his strategies. However, evidence points to the fact that Gann did not directly employ Fibonacci price levels in his work. Instead, Gann had his unique approach, dividing price ranges into thirds, eighths, and other fractions, which, although somewhat aligning with Fibonacci levels, are not exact matches. It is clear that Gann was familiar with Fibonacci and the golden ratio, as references to them appear in his recommended reading list and some of his writings. Despite this awareness, Gann chose not to incorporate Fibonacci levels explicitly in his methodologies, preferring instead to use his divisions of price and time. Notably, Gann's emphasis on the 50% level—a marker not associated with Fibonacci numbers—further illustrates his departure from Fibonacci usage. This level, despite its popularity among some Fibonacci enthusiasts, does not stem from Fibonacci's sequence. This is why we opted to call this indicator Fibonacci Archer Box instead of a Gann Box as we didn't feel like it was appropriate.
In summary, the Fibonacci Archer Box (ChartPrime) is a tool that incorporates Fibonacci retracements and projections with an automated pivot point-based plotting system. It allows for customization across various features including retracement levels, timelines, fan lines, and angles, and integrates visual cues for level crosses and target hits. While it acknowledges the methodologies of W.D. Gann, it distinctively utilizes Fibonacci techniques, providing a straightforward tool for market analysis. We hope you enjoy using this indicator as much as we enjoyed making it!
Enjoy
True Median (With EMA)
This indicator was inspired by the concept of mean revision and is best to be used with that strategy in mind. True median takes the high and low within a determined length and finds the average between those two points and then plots an EMA for the median with an optional EMA for both the high and low.
HOW TO USE:
This indicator has a few uses it can be implemented with.
The first and most obvious is that it can act as an area of support and resistance within bigger and smaller time frames. Second, the median can act as an entry or exit point, as generally big movements will occur within the mediums of price points. EMA crossovers are also a way to use this indicator, if the median, high, or low cross over their EMA, that can act as a signal for price movement and continuation of a pre existing trend. Of course this is also a good indicator of volatility, as the wider the channels are between high and low the more volatile things are becoming.
I hope you enjoy and let me know how this indicator works for you!
Pivots and SwingsThis indicator displays simple pivots of varying degrees and connects them into swings whilst displaying the information of each swing.
First order pivot highs are confirmed when the N number of bars each side of the bar in question have a lower high whilst a first order pivot low is confirmed when the N number of bars on each side of the bar in question have a higher low. In this script N is set to 2 as a default, so when the middle bar of a set of 5 bars has the highest high, then it is considered a first order pivot high and vice versa for lows.
Second order pivot highs are confirmed when a first order pivot is higher than the first order pivot points on either side of the pivot point in question. Second order pivot lows are confirmed when a first order pivot low is lower than the first order pivot lows either side of the pivot in question.
Third order pivots follow the same logic but consider the highest and lowest second order pivots
A quick note on how the bars are coloured basis trends. If price breaks through the last first order pivot high, the bars will be coloured in a (default) green sequence and will stay green until price moves back below the most recent first order pivot low, at which time it will revert to a (default) red sequence.
The information about the duration and magnitude of the swings are displayed in an effort to identify when a swing leg of an overall trend may be shortening which signifies a weakening trend, or lengthening to signify a trend that is gaining in strength.
I hope you find this indicator useful!
Support and Resistance ZoneSupport and Resistance Zone Indicator :
Introduction :
The purpose of this indicator is to identify the chart symbol's main supports and resistances. It displays these key zones, which are very important psychological points for traders. Since support and resistance are not very precise levels, the indicator displays them as zones.
Pivots :
Pivots are a key concept in identifying support and resistance. The indicator uses two types of pivot:
Pivot high : This is a high point that has not been reached by a user-defined number of candles on either the left and right of this candle. The " left pivot leg " is the number of candles before this pivot point that have not reached the realized high, and the " right pivot leg " is the number of candles after this pivot point that have not reached this high. If these two conditions are met, the pivot point is considered a turning point, and resistance is probably the cause.
Pivot low : This is a low point that has not been reached by a user-defined number of candles on either the left or right. The " left pivot leg " is the number of candles before this pivot point that have not reached the candle low, and the " right pivot leg " is the number of candles after this pivot point that have not reached this low. If these two conditions are met, the pivot point is considered a turning point, and support is probably the cause.
Support/Resistance area :
If a pivot point has been identified, the indicator considers it a resistance if it's a pivot high, or a support if it's a pivot low. To define the support or resistance zone, we'll use the ATR (Average True Range), an indicator that measures asset volatility. We'll take the ATR of the candle for which the pivot was spotted, and use it as the width of the support or resistance zone. Thus the upper line of support/resistance is at pivot+atr/2 and the lower line is at pivot-atr/2 . The greater the volatility, the larger the zone.
New Support/Resistance :
If a new pivot has been identified, but the level of this pivot lies between the lower line and the upper line of the previous support or resistance, the indicator considers this to be the same support or resistance as before. In this case, no new support or resistance is created. The pivot must be outside the area of the previous support or resistance to be validated.
Anticipated Support/Resistance :
This indicator also allows early detection of support or resistance. To do this, the value of the right pivot legs will be shortened in order to find these areas more quickly. The support or resistance will then be considered anticipated and may disappear at any time if the high/low is reached. On the other hand, if the high/low is not reached, and a number of candles equal to the " Right Pivot Legs" parameter has elapsed since the detection of this anticipated support/resistance, it will be considered validated and will integrate the other supports/resistances of the chart.
Extended supports/resistances :
For a more optimal view, the indicator allows the user to choose the number of last support or resistance levels to be extended to the last candle. This must be specified in the indicator parameters.
Parameters :
Pivot Legs : Determine the left and right legs of the pivot i.e the number of candle before and after the pivot that doesn’t reach pivot point. The pivot is validated only if this two conditions are verified.
Extend Last Supports : Number of supports to extend to the last bar
Extend Last Resistances : Number of resistances to extend to the last bar
Show Support/Resistance Anticipated : If yes, will find anticipated support and resistance
Right Pivot Legs for Anticipation : Determine the right legs of pivots to find faster a support or a resistance.
Conclusion :
This indicator plot support and resistance zones based on pivot. The width of support and resistance zones are calculated with ATR. Possibility to find anticipated support and resistance in order to have more timeliness informations.
Enjoy the indicator and don’t forget to take the trade ;)
Custom Swing Index [AstroHub]Custom Swing Index - Unleashing Precision in Trend Analysis
🌟 Overview:
The Custom Swing Index is a meticulously crafted tool that empowers traders with advanced insights into market dynamics, specifically focusing on identifying potential trend reversals. Developed by AstroHub, this indicator stands out for its unique combination of price-related calculations, ratios, and averages, providing a comprehensive and nuanced view of market sentiment.
📈 Key Components:
Price Calculation:
- Price Change: Captures the difference between the current and previous closing prices.
- High and Low Points: Analyzes the high and low points of each bar for crucial price movement data.
Ratios and Averages:
- Upper-Lower Shadow Ratio: Measures the relationship between the upper and lower shadows.
- Open-Close Ratio: Evaluates the ratio of opening to closing prices.
- Sum Price Changes: Sums up price changes over a specified period.
Differences and Shadows:
- Open-Close Difference: Considers the difference between opening and closing prices.
- Upper and Lower Shadow Ratios: Examines the proportions of upper and lower shadows.
Bar Size Metrics:
- Average Bar Size: Determines the average size of each bar.
- High-Low Difference: Measures the difference between the high and low points.
Swing Indicator Calculation:
- The Custom Swing Index is the result of combining these components, creating a dynamic metric that reflects potential trend reversals.
🚥 How to Use:
Understanding the Indicator:
- Bullish signals may be indicated when the swing index surpasses a defined threshold.
- Bearish signals may be indicated when the swing index falls below the negative threshold.
Visual Interpretation:
- Color-coded bars enhance visual interpretation, turning green for bullish conditions and red for bearish conditions.
Entry Points:
- Look for entry points where circle markings are present, indicating potential opportunities.
Alerts:
- Integrated alerts keep traders informed of significant swings, ensuring timely decision-making.
Geometric Trend Angle [AstroHub]This script, "Geometric Trend Angle," is designed to identify trend reversals based on the geometric angle of the price chart. Here's a detailed explanation of its originality, functionality, and usage:
Originality and Usefulness:
The uniqueness of this script lies in its approach to trend reversal detection through the calculation of the geometric trend angle. Unlike traditional methods, this script combines the analysis of the angle of the price movement with specific conditions for identifying potential trend reversals.
How it Works:
Length and Trend Angle: The user sets the "Length" parameter, determining the period for calculating the trend angle. The script then computes the trend angle, representing the change in prices over the specified period.
Trend Reversal: The script identifies potential trend reversals when the trend angle changes from positive to negative, and the current closing price is higher than the previous closing price.
Green Reversal: Additionally, the script looks for instances where the trend angle changes from negative to positive, and the current closing price is lower than the previous closing price, indicating a potential reversal to the downside.
Graphical Representation: The script visually highlights the identified reversal points on the chart with labels ("Trend Reversal" and "Green Reversal") and draws a line from the reversal point for better visualization.
Alerts: Traders are alerted to potential trend reversals and green reversals, allowing for timely responses to changing market dynamics.
How to Use:
Apply the script to your TradingView chart.
Customize the "Length" parameter based on your preference and analysis.
Observe the colored candles and graphical elements to identify potential trend reversals.
Pay attention to alerts for timely notifications of reversal signals.
Conclusion:
The "Geometric Trend Angle" script provides a unique perspective on trend reversals, combining geometric angle analysis with specific conditions for improved accuracy. Traders can use it as part of their overall analysis to make informed decisions in the dynamic market environment.
Local Highs & Lows ATC-LHAL [ATC]What does this indicator do?
This indicator plots the highest and lowest historical price for each candle for a specified time interval, so you can see for each candle which price was the historical ("local") maximum or minimum in the defined time interval. It helps you not to lose sight of previous highs and lows, even when working with short time frames.
In the example chart you can see the highest price for each candle, that have occurred during a defined time interval (adjustable in the indicator settings), here as an example during 1 day.
So, for example, during trading in a 5m chart, you can always see the highest and lowest price, that occurred e.g. some time ago.
Where is the benefit?
For trading, it can be a strategic advantage to know the last decisive high or low in a defined period of time.
If the time frame is very short, e.g. 5m as in the example chart shown, then the overall overview is often missing: It is often of interest to know at what price the last high was within the last day, for example. This indicator can therefore be configured by specifying a time interval so that this local high is always displayed. In the example chart, this high is shown as a plotted green line.
The same is true with the historical low point in a defined interval: This is shown in red in the example chart. As an example, one day was specified for the lookback period for both the local high and the local low.
How is the data for each candle calculated?
The indicator's script plots the highest or lowest price for each candle that occurred in the specified time period. The loopback periods can be defined separately for the high price and low price.
How is the indicator configured?
Inside of the settings of the indicator you can set the High Lookback Interval and the Low Lookback Interval easily, for example 1 day, or 30 minutes, just as you like.
This interval will be the lookback period, and the highest or lowest price that occurred during this interval will be plotted.
Why is this script special?
Unlike most other scripts, the time interval can be specified in seconds, minutes, hours or days and not by a number of candles. It is therefore independent of the time interval. It is no longer necessary to adjust the number of candles accordingly, when you switch the time frame.
Have fun!
HT: Intraday LevelsIndicator draws several most important intraday levels: last day RTH high/low, ETH high/low, Half Back, Day Close and current day RTH Day Open. These levels often act as support/resistance for intraday price movements. Also, they can help to assess day character and control of power.
Indicator can be used for ETH + RTH sessions.
Important notes:
• User must specify RTH session time, appropriate for his time zone and exchange
• Half-back is calculated as a middle line between RTH High and Low.
• Day Close is always equal to close of the last bar of the previous day
• RTH Day Open will be redrawn for the current day as soon as it is known (after RTH session opens and at least one bar gets confirmed).
Known issues:
• Day open will not be shown if there is no bar, clearly corresponding to RTH open time (e.g. if 4h timeframe is selected)
• For some ETH sessions it is not possible to determine session’s last bar (this is pine script limitation) until next day trading starts. This means that daily levels will be also update with only then.
Parameters:
Date – user can select date, for which levels will be plotted. Works only if “Use” check box is on. Otherwise, levels will be plotted for the last day. (“time” value doesn’t matter; unfortunately, there is no way to hide the input box)
RTH Open/Close time – it is important to specify time, appropriate for your time zone.
Time zone – your chart time zone (as UTC offset)
Visuals – controls visibility and colors
Script is published as an open source. It uses two libraries: Levels Lib and Functions Lib. First one demonstrates how to work with pine-script object model and arrays. You can also reuse it in your custom scripts where there is need to construct any support/resistance levels. The second library contains some useful functions for working with time and dates.
Disclaimer
This indicator should not be used as a standalone tool to make trading decisions but only in conjunction with other technical analysis methods.
Liquidity Grabs | Flux Charts💎 GENERAL OVERVIEW
Introducing our new Liquidity Grabs indicator! This indicator can renders bubbles with different sizes at candles that have liquidity grabs, which happen when a liquidity areas (buyside / sellside liquidity) is swept. These candles often fill a lot of market orders that were sitting on the liquidity zone. You can check "How Does It Work" section for more information.
Features of the new Liquidity Grabs Indicator :
Renders Liquidity Grabs
Customizable Algorithm
Customizable Styles
Alerts
🚩UNIQUENESS
Liquidity grabs can be useful when determining candles that have executed a lot of market orders, and planning your trades accordingly. This indicator renders liquidity grabs in an unique bubble style, the size of the bubble is calculated by the size of the wick that caused the liquidity grab. The indicator also lets you customize the pivot length and the wick-body ratio for liquidity grabs.
📌 HOW DOES IT WORK ?
Liquidity grabs occur when one of the latest pivots has a false breakout. Then, if the wick to body ratio of the bar is higher than 0.5 (can be changed from the settings) a bubble is plotted. Using the wick length as a metric to measure liquidity is good because long wicks can translate to a large amount of buyers / sellers entering the market.
The bubble size is determined by the wick to body ratio of the candle.
⚙️SETTINGS
1. General Configuration
Pivot Length -> This setting determines the range of the pivots. This means a candle has to have the highest / lowest wick of the previous X bars and the next X bars to become a high / low pivot.
Wick-Body Ratio -> After a pivot has a false breakout, the wick-body ratio of the latest candle is tested. The resulting ratio must be higher than this setting for it to be considered as a liquidity grab.
It's All MidsIt's All Mids extends mid-lines of a candle forward until the price revisits (covers) the midpoint. A higher timeframe can be used for the mid candles than the chart (but not the reverse). There is no data to support this is a meaningful concept.
While this script is intended to be functional, correct and useful it is important that you understand that not only is this the first script I've written but also that "I am an idiot."(tm) Using a stranger's indicator is questionable, but using a self-proclaimed idiot's indicator to trade real money is unquestionably stupid. Don't be like me. Be smart. You are responsible for what you do with this script. The source is unlocked, so feel free to copy and modify it.
Terms:
- A "mid" is the (high+low)/2 price of a previous candle that has not been auctioned since the candle close. All candles will initially have a mid unless they close on exactly their midpoint.
- A "covered" mid is a mid for which the midpoint has been auctioned since the candle closed. There is an option to display a number of these so that when a mid is hit the line doesn't just disappear from the chart and you forget what you were doing.
- A "low priority" mid is the mid of a candle which was auctioned in the previous candle(s) (chart's timeframe, not the mid's timeframe)-- chopchopchop. I have no data to show that this matters, or really, that anything matters at all.
My use: I chart a 60m mid on ES on a 5 or 15 minute chart. I am lying. I use it for something else but if I tell you that then I give away my incredible alpha that has made me so rich I can spend my time crying in corner about all the money I've lost.
ZigZag Multi [TradingFinder] Trend & Wave Lines - Structures🔵 Introduction
"Zigzag" is an indicator that forms based on price changes. Essentially, the function of this indicator is to connect consecutive and alternating High and Low pivots. This pattern assists in analyzing price changes and can also be used to identify classic patterns. "Zigzag" is an analytical tool that, by filtering partial price movements based on the specified period, can identify price waves across different time frames (short or long term).
🔵 Reason for Creation
The combination of "short term zigzag" and "long term zigzag" enhances accuracy and reduces analysis time. In a time frame, "long term zigzag" represents the main trend, while "short term zigzag" depicts short-term waves.
🔵 How to Use
After selecting the desired time frame and adding "zigzag" to the chart, begin utilization. Keep in mind to identify the main market trend from "long term zigzag" and the minor waves from "short term zigzag".
🟣 Important: Additionally, classic patterns such as HH, LH, LL, and HL can be recognized. All traders analyzing financial markets using classic patterns and Elliot Waves can benefit from the "zigzag" indicator to facilitate their analysis.
🔵 Settings
Short term zigzag : In this section, you can adjust settings such as time frame range, display mode, color, and line width of the zigzag lines.
Short term label : This section allows you to activate or deactivate the display of zigzag labels according to your needs. You can also customize their color and size.
Long term zigzag : Here, you can adjust settings for time frame range, display mode, color, and line width of zigzag lines.
Long term label : Similar to short term label settings.
The recommended time frame for "long term zigzag" is between 9 to 15, and for "short term zigzag" is between 3 to 5.
🟣 Important Notes :
Considering the different behaviors of financial markets and various time frames, it is recommended to experiment with different time frame settings when using "zigzag" to find the best settings for each symbol and time frame, thereby preventing potential errors.
🟣 Terminology Explanations :
"HH": When the price is higher than the previous peak (Higher High).
"HL": When the price is higher than the previous low (Higher Low).
"LH": When the price is lower than the previous peak (Lower High).
"LL": When the price is lower than the previous low (Lower Low).
CVI Tops/Bottoms Detector [AstroHub]
Welcome to the realm of precision trading with the CVI Tops/Bottoms Detector by AstroHub. Crafted with a keen eye on market dynamics, this indicator stands as a reliable tool for identifying potential trend reversals and market turning points.
Key Features of the Indicator:
The CVI Tops/Bottoms Detector, developed by AstroHub, is a powerful tool designed to detect tops and bottoms in the market. Its calculations are based on sound mathematical principles, ensuring accurate identification of bullish and bearish signals. 🔍
Calculation Period and Thresholds:
Calculation Period: Adjust the "Period" parameter to tailor the indicator to different timeframes.
Thresholds: Set the "Bullish Threshold" and "Bearish Threshold" to determine the sensitivity of the indicator to potential market shifts.
CVI Calculation:
The indicator calculates the Current Volume Index (CVI) by considering the difference between the closing price and the smoothed average, normalized by volatility. This innovative approach provides a clear view of market sentiment.
Visual Signals and Alerts:
Bullish and Bearish Signals: Clearly defined signals are represented by diamond shapes on the chart, accompanied by color-coded indications.
Gradient Colors: Gradient colors add a visual dimension to the signals, making it easier to interpret market trends.
Connecting Lines: Lines connect signals, offering a visual guide for understanding the flow of the market.
Symbol Transparency:
Customize the transparency of the underlying symbol to ensure clarity in signal visualization.
User-Friendly Customization:
Flexible Coloring: Tailor the colors of bullish and bearish signals to match your preferences.
Line Colors: Adjust line colors to enhance visibility.
Alerts: Receive timely alerts when a new bullish or bearish signal is detected.
Usage Example:
Open the indicator settings.
Adjust the "Period" to match your desired timeframe.
Fine-tune the "Bullish" and "Bearish Thresholds" based on your risk tolerance.
Experiment with customizing colors and transparency to suit your visual preferences.
Alerts for Proactive Trading:
Activate alerts to stay informed about potential bullish or bearish market opportunities. 🚨
By integrating the CVI Tops/Bottoms Detector into your trading toolkit, you gain a powerful ally in navigating the dynamic landscape of financial markets. 🌐💹
Machine Learning Breakouts (from Pivots)I developed the 'Machine Learning Breakouts (from Pivots)' indicator to revolutionize the way we detect breakout opportunities and follow trend, harnessing the power of pivot points and machine learning. This tool integrates the k-Nearest Neighbors (k-NN) method with the Euclidean distance algorithm, meticulously analyzing pivot points to accurately forecast multiple breakout paths/zones. "ML Pivots Breakouts" is designed to identify and visually alert traders on bullish breakouts above high lines and bearish breakouts below low lines, offering essential insights for breakout and trend follower traders.
For traders, the instruction is clear: a bullish breakout signal is given when the price crosses above the forecasted high line, indicating potential entry points for long positions. Conversely, a bearish breakout signal is provided when the price breaks below the forecasted low line, suggesting opportunities to enter short positions. This makes the indicator a vital asset for navigating through market volatilities and capitalizing on emerging trends, designed for both long and short strategies and adeptly adapting to market shifts.
In this indicator I operate in a two-dimensional space defined by price and time. The choice of Euclidean distance as the preferred method for this analysis hinges on its simplicity and effectiveness in measuring and predicting straight-line distances between points in this space.
The Machine Learning Breakouts (from Pivots) Indicator calculations have been transitioned to the MLPivotsBreakouts library, simplifying the process of integration. Users can now seamlessly incorporate the "breakouts" function into their scripts to conduct detailed momentum analysis with ease.
10 Minute Futures Session Open RangeInspired by SamRecio's 30sec OR script.
The 10 minute Opening Range (OR) dynamically identifies and visualizes the opening range of a trading session within the first 10 minutes after the market opens at 9:30 AM EST, concluding at 4:00 PM EST, reflecting the typical trading hours for U.S. stock exchanges. This indicator is particularly useful for strategies that rely on the initial market momentum and direction established during the early moments of the trading session.
Upon activation, the indicator calculates the highest (orHigh) and lowest (orLow) price levels reached during the first 10 minutes of the trading session, marking these levels with green (for the high) and red (for the low) lines directly on the chart overlay. Additionally, it computes and plots a midpoint (midPoint) between these high and low levels, displayed as a blue line, offering a visual reference for the median of the opening range.
The calculations are reset daily to ensure the indicator accurately reflects the opening range for each new trading session. By doing so, it avoids carrying over data from previous days, maintaining relevance and precision for day traders and those utilizing short-term trading strategies. The indicator also incorporates timezone adjustments to align with the America/New_York timezone, ensuring that the opening range is accurately captured regardless of the user's local timezone.
This tool is invaluable for traders looking to capitalize on breakout or reversion strategies around the opening range, providing clear visual cues for significant price levels established at the start of the trading session. By focusing on the first 10 minutes of trading, it caters to a specific segment of the market that believes the initial movements can set the tone for the rest of the day's trading activity.
Timely Opening Range Breakout Strategy [TORB] (Zeiierman)█ Overview
The Timely Opening Range Breakout (TORB) indicator builds upon the classic Open Range Breakout (ORB) concept. The ORB strategy is a popular trading setup used to identify trades around the opening range of an asset. It's based on the idea that the first few minutes (15-60 minutes) of trading often set the tone for the rest of the day, with breakouts above or below the opening range signifying potential trends.
TORB refines the concept by stating that a trade is only valid if there is sufficient market activity. This means a breakout beyond the upper or lower range is only of interest during the most active trading hours, as defined by PMMV (Per-Minute Mean Volume)
█ How It Works
ORB
The indicator works by first defining a session's opening range based on user-specified settings, including the session's start and end times and the applicable time zone. During this session, it calculates the high and low price points, which form the basis for identifying potential breakout levels.
PMMV
PMMV (Per-Minute Mean Volume) provides a snapshot of the market's activity level at each minute of the trading day. PMMV is calculated by averaging the trading volume in a one-minute interval over a specified number of trading days. This script uses the average volume over the last N periods to determine the PMMV value. This average volume provides a smoother representation of volume activity compared to using a single volume value. It considers the volume over a broader timeframe, filtering out short-term fluctuations and potentially offering a more reliable indicator of underlying market activity.
TORB
TORB works by integrating the Opening Range Breakout (ORB) highs and lows with the Per-Minute Mean Volume (PMMV) metric to assess the validity of breakouts. The objective is to identify breakouts from the opening high and low levels during periods of heightened market activity, as indicated by PMMV.
█ How to Use
To effectively utilize the Timely Opening Range Breakout (TORB) strategy, follow these steps:
Identify Active Hours: Employ PMMV to pinpoint periods of peak activity within the trading day.
Apply Basic ORB Rules: If the price surpasses the upper range (resistance), buy; if it breaches the lower range (support), sell.
Breakouts
The TORB strategy identifies breakout signals when the price moves beyond the established range, supported by volume exceeding a set threshold. This technique aims to eliminate false signals, focusing on price movements during high market activity.
█ Settings
Session
Trading Session: Customize the trading session's start and end times.
Volume
Volume analysis is integral to the TORB strategy, as it uses volume data to confirm the strength and validity of breakout signals.
Period: Sets the number of periods (or bars) to calculate the average volume, which is then used to assess market activity level.
Sensitivity and Significance: Adjusts how responsive the volume analysis is to changes in trading volume. By adjusting the sensitivity, traders can decide how much emphasis to place on volume spikes, potentially reducing false breakouts and focusing on those supported by significant trading activity.
Breakout Threshold
This setting establishes a criterion to identify when the price movement is significant enough.
Threshold: Traders set a threshold level to identify high market activity. If the PMMV is greater than or equal to this threshold, it indicates significant market activity.
Setting the correct threshold is key to balancing sensitivity and specificity. Too low of a threshold may lead to many false positives, while too high of a threshold might filter out potentially profitable breakouts. This setting helps in pinpointing when market activity indicates a strong move, thereby aligning trade entries with moments of heightened market momentum.
-----------------
Disclaimer
The information contained in my Scripts/Indicators/Ideas/Algos/Systems does not constitute financial advice or a solicitation to buy or sell any securities of any type. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
My Scripts/Indicators/Ideas/Algos/Systems are only for educational purposes!
Relative Strength Scoring SystemRelative Strength Scoring System :
Important prerequisite :
This indicator can be loaded on any forex chart, i.e. a currency pair, but must not be loaded on any other asset due to certain market closures.
The chart timeframe must be less than or equal to the trading timeframe, which is the indicator's first parameter. A timeframe equal to that of the "Trading Timeframe" parameter is preferable.
Introduction :
This indicator measures the relative strength of a currency against all other currencies using spread formulas. It gives an indication of which currencies are bullish, neutral or bearish. The ultimate aim of this indicator is to find out which pair will generate a higher probability of gain than the others by pairing the most bullish pair with the most bearish pair.
Spread formulas :
To find the relative strength of a currency compared with others, we use the following spreads formulas :
USD = (FX:USDJPY/100+SAXO:USDEUR+FX:USDCHF+SAXO:USDGBP+FX:USDCAD+SAXO:USDAUD+FX_IDC:USDNZD)/7
JPY = (SAXO:JPYUSD/100+FX_IDC:JPYAUD/100+FX_IDC:JPYCAD/100+FX_IDC:JPYNZD/100+FX_IDC:JPYCHF/100+SAXO:JPYEUR/100+FX_IDC:JPYGBP/100)/7
CHF = (FX:CHFJPY/100+SAXO:CHFUSD+SAXO:CHFEUR+FX_IDC:CHFGBP+FX_IDC:CHFCAD+SAXO:CHFAUD+FX_IDC:CHFNZD)/7
EUR = (FX:EURJPY/100+FX:EURUSD+FX:EURCHF+FX:EURGBP+FX:EURCAD+FX:EURAUD+FX:EURNZD)/7
GBP = (FX:GBPJPY/100+FX:GBPUSD+FX:GBPCHF+SAXO:GBPEUR+FX:GBPCAD+FX:GBPAUD+FX:GBPNZD)/7
CAD = (FX:CADJPY/100+SAXO:CADUSD+FX:CADCHF+FX_IDC:CADGBP+SAXO:CADEUR+FX_IDC:CADAUD+FX_IDC:CADNZD)/7
AUD = (FX:AUDJPY/100+FX:AUDUSD+FX:AUDCHF+SAXO:AUDGBP+FX:AUDCAD+SAXO:AUDEUR+FX:AUDNZD)/7
NZD = (FX:NZDJPY/100+FX:NZDUSD+FX:NZDCHF+SAXO:NZDGBP+FX:NZDCAD+SAXO:NZDAUD+SAXO:NZDEUR)/7
CRYPTO = (BITSTAMP:BTCUSD+BITSTAMP:ETHUSD+BITSTAMP:LTCUSD+BITSTAMP:BCHUSD)/4
Timeframes :
As mentioned in the prerequisites, the chart timeframe must not be greater than the trading timeframe. The latter corresponds to the timeframe chosen by the trader to enter a position, and is the indicator's first parameter. Once this has been chosen, the algorithm selects the timeframes of the "Trend" and "Velocity" charts. Here's how it allocates them :
Trading TF => ("Velocity TF", "Trend TF")
"5min" => ("15min ", "60min")
"15min" => ("60min ", "4h")
"30min" => ("2h ", "8h")
"60min" => ("4h ", "12h")
"4h" => ("12h", "1D")
"6h" => ("1D", "3D")
"8h" => ("1D", "4D")
"12h" => ("2D", "1W")
"1D" => ("3D", "1W")
Trend Scoring System :
When the timeframe of the trend graph has been allocated, the algorithm will establish this graph's score using three criteria :
Trend chart pivot points: if the last two pivots, high and low, are increasing, the score is 1; if they are decreasing, the score is -1; else the score is 0.
SMA: if its slope is increasing with a candle strictly above the SMA value, the score is 1; if its slope is decreasing with a candle strictly below it, the score is -1; otherwise, it is 0.
MACD: if the MACD is positive, the score is 1, if it is negative, the score is -1; else it's 0.
We then sum the scores of these three criteria to find the trend score.
Velocity Scoring System :
In the same way, we analyze the score of the "velocity" graph with its corresponding timeframe using three criteria :
The EMA: if its slope is increasing with a candle strictly above the EMA value, the score is 1; if its slope is decreasing with a candle strictly below it, the score is -1; otherwise, it is 0.
The RSI: if the RSI's EMA has an increasing slope with an RSI strictly greater than the value of this EMA, the score is 1; and if the RSI's EMA has a decreasing slope with an RSI strictly less than this EMA, the score is -1; otherwise it is 0.
SAR parabolic: if the SAR is below the price, the score is 1; if it is above the price, the score is -1.
We then sum the scores of these three criteria to find the velocity score.
Relative Strength Scoring System :
Once the trend score and velocity score have been calculated, we determine the relative strength score of each currency using the following algorithm :
If trend score >=2 and velocity score >=2, the currency is bullish.
If trend score <=2 and velocity score <=2, currency is bearish
If (trendScore>=2 or velocityScore>=2) and (trendScore=1 or velocityScore=1) the currency is not yet bullish
If (trendScore<=2 or velocityScore<=2) and (trendScore=-1 or velocityScore=-1) the currency is not yet bearish.
Otherwise the currency is neutral
Parameters :
Trading Timeframe: the trading timeframe chosen by the trader for which he makes his position entry and exit decisions. Default is 1h
Pivot Legs: Parameter used for the chart "Trend" setting the pivot strength to the right and left of high/low. Default is 2
SMA Length: SMA length of the chart "Trend". Default is 20
MACD Fast Length: Length of the MACD fast SMA calculated on the chart "Trend". Default is 12
MACD Slow Length: Length of the MACD slow SMA calculated on the chart "Trend". Default is 26
MACD Signal Length: Length of the MACD signal SMA calculated on the chart "Trend". Default is 9
EMA Length: EMA length of the "Velocity" graph. Default is 13
RSI Length: RSI length of the "Velocity" graph. Default is 14
RSI EMA Length: Length of the RSI EMA. Default is 9
Parabolic SAR Start: Start of the SAR parabola in the "Velocity" graph. Default is 0.02
Parabolic SAR Increment: Increment of the SAR parabola in the "Velocity" graph. Default is 0.02
Parabolic SAR Max: Maximum of the SAR parabola in the "Velocity" graph. Default is 0.2
Conclusion :
This indicator has been designed to determine the relative strength of the major currencies against each other. The aim is to know which pair to trade at the right time in order to maximize the probability of a successful trade. For example, if the USD is bullish and the NZD bearish, we'll short the NZDUSD pair.
Enjoy this indicator and don't forget to take the trade ;)
3 Pivots Interpolation BreakoutsI designed the '3 Pivots Interpolation Breakouts' indicator to intuitively identify breakout opportunities using pivot points. This tool stems from my need to anticipate market direction and capitalize on breakouts. It uses a line interpolated from three pivot highs or lows to forecast upcoming breakouts. This offers a straightforward way to visualize potential bullish and bearish breakouts with color-coded extrapolations. The aim is to simplify breakout detection, enhancing your trading strategy with precise, actionable insights.
Pivot Extremes BreakoutI created the "Pivot Extremes Breakout" (PEB) indicator to easily spot breakout zones using pivot points. This tool comes from my need to anticipate market direction and capitalize on breakouts. PEB uses the last two pivot points to predict price paths and highlights potential breakout areas, adjusting for any timeframe. It simplifies seeing where the market might move next with color-coded lines and zones, aiming to improve your trading decisions.
Liquidity LevelsThe "Liquidity Levels" indicator on TradingView is designed to identify and highlight liquidity levels in the market. This indicator is based on pivot highs and lows with an adjustable offset to adjust the importance and length of the identified levels.
The strength of this indicator lies in its ability to highlight changes in liquidity levels, which can be crucial for traders. By marking pivot highs and lows, potential areas of high liquidity are highlighted, which can indicate where significant market movements or reversal points may occur.
The flexibility of whether the calculation is based on the closing price or the high/low prices allows for customisable analysis. The visual representation of liquidity levels by lines makes it easier to identify and monitor these key areas in the chart, which can provide additional value for traders.
Timeframe PivotsUse this tool to plot open prices from any timeframe as a pivot level with the option to go advanced and turn on extensions (instructions below), which review the relationship between previous and current open prices to build range extensions up to six levels wide.
Please be aware extensions, nor vwap are not enabled by default! It is up to the user to determine how they wish to setup this indicator. Please read the full description for utilizing this indicator so that it's well known the complete feature set and understanding of how to enable additional plots, complete instruction is provided for all users below.
Default configuration example:
To enable extensions the user must open the indicator configuration by clicking the gear icon for "Timeframe Pivots", depending on screen resolution scrolling with mouse may need to occur in order to find the section labeled "Extensions", use the mouse or equivalent human interface device to check the checkbox to the right of the color plots and line type drop down.
Extensions enabled example:
Timeframe Selection
Timeframes available to the indicator are any timeframe the platform makes available to the user by default, or also if the TradingView user has higher tier plan to create custom timeframes - those should be available as well. To adjust timeframe the user must open the indicator configuration by clicking the gear icon for "Timeframe Pivots", depending on screen resolution scrolling with mouse may need to occur in order to find the input labeled "Timeframe", use the mouse or equivalent human interface device select the drop down and select timeframe suitable to users application.
How the extension width and extensions are calculated:
The exact process takes the new timeframe change open price calculates the difference between prior open, once that has been completed then it's divided in half to build extensions.
Code example:
Extension Width = (Open - Open ) / 2
How the extensions are calculated:
// +1 for positive extension, -1 for negative extension
(Extension Width * (Configured Multiplier * 1)) + Pivot Open Price
+1 Extension:
$5 * (1.0 * 1) + $400 = $405
-1 Extension:
$5 * (1.0 * -1) + $400 = $395
So it should be established how each projected extension, either positive or negative, is created.
Range bound market detection and notes:
One note regarding the ranges, sometimes the open prices of each period can be close in proximity to their predecessor, there's not enough range to build meaningful projections. In these situations this means the market is most likely range bound and prior range data is utilized to continue providing guidance. This addresses an issue with other pivot indicators that will instead blindly follow price and present useless pivot ranges.
It does this through detection of average half range widths, the last 14 ranges to be exact, if the current, (open - open / 2), half range width is smaller than the average, prior half range width will be used.
Code example:
// assume past half range widths are 10, 8, 9, 5, 14, 7, 7, 9, 10, 10, 4, 7, 7, 8
float v_halfRangeWidthToUseForExtensions = na
v_priorHalfRangeWidth = 10
v_avgHalfRangeWidth = 8.2 // past range widths sum = 115 / 14
v_newHalfRangeWidthToUseForExtensions = 2 // new open - open is tiny compared to avg
if v_newHalfRangeWidthToUseForExtensions < v_avgHalfRangeWidth
// replace new half range width with previous one
v_newHalfRangeWidthToUseForExtensions := v_priorHalfRangeWidth
In the code example above if the new half range width was above or equal to the rolling average, no adjustment would be made by the indicator.
VWAP
Additional feature of showing vwap, anchored to the same timeframe as the pivot, provides a trend and volume analysis within the confines of the pivots range.
The user must open the indicator configuration by clicking the gear icon for "Timeframe Pivots", scroll using mouse to the "VWAP" section and click the checkbox next to the "Source" field, past the color plots. They are not enabled by default!
The user can also add the bands for VWAP by clicking the checkbox next to the "Bands" field, past the color plots. They are not enabled by default!
VWAP calculations begin from open price of new timeframe change, then afterwards the "Source" set is utilized, the default is HLC3 which is standard for VWAP indicators.
Multiple Timeframe Analysis (MTFA)
It's simple to create a unique combination of favored timeframes for multiple timeframe analysis, consider daily, weekly and monthly combined analysis for powerful indications of market sentiment and directional bias.
Example MTFA demonstration:
Why was this created?
I created this while investigating the efficacy of open price ranges, it became apparent that these pivot ranges are some of the more price respecting pivots I've ever observed. I also grew tired of lack of price adherence to other pivot indicators widely available.
There exists a relationship between each timeframes open price in comparison to prior open price, if the market is willing to navigate to a prior lower open price from higher open price, it could be perceived as bearish and the extensions (if enabled as instructed above), could be suitable range based projections for future price movements.
Example comparison:
As can be seen, and there are many examples, where Timeframe Pivots provides more discreet levels and potential explanations for price movements.