itradesize /\ Previous Liquidity x ICTI’d like to introduce a clean and simple RTH gap and liquidity levels indicator with additional Asian and London ranges, along with standard deviation levels and many customizable options.
Previous D/W/M highs and lows are areas where liquidity tends to accumulate. This is because many traders place stop-loss orders around these levels, creating a concentration of buy stops above the previous day's high and sell stops below the previous day's low. High-frequency trading algorithms and institutional traders often target these areas to capture liquidity.
What the indicator could show in summary?
- Regular trading hours gap with deviations
- Asia with deviations (lines or boxes)
- London with deviations (lines or boxes)
- Weekdays on chart
- 3 AM candle marker
- Previous D/W/M levels
- Important opening times (08:00, 09:30, 10:00, 14:00, 00:00, 18:00)
- Daily separators
By marking out the previous day's highs and lows, traders can create a framework for their trading day. This helps in identifying potential setups and understanding where significant price action might occur. It also aids in filtering out noise and focusing on the most relevant price levels.
These levels can also act as potential reversal points. When the market reaches a previous high or low, it might reverse direction, especially if it has raided the liquidity resting there. This concept is part of a strategy where traders look for the market to raid these levels and then reverse, providing trading opportunities
The indicator shows previous liquidity levels on a daily, weekly, and monthly basis. It also displays opening times at 8:30, 9:30-10:00, 14:00-00:00, and 18:00. Opening times are crucial in trading because they help define specific periods when market activity is expected to be higher, which can lead to better trading opportunities. The script has been made mostly for indices.
You can create various entry and exit strategies based on the indicator. Please remember, that adequate knowledge of ICT is necessary for this to be beneficial.
You might wonder why only these times are shown. This is because these are the times when the futures market is active or should be active. It's important to note that opening times can vary between different asset classes.
18:00 A new daily candle open
00:00 Midnight open
02:00 New 4-hour candle open
08:30 High-impact news
09:30 NY Equities open
10:00 New 4-hour candle open
The concept of "Asian Killzone Standard Deviations" involves using the Asian trading session's price range to project potential price movements during subsequent trading sessions, such as the London or New York sessions. This is done by calculating standard deviations from the Asian range, which can help traders identify potential support and resistance levels.
You can create a complete model by exclusively focusing on the Asian time zone. Deviations within this zone may have varying impacts on future price movements, and the Interbank Price Delivery Agreement (IPDA) often reflects Asia's high, close, and low prices.
A similar approach can be taken with the London time zone. The standard deviation levels within each zone could potentially serve as support or indicate reversals, including liquidity hunts. It's important to backtest these ideas to gain reliable insights into when and where to apply them.
* Asian Range: This is the price range established during the Asian trading session. It serves as a reference point for calculating standard deviations.
* London Range: The same applies to the London range as well. Combine standard deviation projections with other technical analysis tools, such as order blocks or fair value gaps, to enhance accuracy.
* Standard Deviations: These are statistical measures that indicate the amount of variation or dispersion from the average. In trading, they are used to project potential price levels beyond the current range.
You can also use regular trading hours gap as a standalone model. The 4 STDV and 2.5 STDV levels are important for determining the high or low of the current price action.
The RTH gap is created when there is a difference between the closing price of a market at the end of one trading day and the opening price at the start of the next trading day. This gap can be upward (gap higher), downward (gap lower), or unchanged. It is significant because it often indicates market sentiment and can create inefficiencies that traders look to exploit.
Alternatively, you can combine these elements to create a complete strategy for different scenarios.
Cari dalam skrip untuk "session"
Mxwll Price Action Suite [Mxwll]Introducing the Mxwll Price Action Suite!
The Mxwll Price Action Suite is an all-in-one analysis indicator incorporating elements of SMC and also ideas extending beyond the trading methodology!
Features
Internal structures
External structures
Customizable Sensitivities
BoS/CHoCH
Order Blocks
HH/LH/LL/LH Areas
Rolling TF highs/lows
Rolling Volume Comparisons
Auto Fibs
And more!
The image above shows the indicator's market structure identification capabilities. Internal BoS and CHoCH structures in addition to overarching market structures are available with customizable sensitivities.
The image above shows the indicator identifying order blocks! Additionally, HH/LH/LL/LH areas are also identified.
The image above shows a rolling area of interest. These areas can be compared to supply/demand zones, where traders might consider a bargain long/short/sell area.
The indicator displays a rolling 4hr high/low and 1D high/low, alongside auto fibonacci levels with a customizable sensitivity.
Finally, the Mxwll Price Action Suite shows relevant session information.
Table information
Current Session
Countdown to session close
Next Session
Countdown to next session open
Rolling 4-Hr volume intensity
Rolling 24-Hr volume intensity
Introducing the Mxwll SMC Suite!
The Mxwll SMC Suite is an all-in-one analysis indicator incorporating elements of SMC and also ideas extending beyond the trading methodology!
Features
Internal structures
External structures
Customizable Sensitivities
BoS/CHoCH
Order Blocks
HH/LH/LL/LH Areas
Rolling TF highs/lows
Rolling Volume Comparisons
Auto Fibs
And more!
The image above shows the indicator's market structure identification capabilities. Internal BoS and CHoCH structures in addition to overarching market structures are available with customizable sensitivities.
The image above shows the indicator identifying order blocks! Additionally, HH/LH/LL/LH areas are also identified.
The image above shows a rolling area of interest. These areas can be compared to supply/demand zones, where traders might consider a bargain long/short/sell area.
The indicator displays a rolling 4hr high/low and 1D high/low, alongside auto fibonacci levels with a customizable sensitivity.
Finally, the Mxwll Price Action Suite shows relevant session information.
Table information
Current Session
Countdown to session close
Next Session
Countdown to next session open
Rolling 4-Hr volume intensity
Rolling 24-Hr volume intensity
Expanded Features of Mxwll Price Action Suite
Internal and External Structures
Internal Structures: These elements refer to the price formations and patterns that occur within a smaller scope or a specific trading session. The suite can detect intricate details like minor support/resistance levels or short-term trend reversals.
External Structures: These involve larger, more significant market patterns and trends spanning multiple sessions or time frames. This capability helps traders understand overarching market directions.
Customizable Sensitivities
Adjusting sensitivity settings allows users to tailor the indicator's responsiveness to market changes. Higher sensitivity can catch smaller fluctuations, while lower sensitivity might focus on more significant, reliable market moves.
Break of Structure (BoS) and Change of Character (CHoCH)
BoS: This feature identifies points where the price breaks a significant structure, potentially indicating a new trend or a trend reversal.
CHoCH: Detects subtle shifts in the market's behavior, which could suggest the early stages of a trend change before they become apparent to the broader market.
Order Blocks and Market Phases
Order Blocks: These are essentially price levels or zones where significant trading activities previously occurred, likely pointing to the positions of smart money.
HH/LH/LL/LH Areas: Identifying Higher Highs (HH), Lower Highs (LH), Lower Lows (LL), and Lower Highs (LH) helps in understanding the trend and market structure, aiding in predictive analysis.
Rolling Timeframe Highs/Lows and Volume Comparisons
Tracks highs and lows over specified rolling periods, providing dynamic support and resistance levels.
Compares volume data across different timeframes to assess the strength or weakness of the current price movements.
Auto Fibonacci Levels
Automatically calculates and plots Fibonacci retracement levels, a popular tool among traders to identify potential reversal points based on past movements.
Session Data and Volume Intensity
Session Information: Displays current and upcoming trading sessions along with countdown timers, which is crucial for day traders and those trading on session overlaps.
Volume Intensity: Measures and compares the volume within the last 4 hours and 24 hours to gauge market activity and potential breakout/breakdown movements.
Visualizations and Practical Use
Dynamic Visuals: The suite provides dynamic visual aids, such as real-time updating of high/low markers and Fibonacci levels, which adjust as new data comes in. This feature is critical in fast-paced markets.
Strategic Entry/Exit Points: By identifying order blocks and using Fibonacci levels, traders can pinpoint strategic entry and exit points, maximizing potential returns.
Risk Management: Enhanced features like session countdowns and volume intensity help in better risk management by providing traders with more data on market sentiment and potential volatility.
ICT Weekly Profile Templates Dashboard by AlgoCadosThe ICT Weekly Profile Templates Dashboard is a tool meticulously crafted to integrate ICT Weekly Profiles and enrich your trading approach with profound insights. It provides a real-time analysis of market sessions, Daily Session Opens openings, and potential Points of Interest (POI) within the week, It outlines 12 profiles, serving as a roadmap with enhanced precision. By breaking down the trading week into specific profiles, it provides a clear framework to navigate market fluctuations.
# Key Features
Weekly Templates Dashboard : An advanced feature supported by an easy-to-understand table that lists all 12 profiles, simplifying the process of identifying current market scenarios and potential future movements.
Intraweek POI : Identifies key intraweek levels of interest (Daily Highs / Daily Lows) with configurable visual styles. Distinguish between buyside and sellside POIs with solid, dotted, or dashed lines in colors that stand out or blend in, according to your preference.
POI Raids Insights : Automatically updates the lines and label of a key level once it gets broken, highlighting the time when the high or low was taken out,.to provide a comprehensive overview of weekly market dynamics.
Customization at its Core : With inputs for line styles, colors, and even font specifications for text and labels, the dashboard is fully customizable to fit your charting needs. Whether you prefer solid lines for emphasis or dotted lines for a more subdued look, the choice is yours.
Utility and Style : The script doesn't just offer functional benefits; it also considers aesthetics. Choose from Monospace or Sans Serif fonts and adjust the size to ensure that your dashboard is not only informative but also visually pleasing.
# ICT Weekly Pattern
"xOTW" serves as placeholder for "LOTW" (Low of the Week) and "HOTW" (High of the Week). This visual shorthand allows traders to quickly interpret market conditions, with a combination of "xOTW" alongside directional arrows "↗" (Bullish) and "↘" (Bearish).
Bullish Patterns Analyzed
Mon LOTW: Monday Low Of The Week / Classic Buy Week;
Tue LOTW: Tuesday Low Of The Week / Classic Buy Week;
Wed LOTW: Wednesday Low of the Week;
MWK R: Consolidation Midweek Rally;
Thu LOTW: Thursday Low Of The Week / Consolidation Thursday Reversal (Bullish);
Fri S&D: Seek and Destroy Bullish Friday;
Bearish Patterns Analyzed
Mon HOTW: Monday High Of The Week / Classic Sell Week;
Tue HOTW: Tuesday High Of The Week / Classic Sell Week;
Wed HOTW: Wednesday High of the Week;
MWK D: Consolidation Midweek Decline;
Thu HOTW: Thursday High Of The Week / Consolidation Thursday Reversal (Bearish);
Fri S&D: Seek and Destroy Bearish Friday;
# Inputs
Offset: Adjusts the offset for the daily open marker, allowing users to shift the position of the session start visual cue on the chart.
Show Historic Data: Toggles the display of historical session data, enabling traders to either keep a continuous record of sessions throughout the chart or reset data at the start of each new week.
CME_MINI:ESH2024
Show Session Start: Activates vertical dividers at the start of each trading session, providing a clear demarcation of session boundaries.
Show Session Open: Displays the opening price for each session, offering immediate visual cues to the session's starting strength or weakness.
Extend Session Open: Extends the session's opening price line to the current bar, giving a persistent reference point throughout the trading session.
CME_MINI:ESH2024
Intraweek POI Styles and Colors
Start Line Style: Customizes the style of session start lines with options for solid, dotted, or dashed appearances.
Start Line Color: Chooses the color for session start lines, enhancing chart readability.
Daily Open Style and Color: Sets the style and color for the daily open lines, distinguishing them from other chart elements.
Buyside Line Style and Color: Adjusts the visualization of potential buyside areas of interest with customizable line styles and colors.
Sellside Line Style and Color: Configures the display for potential sellside points of interest, allowing for distinct visual differentiation.
Utils for Aesthetics and Clarity
Font Family and Size: Selects the font family and size for text elements within the indicator, ensuring clarity and consistency with your chart's aesthetic.
Text and Background Colors: Defines the color for text and background elements, facilitating a harmonious integration with the chart's overall color scheme.
CME_MINI:ESH2024
Embrace the essence of smarter trading where every insight is "Healthy For Your Trading."
ICT Seek & Destroy Profile [TFO]The goal of this indicator is to anticipate potentially "choppy" New York trading sessions, based on what price does during the Asia and London trading sessions. Based on some user-defined success criteria, we can also track how successful these warnings are.
Many Inner Circle Trader (ICT) students have noted that choppy New York sessions are often preceded by erratic London sessions which take both the high and low of the Asian range.
When this criteria is true and warnings are enabled, a table will automatically populate with a custom warning message for the duration of the NY session, indicating to the user that it could be a choppy trading day.
We can measure and track the success rate of these warnings via the following success criteria:
- NY stays within London range
- NY exceeds London high and low
- NY closes within London range
- NY range is too small
The first three criteria should be self explanatory - the NY range either stays within the London high & low, exceeds them both, or closes within them.
The last criteria is a measure of the New York range compared to a user defined standard deviation of all historical ranges (for the number of sessions that the current chart can load). The default value of 1.5 would imply that a "successful" S&D day could be if the NY range (from high to low) was less than or equal to 1.5 standard deviations of all past ranges.
All these options can be toggled on/off as well, for those that only want to consider certain success criteria and not others. When any of the selected success criteria are true, that essentially indicates that the current session's warning was successful.
Murder Algo Stats: last portion of Indices closing hour (S&P)Stats regarding the 'murder algo' (last 10mins of the closing hour). Works on all sub-1hr timeframes. Best used on 5min, 10min 15min timeframe. Ideal use on 10min timeframe.
Can be applied to other user input sessions also
What i'm calling the 'Murder Algo' is the tendency of dynamic lower time frame price action in the final 10minutes of the S&P closing hour (or any of the three major US indices: S&P, Nasdaq, Dow).
If there are un-met liquidity targets (i.e. clean highs or lows) as we come into the last portion of the closing hour, price has a tendency to stretch up or down to reach these targets, swiftly.
These statisitics are somewhat experimental/research; trying to quantify this tendency. Please comment below if you think of some additions / modifications that may prove useful.
//Purpose:
-To get statistics of the tendency to 'reach' of the final bar (10minute bar in the above) of the closing hour in Indices (3pm - 4pm NY time).
-Specifically to see how often price reaches for HH or LL in the final bar of the closing hour (most of the time); and to see how far it reaches one way when it does (Mean, median, mode).
//Notes:
-Two sets of historical stats; one is based on the 'solo reach' of the last bar; the other is based on the reach of the last bar from the average price of the preceding bars of the session (purple line in the above)
-Works on any timeframe below hourly. Ideally used on 10min timeframe, but may be interesting to plot on 15min or 5min timeframe also.
-Should also work on custom user-defined session; though this indicator was explicly designed to investigate the 'murder algo': that final rush and/or whipsaw tendency of price in the last few minutes of Regular trading on Indices.
-For S&P, best used on SPX, which gives the longest history of all the S&P variants due to only showing Regular trading hours bars (500 days of history on 10min timeframe, for premium users)
-For most stats, i've rounded to ES1! mintick (i.e. rounded to nearest quarter dollar) =>> This allows more meaningful values for 'mode' statistical measure.
-I trade S&P; but this 'muder algo' phenomenon also obviously presents in Nasdaq and Dow.
//User Inputs:
-Session time input (defaults to closing hour 3pm - 4pm NY time)
-Average method (for the average of all the input session EXCEPT the final bar)
-Toggle on/off Average line.
-other formatting options: text color, table position, line color/style/size.
Example usage with annotations on SPX 500 chart 15m timeframe; using closing hour (3pm-4pm NY time) as our session:
ICT LIQUIDITY indicator [Focused Trader]This indicator allows you to draw liquidity according to ICT. Specifically, you can choose to draw liquidity for specific sessions (Asia,New York,London).
Filtering by session
You can chooose to display only liquidities created in specific session. For example, the favourite liquidity is that of Asia. And then, in London market usually grabs it. So you set to display only liquidites of asia.
Session background
You can also display background over specific session, this is very usefull to see how market behaves - liquidity created in Asia is very often taken in London session. You can use any colour you'd like.
Colouring and style of lines
There is an option to choose colour for liquidity lines from different sessions and also choose specific colour for highs and lows. You can also set different styles (dash, dot, arrow, ...) of liquidty lines.
SMT - Smart Money Thursday Boxes
The Smart Money Trading Thursday - is a very specific trading system. You only trade it on a Thursday.
The script/indicator will color Thursdays as two boxes. If you just want one color, use same color for
both boxes. The boxes is there to indicate London/New York sessions.
SETTINGS
In the setting you find a numeric value as 1700-0400:5
The "5" indicate Thursday. You can change that if you prefer to color another specific day.
For example "4" would indicate Wednesday. And you can change the hours to fit your
sessions and trading style.
You can also use the 2 boxes on different days. If you for example would like to color up
London for Wednesday and Thursday. Then set hours to fit London session and adjust the
:5 to 4 on the 1st box and 5 on the 2nd.
HOW TO USE IT?
The Smart Money works in a way retail trading does not. Smart Money has an objective
to locate retail patterns, where there will be a lot of stop loss volume to be grabbed.
So when a retail trader see a setup like a "Double Top / Bottom". The Institutional
will see $$$ of dumb money, ready to be taken. The best moves happen on a Thursday
but if you are a skilled trader, you can see the move also occur on Wednesday or Friday.
The first thing that will happen, is that the Smart Money Breaks out of session. Meaning
they will leave the current weeks high/low range. To start collect negative contracts
of the retail volume.
When you see that happen. And you see a breakout that consist of 4 in a row 1 hour
chart candles. Then you have your first rule meet.
#1 Thursday breakout of current weeks high/low. And the move is a clean 4 hour move
as 4x H1 candles. The move can start within range. But must end clearly outside.
Visual Example:
#2 Next, we await an engulf at peak or near peak. That is where Institutional
may have problem to match any more contracts, and since they used their own
money to make this move. They must now mitigate orders, and return back to
the original retail pattern as most retail traders are now stopped out.
(Normally this is a long/clear candle out of range. they rarely go lower
then retail traders entry in the 1st push. This to not save any souls :)
#3 Price returns back to where the breakout from the retail happens.
You can now take your profit as a Smart Money Trader. Trading with less risk,
you can take profit of the return of that latest 4x H1 candle move. (Order
Block)
CONCLUSION
The best trade is when you can combine a retail pattern, followed by a
breakout which holds 4x 1 hour candles in the outbreak direction.
2nd best is when you have the 4x H1 breakout and really no clear retail
pattern. Still is the same game. Just not as clear as the one above.
Study the steps in this image and you see what to look after:
Good Luck with your trading!
Regards,
The Hunter Trading Group
RVOL - R4RocketRelative volume or RVOL for short is an indicator that is used to measure how 'In Play' the stock is. Simply put, it helps to quantify how interested everybody is in the given stock - higher the value, higher the interest and hence higher is the probability for movement in the stock.
I have tried to create RVOL (Relative Volume ) Indicator as per the description that I read on SMB Capital blog. The blog is a great resource.
...................................................................................................................................................................................
How to use the indicator - The indicator is meant for INTRADAY ONLY.
The indicator has following inputs -
1. RVOL Period - Value from 3 to 14 (Default Value = 4)
This is used to calculate the average volume over the given period of days. e.g. average volume for the last 5 days, last 3 days, last 10 days etc. NOTE - If you use higher RVOL Period on smaller timeframes, the code will give an error. So I recommend using 4 or lower for 5 min timeframe. (Nothing will work on 1 min chart and you can experiment for other timeframes.)
2. RVOL Sectional - True / False (Default Value = False)
If you check this box then you will be able to calculate the RVOL for a particular session (or between particular sessions) in that trading day.
What do I mean by session?
Well I have divided the trading day into 6 (almost) equally spaced sessions in time, i.e. 6 hours and 15 mins (for NSE - India) of trading day is divided into 1 hr - 1st session, 1 hr - 2nd session, 1 hr - 3rd session, 1 hr - 4th session, 1 hr - 5th session, 1 hr and 15 min - 6th session.
Before using 3rd and 4th inputs of indicator, RVOL Sectional box MUST BE CHECKED FIRST.
3. RVOL From Session - 1 to 6 (Default Value = 1)
4. RVOL To Session - 1 to 6 (Default Value = 2)
Now if you select 2 in "RVOL From Session" input and 3 in "RVOL To Session" input, the indicator will calculate RVOL for the 2nd and 3rd hour of the trading day. If you select 3 in both the inputs, then the indicator will give RVOL for the 3rd hour of the trading day.
5. RVOL Trigger - 0.2 to 10 (Default Value = 2)
Filter to find days having RVOL above that value. The indicator turns green (or colour of your choice) when RVOL is more than "RVOL Trigger".
...................................................................................................................................................................................
Hope this indicator will add some value in your trading endeavor.
“Only The Game, Can Teach You The Game” – Jesse Livermore
Yours sincerely,
R4Rocket
**If you have some awesome idea for improvement of the indicator - request you to update the code and share the same.
Overnight ES Strategy: CBC + Fractal + RSI + ATR FilterThis script is designed for overnight trading of the E-mini S&P 500 futures (ES) between 6 PM and 11 PM EST.
It combines multiple technical confluences to generate high-probability buy and sell signals, focusing on volatility-rich, low-liquidity evening sessions.
Key Features:
Candle Body Confluence (CBC) Approximation:
Identifies candles with small real bodies compared to total range, simulating consolidation zones where price is likely to reverse.
Williams Fractal Confirmation:
Detects local tops and bottoms based on 5-bar fractal reversal patterns, helping validate breakout or reversal points.
RSI Filter:
Ensures momentum is supportive — buys only when RSI < 35 (oversold) and sells only when RSI > 65 (overbought).
ATR Volatility Filter:
Trades are only allowed if the Average True Range (ATR) exceeds a user-defined threshold, filtering out low-volatility, risky environments.
Time Session Control:
Signals are only generated during the user-defined evening session (default: 6 PM to 11 PM EST) to match market behavior.
Real-Time Alerts Enabled:
Alerts can be set for BUY or SELL conditions, enabling mobile notifications, emails, or pop-ups without constant chart monitoring.
Recommended Settings:
Chart Timeframe: 15-minute or 30-minute candles
Assets: ES Mini (ES1!), NQ Mini, or other CME futures
Session: New York Time (EST)
ATR Threshold: Adjust based on market conditions; 5.0 suggested starting point for ES Mini on 15m.
Important:
This script only plots signals, it does not auto-execute trades.
Always backtest and paper trade before using live capital.
Volatility can vary; consider adjusting RSI and ATR filters based on market environment.
Credits:
Script designed based on confluence of price action, momentum, reversal structure, and volatility filtering principles used by professional traders.
Inspired by Candle Body Confluence (CBC) theory and Williams fractal techniques.
BIX Candle MarkerBIX Candle Marker (by Bogdan Ilie)
"BIX Candle Marker" is a visual indicator designed to automatically mark the High and Low levels of specific candles at user-defined times and sessions directly on the main chart, facilitating easy intraday analysis.
**How does it work?**
- The indicator automatically fetches the High and Low values from a user-specified timeframe and draws horizontal lines at these levels at precise user-defined session times.
- You can configure up to 4 different sessions per trading day, each with its own customizable color and timing.
- Marked levels are automatically reset at the start of each new trading day.
**Customizable Settings:**
- **Timezone Offset:** Adjust the indicator according to your chart's timezone.
- **Candle Time Frame:** Choose the timeframe from which the candle data will be extracted.
- **Marker Length:** Set the length (number of bars) of the displayed horizontal lines.
- **Line Thickness & Style:** Customize the thickness and style of the lines (solid, dotted, dashed).
- **Sessions (1-4):** Independently configure the hour, minute, and color for each of the four possible sessions.
**Suggested Use:**
- Quickly identify intraday support and resistance levels based on key session candles.
- Ideal for breakout and reversal-based trading strategies.
---
**Disclaimer:**
This indicator is intended solely for chart analysis and educational purposes. It does not constitute financial advice. Always use it in conjunction with your personal trading strategy and risk management practices.
Author: Bogdan Ilie
Pine Script Version: v6
License: Mozilla Public License 2.0
---
BIX Candle Marker (by Bogdan Ilie)
"BIX Candle Marker" este un indicator vizual care marchează automat nivelurile High și Low ale lumânărilor specifice din sesiuni predefinite pe graficul principal, facilitând analiza punctelor-cheie intraday.
**Cum funcționează?**
- Indicatorul preia automat nivelurile maxime și minime dintr-un timeframe personalizabil și afișează linii orizontale pentru aceste nivele exact la orele și minutele configurate.
- Permite definirea a până la 4 sesiuni diferite într-o zi, fiecare având culori și setări proprii.
- Liniile marcate se resetează automat la începutul fiecărei zile de tranzacționare.
**Setări personalizabile:**
- **Timezone Offset:** ajustează indicatorul în funcție de fusul orar al graficului.
- **Candle Time Frame:** selectează timeframe-ul din care se vor prelua datele.
- **Marker Length:** stabilește lungimea (numărul de bare) liniilor orizontale afișate.
- **Line Thickness & Style:** grosimea și stilul liniilor pot fi personalizate (solid, punctat, întrerupt).
- **Sesiuni (1-4):** ora, minutul și culoarea fiecărei sesiuni pot fi configurate independent.
**Sugestii de utilizare:**
- Folosește indicatorul pentru a identifica rapid zonele de suport și rezistență create de lumânări-cheie pe parcursul zilei.
- Poate fi util pentru strategii bazate pe breakout sau reversal.
---
**Disclaimer:**
Acest indicator este destinat exclusiv analizei grafice și nu reprezintă sfaturi financiare. Utilizează-l împreună cu propriile strategii și tehnici de gestionare a riscului.
Autor: Bogdan Ilie
Versiune Pine Script: v6
Licență: Mozilla Public License 2.0
BTIC Range MidpointsThis code analyzes and displays price ranges from 15:15-15:44 ET, the Basis Trade at Index Close session.
It draws horizontal lines showing:
The high of each session
The low of each session
The midpoint (50%) of each session
Connections between different session ranges (50% points between highs and lows)
Key features include:
Works only on 15-minute timeframes or lower
Stores up to 20 days of historical sessions (configurable)
Filters out ranges too far from current price
Color-codes different session ranges
Provides customizable line styles and colors
Labels each range with identifiers
The indicator essentially helps traders identify important price levels from BTIC sessions, which could serve as potential support/resistance areas for future price action.
Momentum Divergence SignalDescription:
The Momentum Divergence Signal is a powerful tool that identifies potential trend reversals by analyzing the interaction between price movements and main oscillators. It highlights moments when price action diverges from the following, which can be a key signal of a trend shift. The most important aspect of this indicator is its ability to detect bullish and bearish divergences.
Coming to the critical part, it is highly recommended to pair this indicator with another trend confirmation tool for improved decision-making, as it works on catching both trend continuation and reversal signals, but it is always favored to match use it as a trend continuation entry provider.
Core Functionality:
Session-Based Signals:
The indicator limits signals to specific market sessions: the Asian, London, and US sessions, optimizing trade opportunities during active trading hours.
Cooldown Mechanism:
To prevent signal spamming, a cooldown period of at least 8 bars is required between each signal, ensuring that new signals are spaced out and not over-generating.
Divergence with Trend Confirmation:
While the RSI divergence alone can highlight potential trend shifts, this script is best paired with other trend-following indicators to filter out false signals. This ensures that the divergence signal is part of a broader, more reliable trend-following strategy.
Visual Components:
Buy and Sell Arrows: Visual arrows on the chart where the divergence occurs, accompanied by "Buy" and "Sell" labels in white to clearly indicate the signal points.
Advanced Concepts:
Divergence as a Reversal Signal: The key strength of this indicator lies in detecting divergences that can indicate a trend reversal. Divergences often precede significant changes in price direction, offering potential opportunities for traders to enter or exit positions before the trend fully shifts.
Pairing with Trend Confirmation Indicators: Since divergence signals can sometimes produce false positives, the most effective use of this tool comes when paired with a trend-following indicator (such as moving averages or price action analysis) to validate the reversal signals.
Applications:
Trend Reversal Detection: Monitor for divergences between price action and RSI to identify potential trend reversals. These signals are most useful when combined with trend confirmation tools to ensure the validity of the reversal.
Strategic Use in Trend-Following Systems: This indicator is best employed within a trend-following strategy where it serves as an additional confirmation signal for market shifts. While it can identify potential reversal points, its strength lies in its ability to identify shifts in momentum within an ongoing trend.
Real-Time Visual Feedback: The "Buy" and "Sell" signals, that are displayed directly on the chart, providing real-time context for traders.
Disclaimer: This indicator is designed for informational purposes only and should not be considered financial advice. Traders should combine it with other market analysis tools and perform their own research before making trading decisions.
Asian H&L v2 [notRolee]🔥 Asian H&L Indicator:
This indicator is designed to mark the highs and lows of the Asian trading session directly on your chart, helping traders identify key price levels from this important session. The indicator automatically detects the high and low points during the Asian market hours and visually highlights these levels, making it easy to reference them throughout the trading day.
💎 How It Works:
- Asian Session Highs and Lows: The indicator captures the price action within the Asian session (from to in UTC+2) and plots horizontal lines at the highest and lowest price points recorded during that period, but you can change the time zone anytime.
- Dynamic Adjustments: As price action unfolds during the Asian session, the indicator updates the high and low points in real-time, ensuring you are always viewing the most accurate data.
- Visual Customization: The highs and lows are highlighted using distinct colors and line styles to easily distinguish them on your chart, with past session levels optionally being displayed for reference. This makes it simple to identify key zones of support and resistance derived from the Asian session’s price action.
✅ How to Use It:
- Support and Resistance: The Asian session highs and lows often serve as important support and resistance levels throughout the rest of the trading day. Traders can look for price to respect or break these levels, which can signal potential trade opportunities.
- Breakout Strategies: When the price breaks above the Asian high or falls below the Asian low, it may indicate a breakout, suggesting a continuation of the move. Traders can use these breakouts as entry points into trending markets.
- Range-Bound Trading: If the price remains between the Asian high and low, this can indicate a range-bound market. Traders might look for opportunities to trade reversals near these levels, using them as boundaries for taking profits or placing stop-losses.
- Confluence with Other Indicators: The Asian session levels can also be used alongside other indicators to provide confirmation of trade setups. For instance, you could combine this indicator with trend indicators or oscillators to improve your entry and exit points.
🔑 Conclusion:
This indicator offers a structured approach to trading around one of the most critical sessions of the global market. By marking the Asian highs and lows, it helps traders make informed decisions by leveraging key support and resistance zones that influence price action as other sessions (such as London and New York) begin.
If you have any questions about this indicator, let me know in the comment section.
-notRolee
MultiTimeFrame Trends and Candle Bias (by MC) v1This MultiTimeFrame Trends and Candle Bias provides the trader a quick glance on how each timeframe is trending and what the current candle bias is in each timeframe.
Interpreting Candle Bias : Green points to a bullish bias while red, a bearish bias for a given specific timeframe. For instance, if the current 1 hour candle bias is red, it means that the last hour, the bias has been bearish. If the Daily candle bias is red, it means that the day in question has been a bearish for this selected symbol.
Interpreting MTF Trends: Trends for each time frame follows the simple moving average of the closing prices for the X number of candles you enter in the input section. So for example, if you decide to enter 6 for the 1-hour time frame, the trend for the last 6 hours will be shown and tracked; if on the Daily time frame, you enter 7, the trend for the last 7 days or 1 week will be shown and tracked. I have provided below (as well as on tooltips in the input section of this indicator) recommendations of what numbers to use depending on what kind of trader you are.
What is a best setup for MultiTimeFrame Trends?
Considerations Across All Timeframes:
- Trading Style : Scalpers and very short-term intraday traders may prefer fewer candles (like 12 to 20), which allow them to react quickly to price changes. Swing traders or those holding positions for a few hours to a couple of days might prefer more candles (like 50 to 120) to identify more stable trends.
- Market Conditions : In volatile markets, using more candles helps smooth out price fluctuations and provides a clearer trend signal. In trending markets, fewer candles might be sufficient to capture the trend.
- Session-Based Adjustments : Traders may adjust their settings depending on the time of day or session they are trading. For example, during high-volatility periods like market open or close, using fewer candles can help capture quick moves.
The number of preceding candles to use for estimating the recent trend can depend on various factors, including the type of market, the asset being traded, the timeframe, and the specific goals of your analysis. However, here are some general guidelines to help you decide:
### 1. **Short-Term Trends (Fast Moving Averages):**
- **5 to 20 Candles**: If you want to capture a short-term trend, typically in day trading or scalping strategies, you might use 5 to 20 candles. This is common for fast-moving averages like the 9-period or 15-period moving averages. It reacts quickly to price changes, but it can also give more false signals due to market noise.
### 2. **Medium-Term Trends (Moderate Moving Averages):**
- **20 to 50 Candles**: For a more balanced approach that reduces the impact of short-term volatility while still being responsive to trend changes, 20 to 50 candles are commonly used. This range is popular for swing trading strategies, where the goal is to capture trends that last several days to weeks.
### 3. **Long-Term Trends (Slow Moving Averages):**
- **50 to 200 Candles**: To identify long-term trends, such as those seen in position trading or for confirming major trend directions, you might use 50 to 200 candles. The 50-period and 200-period moving averages are particularly well-known and are often used by traders to identify significant trend reversals or confirmations.
### 4. **Adaptive Approach:**
- **Market Conditions**: In trending markets, fewer candles might be needed to identify a trend, while in choppy or range-bound markets, using more candles can help filter out noise.
- **Volatility**: In highly volatile markets, more candles might be necessary to smooth out price action and avoid false signals.
### **Experiment and Backtesting:**
The optimal number of candles can vary significantly based on the asset and strategy. It's often a good idea to backtest different periods to see which provides the best balance between responsiveness and reliability in identifying trends. You can use tools like the strategy tester in TradingView or other backtesting software to compare the performance of different settings.
### **General Recommendation:**
- **For Shorter Timeframes** (e.g., 5m, 15m): 10-20 candles might be effective.
- **For Medium Timeframes** (e.g., 1h, 4h): 20-50 candles are often a good starting point.
- **For Longer Timeframes** (e.g., Daily, Weekly): 50-200 candles help capture major trends.
If you're unsure, a common starting point for many traders is the 20-period moving average, which provides a balance between sensitivity and reliability.
Guidelines for 1-Minute Timeframe:
For the 1-minute (1M) timeframe, trend analysis typically focuses on very short-term price movements, which is crucial for scalping and ultra-short-term trading strategies. Here’s a breakdown of the number of preceding candles you might use:
1. **Very Short-Term Trend:**
- **10 to 20 Candles (10 to 20 Minutes):** Using 10 to 20 candles captures about 10 to 20 minutes of price action. This range is suitable for scalpers who need to identify very short-term trends and make quick trading decisions.
2. **Short-Term Trend:**
- **30 to 60 Candles (30 to 60 Minutes):** This period covers 30 to 60 minutes of trading, making it useful for traders looking to understand the trend over a full trading hour. It helps capture price movements and trends that develop within a single hour.
3. **Intraday Trend:**
- **120 Candles (2 Hours):** Using 120 candles provides a view of the trend over approximately 2 hours. This is useful for traders who want to see how the market is trending throughout a larger portion of the trading day.
4. **Extended Intraday Trend:**
- **240 to 480 Candles (4 to 8 Hours):** This longer period gives a broader view of the intraday trend, covering 4 to 8 hours. It’s helpful for identifying trends that span a significant portion of the trading day, which can be useful for traders looking to align with the broader intraday movement.
**Considerations:**
- **High Sensitivity:** The 1-minute timeframe is highly sensitive to market movements, so shorter periods (10 to 20 candles) can capture rapid price changes but may also generate noise.
- **Market Volatility:** In highly volatile markets, using more candles (like 30 to 60 or more) helps smooth out the noise and provides a clearer trend signal.
- **Trading Style:** Scalpers will typically use shorter periods to make very quick decisions. Traders holding positions for a bit longer, even within the same day, may use more candles to get a clearer picture of the trend.
**Common Approaches:**
- **5-Period Moving Average:** The 5-period moving average on a 1-minute chart can be used for extremely short-term trend signals, reacting quickly to price changes.
- **20-Period Moving Average:** The 20-period moving average is a good choice for capturing short-term trends and can help filter out some of the noise while still being responsive.
- **50-Period Moving Average:** The 50-period moving average provides a broader view of the trend and can help smooth out price movements over a longer intraday period.
**Recommendation:**
- **Start with 10 to 20 Candles:** For the most immediate and actionable signals, especially useful for scalping or very short-term trading.
- **Use 30 to 60 Candles:** For a clearer view of trends that develop over an hour, suitable for those looking to trade within a single trading hour.
- **Consider 120 Candles:** For observing broader intraday trends over 2 hours, helping align trades with more significant intraday movements.
- **Explore 240 to 480 Candles:** For a longer intraday perspective, covering up to 8 hours, which can be useful for strategies that span a larger portion of the trading day.
**Practical Example:**
- **Scalpers:** If you’re executing trades every few minutes, start with 10 to 20 candles to get rapid trend signals.
- **Short-Term Traders:** For trends that last an hour or so, 30 to 60 candles will provide a better sense of direction while still being responsive.
- **Intraday Traders:** For broader trends that span several hours, 120 candles will help you see the overall intraday movement.
Experimentation and backtesting with these settings on historical data will help you fine-tune your approach to the 1-minute timeframe for your specific trading strategy and asset.
Guidelines for 5, 15 and 30 min Timeframes:
For shorter timeframes like 5, 15, and 30 minutes, the number of preceding candles you use will depend on how quickly you want to react to changes in the trend and the specific trading style you’re employing. Here's a breakdown for each:
**5-Minute Timeframe:**
1. **Very Short-Term (Micro Trend):**
- **12 to 20 Candles (60 to 100 Minutes):** Using 12 to 20 candles on a 5-minute chart captures 1 to 1.5 hours of price action. This is ideal for very short-term trades, such as scalping, where quick entries and exits are key.
2. **Short-Term Trend:**
- **30 to 60 Candles (150 to 300 Minutes):** This period covers 2.5 to 5 hours, making it useful for intraday traders who want to identify the trend within a trading session. It helps capture the direction of the market during the most active parts of the day.
3. **Intra-Day Trend:**
- **120 Candles (10 Hours):** Using 120 candles gives you a broad view of the trend over two trading sessions. This is useful for traders who want to understand the trend throughout the entire trading day.
**15-Minute Timeframe:**
1. **Very Short-Term:**
- **12 to 20 Candles (3 to 5 Hours):** On a 15-minute chart, this period covers 3 to 5 hours, making it useful for capturing the morning or afternoon trend within a trading day. It’s often used by intraday traders who need to make quick decisions.
2. **Short-Term Trend:**
- **30 to 60 Candles (7.5 to 15 Hours):** This covers almost a full trading day to a day and a half. It’s popular among day traders who want to align their trades with the trend of the day or the previous trading session.
3. **Intra-Week Trend:**
- **120 Candles (30 Hours):** This period spans about two trading days and is useful for traders looking to capture trends that may extend beyond a single trading day but not necessarily for an entire week.
**30-Minute Timeframe:**
1. **Short-Term Trend:**
- **12 to 20 Candles (6 to 10 Hours):** This period captures the trend over a single trading session. It's useful for day traders who want to understand the market’s direction throughout the day.
2. **Medium-Term Trend:**
- **30 to 50 Candles (15 to 25 Hours):** This period covers about two trading days and is useful for short-term swing traders or intraday traders who are looking for trends that might last a couple of days.
3. **Intra-Week Trend:**
- **100 to 120 Candles (50 to 60 Hours):** This longer period captures about 4 to 5 trading days, making it useful for traders who want to understand the broader trend over the course of the week.
**Summary Recommendations:**
- **5-Minute Chart:**
- **12 to 20 candles** for very short-term trades.
- **30 to 60 candles** for intraday trends within a single session.
- **120 candles** for a broader view of the day’s trend.
- **15-Minute Chart:**
- **12 to 20 candles** for short-term trades within a few hours.
- **30 to 60 candles** for trends lasting a full day or more.
- **120 candles** for trends extending over a couple of days.
- **30-Minute Chart:**
- **12 to 20 candles** for understanding the daily trend.
- **30 to 50 candles** for trends over a couple of days.
- **100 to 120 candles** for an intra-week trend view.
Experimenting with these settings and backtesting on historical data will help you find the optimal number of candles for your specific trading style and the assets you trade.
Guidelines for 1H Timeframes:
When analyzing trends on a 1-hour (1H) timeframe, you're focusing on short to medium-term trends, often used by day traders and short-term swing traders. Here’s how you can approach selecting the number of preceding candles:
1. **Short-Term Trend:**
- **14 to 21 Candles (14 to 21 Hours):** Using 14 to 21 candles on a 1-hour chart captures roughly half a day to a full day of trading activity. This range is ideal for day traders who want to identify short-term momentum and trend changes within a single trading day.
2. **Medium-Term Trend:**
- **50 Candles (2 Days):** A 50-period moving average on a 1-hour chart covers about two days of trading. This period is popular for identifying trends that may last a couple of days, making it useful for short-term swing traders.
3. **Longer-Term Trend:**
- **100 Candles (4 Days):** Using 100 candles gives you a broader view of the trend over about four days of trading. This is helpful for traders who want to align their trades with a more sustained trend that spans the entire week.
4. **Very Short-Term (Micro Trend):**
- **7 to 10 Candles (7 to 10 Hours):** For traders looking to capture micro trends or very short-term price movements, using 7 to 10 candles can provide a quick look at recent price action. This is often used for scalping or very short-term intraday strategies.
**Considerations:**
- **Market Volatility:** In highly volatile markets, using more candles (like 50 or 100) helps smooth out noise and provides a clearer trend signal. In less volatile conditions, fewer candles may suffice to capture trends.
- **Trading Style:** If you are a day trader looking for quick moves, shorter periods (like 7 to 21 candles) might be more suitable. For those who hold positions for a day or two, longer periods (like 50 or 100 candles) can provide better trend confirmation.
- **Asset Class:** The optimal number of candles can vary depending on the asset
Guidelines for 4H Timeframes:
When analyzing trends on a 4-hour (4H) timeframe, you’re generally looking to capture short to medium-term trends. This timeframe is popular among swing traders and intraday traders who want to balance between catching more significant market moves and not being too sensitive to noise. Here's how you can approach selecting the number of preceding candles:
1. **Short-Term Trend:**
- **14 to 21 Candles (2 to 3 Days):** Using 14 to 21 candles on a 4-hour chart covers roughly 2 to 3 days of trading activity. This range is ideal for traders looking to capture short-term momentum, especially in markets where price action can move quickly within a few days.
2. **Medium-Term Trend:**
- **50 Candles (8 to 10 Days):** A 50-period moving average on a 4-hour chart represents approximately 8 to 10 days of trading (considering 6 trading periods per day). This period is popular among swing traders for identifying trends that develop over the course of one to two weeks.
3. **Longer-Term Trend:**
- **100 Candles (16 to 20 Days):** Using 100 candles gives you a broader view of the trend over about 3 to 4 weeks. This is useful for traders who want to align their trades with the more sustained market direction while still remaining responsive to recent changes.
**Considerations:**
- **Market Conditions:** In a trending market, fewer candles (like 14 or 21) may be enough to identify the trend, allowing for quicker responses to price movements. In a more volatile or range-bound market, using more candles (like 50 or 100) can help smooth out noise and avoid false signals.
- **Trading Style:** If you are an intraday trader, shorter periods (14 to 21 candles) may be preferable, as they allow for quick entries and exits. Swing traders might lean towards the 50 to 100 candle range to capture trends that last several days to a few weeks.
- **Volatility:** The higher the volatility of the asset, the more candles you might want to use to ensure that the trend signal is not too erratic.
**Common Approaches:**
- **20-Period Moving Average:** A 20-period moving average on a 4-hour chart is often used by traders to capture short-term trends that align with momentum over the past few days.
- **50-Period Moving Average:** The 50-period moving average is widely used on the 4-hour chart to track medium-term trends. It provides a good balance between reacting to new trends and avoiding too many whipsaws.
- **100-Period Moving Average:** The 100-period moving average offers insight into the longer-term trend on the 4-hour chart, helping to filter out short-term noise and confirm the overall market direction.
**Recommendation:**
- **Start with 20 Candles for Short-Term Trends:** This period is useful for capturing quick movements and short-term trends over a couple of days.
- **Use 50 Candles for Medium-Term Trends:** This is a standard setting that provides a balanced view of the market over about 1 to 2 weeks.
- **Consider 100 Candles for Longer-Term Trends:** This helps to identify more significant trends that have persisted for a few weeks.
**Practical Example:**
- **Intraday Traders:** If you’re focused on shorter-term trades and need to react quickly, using 14 to 21 candles will help you capture the most recent momentum.
- **Swing Traders:** If you’re looking to hold positions for several days to a few weeks, starting with 50 candles will give you a clearer picture of the trend over that period.
- **Position Traders:** For those holding positions for a longer duration within a month, using 100 candles helps to align with the broader trend while still being responsive enough for 4-hour price movements.
Backtesting these settings on your chosen asset and strategy will help refine the optimal number of candles for your specific needs.
Guidelines for Daily Timeframes:
When analyzing trends on a daily timeframe, you're typically focusing on short to medium-term trends. Here’s how you can determine the optimal number of preceding candles:
1. **Short-Term Trend:**
- **10 to 20 Candles (2 to 4 Weeks):** Using 10 to 20 daily candles captures about 2 to 4 weeks of price action. This is commonly used for identifying short-term trends, ideal for swing traders or those looking for quick entries and exits within a month.
2. **Medium-Term Trend:**
- **50 Candles (2 to 3 Months):** The 50-day moving average is a classic choice for capturing medium-term trends. This period covers about 2 to 3 months of trading days and is often used by swing traders and investors to identify the trend over a quarter or a season.
3. **Long-Term Trend:**
- **100 to 200 Candles (4 to 9 Months):** For longer-term trend analysis, using 100 to 200 daily candles gives you a broader perspective, covering approximately 4 to 9 months of price action. The 200-day moving average, in particular, is widely used by investors to determine the overall long-term trend and to assess market health.
**Considerations:**
- **Market Volatility:** In more volatile markets, using a larger number of candles (e.g., 50 or 200) helps smooth out noise and provides a more reliable trend signal. In less volatile markets, fewer candles might be sufficient to capture trends effectively.
- **Trading Style:** Day traders might prefer shorter periods (like 10 or 20 candles) for quicker signals, while position traders and longer-term swing traders might opt for 50 to 200 candles to focus on more sustained trends.
- **Asset Class:** The optimal number of candles can also depend on the asset class. For example, equities might have different optimal settings compared to forex or cryptocurrencies due to different volatility characteristics.
**Common Approaches:**
- **20-Period Moving Average:** The 20-day moving average is a popular choice for short-term trend analysis. It’s widely used by traders to identify the short-term direction and to make quick trading decisions.
- **50-Period Moving Average:** The 50-day moving average is a staple for medium-term trend analysis, often used as a key indicator for both entry and exit points in swing trading.
- **200-Period Moving Average:** The 200-day moving average is crucial for long-term trend identification. It's commonly used by investors and is often seen as a major support or resistance level. When the price is above the 200-day moving average, the market is generally considered to be in a long-term uptrend, and vice versa.
**Recommendation:**
- **Start with 20 Candles for Short-Term Trends:** This period is commonly used for identifying recent trends within the last few weeks.
- **Use 50 Candles for Medium-Term Trends:** This provides a good balance between responsiveness and stability, making it a good fit for most swing trading strategies.
- **Use 200 Candles for Long-Term Trends:** This period is ideal for long-term analysis and is particularly useful for investors looking at the overall market trend.
**Practical Example:**
- If you’re trading equities and want to catch short-term trends, start with 20 candles to identify trends that have developed over the past month.
- If you’re more focused on medium to long-term trends, consider using 50 or 200 candles to ensure you’re aligned with the broader market direction.
Experimenting with these periods and backtesting on historical data will help you determine the best setting for your particular strategy and the asset you're analyzing.
Guidelines for Weekly Timeframes:
When analyzing trends on a weekly timeframe, you're typically looking at intermediate to long-term trends. Here's how you might approach selecting the number of preceding candles:
1. **Intermediate-Term Trend:**
- **13 to 26 Candles (3 to 6 Months):** Using 13 to 26 weekly candles corresponds to a period of 3 to 6 months. This range is effective for identifying intermediate-term trends, which is suitable for swing traders or those looking to hold positions for several weeks to a few months.
2. **Medium-Term Trend:**
- **26 to 52 Candles (6 Months to 1 Year):** For a broader view, you might use 26 to 52 weekly candles. This represents 6 months to 1 year of price data, which is helpful for understanding the market’s behavior over a medium-term period. This range is commonly used by swing traders and position traders who are interested in capturing trends lasting several months.
3. **Long-Term Trend:**
- **104 Candles (2 Years):** Using 104 weekly candles gives you a 2-year perspective. This can be useful for long-term trend analysis, particularly for investors or those looking to identify major trend reversals or continuations over a more extended period.
**Considerations:**
- **Market Type:** In trending markets, fewer candles (like 13 or 26) may work well, capturing the trend more quickly. In choppier or range-bound markets, using more candles can help reduce noise and avoid false signals.
- **Asset Class:** The optimal number of candles can vary depending on the asset class. For example, equities might benefit from a slightly shorter lookback period compared to more volatile assets like commodities or cryptocurrencies.
- **Volatility:** If the market or asset you're analyzing is highly volatile, using a higher number of candles (like 52 or 104) can help smooth out price fluctuations and provide a more stable trend signal.
**Common Approaches:**
- **20-Period Moving Average:** A 20-week moving average is popular among traders for identifying the intermediate trend. It’s responsive enough to capture significant trend changes while filtering out short-term noise.
- **50-Period Moving Average:** The 50-week moving average is often used to identify longer-term trends and is commonly referenced in both technical analysis and by longer-term traders.
- **200-Period Moving Average:** Although less common on weekly charts compared to daily charts, a 200-week moving average can be used to identify very long-term trends, such as multi-year market cycles.
**Recommendation:**
- **Start with 26 Candles:** This gives you a half-year perspective and is a good starting point for most analyses on a weekly timeframe. It balances sensitivity to recent trends with the ability to capture more significant, sustained movements.
- **Adjust Based on Backtesting:** You can increase the number of candles to 52 if you find that you need more stability in the trend signal, or decrease to 13 if you're looking for a more responsive signal.
Experimenting with different periods and backtesting on historical data can help determine the best setting for your specific strategy and asset class.
Guidelines for Monthly Timeframes:
For analyzing trends on monthly timeframes, you would generally be looking at much longer periods to capture the broader, long-term trend. Here's how you can approach it:
1. **Long-Term Trend (Primary Trend):**
- **12 to 24 Candles (1 to 2 Years):** Using 12 to 24 monthly candles corresponds to a period of 1 to 2 years. This is typically sufficient to identify long-term trends and is commonly used by long-term investors or position traders who are interested in the overall direction of the market or asset over multiple years.
2. **Very Long-Term Trend (Secular Trend):**
- **36 to 60 Candles (3 to 5 Years):** To capture very long-term secular trends, you might use 36 to 60 monthly candles. This would represent a time frame of 3 to 5 years and is often used for understanding macroeconomic trends or very long-term investment strategies.
3. **Ultra Long-Term Trend:**
- **120 Candles (10 Years):** In some cases, especially for assets like indices or commodities that are analyzed over decades, using 120 monthly candles can help in identifying ultra long-term trends. This would be appropriate for strategic investors or those looking at generational market cycles.
**Considerations:**
- **Volatility and Stability:** Monthly timeframes generally smooth out short-term volatility, but they can also be slow to react to changes. Using a larger number of candles (e.g., 24 or more) can help ensure that the trend signal is robust and not prone to frequent whipsaws.
- **Asset Class:** The choice of period might also depend on the asset class. For instance, equities might require fewer candles compared to commodities or currencies, which can exhibit different trend dynamics.
- **Market Phases:** In different market phases (bullish, bearish, or sideways), the number of candles might need to be adjusted. For instance, in a strongly trending market, fewer candles might still provide a reliable trend indication, whereas in a more volatile or ranging market, more candles might be needed to smooth out the data.
**Common Approaches:**
- **50-Period Moving Average:** A 50-month moving average is popular among long-term traders and investors for identifying the primary trend. It offers a balance between capturing the overall trend and being responsive enough to significant changes.
- **200-Period Moving Average:** Although rarely used on a monthly chart due to the long timeframe it represents (over 16 years), it can be useful for identifying very long-term secular trends, especially for broad market indices or in macroeconomic analysis.
**Recommendation:**
- **Start with 24 Candles:** This gives you a 2-year perspective on the trend and is a good starting point for most long-term analyses on monthly charts. Adjust upwards if you need a broader trend view, depending on the stability and nature of the asset you're analyzing.
Experimentation and backtesting with your specific asset and strategy can help fine-tune the exact number of candles that work best for your analysis on a monthly timeframe.
Range Projections [TFO]The purpose of this indicator is to see how often price reached certain standard deviations from a selected time range. The inspiration for this was to study ICT (Inner Circle Trader) concepts regarding the Central Bank Dealer’s Range (CBDR), which is 2:00 pm - 8:00 pm New York local time according to ICT Core Content. However, the idea and data collection could certainly be applied to any range of time.
The main settings of this indicator are session time, range type, and the standard deviation filter. The session time is the window of price that will be utilized for range projections. The range type can be either body or wick (on the current timeframe). The standard deviation filter is used to eliminate sessions whose ranges (from high to low) are greater than the desired/input number of standard deviations from all available session ranges.
In this example, the time range is set to 16:00 - 20:00, or the time between the New York session close and the Asia session open. Our standard deviations are set to 1, 2, 2.5, and 4. Now, by taking this session’s price range and extrapolating these extensions from the initial range, we can use these levels to see if and how price interacts with them before the next 16:00 - 20:00 session.
Furthermore, we can enable the Data Table to analyze how often price trades to these levels for the sessions that are deemed valid (determined by the standard deviation filter). This time our standard deviations are set to 1, 2, 3, and 4.
This concept can theoretically be applied to any window of time. ICT has mentioned that, in instances where the CBDR is too large, the Asia range may be used instead. We can observe that the indicator behaves the same way when we change the session to the Asia range, 20:00 - 00:00.
Expected Move w/ Volatility Panel (advanced) [Loxx]This indicator shows the expected range of movement of price given the assumption that price is log-normally distributed. This includes 3 multiples of standard deviation and 1 user selected level input as a multiple of standard deviation. Expected assumes that volatility remains static on the next bar. In reality, this may or may not be the case, so use caution when making broad assumptions about the levels shown when using this indicator. However, these levels match the same levels on Loxx's backtests and Multi-Panel indicator. These static levels are used as the take profit targets and stoploss on all Loxx's scripts previously posted.
This indicator can be be used on all timeframes, but the internal timeframe must be higher than the current timeframe or an error is thrown. The purpose for internal MTF is so that you can track the deviation range from higher timeframes on lower timeframes. When "current bar" is selected, this indicator will change with live prices changes. This is useful if you wish to enter a trade before the current bar closes and need to know the deviation ranges before the close. Current bar is also useful to see the past ranges of literally that bar. When "past bar" is selected, then the values shown on the current bar are values that were calculated on the last bar. The previous bar setting is useful to track price changes with the assumption that you entered a trade at the close of the previous bar. The default set to the previous bar. (careful, this default setting won't match Loxx's Muti-Panel tool since the Multi-Panel is built using the current bar. To make them match, you must change this setting to current bar)
I've included the ability for you to smooth the output around a moving average. Included are Loxx's Moving Averages. There are 41 to choose from. See more details here:
Smoothing applied yielding Keltner Channels
Also included are various UI options to manipulate line styling and colors.
Volatility Panel
Shows information about user selected volatility included confidence range of the chosen volatility. The following volatility types are included with additional volatility types to added in future releases.
Close-to-Close
Close-to-Close volatility is a classic and most commonly used volatility measure, sometimes referred to as historical volatility .
Volatility is an indicator of the speed of a stock price change. A stock with high volatility is one where the price changes rapidly and with a bigger amplitude. The more volatile a stock is, the riskier it is.
Close-to-close historical volatility calculated using only stock's closing prices. It is the simplest volatility estimator. But in many cases, it is not precise enough. Stock prices could jump considerably during a trading session, and return to the open value at the end. That means that a big amount of price information is not taken into account by close-to-close volatility .
Despite its drawbacks, Close-to-Close volatility is still useful in cases where the instrument doesn't have intraday prices. For example, mutual funds calculate their net asset values daily or weekly, and thus their prices are not suitable for more sophisticated volatility estimators.
Parkinson
Parkinson volatility is a volatility measure that uses the stock’s high and low price of the day.
The main difference between regular volatility and Parkinson volatility is that the latter uses high and low prices for a day, rather than only the closing price. That is useful as close to close prices could show little difference while large price movements could have happened during the day. Thus Parkinson's volatility is considered to be more precise and requires less data for calculation than the close-close volatility .
One drawback of this estimator is that it doesn't take into account price movements after market close. Hence it systematically undervalues volatility . That drawback is taken into account in the Garman-Klass's volatility estimator.
Garman-Klass
Garman Klass is a volatility estimator that incorporates open, low, high, and close prices of a security.
Garman-Klass volatility extends Parkinson's volatility by taking into account the opening and closing price. As markets are most active during the opening and closing of a trading session, it makes volatility estimation more accurate.
Garman and Klass also assumed that the process of price change is a process of continuous diffusion (geometric Brownian motion). However, this assumption has several drawbacks. The method is not robust for opening jumps in price and trend movements.
Despite its drawbacks, the Garman-Klass estimator is still more effective than the basic formula since it takes into account not only the price at the beginning and end of the time interval but also intraday price extremums.
Researchers Rogers and Satchel have proposed a more efficient method for assessing historical volatility that takes into account price trends. See Rogers-Satchell Volatility for more detail.
Rogers-Satchell
Rogers-Satchell is an estimator for measuring the volatility of securities with an average return not equal to zero.
Unlike Parkinson and Garman-Klass estimators, Rogers-Satchell incorporates drift term (mean return not equal to zero). As a result, it provides a better volatility estimation when the underlying is trending.
The main disadvantage of this method is that it does not take into account price movements between trading sessions. It means an underestimation of volatility since price jumps periodically occur in the market precisely at the moments between sessions.
A more comprehensive estimator that also considers the gaps between sessions was developed based on the Rogers-Satchel formula in the 2000s by Yang-Zhang. See Yang Zhang Volatility for more detail.
Yang-Zhang
Yang Zhang is a historical volatility estimator that handles both opening jumps and the drift and has a minimum estimation error.
We can think of the Yang-Zhang volatility as the combination of the overnight (close-to-open volatility ) and a weighted average of the Rogers-Satchell volatility and the day’s open-to-close volatility . It considered being 14 times more efficient than the close-to-close estimator.
Garman-Klass-Yang-Zhang
Garman Klass is a volatility estimator that incorporates open, low, high, and close prices of a security.
Garman-Klass volatility extends Parkinson's volatility by taking into account the opening and closing price. As markets are most active during the opening and closing of a trading session, it makes volatility estimation more accurate.
Garman and Klass also assumed that the process of price change is a process of continuous diffusion (geometric Brownian motion). However, this assumption has several drawbacks. The method is not robust for opening jumps in price and trend movements.
Despite its drawbacks, the Garman-Klass estimator is still more effective than the basic formula since it takes into account not only the price at the beginning and end of the time interval but also intraday price extremums.
Researchers Rogers and Satchel have proposed a more efficient method for assessing historical volatility that takes into account price trends. See Rogers-Satchell Volatility for more detail.
Exponential Weighted Moving Average
The Exponentially Weighted Moving Average (EWMA) is a quantitative or statistical measure used to model or describe a time series. The EWMA is widely used in finance, the main applications being technical analysis and volatility modeling.
The moving average is designed as such that older observations are given lower weights. The weights fall exponentially as the data point gets older – hence the name exponentially weighted.
The only decision a user of the EWMA must make is the parameter lambda. The parameter decides how important the current observation is in the calculation of the EWMA. The higher the value of lambda, the more closely the EWMA tracks the original time series.
Standard Deviation of Log Returns
This is the simplest calculation of volatility . It's the standard deviation of ln(close/close(1))
Pseudo GARCH(2,2)
This is calculated using a short- and long-run mean of variance multiplied by θ.
θavg(var ;M) + (1 − θ) avg (var ;N) = 2θvar/(M+1-(M-1)L) + 2(1-θ)var/(M+1-(M-1)L)
Solving for θ can be done by minimizing the mean squared error of estimation; that is, regressing L^-1var - avg (var; N) against avg (var; M) - avg (var; N) and using the resulting beta estimate as θ.
Average True Range
The average true range (ATR) is a technical analysis indicator, introduced by market technician J. Welles Wilder Jr. in his book New Concepts in Technical Trading Systems, that measures market volatility by decomposing the entire range of an asset price for that period.
The true range indicator is taken as the greatest of the following: current high less the current low; the absolute value of the current high less the previous close; and the absolute value of the current low less the previous close. The ATR is then a moving average, generally using 14 days, of the true ranges.
True Range Double
A special case of ATR that attempts to correct for volatility skew.
Chi-squared Confidence Interval:
Confidence interval of volatility is calculated using an inverse CDF of a Chi-Squared Distribution. You can change the volatility input used to either realized, upper confidence interval, or lower confidence interval. This is included in case you'd like to see how far price can extend if volatility hits it's upper or lower confidence levels. Generally, you'd just used realized volatility , so I wouldn't change this setting.
Inverse CDF of a Chi-Squared Distribution
The chi-square distribution is a one-parameter family of curves. The parameter ν is the degrees of freedom.
The icdf of the chi-square distribution is
x=F^−1(p∣ν) = {x:F(x∣ν) = p}
where
p=F(x∣ν)= ∫ (t^(v-2)/2 * e^t/2) / (2^(v/2) / Γ(v/2))
ν is the degrees of freedom, and Γ( · ) is the Gamma function. The result p is the probability that a single observation from the chi-square distribution with ν degrees of freedom falls in the interval .
Related Indicators
Multi-Panel: Trade-Volatility-Probability
Variety Distribution Probability Cone
Multi-Panel: Trade-Volatility-Probability [Loxx]Multi-Panel: Trade-Volatility-Probability shows user selected and volatility-based price levels and probabilities on the chart. This is useful for both options and all styles of up/down trading methods that rely on volatility.
Trading Panel: Shows trading information to take profits and stop-loss based on multiples of volatility. Also shows equity inputs by the user to calculate optimal position size
Key things to note about the Trading Panel
-Trade side: Long or short. you change this this to change the take profit and SL levels in displayed on the table to be used w/ up/down trading styles that rely on volatility stops
-Account size: User enters total balance available for trade
-Risk: Total % of account size you're willing to lose should the SL be hit
-Position size: Size of the position given the SL and your preferred Risk
-Take profit/Stop loss levels: Based on multipliers selected by the user in settings. These shouldn't be changed unless you really know what you're doing with volatility stops
-Entry: Source price. can be 1 of 37 different prices. See Loxx's Expanded Source Types:
Volatility Panel: Shows information about the volatility the user selected to be used to take profit/stop-loss/range calculations. Volatility types included are:
Close-to-Close
Close-to-Close volatility is a classic and most commonly used volatility measure, sometimes referred to as historical volatility .
Volatility is an indicator of the speed of a stock price change. A stock with high volatility is one where the price changes rapidly and with a bigger amplitude. The more volatile a stock is, the riskier it is.
Close-to-close historical volatility calculated using only stock's closing prices. It is the simplest volatility estimator. But in many cases, it is not precise enough. Stock prices could jump considerably during a trading session, and return to the open value at the end. That means that a big amount of price information is not taken into account by close-to-close volatility .
Despite its drawbacks, Close-to-Close volatility is still useful in cases where the instrument doesn't have intraday prices. For example, mutual funds calculate their net asset values daily or weekly, and thus their prices are not suitable for more sophisticated volatility estimators.
Parkinson
Parkinson volatility is a volatility measure that uses the stock’s high and low price of the day.
The main difference between regular volatility and Parkinson volatility is that the latter uses high and low prices for a day, rather than only the closing price. That is useful as close to close prices could show little difference while large price movements could have happened during the day. Thus Parkinson's volatility is considered to be more precise and requires less data for calculation than the close-close volatility.
One drawback of this estimator is that it doesn't take into account price movements after market close. Hence it systematically undervalues volatility. That drawback is taken into account in the Garman-Klass's volatility estimator.
Garman-Klass
Garman Klass is a volatility estimator that incorporates open, low, high, and close prices of a security.
Garman-Klass volatility extends Parkinson's volatility by taking into account the opening and closing price. As markets are most active during the opening and closing of a trading session, it makes volatility estimation more accurate.
Garman and Klass also assumed that the process of price change is a process of continuous diffusion (geometric Brownian motion). However, this assumption has several drawbacks. The method is not robust for opening jumps in price and trend movements.
Despite its drawbacks, the Garman-Klass estimator is still more effective than the basic formula since it takes into account not only the price at the beginning and end of the time interval but also intraday price extremums.
Researchers Rogers and Satchel have proposed a more efficient method for assessing historical volatility that takes into account price trends. See Rogers-Satchell Volatility for more detail.
Rogers-Satchell
Rogers-Satchell is an estimator for measuring the volatility of securities with an average return not equal to zero.
Unlike Parkinson and Garman-Klass estimators, Rogers-Satchell incorporates drift term (mean return not equal to zero). As a result, it provides a better volatility estimation when the underlying is trending.
The main disadvantage of this method is that it does not take into account price movements between trading sessions. It means an underestimation of volatility since price jumps periodically occur in the market precisely at the moments between sessions.
A more comprehensive estimator that also considers the gaps between sessions was developed based on the Rogers-Satchel formula in the 2000s by Yang-Zhang. See Yang Zhang Volatility for more detail.
Yang-Zhang
Yang Zhang is a historical volatility estimator that handles both opening jumps and the drift and has a minimum estimation error.
We can think of the Yang-Zhang volatility as the combination of the overnight (close-to-open volatility ) and a weighted average of the Rogers-Satchell volatility and the day’s open-to-close volatility . It considered being 14 times more efficient than the close-to-close estimator.
Garman-Klass-Yang-Zhang
Garman Klass is a volatility estimator that incorporates open, low, high, and close prices of a security.
Garman-Klass volatility extends Parkinson's volatility by taking into account the opening and closing price. As markets are most active during the opening and closing of a trading session, it makes volatility estimation more accurate.
Garman and Klass also assumed that the process of price change is a process of continuous diffusion (geometric Brownian motion). However, this assumption has several drawbacks. The method is not robust for opening jumps in price and trend movements.
Despite its drawbacks, the Garman-Klass estimator is still more effective than the basic formula since it takes into account not only the price at the beginning and end of the time interval but also intraday price extremums.
Researchers Rogers and Satchel have proposed a more efficient method for assessing historical volatility that takes into account price trends. See Rogers-Satchell Volatility for more detail.
Exponential Weighted Moving Average
The Exponentially Weighted Moving Average (EWMA) is a quantitative or statistical measure used to model or describe a time series. The EWMA is widely used in finance, the main applications being technical analysis and volatility modeling.
The moving average is designed as such that older observations are given lower weights. The weights fall exponentially as the data point gets older – hence the name exponentially weighted.
The only decision a user of the EWMA must make is the parameter lambda. The parameter decides how important the current observation is in the calculation of the EWMA. The higher the value of lambda, the more closely the EWMA tracks the original time series.
Standard Deviation of Log Returns
This is the simplest calculation of volatility . It's the standard deviation of ln(close/close(1))
Pseudo GARCH(2,2)
This is calculated using a short- and long-run mean of variance multiplied by θ.
θavg(var ;M) + (1 − θ) avg (var ;N) = 2θvar/(M+1-(M-1)L) + 2(1-θ)var/(M+1-(M-1)L)
Solving for θ can be done by minimizing the mean squared error of estimation; that is, regressing L^-1var - avg (var; N) against avg (var; M) - avg (var; N) and using the resulting beta estimate as θ.
Average True Range
The average true range (ATR) is a technical analysis indicator, introduced by market technician J. Welles Wilder Jr. in his book New Concepts in Technical Trading Systems, that measures market volatility by decomposing the entire range of an asset price for that period.
The true range indicator is taken as the greatest of the following: current high less the current low; the absolute value of the current high less the previous close; and the absolute value of the current low less the previous close. The ATR is then a moving average, generally using 14 days, of the true ranges.
True Range Double
A special case of ATR that attempts to correct for volatility skew.
Chi-squared Confidence Interval:
Confidence interval of volatility is calculated using an inverse CDF of a Chi-Squared Distribution. You can change the volatility input used to either realized, upper confidence interval, or lower confidence interval. This is included in case you'd like to see how far price can extend if volatility hits it's upper or lower confidence levels. Generally, you'd just used realized volatility, so I wouldn't change this setting.
Inverse CDF of a Chi-Squared Distribution
The chi-square distribution is a one-parameter family of curves. The parameter ν is the degrees of freedom.
The icdf of the chi-square distribution is
x=F^−1(p∣ν) = {x:F(x∣ν) = p}
where
p=F(x∣ν)= ∫ (t^(v-2)/2 * e^t/2) / (2^(v/2) / Γ(v/2))
ν is the degrees of freedom, and Γ( · ) is the Gamma function. The result p is the probability that a single observation from the chi-square distribution with ν degrees of freedom falls in the interval .
Additional notes on Volatility Panel
-Shows both current timeframe volatility per candle at whatever date backward you select
-Shows annualized volatility basaed on selected days per year and per bar volatility; this is automaitcally caulculated no matter the timeframe used. This means that it'll calculate annualized volatility for the current candle even on the 1 second timeframe. Days per year should be 252 for everything but cryptocurrency; however, for all types of tradable assets, anything over the 3 day timeframe will calculate on 365 days.
Probability Panel
This panel shows the probability levels of a user selected upper and lower price boundary. This includes the inside range of volatility between the lower and upper price levels and the outside probability below the lower price level and above the upper price level. These values are calculated using the CDF (cumulative density function) of a normal distribution. In simpler terms, CDF returns area under a bell curve between two points left and right, or for our purposes, high and low. This yeilds the probabilities you see in the Probability Panel. See the following graphic to visualize how this works:
The red line is the entry bar; the yellow line is the "mean" but in this case just the chosen source price.
Other things to know
You can turn on/off all labels and levels and fills
Volatility Cone [Loxx]When it comes to forecasting volatility, it seems that the old axiom about weather is applicable: "Everyone talks about it, but no one can do much about it!" Volatility cones are a tool that may be useful in one’s attempt to do something about predicting the future volatility of an asset.
A "volatility cone" is a plot of the range of volatilities within a fixed probability band around the true parameter, as a function of sample length. Volatility cone is a visualization tool for the display of historical volatility term structure. It was introduced by Burghardt and Lane in early 1990 and is popular in the option trading community. This is mostly a static indicator due to processor load and is restricted to the daily time frame.
Why cones?
When we enter the options arena, in an effort to "trade volatility," we want to be able to compare current levels of implied volatility with recent historical volatility in an effort to assess the relative value of the option(s) under consideration Volatility cones can be an effective tool to help us with this assessment. A volatility cone is an analytical application designed to help determine if the current levels of historical or implied volatilities for a given underlying, its options, or any of the new volatility instruments, such as VolContractTM futures, VIX futures, or VXX and VXZ ETNs, are likely to persist in the future. As such, volatility cones are intended to help the user assess the likely volatility that an underlying will go on to display over a certain period. Those who employ volatility cones as a diagnostic tool are relying upon the principle of "reversion to the mean." This means that unusually high levels of volatility are expected to drift or move lower (revert) to their average (mean) levels, while relatively low volatility readings are expected to rise, eventually, to more "normal" values.
How to use
Suppose you want to analyze an options contract expiring in 3-months and this current option has an current implied volatility 25.5%. Suppose also that realized volatility (y-axis) at the 3-month mark (90 on the x-axis) is 45%, median in 35%, the 25th percentile is 30%, and the low is 25%. Comparing this range to the implied volatility you would maybe conclude that this is a relatively "cheap" option contract. To help you visualize implied volatility on the chart given an expiration date in bars, the indicator includes the ability to enter up to three expirations in bars and each expirations current implied volatility
By ascertaining the various historical levels of volatility corresponding to a given time horizon for the options futures under consideration, we’re better prepared to judge the relative "cheapness" or "expensiveness" of the instrument.
Volatility options
Close-to-Close
Close-to-Close volatility is a classic and most commonly used volatility measure, sometimes referred to as historical volatility .
Volatility is an indicator of the speed of a stock price change. A stock with high volatility is one where the price changes rapidly and with a bigger amplitude. The more volatile a stock is, the riskier it is.
Close-to-close historical volatility calculated using only stock's closing prices. It is the simplest volatility estimator. But in many cases, it is not precise enough. Stock prices could jump considerably during a trading session, and return to the open value at the end. That means that a big amount of price information is not taken into account by close-to-close volatility .
Despite its drawbacks, Close-to-Close volatility is still useful in cases where the instrument doesn't have intraday prices. For example, mutual funds calculate their net asset values daily or weekly, and thus their prices are not suitable for more sophisticated volatility estimators.
Parkinson
Parkinson volatility is a volatility measure that uses the stock’s high and low price of the day.
The main difference between regular volatility and Parkinson volatility is that the latter uses high and low prices for a day, rather than only the closing price. That is useful as close to close prices could show little difference while large price movements could have happened during the day. Thus Parkinson's volatility is considered to be more precise and requires less data for calculation than the close-close volatility. One drawback of this estimator is that it doesn't take into account price movements after market close. Hence it systematically undervalues volatility. That drawback is taken into account in the Garman-Klass's volatility estimator.
Garman-Klass
Garman Klass is a volatility estimator that incorporates open, low, high, and close prices of a security.
Garman-Klass volatility extends Parkinson's volatility by taking into account the opening and closing price. As markets are most active during the opening and closing of a trading session, it makes volatility estimation more accurate.
Garman and Klass also assumed that the process of price change is a process of continuous diffusion (geometric Brownian motion). However, this assumption has several drawbacks. The method is not robust for opening jumps in price and trend movements.
Despite its drawbacks, the Garman-Klass estimator is still more effective than the basic formula since it takes into account not only the price at the beginning and end of the time interval but also intraday price extremums.
Researchers Rogers and Satchel have proposed a more efficient method for assessing historical volatility that takes into account price trends. See Rogers-Satchell Volatility for more detail.
Rogers-Satchell
Rogers-Satchell is an estimator for measuring the volatility of securities with an average return not equal to zero.
Unlike Parkinson and Garman-Klass estimators, Rogers-Satchell incorporates drift term (mean return not equal to zero). As a result, it provides a better volatility estimation when the underlying is trending.
The main disadvantage of this method is that it does not take into account price movements between trading sessions. It means an underestimation of volatility since price jumps periodically occur in the market precisely at the moments between sessions.
A more comprehensive estimator that also considers the gaps between sessions was developed based on the Rogers-Satchel formula in the 2000s by Yang-Zhang. See Yang Zhang Volatility for more detail.
Yang-Zhang
Yang Zhang is a historical volatility estimator that handles both opening jumps and the drift and has a minimum estimation error.
We can think of the Yang-Zhang volatility as the combination of the overnight (close-to-open volatility ) and a weighted average of the Rogers-Satchell volatility and the day’s open-to-close volatility . It considered being 14 times more efficient than the close-to-close estimator.
Garman-Klass-Yang-Zhang
Garman Klass is a volatility estimator that incorporates open, low, high, and close prices of a security.
Garman-Klass volatility extends Parkinson's volatility by taking into account the opening and closing price. As markets are most active during the opening and closing of a trading session, it makes volatility estimation more accurate.
Garman and Klass also assumed that the process of price change is a process of continuous diffusion (geometric Brownian motion). However, this assumption has several drawbacks. The method is not robust for opening jumps in price and trend movements.
Despite its drawbacks, the Garman-Klass estimator is still more effective than the basic formula since it takes into account not only the price at the beginning and end of the time interval but also intraday price extremums.
Researchers Rogers and Satchel have proposed a more efficient method for assessing historical volatility that takes into account price trends. See Rogers-Satchell Volatility for more detail.
Exponential Weighted Moving Average
The Exponentially Weighted Moving Average (EWMA) is a quantitative or statistical measure used to model or describe a time series. The EWMA is widely used in finance, the main applications being technical analysis and volatility modeling.
The moving average is designed as such that older observations are given lower weights. The weights fall exponentially as the data point gets older – hence the name exponentially weighted.
The only decision a user of the EWMA must make is the parameter lambda. The parameter decides how important the current observation is in the calculation of the EWMA. The higher the value of lambda, the more closely the EWMA tracks the original time series.
Standard Deviation of Log Returns
This is the simplest calculation of volatility . It's the standard deviation of ln(close/close(1))
Sampling periods used
5, 10, 20, 30, 60, 90, 120, 150, 180, 210, 240, 270, 300, 330, and 360
Historical Volatility plot
Purple outer lines: High and low volatility values corresponding to x-axis time
Blue inner lines: 25th and 75th percentiles of volatility corresponding to x-axis time
Green line: Median volatility values corresponding to x-axis time
White dashed line: Realized volatility corresponding to x-axis time
Additional things to know
Due to UI constraints on TradingView it will be easier to visualize this indicator by double-clicking the bottom pane where it appears and then expanded the y- and x-axis to view the entire chart.
You can click on each point on the graph to see what the volatility of that point is.
Option expiration dates will show up as large dots on the graph. You can input your own values in the settings.
Variety Distribution Probability Cone [Loxx]Variety Distribution Probability Cone forecasts price within a range of confidence using Geometric Brownian Motion (GBM) calculated using selected probability distribution, volatility, and drift. Below is detailed explanation of the inner workings of the indicator and the math involved. While normally this indicator would be used by options traders, this can also be used by regular directional traders who wish to observe a forecast of the confidence interval of possible prices over time.
What is a Random Walk
A random walk is a path which consists of a set of random steps. The starting point is zero and following movement may be one step to the left or to the right with equal probability. In the random walk process, there is no observable trend or pattern which are followed by the objects that is the movements are completely random. That is why the prices of a stock as it moves up and down can be modeled by random a walk process.
Stock Prices and Geometric Brownian Motion
Brownian motion, as first conceived by the botanist Robert Brown (1827), is a mathematical model used to describe random movements of small particles in a fluid or gas. These random movements are observed in the stock markets where the prices move up and down, randomly; hence, Brownian motion is considered as a mathematical model for stock prices.
P(exp(lnS0 + (mu + 1/2*sigma^2)t - z(0.05)*sigma*t^0.5) <= St <= exp(lnS0 + (mu + 1/2*sigma^2)t + z(0.05)*sigma*t^0.5)) = 0.95
Probability Distributions
Typically the normal distribution is used, but for our purposes here we extend this to Student t-distribution, Cauchy, Gaussian KDE, and Laplace
Student's t-Distribution
The probability density function of the Student’s t distribution is given by
g(x) = (L(v+1)/2) / L(v/2) * 1 / L(sqrt(v)) * (1 + x^2/v) ^ (-(v+1)/2)
with v degrees of freedom and v >= 0, denoted by X ~ t(v). The mean is 0 and the variance is v/(v-2). It is known that as v tends to infinity, the Student’s t-distribution tends to a standard normal probability density function, which has a variance of one. Blattberg and Gonedes were the first to propose that stock returns could be modeled by this distribution. (Blattberg and Gonedes, 1974) Platen and Sidorowicz later reaffirmed these findings.(Platen and Rendek, 2007) Finally, Cassidy, Hamp, and Ouyed used these findings to derive the Gosset formula, which is the Student t version of the Black-Scholes model.(Cassidy et al., 2010) They found that v = 2.65 provides the best fit when looking at the past 100 years of returns. They realized that as markets become more turbulent, the degrees of freedom should be adjusted to a smaller value.(Cassidy et al., 2010)
Cauchy Distribution
The probability density function of the Cauchy distribution is given by
f(x) = 1 / (theta*pi*(1 + ((x-n)/v)))
where n is the location parameter and theta is the scale parameter, for -infinity < x < infinity and is denoted by X ~ CAU(L,v). This model is similar to the normal distribution in that it is symmetric about zero, but the tails are fatter. This would mean that the probability of an extreme event occurring lies far out in the distributions tail. Using a crude example, if the normal distribution gave a probability of an extreme event occurring of 0.05% and the “best case” scenario of this event occurring 300 years, then using the Cauchy distribution one would find that the probability of occurring would be around 5% and now the “best case” scenario might have been reduced to only 63 years. Thus giving extreme events more of a likelihood of occurring. The mean, variance, and higher order moments are not defined (they are infinite); this implies that n and theta cannot be related to a mean and standard deviation. The Cauchy distribution is related to the Student’s t distribution T ~ CAU(1,0) when v = 1. In 1963, Benoit Mandelbrot was the first to suggest that stock returns follow a stable distribution, in particular, the Cauchy distribution.(Mandelbrot, 1963) His work was validated by Eugene Fama in 1965.(Fama, 1965) Recent research by Nassim Taleb came to the same conclusion as Mandelbrot, saying that stock returns follow a Cauchy distribution, as reported in his New York Times best-seller book “The Black Swan”.(Taleb, 2010)
Laplace Distribution
In probability theory and statistics, the Laplace distribution is a continuous probability distribution named after Pierre-Simon Laplace. It is also sometimes called the double exponential distribution, because it can be thought of as two exponential distributions (with an additional location parameter) spliced together along the abscissa, although the term is also sometimes used to refer to the Gumbel distribution. The difference between two independent identically distributed exponential random variables is governed by a Laplace distribution, as is a Brownian motion evaluated at an exponentially distributed random time. Increments of Laplace motion or a variance gamma process evaluated over the time scale also have a Laplace distribution.
The probability density function of the Cauchy distribution is given by
f(x) = 1/2b * exp(-|x-µ|/b)
Here, µ is a location parameter and b > 0, which is sometimes referred to as the "diversity", is a scale parameter. If µ = 0 and b=1, the positive half-line is exactly an exponential distribution scaled by 1/2.
The probability density function of the Laplace distribution is also reminiscent of the normal distribution; however, whereas the normal distribution is expressed in terms of the squared difference from the mean µ, the Laplace density is expressed in terms of the absolute difference from the mean. Consequently, the Laplace distribution has fatter tails than the normal distribution.
Gaussian Kernel Density Estimation
In statistics, kernel density estimation (KDE) is the application of kernel smoothing for probability density estimation, i.e., a non-parametric method to estimate the probability density function of a random variable based on kernels as weights. KDE is a fundamental data smoothing problem where inferences about the population are made, based on a finite data sample. In some fields such as signal processing and econometrics it is also termed the Parzen–Rosenblatt window method, after Emanuel Parzen and Murray Rosenblatt, who are usually credited with independently creating it in its current form. One of the famous applications of kernel density estimation is in estimating the class-conditional marginal densities of data when using a naive Bayes classifier, which can improve its prediction accuracy.
Let (x1, x2, ..., xn) be independent and identically distributed samples drawn from some univariate distribution with an unknown density f at any given point x. We are interested in estimating the shape of this function f. Its kernel density estimator is:
f(x) = 1/nh * sum(k(x-xi)/h, n)
where K is the kernel—a non-negative function—and h > 0 is a smoothing parameter called the bandwidth. A kernel with subscript h is called the scaled kernel and defined as Kh(x) = 1/h K(x/h). Intuitively one wants to choose h as small as the data will allow; however, there is always a trade-off between the bias of the estimator and its variance.
The probability density function of Gaussian Kernel Density Estimation is given by
f(x) = 1 / (v * 2*pi)^0.5 * exp(-(x - m)^2 / (2 * v))
where v is the bandwidth component h squared
KDE Bandwidth Estimation
Bandwidth selection strongly influences the estimate obtained from the KDE (much more so than the actual shape of the kernel). Bandwidth selection can be done by a "rule of thumb", by cross-validation, by "plug-in methods" or by other means. The default is Scott's Rule.
Scott's Rule
n ^ (-1/(d+4))
with n the number of data points and d the number of dimensions.
In the case of unequally weighted points, this becomes
neff^(-1/(d+4))
with neff the effective number of datapoints.
Silverman's Rule
(n * (d + 2) / 4)^(-1 / (d + 4))
or in the case of unequally weighted points:
(neff * (d + 2) / 4)^(-1 / (d + 4))
With a set of weighted samples, the effective number of datapoints neff
is defined by:
neff = sum(weights)^2 / sum(weights^2)
Manual input
You can provide your own bandwidth input. This is useful for those who wish to run external to TradingView Grid Search Machine Learning algorithms to solve for the bandwidth per ticker.
Inverse CDF of KDE Calculation
1. Create an array of random normalized numbers, using an inverse CDF of a normal distribution of mean of zero
and standard deviation one
2. Create a line space range of values -3 to 3
3. Create a Gaussian Kernel Density Estimate CDF by iterating over the line space array created in step 2. For each line space item, find the mean difference between the line space and the random variable divided by the bandwidth.
4. Derive test statistics from the resulting KDE inverse CDF, we use cubic spline interpolation to solve for line space value for a given alpha computed using the user selected probability percent value in the settings.
Volatility
Close-to-Close
Close-to-Close volatility is a classic and most commonly used volatility measure, sometimes referred to as historical volatility.
Volatility is an indicator of the speed of a stock price change. A stock with high volatility is one where the price changes rapidly and with a bigger amplitude. The more volatile a stock is, the riskier it is.
Close-to-close historical volatility calculated using only stock's closing prices. It is the simplest volatility estimator. But in many cases, it is not precise enough. Stock prices could jump considerably during a trading session, and return to the open value at the end. That means that a big amount of price information is not taken into account by close-to-close volatility.
Despite its drawbacks, Close-to-Close volatility is still useful in cases where the instrument doesn't have intraday prices. For example, mutual funds calculate their net asset values daily or weekly, and thus their prices are not suitable for more sophisticated volatility estimators.
Parkinson
Parkinson volatility is a volatility measure that uses the stock’s high and low price of the day.
The main difference between regular volatility and Parkinson volatility is that the latter uses high and low prices for a day, rather than only the closing price. That is useful as close to close prices could show little difference while large price movements could have happened during the day. Thus Parkinson's volatility is considered to be more precise and requires less data for calculation than the close-close volatility.
One drawback of this estimator is that it doesn't take into account price movements after market close. Hence it systematically undervalues volatility. That drawback is taken into account in the Garman-Klass's volatility estimator.
Garman-Klass
Garman Klass is a volatility estimator that incorporates open, low, high, and close prices of a security.
Garman-Klass volatility extends Parkinson's volatility by taking into account the opening and closing price. As markets are most active during the opening and closing of a trading session, it makes volatility estimation more accurate.
Garman and Klass also assumed that the process of price change is a process of continuous diffusion (geometric Brownian motion). However, this assumption has several drawbacks. The method is not robust for opening jumps in price and trend movements.
Despite its drawbacks, the Garman-Klass estimator is still more effective than the basic formula since it takes into account not only the price at the beginning and end of the time interval but also intraday price extremums.
Researchers Rogers and Satchel have proposed a more efficient method for assessing historical volatility that takes into account price trends. See Rogers-Satchell Volatility for more detail.
Rogers-Satchell
Rogers-Satchell is an estimator for measuring the volatility of securities with an average return not equal to zero.
Unlike Parkinson and Garman-Klass estimators, Rogers-Satchell incorporates drift term (mean return not equal to zero). As a result, it provides a better volatility estimation when the underlying is trending.
The main disadvantage of this method is that it does not take into account price movements between trading sessions. It means an underestimation of volatility since price jumps periodically occur in the market precisely at the moments between sessions.
A more comprehensive estimator that also considers the gaps between sessions was developed based on the Rogers-Satchel formula in the 2000s by Yang-Zhang. See Yang Zhang Volatility for more detail.
Yang-Zhang
Yang Zhang is a historical volatility estimator that handles both opening jumps and the drift and has a minimum estimation error.
We can think of the Yang-Zhang volatility as the combination of the overnight (close-to-open volatility) and a weighted average of the Rogers-Satchell volatility and the day’s open-to-close volatility. It considered being 14 times more efficient than the close-to-close estimator.
Garman-Klass-Yang-Zhang
Garman Klass is a volatility estimator that incorporates open, low, high, and close prices of a security.
Garman-Klass volatility extends Parkinson's volatility by taking into account the opening and closing price. As markets are most active during the opening and closing of a trading session, it makes volatility estimation more accurate.
Garman and Klass also assumed that the process of price change is a process of continuous diffusion (geometric Brownian motion). However, this assumption has several drawbacks. The method is not robust for opening jumps in price and trend movements.
Despite its drawbacks, the Garman-Klass estimator is still more effective than the basic formula since it takes into account not only the price at the beginning and end of the time interval but also intraday price extremums.
Researchers Rogers and Satchel have proposed a more efficient method for assessing historical volatility that takes into account price trends. See Rogers-Satchell Volatility for more detail.
Exponential Weighted Moving Average
The Exponentially Weighted Moving Average (EWMA) is a quantitative or statistical measure used to model or describe a time series. The EWMA is widely used in finance, the main applications being technical analysis and volatility modeling.
The moving average is designed as such that older observations are given lower weights. The weights fall exponentially as the data point gets older – hence the name exponentially weighted.
The only decision a user of the EWMA must make is the parameter lambda. The parameter decides how important the current observation is in the calculation of the EWMA. The higher the value of lambda, the more closely the EWMA tracks the original time series.
Standard Deviation of Log Returns
This is the simplest calculation of volatility. It's the standard deviation of ln(close/close(1))
Pseudo GARCH(2,2)
This is calculated using a short- and long-run mean of variance multiplied by θ.
θavg(var ;M) + (1 − θ)avg(var ;N) = 2θvar/(M+1-(M-1)L) + 2(1-θ)var/(M+1-(M-1)L)
Solving for θ can be done by minimizing the mean squared error of estimation; that is, regressing L^-1var - avg(var; N) against avg(var; M) - avg(var; N) and using the resulting beta estimate as θ.
Manual
User input % value
Drift
Cost of Equity / Required Rate of Return (CAPM)
Standard Capital Asset Pricing Model used to solve for Cost of Equity of Required Rate of Return. Due to the processor overhead required to compute CAPM, the user must plug in values for beta, alpha, and expected market return using Loxx's CAPM indicator series. Used for stocks.
Mean of Log Returns
Average of the log returns for the underlying ticker over the user selected period of evaluation. General purpose use.
Risk-free Rate (r)
10, 20, or 30 year bond yields for the user selected currency. Under equilibrium the drift of the empirical GBM must be the risk-free rate. If the price process is a GBM under the empirical measure, then a consequence of viability is that it is also a GBM under an equivalent (risk-neutral) measure.
Risk-free Rate adjusted for Dividends (r-q)
This is the Risk-free Rate minus the Dividend Yield.
Forex (r-rf)
This is derived from the Garman and Kohlhagen (1983) modified Black-Scholes model can be used to price European currency options. This is simply the diffeence between Risk-free Rate of the Forex currency in question. This is used for Forex pricing.
Martingale (0)
When the drift parameter is 0, geometric Brownian motion is a martingale. In probability theory, a martingale is a sequence of random variables (i.e., a stochastic process) for which, at a particular time, the conditional expectation of the next value in the sequence is equal to the present value, regardless of all prior values. Typically used for futures or margined futures.
Manual
User input % value
Additional notes
Indicator can be used on any timeframe. The T (time) variable used to annualize volatility and inside the GBM formula is automatically calculated based on the timeframe of the chart.
Confidence interval of volatility is calculated using an inverse CDF of a Chi-Squared Distribution. You change the volatility input used to create the probability cones from from realized volatility to upper or lower confidence levels of volatility to better visualize extremes of range. Generally, you'd stick with realized volatility.
Days per year should be 252 for everything but Cryptocurrency. These are days trader per year. Maximum future forecast bars is 365. Forecast bars are limited to the maximum of selected days per year.
Includes the ability to overlay option expiration dates by bars to see the range of prices for that date at that bar
You can select confidence % you wish for both the cone in general and the volatility. There are three levels for the cones, this will show on the three different levels up and down on the chart.
The table on the right displays important calculated values so you don't have to remember what they are or what settings you selected
All values are annualized no matter the timeframe.
Additional distributions and measures of volatility and drift will be added in future releases.
KVKZKVKZ = KV'S KILLZONES
This Indicator, break the charts into session: ASIAN, LONDON, NEW YORK.
-The 1st two vertical lines (red) indicates the ASIAN RANGE
-The 2nd two vertical lines (red & green) indicates the LONDON session
-The 3rd two vertical lines (green & blue) indicates the NEW YORK session
-The will be no trading in between the two red vertical lines
-A fake move is expected to happen in between the 2nd red vertical line and green line, this fake move is known as the JUDAS SWING by ICT, you can YouTube Judas Swing and check out his concepts
-There are two automatically moving horizontal lines (orange), that plots the ASIAN high and lows, these levels are expected to be manipulated in the London session, and this is called the Judas Swing
-the purple lines are known as Institution Zones, basically just levels 30pips above and below the ASIAN range
-this indicator works well with GBPUSD, EURUSD, USDCHF
-this indicator doesn’t work well with USDJPY, AUDUSD, NZDUSD
INPUTS:
HOUR 1: 17
MIN 1 : 0
HOUR 2: 0
MIN 2 : 0
HOUR 3: 6
MIN 3 : 0
HOUR 4: 12
MIN 1 : 0
THIS INDICATOR IS NOT A HOLY GRAIL, BUT IF YOU CAN READ PRICE ACTION WELL, THESE SESSIONS BREAK DOWN COULD BE VERY USEFULL.
Extras:
dot = dotted lines
dsh = dashed lines
sol = solid lines
NOTE: time has to be set to NY time.
Anchored OBV SpaceManBTC Anchored OBV SpaceManBTC
The On Balance Volume indicator (OBV) is used in technical analysis to measure buying and selling pressure.
On Balance volume is primarily used to confirm or identify overall price trends or to anticipate price movements after divergences.
Anchored On Balance Volume unlike traditional OBV resets on your specified sessions: D, W, M, 3M, 4M, 6M, 1Y.
The actionable data is more useful HTF to see a potential long term trend change relative to the session reset chosen.
User can choose to disable highlightable session reset.
Recommended settings:
Daily tf with 3Month session pretty useful for the run so far. But please experiment away and share your results!
ToDo:
Non Reset Functionality,
Perhaps more timeframes
Musashi_BattleTimer-Musashi_Battle Timer-
Four financial sessions presented in a compact way that suits my trading style.
The indicator will do the following:
- Plot Background color separating sessions:
- Highlight Gray since Tokyo open to London open, then a gap.
- Highlight Red from London open to NY open, then a gap.
- Highlight Red from NY open to London Close, then a gap
- Highlight Gray from London close to Sidney open
- Sidney open to Tokio open NO highlight.
- Plot dotted limits for the highest and lowest price of the day.
- Plot a range for the Asian session (Sydney + Tokyo).
- Plot a few day's ADR (Average Daily Range) and extend the current one.
Have a good day.
MAGGIFX - TimingsThis custom-built indicator was created by Maggifx, author of the Market Magnetism Theorem (TMM), to give traders a strategic visual edge across the key trading sessions: Asia, London, and New York.
🔍 What does this indicator do?
Precisely displays session boxes adjusted to UTC-3 time zone.
Highlights the high, low, and midline of the Asian range.
Marks essential intraday reference points like start of day, 5:30, 7:30, and 12:00, enhancing your ability to track liquidity dynamics.
🧲 Inspired by the magnetic field of price, the indicator helps identify where liquidity is concentrated before institutional players step in — revealing the dominant poles of the day and forecasting algorithm-driven imbalances.
⚙️ Fully customizable:
Easily adjust colors, transparencies, and session times to suit your personal trading style.