Multi-time Frame Trend DirectionThis is a multi-time frame trend direction indicator. It indicates whether the trend is ascending or descending across multiple time frames: 5M, 15M, 30M, 1H, 4H, and Daily.
The logic is based on the positions of EMA12 and EMA26.
These EMAs are smoothed with an SMA.
Why 12 and 26, and why are they smoothed with 9?
As you might surmise, these parameters are derived from the MACD.
I recommend not altering the parameters, but the choice is yours. Enjoy.
Multitimeframe
Time Bound Trading SessionsTime Bound Trading Sessions allows to add time bound conditions to your trading sessions given a date range , a time range and/or days of the week .
This indicator can be very handy if you want to control your trading sessions along those three time boundaries, applying them together and/or separately.
Feel free to reuse this code in your own strategy, and leverage the inSession condition as needed.
Features
+ It allows for date range start and/or end to be set.
+ It allows for session time range to be set.
+ It allows for days of the week to be set.
+ It applies chart background color if we are not within the given time bound session parameters.
+ It includes turn on/off functionality.
Settings
Date Range
+ {Start} checkbox: turns on/off start date
+ {Start} date/time
+ {End} checkbox: turns on/off end date
+ {End} date/time
Time Range
+ {Session} checkbox: turns on/off session time range
+ {Session} time range
Days
+ {M} checkbox: turns on/off Mondays
+ {T} checkbox: turns on/off Tuesdays
+ {W} checkbox: turns on/off Wednesdays
+ {T} checkbox: turns on/off Thursdays
+ {F} checkbox: turns on/off Fridays
+ {S} checkbox: turns on/off Saturdays
+ {S} checkbox: turns on/off Sundays
Vanitati's Market Scope=========================================================
How to Use the Indicator
=========================================================
Configuration: Begin by setting the session times to match your trading interests. Customize the colors and styles according to your preferences.
Observation: Watch for the high and low markers of each session to form the initial balance. Note how the price moves in relation to these levels.
Action: Pay special attention to God Candles and engulfing patterns, especially when they coincide with high volume. These may offer trading signals in line with your strategy.
Adjustment: Regularly review and adjust the settings (e.g., session times, lookback periods) based on market conditions and your trading performance.
=========================================================
Initial Balance (IB) Settings:
=========================================================
Purpose: Marks the high and low of a specific trading session to indicate the initial range of market movement.
Usage: Customize session times for New York (NY), London (LN), and Tokyo (TK) to see the initial balance of each. Colors for the high, low, and mid-point lines can be adjusted.
Practical Application: Traders can use these lines to gauge market volatility or breakouts outside of these initial ranges.
=========================================================
Session Settings and Session Highlight Boxes
=========================================================
Purpose: Highlights trading sessions with customizable background colors and border styles, allowing for a quick visual reference of market sessions.
Usage: Set the times for NY, London, and Tokyo sessions along with desired background colors to have these periods visually marked on the chart.
Practical Application: Helps in identifying the overlap between major market sessions and potential increases in trading volume and volatility.
=========================================================
God Candle Settings
=========================================================
Purpose: Identifies significantly large and voluminous candles, known as "God Candles", which could signal strong market movements.
Usage: Adjust the lookback period, line length, and volume criteria to define what constitutes a God Candle. These settings also allow for the display of diamonds on bars that meet certain criteria but are not classified as God Candles.
Practical Application: These candles can signal strong buying or selling pressure and might be used as potential entry or exit points based on the trader's strategy.
=========================================================
Additional Features
=========================================================
Session Time Filters: Allows for filtering signals based on the time of day, useful for focusing on specific market hours.
Engulfing Pattern Detection: The script includes logic to identify bullish and bearish engulfing patterns, adding another layer of analysis for potential trading opportunities.
Volume Analysis: Incorporates volume into the analysis of God Candles and engulfing patterns to identify significant market movements.
EMA Cross Dashboard | Flux Charts💎 GENERAL OVERVIEW
Introducing our new Exponential Moving Average (EMA) Cross Dashboard! This dashboard let's you select a source for the calculation of the EMA of it, then let's you enter 2 lengths for up to 5 timeframes, plotting their crosses in the chart.
Features of the new EMA Cross Dashboard :
Shows EMA Crosses Across Up To 5 Different Timeframes.
Select Any Source, Including Other Indicators.
Customizable Dashboard.
📌 HOW DOES IT WORK ?
EMA is a widely used indicator within trading community, it is similar to a Simple Moving Average (SMA) but places more weight on recent prices, making it more reactive to current trends. Crosses of EMA lines can be helpful to determine strong bullish & bearish movements of an asset. This indicator shows finds crosses across 5 different timeframes in a dashboard and plots them in your chart for ease of use.
🚩UNIQUENESS
This dashboard cuts through the hassle of manual EMA cross calculations and plotting. It offers flexibility by allowing various data sources (even custom indicators) and customization through enabling / disabling individual timeframes. The clear visualization lets you see EMA crosses efficiently.
⚙️SETTINGS
1. Timeframes
You can set up to 5 timeframes & 2 lenghts to detect crosses for each timeframe here. You can also enable / disable them.
2. General Configuration
EMA Source -> You can select the source for the calculation of the EMA here. You can select sources from other indicators as well as more general sources like close, high and low price.
PAT Screener | Flux Charts💎 GENERAL OVERVIEW
Introducing our new Price Action Toolkit (PAT) Screener! This screener can spot trading opportunities that Price Action Toolkit offers across 8 different tickers! We believe that this screener will help you take a glimpse of the current state of the market much easier.
Features of the new Price Action Toolkit (PAT) Screener :
Finds Latest Across 8 Tickers:
Order Blocks
Breaker Blocks
Fair Value Gaps (FVG)
Inversion FVGs
Market Structures (BOS, CHoCH, CHoCH+)
Liquidity Zones
Liquidity Grabs
Premium / Discount Zones
Shows Additional Information Like :
Strength
Retests
(Bullish & Bearish) Volume
Consumption
Also :
All Features Support Tuning
Customizable Theme
📌 HOW DOES IT WORK ?
1. Order Blocks
Order blocks occur when there is a high amount of market orders exist on a price range. It is possible to find order blocks using specific formations on the chart.
The high & low volume of order blocks should be taken into consideration while determining their strengths. The determination of the high & low volume of order blocks are similar to FVGs, in a bullish order block, the high volume is the last 2 bars' total volume, while the low volume is the oldest bar's volume. In a bearish order block scenario, the low volume becomes the last 2 bars' total volume.
2. Breaker Blocks
Breaker blocks form when an order block fails, or "breaks". It is often associated with market going in the opposite direction of the broken order block, and they can be spotted by following order blocks and finding the point they get broken, i.e. price goes below a bullish order block.
The volume of a breaker block is simply the total volume of the bar that the original order block is broken. Often the higher the breaking bar's volume, the stronger the breaker block is.
The strength of Order & Breaker Blocks are calculated by the size of the block to the Average True Range (ATR) of the chart.
3. Fair Value Gaps
Fair value gaps often occur when there is an imbalance in the market, and can be spotted with a specific formation on the chart.
The volume when the FVG occurs plays an important role when determining the strength of it, so we've placed two bars on the FVG zone, indicating the high & low volumes of the FVG. The high volume is the total volume of the last two bars on a bullish FVG, while the low volume is - of the FVG. For a bearish FVG, the total volume of the last two bars is the low volume. The indicator can also detect FVGs that exist in other timeframes than the current chart.
4. Inversion Fair Value Gaps
A Fair Value Gap generally occur when there is an imbalance in the market. They can be detected by specific formations within the chart. An Inverse Fair Value Gap is when a FVG becomes invalidated, thus reversing the direction of the FVG.
IFVGs get consumed when a Close / Wick enters the IFVG zone. Check this example:
5. Market Structures
Sometimes specific market structures form and break as the market fills buy & sell orders. Formed Change of Character (CHoCH) and Break of Structure (BOS) often mean that market will change direction, and they can be spotted by inspecting low & high pivot points of the chart.
The number of times the chart recently had a BOS is displayed between brackets, Ex : (3)
6. Liquidity Zones
Buyside & Sellside Liquidity zones are where most traders place their take-profits and stop-losses in their long / short positions. They are spotted by using high & low pivot points on the chart.
7. Liquidity Grabs
Liquidity grabs occur when one of the latest pivots has a false breakout. Then, if the wick to body ratio of the bar is higher than 0.5 (can be changed from the settings) a liquidity grab has occurred.
8. Premium & Discount Zones
The premium zone is a zone that is over the fair value of the asset's price, and the discount zone is the opposite. They are formed by the latest high & low pivot points.
If the latest close price is outside the Premium or Discount zone, you will see "Premium ⬆️" or "Discount ⬇️". These mean that the price is currently higher than the premium zone or lower than the discount zone.
🚩UNIQUENESS
This screener offers a comprehensive dashboard for traders, combining multiple analytical elements with customizable settings to aid in decision-making across different tickers and timeframes. We believe that this will help traders spot trading opportunities much easier by providing crucial information in a single dashboard. Our new screener contains of common elements like Order & Breaker Blocks, Fair Value Gaps & IFVGs as well as rather unique elements like Liquidity Grabs . With the use of up to 8 tickers & timeframes , you can easily take a look at the bigger picture of the market. We recommend reading the "How Does It Work" section of the description to get a better understanding about how this indicator is unique to others.
⚙️SETTINGS
1. Tickers
You can set up to 8 tickers for the screener to scan here. You can also enable / disable them and set their individual timeframes.
You can enable / disable Retests, Strength, Consumption and (Bullish & Bearish) Volume for :
Order Blocks (Retests, Strength, Bullish & Bearish Volume)
Breaker Blocks (Retests, Strength, Volume)
Fair Value Gaps (Retests, Consumption, Strength, Bullish & Bearish Volume)
Inversion Fair Value Gaps (Retests, Consumption, Strength, Volume)
2. Order Blocks
Enabled -> Enables / Disables Order Blocks
Zone Invalidation -> Select between Wick & Close price for Order Block Invalidation.
Swing Length -> Swing length is used when finding order block formations. Smaller values will result in finding smaller order blocks.
3. Breaker Blocks
Enabled -> Enables / Disables Breaker Blocks
Zone Invalidation -> Select between Wick & Close price for Breaker Block Invalidation.
4. Fair Value Gaps
Enabled -> Enables / Disables Fair Value Gaps
Zone Invalidation -> Select between Wick & Close price for FVG Zone Invalidation.
Zone Filtering -> With "Average Range" selected, algorithm will find FVG zones in comparison with average range of last bars in the chart. With the "Volume Threshold" option, you may select a Volume Threshold % to spot FVGs with a larger total volume than average.
FVG Detection -> With the "Same Type" option, all 3 bars that formed the FVG should be the same type. (Bullish / Bearish). If the "All" option is selected, bar types may vary between Bullish / Bearish.
Detection Sensitivity -> You may select between Low, Normal or High FVG detection sensitivity. This will essentially determine the size of the spotted FVGs, with lower sensitivities resulting in spotting bigger FVGs, and higher sensitivities resulting in spotting all sizes of FVGs.
5. Inversion Fair Value Gaps
Zone Invalidation -> Select between Wick & Close price for IFVG Zone Invalidation. This setting also switches the type for IFVG consumption.
6. Market Structures
Break Of Structure (BOS) -> If the current structure of the market is broken in a bullish or bearish direction, it will be displayed.
Change Of Character (CHoCH) -> If the market shifts into another direction, it will be displayed.
Change Of Character+ (CHoCH+) -> This will display Change Of Characters detected with higher sensitivity if enabled.
7. Liquidity Zones
Buyside Liquidity -> Enables / Disables Buyside Liquidity
Sellside Liquidity -> Enables / Disables Sellside Liquidity
8. Liquidity Grabs
Pivot Length -> This setting determines the range of the pivots. This means a candle has to have the highest / lowest wick of the previous X bars and the next X bars to become a high / low pivot.
Wick-Body Ratio -> After a pivot has a false breakout, the wick-body ratio of the latest candle is tested. The resulting ratio must be higher than this setting for it to be considered as a liquidity grab.
9. Premium & Discount Zones
Enabled -> Enables / Disables Premium & Discount Zones.
10. Style
You can customize the visual looks of the screener here.
[AlbaTherium] MTF External Ranges Analysis - ERA-Orion for SMC MTF External Ranges Analysis - ERA - Orion for Smart Money Concepts
Introduction:
The MTF External Ranges Analysis - ERA - Orion offers enhanced insights into multi-timeframe external structure points, swing structure points, POIs (Points of Interest), and order blocks (OB) . By incorporating this enhancement, your multi-timeframe analysis are streamlined, simplifying the process and reducing chart workload, no need for manual chart drawing anymore, stay focus on Low Time Frame and get High Time Frame insights in one single Time frame.
This identification process remains effective even when focusing on Lower Time Frames (LTF), providing detailed insights without sacrificing the broader market perspective.
The MTF External Ranges Analysis - ERA – Orion is specifically designed to be used in conjunction with OptiStruct™ Premium for Smart Money Concepts . This strategic combination enhances the workflow of identifying optimal entry points. OptiStruct acts as the analysis tool for Lower Time Frames (LTF), zeroing in on immediate interest areas, while Orion expands this analysis to Higher Time Frames (HTF), providing a broader view of market trends and importants key levels . The integration of Orion with OptiStruct seamlessly merges LTF and HTF analyses, ensuring a thorough understanding of market dynamics for informed and strategic decision-making. This toolkit in one package assembly is pivotal for traders relying on Smart Money Concepts, offering unmatched clarity and actionable insights to navigate the markets effectively.
This tool offers an advanced smart money technical analysis to improve your trading experience. It introduces four key concepts:
Main Features:
Entries Enhancements
Inducements HTF
High/Low Markings HTF
Multiple Timeframes and Confluences on Extreme, Dec and SMT Order Blocks
By integrating these concepts into one, traders can identify high-probability zones across multiple timeframes and develop a thorough understanding of market dynamics. These confluence zones enhance order block skills and potential, establishing them as essential pillars in smart money trading strategies and enabling traders to make more informed decisions.
Settings Overview:
HTF Settings Enable HTF Analysis
Select timeframe {Select or 4H Chart}
Labels Alignment for Lines and Boxes
Inside bar ranges HTF
Break of Structure /Change of Character HTF
Inducements HTF
High/Low Markings HTF
High/Low Sweeps HTF
Extreme Order Blocks HTF
Decisional Order Blocks HTF
Smart Money Traps HTF
IDM Demands and Supplies HTF
Historical Order Blocks HTF
OB Mitigation HTF {touch/ extended}
Understanding the Features:
Chapter 1: Entries Enhancements
In this chapter, we delve into strategies to refine trading entries, focusing on the multi-timeframe analysis of extreme or decisional order blocks in the High Time Frame timeframe as a key point of interest. We highlight the significance of transitioning to the Low Time Frame chart for observing pivotal shifts in market behavior. By examining these concepts, traders can gain deeper insights into market dynamics and make more informed entries decisions at critical junctures.
Practical Example:
We had an Order Block Extreme on the 1-hour timeframe, and currently, we are on the recommended chart for trade entry, which is the 5-minute timeframe. We are patiently waiting to observe a 5-minute ChoCh in the market to enter a buying position since it's an OB Extreme Demand on the 1-hour timeframe. Here, it's crucial and important to focus on the entry timeframe rather than checking what's happening in the higher timeframe. The indicator facilitates this task as it provides us with real-time perspective and visibility of everything happening in the higher timeframe.
Chapter 2: Inducements HTF
It is important and useful to be aware of the various liquidity points across the different timeframes we use; sometimes, a reliable entry point in the Lower Time Frame (LTF) may be surrounded by inducements. Consequently, this point becomes unreliable, and prior to the arrival of this functionality, such anomalies could not be detected, especially when focusing on the market in the LTF. From now on, there will be no more such issues.
Practical Example:
Suppose we identify an Order Block Extreme on the 5M timeframe, indicating a potential entry level. However, when we switch to the 5M timeframe to look for an entry point, we observe an accumulation of inducements around this Order Block coming from a higher timeframe, whether it's M15 or H1. This suggests a potential weakness in the entry point and significant market liquidity, which will act as a trap zone. Before the introduction of this feature, we might have missed this crucial observation, but now we can detect these anomalies and adjust our strategy accordingly.
The only practical way to see theses confluences is to use this Indicator, see the example below
Chapter 03: High/Low – Bos - ChoCh Markings HTF
The High/Low Markings HTF feature in the MTF External Ranges Analysis - ERA - Orion provides a comprehensive view into the market's heartbeat across different timeframes, right from within the convenience of the Lower Time Frame (LTF). It meticulously highlights pivotal shifts, allowing traders to seamlessly discern market sentiment and anticipate potential price reversals without needing to toggle between multiple charts. This innovation ensures that critical market movements and sentiment across various timeframes are visible and actionable from a single, focused LTF perspective, enhancing decision-making and strategic planning in trading activities.
Understanding High/Low Markings in HTF Analysis
High/Low Markings in High Time Frame (HTF) analysis mark the market's extremities within a given period, pinpointing potential areas for reversals or continuation and delineating crucial support and resistance levels. These markings are not arbitrary but represent significant market responses, serving as essential indicators for traders and analysts to gauge market momentum and sentiment.
The Role of HTF in Market Analysis
HTF analysis extends a comprehensive view over market movements, distinguishing between ephemeral fluctuations and substantial trend shifts. By scrutinizing these high and low points across wider time frames, analysts can unravel the underlying market momentum, enabling more strategic, informed trading decisions.
Identifying High/Low Markings
Identifying these crucial points entails detailed chart analysis over extended durations—daily, weekly, or monthly. The search focuses on the utmost highs and lows within these periods, which are more than mere points on a chart. They are significant market levels that have historically elicited robust market reactions, serving as key indicators for future market behavior.
Real-world Example:
Chapter 04: Multiple Timeframes and Confluences on Extreme, Dec and SMT Order Blocks Across HTF
The Orion indicator serves as a bridge between the multiple dimensions of the market, enabling a unified and strategic interpretation of potential movements. It's an indispensable tool for those seeking to capitalize on major opportunity zones, where the convergence of diverse perspectives creates ideal conditions for significant market movements.
Designed to navigate through the data of different timeframes and market analysis, Orion provides a clear and consolidated view of major points of interest. With this indicator, traders can not only spot opportunity zones where consensus is strongest but also adjust their strategies based on the dynamic interaction of various market participants, all while remaining within the Lower Time Frame (LTF).
Conclusion:
MTF External Ranges Analysis - ERA - Orion for Smart Money Concepts as “ The Orion ” indicator captures consensus among scalpers, day traders , swing traders, and investors, turning key areas into major opportunities. It allows for precise identification of areas of interest by analyzing the convergence of actions from various market participants. In short, Orion is crucial for detecting and leveraging the most promising points of convergence in the market.
This identification occurs even while focusing on Lower Time Frames (LTF), allowing for detailed insights without losing the broader market perspective.
This document provides an extensive overview of MTF External Ranges Analysis - ERA - Orion , emphasizing its importance in comprehending market dynamics and utilizing essential smart money concepts trading principles.
SMA Cross Dashboard | Flux Charts💎 GENERAL OVERVIEW
Introducing our new Simple Moving Average (SMA) Cross Dashboard! This dashboard let's you select a source for the calculation of the SMA of it, then let's you enter 2 lengths for up to 5 timeframes, plotting their crosses in the chart.
Features of the new SMA Cross Dashboard :
Shows SMA Crosses Across Up To 5 Different Timeframes.
Select Any Source, Including Other Indicators.
Customizable Dashboard.
📌 HOW DOES IT WORK ?
SMA is a widely used indicator within trading community, it simply works by taking the mathematical average of a source by desired length. Crosses of SMA lines can be helpful to determine strong bullish & bearish movements of an asset. This indicator shows finds crosses across 5 different timeframes in a dashboard and plots them in your chart for ease of use.
🚩UNIQUENESS
This dashboard cuts through the hassle of manual SMA cross calculations and plotting. It offers flexibility by allowing various data sources (even custom indicators) and customization through enabling / disabling individual timeframes. The clear visualization lets you see SMA crosses efficiently.
⚙️SETTINGS
1. Timeframes
You can set up to 5 timeframes & 2 lenghts to detect crosses for each timeframe here. You can also enable / disable them.
2. General Configuration
SMA Source -> You can select the source for the calculation of the SMA here. You can select sources from other indicators as well as more general sources like close, high and low price.
Multi-Timeframe SMA Crossover Indicator## Description of the "Multi-Timeframe SMA Crossover Indicator" script
### Introduction:
The "Multi-Timeframe SMA Crossover Indicator" script is a technical indicator created in Pine Script for the TradingView platform. It is a technical indicator that helps traders identify signals of simple moving average (SMA) crossovers on different timeframes.
### Features:
1. **Multi-Timeframe Analysis:** The script covers various timeframes, allowing traders to analyze SMA crossover signals on different time scales.
2. **SMA Crossover Signals:** The script identifies moments when the crossover of 20 and 40 simple moving averages occurs on timeframes ranging from 1 minute to 120 minutes.
3. **Visualization:** It visualizes SMA crossover signals on the chart, making it easy for traders to identify trend reversal points.
### How to Use:
1. **Interpreting Signals:** A positive signal (green) indicates that the SMA crossover suggests a potential uptrend, while a negative signal (red) suggests a potential downtrend.
2. **Multiple Confirmation:** Traders can seek trend confirmation by analyzing signals on different timeframes. Confirming signals on multiple timeframes can increase confidence in the trade.
### Application:
The "Multi-Timeframe SMA Crossover Indicator" script can be used as a supplementary tool in making investment decisions in financial markets, especially when analyzing trends and identifying entry or exit points.
### Notes:
1. The script is based on simple moving averages (SMA), which can be useful for traders using trend analysis strategies.
2. Investors should use other technical analysis indicators and tools in conjunction with this indicator to obtain a more comprehensive market analysis.
### Conclusion:
The "Multi-Timeframe SMA Crossover Indicator" script is a useful tool for traders who want to analyze trend changes on different timeframes. By using this tool, investors can make better-informed investment decisions in financial markets.
Higher-timeframe requests█ OVERVIEW
This publication focuses on enhancing awareness of the best practices for accessing higher-timeframe (HTF) data via the request.security() function. Some "traditional" approaches, such as what we explored in our previous `security()` revisited publication, have shown limitations in their ability to retrieve non-repainting HTF data. The fundamental technique outlined in this script is currently the most effective in preventing repainting when requesting data from a higher timeframe. For detailed information about why it works, see this section in the Pine Script™ User Manual .
█ CONCEPTS
Understanding repainting
Repainting is a behavior that occurs when a script's calculations or outputs behave differently after restarting it. There are several types of repainting behavior, not all of which are inherently useless or misleading. The most prevalent form of repainting occurs when a script's calculations or outputs exhibit different behaviors on historical and realtime bars.
When a script calculates across historical data, it only needs to execute once per bar, as those values are confirmed and not subject to change. After each historical execution, the script commits the states of its calculations for later access.
On a realtime, unconfirmed bar, values are fluid . They are subject to change on each new tick from the data provider until the bar closes. A script's code can execute on each tick in a realtime bar, meaning its calculations and outputs are subject to realtime fluctuations, just like the underlying data it uses. Each time a script executes on an unconfirmed bar, it first reverts applicable values to their last committed states, a process referred to as rollback . It only commits the new values from a realtime bar after the bar closes. See the User Manual's Execution model page to learn more.
In essence, a script can repaint when it calculates on realtime bars due to fluctuations before a bar's confirmation, which it cannot reproduce on historical data. A common strategy to avoid repainting when necessary involves forcing only confirmed values on realtime bars, which remain unchanged until each bar's conclusion.
Repainting in higher-timeframe (HTF) requests
When working with a script that retrieves data from higher timeframes with request.security() , it's crucial to understand the differences in how such requests behave on historical and realtime bars .
The request.security() function executes all code required by its `expression` argument using data from the specified context (symbol, timeframe, or modifiers) rather than on the chart's data. As when executing code in the chart's context, request.security() only returns new historical values when a bar closes in the requested context. However, the values it returns on realtime HTF bars can also update before confirmation, akin to the rollback and recalculation process that scripts perform in the chart's context on the open bar. Similar to how scripts operate in the chart's context, request.security() only confirms new values after a realtime bar closes in its specified context.
Once a script's execution cycle restarts, what were previously realtime bars become historical bars, meaning the request.security() call will only return confirmed values from the HTF on those bars. Therefore, if the requested data fluctuates across an open HTF bar, the script will repaint those values after it restarts.
This behavior is not a bug; it's simply the default behavior of request.security() . In some cases, having the latest information from an unconfirmed HTF bar is precisely what a script needs. However, in many other cases, traders will require confirmed, stable values that do not fluctuate across an open HTF bar. Below, we explain the most reliable approach to achieve such a result.
Achieving consistent timing on all bars
One can retrieve non-fluctuating values with consistent timing across historical and realtime feeds by exclusively using request.security() to fetch the data from confirmed HTF bars. The best way to achieve this result is offsetting the `expression` argument by at least one bar (e.g., `close [1 ]`) and using barmerge.lookahead_on as the `lookahead` argument.
We discourage the use of barmerge.lookahead_on alone since it prompts the function to look toward future values of HTF bars across historical data, which is heavily misleading. However, when paired with a requested `expression` that includes a one-bar historical offset, the "future" data the function retrieves is not from the future. Instead, it represents the last confirmed bar's values at the start of each HTF bar, thus preventing the results on realtime bars from fluctuating before confirmation from the timeframe.
For example, this line of code uses a request.security() call with barmerge.lookahead_on to request the close price from the "1D" timeframe, offset by one bar with the history-referencing operator [ ] . This line will return the daily price with consistent timing across all bars:
float htfClose = request.security(syminfo.tickerid, "1D", close , lookahead = barmerge.lookahead_on)
Note that:
• This technique only works as intended for higher-timeframe requests .
• When designing a script to work specifically with HTFs, we recommend including conditions to prevent request.security() from accessing timeframes equal to or lower than the chart's timeframe, especially if you intend to publish it. In this script, we included an if structure that raises a runtime error when the requested timeframe is too small.
• A necessary trade-off with this approach is that the script must wait for an HTF bar's confirmation to retrieve new data on realtime bars, thus delaying its availability until the open of the subsequent HTF bar. The time elapsed during such a delay varies with each market, but it's typically relatively small.
👉 Failing to offset the function's `expression` argument while using barmerge.lookahead_on will produce historical results with lookahead bias , as it will look to the future states of historical HTF bars, retrieving values before the times at which they're available in the feed. See the `lookahead` and Future leak with `request.security()` sections in the Pine Script™ User Manual for more information.
Evolving practices
The fundamental technique outlined in this publication is currently the only reliable approach to requesting non-repainting HTF data with request.security() . It is the superior approach because it avoids the pitfalls of other methods, such as the one introduced in the `security()` revisited publication. That publication proposed using a custom `f_security()` function, which applied offsets to the `expression` and the requested result based on historical and realtime bar states. At that time, we explored techniques that didn't carry the risk of lookahead bias if misused (i.e., removing the historical offset on the `expression` while using lookahead), as requests that look ahead to the future on historical bars exhibit dangerously misleading behavior.
Despite these efforts, we've unfortunately found that the bar state method employed by `f_security()` can produce inaccurate results with inconsistent timing in some scenarios, undermining its credibility as a universal non-repainting technique. As such, we've deprecated that approach, and the Pine Script™ User Manual no longer recommends it.
█ METHOD VARIANTS
In this script, all non-repainting requests employ the same underlying technique to avoid repainting. However, we've applied variants to cater to specific use cases, as outlined below:
Variant 1
Variant 1, which the script displays using a lime plot, demonstrates a non-repainting HTF request in its simplest form, aligning with the concept explained in the "Achieving consistent timing" section above. It uses barmerge.lookahead_on and offsets the `expression` argument in request.security() by one bar to retrieve the value from the last confirmed HTF bar. For detailed information about why this works, see the Avoiding Repainting section of the User Manual's Other timeframes and data page.
Variant 2
Variant 2 ( fuchsia ) introduces a custom function, `htfSecurity()`, which wraps the request.security() function to facilitate convenient repainting control. By specifying a value for its `repaint` parameter, users can determine whether to allow repainting HTF data. When the `repaint` value is `false`, the function applies lookahead and a one-bar offset to request the last confirmed value from the specified `timeframe`. When the value is `true`, the function requests the `expression` using the default behavior of request.security() , meaning the results can fluctuate across chart bars within realtime HTF bars and repaint when the script restarts.
Note that:
• This function exclusively handles HTF requests. If the requested timeframe is not higher than the chart's, it will raise a runtime error .
• We prefer this approach since it provides optional repainting control. Sometimes, a script's calculations need to respond immediately to realtime HTF changes, which `repaint = true` allows. In other cases, such as when issuing alerts, triggering strategy commands, and more, one will typically need stable values that do not repaint, in which case `repaint = false` will produce the desired behavior.
Variant 3
Variant 3 ( white ) builds upon the same fundamental non-repainting approach used by the first two. The difference in this variant is that it applies repainting control to tuples , which one cannot pass as the `expression` argument in our `htfSecurity()` function. Tuples are handy for consolidating `request.*()` calls when a script requires several values from the same context, as one can request a single tuple from the context rather than executing multiple separate request.security() calls.
This variant applies the internal logic of our `htfSecurity()` function in the script's global scope to request a tuple containing open and `srcInput` values from a higher timeframe with repainting control. Historically, Pine Script™ did not allow the history-referencing operator [ ] when requesting tuples unless the tuple came from a function call, which limited this technique. However, updates to Pine over time have lifted this restriction, allowing us to pass tuples with historical offsets directly as the `expression` in request.security() . By offsetting all items in a tuple `expression` by one bar and using barmerge.lookahead_on , we effectively retrieve a tuple of stable, non-repainting HTF values.
Since we cannot encapsulate this method within the `htfSecurity()` function and must execute the calculations in the global scope, the script's "Repainting" input directly controls the global `offset` and `lookahead` values to ensure it behaves as intended.
Variant 4 (Control)
Variant 4, which the script displays as a translucent orange plot, uses a default request.security() call, providing a reference point to compare the difference between a repainting request and the non-repainting variants outlined above. Whenever the script restarts its execution cycle, realtime bars become historical bars, and the request.security() call here will repaint the results on those bars.
█ Inputs
Repainting
The "Repainting" input (`repaintInput` variable) controls whether Variant 2 and Variant 3 are allowed to use fluctuating values from an unconfirmed HTF bar. If its value is `false` (default), these requests will only retrieve stable values from the last confirmed HTF bar.
Source
The "Source" input (`srcInput` variable) determines the series the script will use in the `expression` for all HTF data requests. Its default value is close .
HTF Selection
This script features two ways to specify the higher timeframe for all its data requests, which users can control with the "HTF Selection" input (`tfTypeInput` variable):
1) If its value is "Fixed TF", the script uses the timeframe value specified by the "Fixed Higher Timeframe" input (`fixedTfInput` variable). The script will raise a runtime error if the selected timeframe is not larger than the chart's.
2) If the input's value is "Multiple of chart TF", the script multiplies the value of the "Timeframe Multiple" input (`tfMultInput` variable) by the chart's timeframe.in_seconds() value, then converts the result to a valid timeframe string via timeframe.from_seconds() .
Timeframe Display
This script features the option to display an "information box", i.e., a single-cell table that shows the higher timeframe the script is currently using. Users can toggle the display and determine the table's size, location, and color scheme via the inputs in the "Timeframe Display" group.
█ Outputs
This script produces the following outputs:
• It plots the results from all four of the above variants for visual comparison.
• It highlights the chart's background gray whenever a new bar starts on the higher timeframe, signifying when confirmations occur in the requested context.
• To demarcate which bars the script considers historical or realtime bars, it plots squares with contrasting colors corresponding to bar states at the bottom of the chart pane.
• It displays the higher timeframe string in a single-cell table with a user-specified size, location, and color scheme.
Look first. Then leap.
Multi-Timeframe Momentum Indicator [Ox_kali]The Multi-Timeframe Momentum Indicator is a trend analysis tool designed to examine market momentum across various timeframes on a single chart. Utilizing the Relative Strength Index (RSI) to assess the market’s strength and direction, this indicator offers a multidimensional perspective on current trends, enriching technical analysis with a deeper understanding of price movements. Other oscillators, such as the MACD and StochRSI, will be integrated in future updates.
Regarding the operation with the RSI: when its value is below 50 for a given period, the trend is considered bearish. Conversely, a value above 50 indicates a bullish trend. The indicator goes beyond the isolated analysis of each period by calculating an average of the displayed trends, based on user preferences. This average, ranging from “Strong Down” to “Strong Up,” reflects the percentage of periods indicating a bullish or bearish trend, thus providing a precise overview of the overall market condition.
Key Features:
Multi-Timeframe Analysis : Allows RSI analysis across multiple timeframes, offering an overview of market dynamics.
Advanced Customization : Includes options to adjust the RSI period, the RSI trend threshold, and more.
Color and Transparency Options : Offers color styles for bullish and bearish trends, as well as adjustable transparency levels for personalized visualization.
Average Trend Display : Calculates and displays the average trend based on activated timeframes, providing a quick summary of the current market state.
Flexible Table Positioning : Allows users to choose the indicator’s display location on the chart for seamless integration.
List of Parameters:
RSI Period : Defines the RSI period for calculation.
RSI Up/Down Threshold: Threshold for determining bullish or bearish trends of the RSI.
Table Position: Location of the indicator’s display on the chart.
Color Style : Selection of the color style for the indicator.
Strong Down/Up Color (User) : Customization of colors for strong market movements.
Table TF Transparency : Adjustment of the transparency level for the timeframe table.
Show X Minute/Hour/Day/Week Trend : Activation of the RSI display for specific timeframes.
Show AVG : Option to display or not the calculated average trend.
the Multi-Timeframe Momentum Indicator , stands as a comprehensive tool for market trend analysis across various timeframes, leveraging the RSI for in-depth market insights. With the promise of future updates including the integration of additional oscillators like the MACD and StochRSI, this indicator is set to offer even more robust analysis capabilities.
Please note that the MTF-Momentum is not a guarantee of future market performance and should be used in conjunction with proper risk management. Always ensure that you have a thorough understanding of the indicator’s methodology and its limitations before making any investment decisions. Additionally, past performance is not indicative of future results.
HTF FVG and Wick Fill trackingImbalances in the charts are some of the clearest and most traded price areas. Two of the best and most used are fair value gaps FVGs and large candle wicks. In both of these price appears to move in such a way that most are left behind having 'missed' the move. But in reality price will often come back to these price points to re-balance and absorb the liquidity that was left behind.
This indicator takes these areas and makes viewing and tracking them clearer than ever. It does this, by first allowing the user to overlay a higher timeframe candle on the current chart. This in itself provides an in depth look at a higher timeframe candle both as it forms and in its final form.
Next the indicator identifies either the FVG or large wicks, on the chosen higher timeframe, all while the chart remains on a lower timeframe. As seen here the fair value gaps are clearly highlighted, taken from a 4 hour timeframe, while the actual chart is on 15 minutes. This allows the user even greater accuracy in identifying their key trading areas.
Utilizing the indicators unique feature, these areas can optionally be extended forward to the current timeframe and 'filled' in realtime. Areas that are filled to the users defined level, will be removed from the chart.
With supplementary settings for how much history to show, how large of a wick should be highlighted and complete control over the colour scheme, users will be able to track and understand the filling of imbalances like never before.
Volatility Filter v2VF v2 is a new iteration of my tool designed for traders who wish to gain a deeper understanding of market dynamics, specifically to distinguish periods of high volatility, which often correspond to strong market trends. By identifying these periods, traders can make more informed decisions, potentially leading to better trading outcomes.
Understanding Market Volatility:
At the heart of this script lies the concept of market volatility, a statistical measure reflecting the degree of variation in trading prices. Volatility is pivotal for traders; it provides insights into the market's emotional state, indicating periods of uncertainty or confidence. High volatility often correlates with strong trends, making it a critical indicator for trend-followers. By identifying when volatility crosses a certain threshold, traders can discern whether the market is likely to be in a trending phase or a more subdued, range-bound state.
How the Script Works:
The core functionality of the script revolves around a signal line that oscillates around a zero threshold. When the signal line is above zero, it indicates increased market volatility, suggesting the presence of a trend. The farther the oscillator deviates from zero, the stronger the implied trend. This mechanism enables traders to visually gauge market conditions and adjust their strategies accordingly.
Controlling the Indicator:
To cater to diverse trading styles and preferences, the script is equipped with several customizable settings:
Filter Threshold: This 'zero line' acts as the baseline for distinguishing between different volatility regimes. Crossing this threshold is a primary signal for changes in market volatility.
Moving Average Type: With over 30 types of moving averages to choose from, traders can select the one that best fits their analysis style. Each type offers a different perspective on price data, allowing for a tailored approach to trend identification.
Colorize Indicator: This feature enhances the visual representation of the indicator, making it easier to interpret. When enabled, the oscillator's color intensity varies with its proximity to the extremes, providing a quick visual cue about trend strength.
Advanced Settings – Length and Multiplier:
The script introduces an innovative approach to time frame analysis through its length and multiplier settings:
Length: This parameter sets the base period for all metrics within the script, similar to traditional indicators.
Multiplier: This unique feature differentiates the script by incorporating three distinct timeframes into the analysis: a lower timeframe, the main (current) timeframe, and a higher timeframe. The multiplier adjusts these timeframes relative to the main one. For instance, with a daily main timeframe and a multiplier of 2, the lower timeframe would be 12 hours, and the higher timeframe would be 2 days. This tri-timeframe approach aims to provide a more comprehensive volatility assessment.
Volatility Filter Indicators Section:
The script utilizes nine different, undisclosed metrics within its volatility filter. Traders have the flexibility to enable or disable these metrics based on their preferences, allowing for a customizable trading experience. Additionally, the script offers alert functionality for when the indicator crosses the threshold, either upwards or downwards, facilitating timely decision-making.
P.S
With better understanding of markets over time, I designed a new iteration of my volatility filter indicator. The second version provides faster, more precise way to analyze markets, but I also wanted to keep my first version untouched in case if some people find it better for their purposes. As I mentioned above, this version is calculated in a very different way from a previous one, so if you never tried it you can do it here
Pivot Points + Day First Candle Breakout + VWAP + Supertrend This indicator amalgamates several key indicators to provide a comprehensive analysis for trading decisions, including SuperTrend, Pivot Points, VWAP, along with the Day First Candle Breakout strategy.
Key Features:
Day First Candle Breakout: Identifies potential breakout opportunities based on the first candle of the trading day. It utilizes the high and low of the initial trading range to determine entry points.
Timeframe Selection: Allows users to select the timeframe for analyzing the first candle (e.g., 5, 15, or 60 minutes).
Previous Day and Week High/Low: Displays the high and low of the previous day and week to provide additional context for trading decisions and assess the strength of the trend.
Trend Strength Analysis: Indicates whether the current price is above or below the previous day's high or low, signaling a stronger bullish or bearish trend respectively.
SuperTrend Indicator: Visualizes the trend direction and potential reversal points based on the SuperTrend indicator. It helps traders to stay aligned with the prevailing trend and avoid premature exits.
Pivot Points: Presents key support and resistance levels derived from Pivot Points, assisting traders in identifying potential reversal or breakout zones.
VWAP (Volume Weighted Average Price): Plots VWAP to provide insight into the average price traded over a given period, aiding in determining the fair value of the asset and potential buying/selling zones.
Trading Signals:
Buy Signal: Triggered when the price exceeds the high of the initial trading range after an upward price gap.
Sell Signal: Generated when the price falls below the low of the initial trading range after a downward price gap.
Caveats for Effective Trading:
Extended Trading Ranges: Adjusts support and resistance levels if the initial trading range extends beyond the defined timeframe.
Morning Noise Consideration: Exercises caution during volatile morning sessions to avoid false breakouts and whipsaws.
Pullbacks and Narrow Range Bars: Looks for opportunities during pullbacks or when the price forms narrow range bars to enter trades, reducing the risk of sudden reversals.
Day First Candle BreakoutR-DFCB V1.5: Day First Candle Breakout
This indicator identifies potential breakout opportunities based on the first candle of the trading day. It considers the high and low of the initial trading range to determine possible entry points, along with the previous day's high and low to gauge the strength of the trend.
Key Features:
Day First Candle Breakout: Analyzes the first candle of the trading day to identify potential breakout scenarios.
Timeframe Selection: Allows users to select the timeframe for analyzing the first candle (e.g., 5, 15, or 60 minutes).
Previous Day and Week High/Low: Displays the high and low of the previous day and week to provide additional context for trading decisions.
Previous Day Trend Strength: Indicates whether the current price is above or below the previous day's high or low, signaling a stronger bullish or bearish trend respectively.
Trading Signals:
Buy Signal: Triggered when the price exceeds the high of the initial trading range after an upward price gap.
Sell Signal: Generated when the price falls below the low of the initial trading range after a downward price gap.
Trend Strength Analysis:
Strong Bullish Trend: If the current price is above the previous day's high, it indicates a stronger bullish trend.
Strong Bearish Trend: If the current price is below the previous day's low, it suggests a stronger bearish trend.
Caveats for Effective Trading:
Extended Trading Ranges: Adjusts support and resistance levels if the initial trading range extends beyond the defined timeframe.
Morning Noise Consideration: Exercises caution during volatile morning sessions to avoid false breakouts and whipsaws.
Pullbacks and Narrow Range Bars: Looks for opportunities during pullbacks or when the price forms narrow range bars to enter trades, reducing the risk of sudden reversals.
Volume Liqidations [EagleVSniper]The Volume Liquidations Indicator is designed for traders who want to spot significant liquidation events in the cryptocurrency markets, particularly between spot and futures volumes. This powerful tool auto-detects the trading asset and compares the volume data from both spot and futures markets to highlight potential high-volume liquidation points that can significantly impact price movement. Raw source code owner - tartigradia
Features:
Auto-Detect Functionality: Automatically identifies the current trading asset, providing an option for manual selection for both spot and futures symbols.
Volume Comparison: Calculates the difference between futures and spot volumes within a user-defined timeframe, helping to identify liquidation events.
Customizable Parameters: Offers customizable options for multipliers, lookback periods, and timeframe selection to tailor the indicator to your trading strategy.
Visual Indicators: Displays liquidation volumes as color-coded columns, with green indicating potential long liquidations and red for short liquidations. It also highlights bars that exceed the high-volume threshold, providing a clear visual cue for significant liquidation events.
Spot and Futures Volume MA: Includes optional moving average plots for both spot and futures volumes, allowing for a deeper analysis of market trends.
Highlighting High-Volatility Candles: The indicator uniquely colors candles that reach a predefined volatility threshold, determined by the user-set multiplier. This functionality aims to spotlight moments of significant market volatility, providing traders with immediate visual cues.
Dynamic Ticker Selection: Seamlessly switches between auto and manual ticker selection, providing flexibility for all types of traders.
How to Use:
Setup: Configure the indicator to your preferences. You can choose between automatic or manual ticker selection, set the multiplier for the high-volume threshold, and define the lookback period for the moving average calculation.
Analysis: The indicator plots differences in volume between futures and spot markets as columns on your chart, color-coded to indicate the direction of potential liquidations.
Decision Making: Use the indicator to identify potential liquidation events. High-volume thresholds are highlighted, suggesting significant market movements. Combine this information with other analysis tools to make informed trading decisions.
EMA Dashboard | Flux Charts💎 GENERAL OVERVIEW
Introducing our new Exponential Moving Average (EMA) Dashboard! This dashboard let's you select a source for the calculation of the EMA of it, then shows it across 5 different lengths and timeframes.
Features of the new EMA Dashboard :
Shows EMA Across 5 Different Lengths & Timeframes.
Select Any Source, Including Other Indicators.
Enable / Disable Plotting Lines.
Customizable Dashboard.
📌 HOW DOES IT WORK ?
EMA is a widely used indicatior within trading community, it is similar to a Simple Moving Average (SMA) but places more weight on recent prices, making it more reactive to current trends. This indicator then shows it across 5 different timeframes in a dashboard and plots them in your chart for ease of use.
🚩UNIQUENESS
This dashboard cuts through the hassle of manual EMA calculations and plotting. It offers flexibility by allowing various data sources (even custom indicators) and customization through enabling / disabling EMA lines. The clear visualization lets you compare multiple EMAs efficiently.
⚙️SETTINGS
1. Timeframes
You can set up to 5 timeframes & lenghts for the dashboard to show here. You can also turn on plotting and enable / disable them.
2. General Configuration
EMA Source -> You can select the source for the calculation of the EMA here. You can select sources from other indicators as well as more general sources like close, high and low price.
Ouside Bar First high/low DetectorIndicator wenting to the lower time frame(if compare with current chart time frame) and seek what happened first, the low of previouse bar was updated first or the high of previouse bar.
In some trading strategies need to know exactly sequence of actions for outside bars to program the logic for testing on deep history.
If first was updated the high of previouse bar indicator will draw green diamond above the outside bar. If first was updated the low of previouse bar then indicator will draw red diamon below the ouside bar.
In cases where both side diamonds is plotted it meant the current Lower time frame resolution is not enough to clear figure out what was first Low of High, need choose lower resolution.
I did not found ready to use examples and made my own.
I hope it will be usefull for you.
Best Regards.
Alpha Time Zones {DCAquant}
Alpha Time Zones {DCAquant}
The Alpha Time Zones {DCAquant} is a versatile TradingView indicator designed to help traders navigate the markets by highlighting key trading sessions. This tool provides visual cues by color-coding periods of the London, New York, and Tokyo trading sessions, along with customizable 'Golden' zones, enabling traders to capitalize on market overlaps and increased volatility.
Key Features:
Global Trading Sessions: Automatically shades the periods of the major trading sessions, which can be critical for traders looking to trade during peak liquidity times.
Customizable 'Golden' Zone: Set up your own 'Golden' trading hours for personalized time frames where you observe increased market activity.
Clarity and Focus: By color-coding each session, the indicator allows for a clean and organized view of the market, enabling traders to focus on their strategies without distraction.
BTC Halving Dates and Countdown: For cryptocurrency traders, this indicator includes a feature to show Bitcoin halving dates and a countdown to the next event, assisting in speculation around these significant occurrences.
How to Use the Indicator:
Optimized for Shorter Timeframes: Alpha Time Zones {DCAquant} is fine-tuned for high timeframe charts up to 12 hours. It's designed to provide the most value for intraday to half-day chart intervals, which aligns well with the duration of trading sessions around the globe.
Session Overlaps: Identify times when key sessions overlap, such as the London-New York overlap, to exploit potential periods of increased liquidity and volatility—prime times for trading on lower timeframes.
Custom 'Golden' Zone Trading: Define your own 'Golden' trading hours to correspond with specific economic releases or your peak trading times, perfect for strategies that target times of intensified market action.
Strategic Halving Date Analysis: Utilize the indicator’s Bitcoin halving dates and countdown feature to make informed decisions around these pivotal events, particularly relevant to cryptocurrency traders focusing on macro timeframes.
Adaptability and Customization: While the indicator is not intended for use on timeframes longer than 12 hours, its flexible settings allow for toggling session displays and customizing the 'Golden' zone, making it a versatile companion to your trading system.
Trading Strategy Integration:
The Alpha Time Zones {DCAquant} indicator is designed to be an auxiliary tool, easily integrated into any trading strategy that emphasizes trading session dynamics. Whether you're day trading, swing trading, or taking a position based on economic announcements, this indicator adapts to your approach, providing clear visual markers of key trading hours.
Disclaimer:
This indicator does not predict market movements but instead serves as a guide to understand the timing of market activities. Traders should use this tool in conjunction with a comprehensive analysis and a robust risk management strategy.
SMT divergencesAn extension from my Liquidity Raids indicator work, this indicator is a way to approach SMT divergences occurring on your pair against a configured pair i.e., when a bullish or bearish raid occurs (i.e., low or high gets taken) in the correlated asset and it doesn't occur in the current asset or vice versa, the indicator plots it on the chart.
In the above example, you can see SMT divergences between US100 and US500.
The following features are supported:
SMT plotted on pairs
Alerts to get notified when such SMTs occur.
Inversion of SMTs supported (for e.g., when you want SMT from DXY to be plotted on EU)
Minimum pips filter required for raids to trigger SMT (plot or alert)
NOTE: It's cleanest and advisable when it's used on the same timeframe as the chart. While switching timeframe works, the timeframe in the indicator must be equal or higher than the current timeframe, however it won't be accurate and I don't want to put in further efforts for a free-to-use indicator :)
SMA Dashboard | Flux Charts💎 GENERAL OVERVIEW
Introducing our new Simple Moving Average (SMA) Dashboard! This dashboard let's you select a source for the calculation of the SMA of it, then shows it across 5 different lengths and timeframes.
Features of the new SMA Dashboard :
Shows SMA Across 5 Different Lengths & Timeframes.
Select Any Source, Including Other Indicators.
Enable / Disable Plotting Lines.
Customizable Dashboard.
📌 HOW DOES IT WORK ?
SMA is a widely used indicatior within trading community, it simply works by taking the mathematical average of a source by desired length. This indicator then shows it across 5 different timeframes in a dashboard and plots them in your chart for ease of use.
🚩UNIQUENESS
This dashboard cuts through the hassle of manual SMA calculations and plotting. It offers flexibility by allowing various data sources (even custom indicators) and customization through enabling / disabling SMA lines. The clear visualization lets you compare multiple SMAs efficiently.
⚙️SETTINGS
1. Timeframes
You can set up to 5 timeframes & lengths for the dashboard to show here. You can also turn on plotting and enable / disable them.
2. General Configuration
SMA Source -> You can select the source for the calculation of the SMA here. You can select sources from other indicators as well as more general sources like close, high and low price.
EMA20 in MTFThe "EMA20 in MTF" indicator on TradingView is a versatile tool designed to display the 20-period Exponential Moving Average (EMA) as a horizontal line across various time frames. This indicator provides traders with a comprehensive view of the EMA's behavior by plotting it on multiple time frames (MTF), including Quarterly, Monthly, Weekly, Daily, and 125 Minutes.
By incorporating EMA data from different time frames, traders can gain insights into both short-term and long-term trends. The Quarterly and Monthly time frames offer a broader perspective on market movements, while the Weekly and Daily time frames provide intermediate-term trends. The inclusion of the 125 Minutes time frame further enhances precision, catering to intraday trading strategies.
Overall, the "EMA20 in MTF" indicator serves as a valuable tool for traders seeking to analyze EMA dynamics across various time frames, aiding in trend identification and decision-making processes.
OBV 1min Volume SqueezeIn the vast realm of trading strategies, few terms evoke as much intrigue as the word "squeeze." It conjures images of pent-up energy, ready to burst forth in a sudden and decisive move. In this blog post, we'll delve into a new trading idea titled the "OBV 1-Minute Volume Squeeze" which aims to catch bigger market movements by fetching 1 minute OBV data on higher time charts.
The Essence of Squeeze
In trading parlance, a "squeeze" typically denotes a scenario where volatility contracts, and prices consolidate within a narrow range. Translating this concept to volume dynamics, a "volume squeeze" suggests a period of compressed volume activity. It is unclear if the Bulls or the Bears are at winning hand and price is thus consolidating. The script calculates buying and selling pressure by fetching 1 min data. The total volume presure is the sum of absolute values of the buying and selling pressure added up. By deviding the Buying volume by the total volume we know the Buying Pressure.
The trading theory suggest that when the buying pressure exceeds a certain value eg. 50% (default value in the script is 55%) it is likely the trend will continue to go up for a longer period of time. Vice Versa when selling pressure is higher, the trend is likely to continue down. In the script you can adjust the sensitivity in such way a higher "Volume Pressure %" result in less trading signals.
Fetching 1 min data
The OBV is a wonderful indicator to measure the buying and selling pressure. A disadvantage of the script is that the total volume pressure is presented as a positive (buying) or negative value (selling) value in the Oscillator. It does not offset the Bulls power against the Bears power at given time. The script aims to do measure the directional volume power by defining a volume pressure % (oulier value) by fetching 1 min OBV data on higher time frame charts comparing the Bulls power against the Bears Power. The code is included below:
// Fetch Lower Timeframe Data in an array
// nV = ZeroValue, sV = Selling Volume, bV = Buying Volume, tV = Total Volume
= request.security_lower_tf(syminfo.tickerid, '1', )
sum_bV_Lengthbars = array.sum(bV)
sum_sV_Lengthbars = array.sum(sV)
sum_tV_Lengthbars = sum_bV_Lengthbars + sum_sV_Lengthbars // Combine buying and selling volumes to get total volume
// Calculate buying and selling volume as percentage of the total volume, but ensure the denominator isn't zero.
buying_percentage = sum_tV_Lengthbars != 0 ? sum_bV_Lengthbars / sum_tV_Lengthbars * 100 : na
selling_percentage = sum_tV_Lengthbars != 0 ? -(sum_sV_Lengthbars / sum_tV_Lengthbars * 100) : na
OBV Oscillator Explanation
The On Balance Volume (OBV) indicator is a technical analysis tool used to measure buying and selling pressure in the market. It does this by keeping a running total of volume flows. OBV is typically calculated by adding the volume on a candle when the price closes higher than the previous candle's close and subtracting the volume on candles when the price closes lower than the previous candles close. If the price closes unchanged from the previous candle, the volume is not added to or subtracted from the OBV. The OBV can be presented as an oscillator. Positve value is the buying pressure and negative values is the selling pressure. In the settings the OBV is calculated based on 1 min data and comes with the following input options for visualization on the chart:
Higher Time Frame Settings (make sure the HTF is higher than the chart you have open)
Type of MA being: EMA, DEMA, TEMA, SMA, WMA, HMA, McGinley
Volume Pressure % (outlier value)
Length of number of bars (of the choosen HTF settings)
Smoothing of number candles of hte opened timechart. Note that higher number of bars to smoothen the indicator results in less signals, but lag of the indicator increases.
The Oscilator contains 3 main lines which are used to determin the entry signals:
Orange Line = the Outlier value in settings described as "Volume Pressure %"
Green Line = Total Buying Pressure OBV
Red Line = Total Selling Pressure OBV
If the Green or Red line is in between the zero line and the orange line the volume is squeezed and waiting for a directional break out.
If the Green line crosses over the orange line the buying pressure is > 55% and triggers a long entry position (green dot). If the Red line crosses under the orange line the selling pressure is > 55% and triggers an short entry (red dot). In the strategy settings this option is called: "Wait for total volume to increase?".
Alternative Strategy Options
In order to play around with different settings users can opt for two more strategy entry settings, called:
"Wait for total volume to deacrease?" --> Only gives a signal when total volume is declining, but buying or selling pressure maintains and crosses % threshold.
"Wait for Pull Back?" --> After a pullback occured and opposite buy/sell pressure gets lower than threshold (direction is shifting)
Turning on all options will logically result into more signals. Note these strategy ideas are experimental and can best be used in confirmation with other indicators.
Moving Average Filter (HTF)
The Oscillator has a horizontal line at the bottom. The line is green when the moving average is in a uptrend and red when the moving average is in a downtrend. The MA Filter comes with the following settings:
Higher Time Frame Setting
Type of MA being: EMA, DEMA, TEMA, SMA, WMA, HMA, McGinley
Length of number of bars (of the choosen HTF settings)
At last I hope you like this volume trading idea and if you have any comments let me know!
Kyrie Crossover ( @zaytradellc )Unlocking Market Dynamics: Kyrie Crossover Script by @zaytradellc
personalized trading success with the "Kyrie Crossover" script, meticulously crafted by @zaytrade. This innovative Pine Script, tailored to the birthdays of Kyrie and the script creator, combines the power of technical analysis with a touch of personalization to revolutionize your trading experience.
**Exponential Moving Average (EMA) Crossover Strategy:**
At the heart of the "Kyrie Crossover" script lies a sophisticated EMA crossover strategy. By utilizing a 10-period EMA and a 323-period EMA (symbolizing long term price action ), the strategy effectively captures market trends with precision and insight.
- **Short-Term EMA (10-period):** This EMA reacts swiftly to recent price changes, offering heightened sensitivity to short-term fluctuations. It excels in identifying immediate shifts in market sentiment, making it invaluable for pinpointing short-lived trends and potential reversal points.
- **Long-Term EMA (323-period):** In contrast, the long-term EMA provides a broader perspective by smoothing out short-term noise and focusing on longer-term trend direction. Its extended length filters out market noise effectively, providing a clear representation of the underlying trend's momentum and sustainability.
**Directional Movement Index (DMI) Metrics:**
The "Kyrie Crossover" script goes beyond traditional indicators by incorporating DMI metrics across multiple timeframes. By assessing trend strength and direction, traders gain valuable insights into market dynamics, allowing for informed decision-making.
**Simple Instructions to Profit:**
1. **Identify EMA Crossovers:** Look for instances where the short-term EMA (10-period) crosses above the long-term EMA (323-period) for a bullish signal, indicating a potential buying opportunity. Conversely, a crossover where the short-term EMA crosses below the long-term EMA signals a bearish trend and a potential selling opportunity.
2. **Confirm with DMI Metrics:** Validate EMA crossovers by checking DMI metrics across different timeframes (5 minutes, 15 minutes, 30 minutes, and 1 hour). Pay attention to color-coded indicators, with green indicating a bullish trend, red indicating a bearish trend, and white indicating no clear trend.
3. **Manage Risk:** Implement proper risk management techniques, such as setting stop-loss orders and position sizing based on your risk tolerance and trading objectives.
4. **Stay Informed:** Regularly monitor market conditions and adjust your trading strategy accordingly based on new signals and emerging trends.