Order Blocks with Volume Heatmap & Clusters - VK TradingOrder Blocks with Volume Heatmap & Clusters - VK Trading
This script is designed to identify and highlight Order Blocks, a key concept in institutional trading, and combines it with powerful tools like volume heatmaps and accumulation clusters for enhanced market analysis. Suitable for traders of all experience levels, this script provides a clear and customizable visualization to help identify significant market zones effectively.
What Does This Script Do?
Order Block Identification: Highlights bullish and bearish order blocks directly on the chart, making it easier to spot key supply and demand zones.
Volume Heatmap: A dynamic heatmap adjusts colors based on relative volume, allowing you to quickly identify areas of heightened activity.
Institutional Accumulation Clusters: Zones of potential institutional accumulation are calculated using a combination of ATR (Average True Range), standardized volume, and RSI (Relative Strength Index).
Automatic Clearing: Invalidated order blocks are automatically removed, ensuring your charts remain clean and focused.
Key Features
Customizable Sensitivity: Adjust the script’s sensitivity to tailor order block detection to different market conditions and strategies.
Advanced Volume Display Options: Toggle volume visibility on or off. Customize the position, size, and color of volume labels for better integration with your chart's design.
Dynamic Heatmap Intensity: Fine-tune the heatmap’s intensity and color to highlight areas of interest based on trading volume.
Dual Order Block Detection: Uses two independent detection settings to analyze the market from multiple perspectives.
Visual Alerts: Automatically draws key level lines based on detected order blocks for better clarity.
User Benefits:
Clear Market Analysis: Helps pinpoint institutional activity and key levels with minimal effort.
Increased Efficiency: Automates plotting and analysis, allowing you to focus on decision-making.
Versatile Compatibility: Complements strategies like Smart Money Concepts, Wyckoff, and Price Action approaches.
Disclaimer
This script is intended as an analytical and educational tool. It does not guarantee specific outcomes or eliminate trading risks. Use this tool at your own discretion and always practice proper risk management.
TPO
OVN H/L OVN H/L (Overnight High/Low)
Description:
The "OVN H/L" indicator is designed to plot the highest and lowest price levels within a specified time interval on your chart. This tool is especially useful for traders who focus on key support and resistance levels established during specific trading sessions, such as overnight or pre-market hours.
Features:
Custom Time Interval: Input your desired start and end times in HH
format (UTC+0). Handles intervals that span midnight seamlessly. Session Count Control: Choose the number of past sessions to display on the chart. Helps keep your chart organized by limiting the number of lines. Line Extension Options: Option to extend lines indefinitely to the right. If disabled, lines can be set to end or be interrupted upon price crossing. Upper and Lower Line Customization: Color Selection: Customize the color of the upper (high) and lower (low) lines separately. Line Width: Adjust the thickness of the lines from 1 to 5. Line Style: Choose between solid, dashed, or dotted lines for both upper and lower lines. Dynamic Line Management: Automatically updates high and low levels during the specified interval. Draws lines after the interval ends, reflecting the captured high and low. Price Interaction Detection: If line extension is disabled, lines will adjust if the price crosses them, providing visual cues.
Usage:
Overnight Trading: Identify key high and low levels from overnight sessions that may influence the upcoming trading day. Intraday Analysis: Customize the time interval to focus on specific market sessions (e.g., London or New York sessions). Support and Resistance Levels: Use the plotted lines as potential support and resistance zones for trading strategies.
How to Use:
Apply the Indicator: Add the "OVN H/L" indicator to your chart from the TradingView indicator library. Configure Time Settings: In the indicator settings, set the start and end times for the interval you're interested in. Adjust Appearance: Customize the colors, widths, and styles of the upper and lower lines to your preference. Set Session Display: Determine how many previous sessions' lines you wish to display. Line Extension Preference: Decide whether you want the lines to extend indefinitely or to end/interact based on price movement. Analyze Price Action: Use the high and low lines to identify key levels for potential entries, exits, or stop-loss placements.
Notes:
Time Zones: The script uses UTC+0 for time calculations. Ensure you adjust the input times accordingly if your chart is in a different timezone. Compatibility: Best used on intraday timeframes where sessions and intervals are relevant. Limitations: The indicator may not display correctly on historical data beyond the number of sessions specified.
Conclusion:
The "OVN H/L" indicator is a versatile tool that enhances your chart analysis by highlighting significant price levels within custom time intervals. By visualizing these critical zones, traders can make more informed decisions and refine their trading strategies.
Liquidity composition / quantifytools- Overview
Liquidity composition divides each candle into sections that are used to display transaction activity at price. In simple terms, an X-ray through candle is formed, revealing the orderflow that built the candle in greater detail. Liquidity composition consists of two main components, lots and columns. Lots and columns can be used to visualize user specified volume types, currently supporting net volume and volume delta. Lots and columns can be used to visualize same or different volume types, allowing a combination of volume footprint, volume delta footprint and volume profile in one single view. Liquidity composition principally works on any chart, whether that is equities, currencies, cryptocurrencies or commodities, even charts with no volume data (in which case volatility is used to approximate transaction activity). The script also works on any timeframe, from minute charts to monthly charts. Orderflow can be observed in real-time as it develops and none of the indications are repainted.
Example: Displaying same volume types on lots and columns
Example: Displaying different volume types on lots and columns
Liquidity composition supports user specified derivative data, such as point of control(s) and net activity coloring. Derivative data can be calculated based on either net volume or volume delta, resulting in different highlights.
With net volume, volume delta and derivative data in one view, key orderflow events such as delta imbalances, high volume nodes, low volume nodes and point of controls can be used to quickly identify accumulation/distribution, imbalances, unfinished/finished auctions and trapped traders.
Accessing script 🔑
See "Author's instructions" section, found at bottom of the script page.
Key takeaways
- Liquidity composition breaks down transaction activity at price, measured in net volume or volume delta
- Developing activity can be observed real-time, none of the indications are repainted
- Transaction activity is calculated using volumes accrued in lower timeframe price movements
- Lots and columns can be used to display same or different volume types (e.g. volume delta lots and net volume columns) in single view
- Users can specify derivative data such as volume delta POCs, net volume POC and net activity coloring
- For practical guide with practical examples, see last section
Disclaimer
Orderflow data is estimated using lower timeframe price movement. While accurate and useful, it's important to note the calculations are estimations and are not based on orderbook data. Estimates are calculated by allotting volume developing on lower timeframe chart to its respective section based on closing price. Volume delta (difference between buyers/sellers) is calculated by subtracting down move volumes (sell volume) from up move volumes (buy volume). Accuracy of the orderflow estimations largely depends on quality of lower timeframe chart used for calculations, which is why this tool cannot be expected to work accurately on illiquid charts with broken data.
Liquidity composition does not provide a standalone trading strategy or financial advice. It also does not substitute knowing how to trade. Example charts and ideas shown for use cases are textbook examples under ideal conditions, not guaranteed to repeat as they are presented. Liquidity composition should be viewed as one tool providing one kind of evidence, to be used in conjunction with other means of analysis.
- Example charts
Chart #1: BTCUSDT
Chart #2: EURUSD
Chart #3: ES futures
- Calculations
By default, size of sections and lower timeframe accuracy are automatically determined for all charts and timeframes. Number of lower timeframe price moves used for calculating orderflow is kept at fixed value, by default set to 350. Accuracy value dictates how many lower timeframe candles are included in the calculation of volume at price. At 350, the script will always use 350 lower timeframe price movements in calculations (when possible). When calculated dynamic timeframe is less than 1 minute, the script switches to available seconds based timeframes. Minimum dynamic timeframe can be capped to 1 minute (as seconds based timeframes are not available for all plans) or dynamic timeframe can be overridden using an user specified timeframe.
Example: Calculating dynamic lower timeframe
Main chart: 4H / 240 minutes
Accuracy value: 100
Formula: 240 minutes / 100 = 2.4 minutes
Timeframe used for calculations = 2 minutes
Section size is automatically determined based on typical historical candle range, the bigger it is, the bigger the section size as well. Like dynamic timeframe, automatic section size can be manually overridden by user specified size expressed in ticks (minimum price unit). Users can also adjust sensitivity of automatic sizing by setting it higher (smaller sections, more detail and more noise) or lower (less sections, less detail and less noise). Section size and dynamic timeframe can be monitored via metric table.
Volume at price is calculated by allotting volume associated with a lower timeframe price movement to its respective section based on closing price (volume is stored to the section that covers closing price). When used on a chart with no volume data, volatility is used instead to determine likely magnitude of participation. Volume delta (difference between buyers/sellers) is calculated by subtracting down move volumes (sell volume) from up move volumes (buy volume). Volumes accrued in sections are monitored over a longer period of time to determine a "normal" amount of activity, which is then used to normalize accrued volumes by benchmarking them against historical values.
Volume values displayed on the left side represent how close or far volume traded at given section is to an extreme, represented by value of 10 . The more value exceeds 10, the more extreme transaction activity is historically. The lesser the value, the less extreme (and therefore more typical) transaction activity is. Users can adjust sensitivity of volume extreme threshold, either by increasing it (more transaction activity is needed to constitute an extreme) or decreasing it (less transaction activity is needed to constitute an extreme).
Example: Interpreting volume scale
0 = Very little to no transaction activity compared to historical values
5 = Transaction activity equal to average historical values
10 = Transaction activity equal to an extreme in historical values
10+ = The more transaction activity exceeds value of 10, the more extreme it is historically
Accuracy of orderflow data largely depends on quality of lower timeframe data used in calculations. Sometimes quality of underlying lower timeframe data is insufficient due to suboptimal accuracy or broken lower timeframe data, usually caused by illiquid charts with gaps and inconsistent values. Therefore, one should always ensure the usage of most liquid chart available with no gaps in lower timeframe data. To combat poor orderflow data, a simple data quality check is conducted by calculating percentage of sections with volume data out of all available sections. Idea behind the test is to capture instances where unusual amount of sections are completely empty, most likely due to data gaps in LTF chart. E.g. 90% of sections hold some volume data, 10% are completely empty = 90% data quality score.
Data quality score should be viewed as a metric alerting when detail of underlying data is insufficient to consider accurate. When data quality score is slightly below threshold, lower timeframe chart used for calculations is likely fine, but accuracy value is too low. In this case, one should increase accuracy value or manually override used timeframe with a smaller one. When data quality score is well below threshold, lower timeframe chart used for calculations is likely broken and cannot be fixed. In this case, one should look for alternative charts with more reliable data (e.g. ES1! -> SPY, BITSTAMP:BTCUSD -> BINANCE:BTCUSDT).
Example : When insufficient data quality scores can/cannot be fixed
- Derivative data
Point of control
Point of control, referring to point in price where transaction activity is highest, can be calculated based on the volume type of lots or columns (based on net volume or volume delta). Depending on the calculation basis, displayed point of controls will vary. POC calculated based on net volume is no different from traditional POC, it is simply the section with highest amount of transaction activity, marked with an X. When calculating POC based on volume delta, the script will highlight two point of controls, named leading and losing point of control . Leading POC refers to lot with highest amount of volume delta, marked with an X. If leading POC was net buy volume, losing POC is marked on section with highest net sell volume, marked with S respectfully. Same logic applies in vice versa, if leading POC is net sell volume, losing POC is marked on highest buy volume section, using the letter B.
Net activity
Similarly to point of control calculation, net activity can be calculated based on either volume types, lots or columns. When calculating net activity based on net volume, candles will be colorized according to magnitude of total volume traded. When calculating net activity based on volume delta, candles will be colorized according to side with most volume traded (buyers or sellers). Net activity color can be applied on borders or body of a candle.
- Visuals
Lots, columns, candles and POCs can be colorized using a fixed color or a volume based dynamic color, with separate color options for buy side volume, sell side volume and net volume.
Metric table can be offsetted horizontally or vertically from any four corners of the chart, allowing space for tables from other scripts.
Table sizes, label sizes and offsets for visuals are fully customizable using settings menu.
- Practical guide
OHLC data (candles) is a simple condensed visualization of an auction market process. Candles show where price was in the beginning of an auction period (timeframe), the highest/lowest point and where price was at the end of an auction. The core utility of Liquidity composition is being able to view the same auction market process in much greater detail, revealing likely intention, effort and magnitude driving the process. All basic orderflow concepts, such as ones presented by auction market theory can be applied to Liquidity composition as well.
The most obvious and easy to spot use case for orderflow tools is identifying trapped traders/absorption, seen in high transaction activity at the very highs/lows of a candle or even better, at wicks. High participation at wicks can be used to identify forced orders absorbed into limit orders, idea behind being that when high transaction activity is placed at a wick, price went one direction with a lot of participation (high effort) and came right back up (low impact) within the same time period.
Absorption can show itself in many ways:
- Extreme buy volume sections at wick highs or buy side POC at wick highs
- Multiple, clustered high buy volume sections (but not extreme) at wick highs
- Positive net volume delta into a reversal down
- Extreme sell volume sections at wick lows or sell side POC at wick lows
- Multiple, clustered high sell volume sections (but not extreme) at wick lows
- Negative net volume delta into a reversal up
- Extreme net volume sections at or net volume POC at wick highs/lows
- Extreme net volume into a reversal up/down
For accurate analysis, orderflow based events should be viewed in the context of price action. To identify absorption, it's best to look for opportunities where an opposing trend is clearly in place, e.g. absorption into highs on an uptrend, absorption into lows on a downtrend. When price is ranging without a clear trend or there's no opposing trend, extreme activity at an extreme end of a candle might be aggressive participants attempting to initiate a new trend, rather than getting absorbed in the same sense. With enough effort put into pushing price to the opposite direction at overextended price, a shift in trend direction might be near.
Price action based levels are a great way to get context around orderflow events. Simple range highs/lows as a single data point serve as a high probability regimes for reversals, making them a great point of confluence for identifying trapped traders.
Low to zero volume sections can be used to identify points in price with little to no trading, leaving a volume null/void behind. Typically sections like these represent gaps on a lower timeframe chart, which can be used as reference levels for targets and support/resistance.
Net volume can be used for same purposes as above, but for determining general intention of market participants it's a much more suitable tool than volume delta. According to auction market theory, low/no participation is considered to reject prices and high participation is considered to accept prices. With this concept in mind, unfinished auctions occur when participation is high at highs or high at lows, idea behind being that participants are showing willingness and interest to trade at higher or lower prices. Auction is considered finished when the opposite is true, i.e. when participants are not showing willingness to trade at higher/lower prices. In general, direction of unfinished auctions can be expected to continue shortly and direction of unfinished auctions can be expected to hold.
While shape of volume delta and net volume are usually similar, they're not the same thing and do not represent the same event under the hood. Volume delta at 0 does not necessarily mean participation is 0, but can also mean high participation with equal amount of buying and selling. With this distinction in mind, using volume delta and net volume in tandem has the benefit of being able to identify points in price with a lot of up and down price movement packed into a small area, i.e. consolidation. Points in price where price hangs around for an extended period of time can be used to identify levels of interest for re-tests and breakout opportunities.
Volume Profile PlusThis indicator provides a high-resolution and high-precision implementation of Volume Profile with flexible range settings. Its key features include:
1. Support for a high resolution of up to 2,500 rows.
2. Capability to examine lower timeframe bars (default 5,000 intra-bars) for enhanced precision.
3. Three range modes — "Visible Range", "Anchored Range", and "All Range".
4. Highlighting of Point of Control and Value Area.
5. Extensive customization options allowing users to configure dimensions, on-chart placements, and color schemes.
🔵 Settings
The settings screen, along with the explanations for each setting, is provided below:
🔵 High Resolution using Polyline
Inspired by @fikira, this indicator utilizes the newly introduced `polyline` type in PineScript to plot the volume profile. It employs a single polyline instance to represent the entire histogram. With each polyline instance supporting up to 10,000 points and each histogram row requiring 4 points, this indicator can accommodate 2500 rows, resulting in a significantly higher resolution compared to conventional volume profile indicators that use `line`s or `box`es to draw the histogram.
🔵 High Precision Data-binning using Lower Timeframe Data
Conventional volume profile indicators often face one or both of the following limitations:
1. They only consider volume within the chart's current timeframe.
2. They assign each bar's total volume to a single price bucket based on the bar's average price, rather than distributing volume across multiple price buckets.
As a result, when the number of bars in the chart is low, those indicators may provide imprecise results, making it difficult to accurately identify significant volume nodes and the point of control.
To address these limitations and enhance accuracy, this indicator examines data from lower timeframes and distributes the volume to fine-grained price buckets. It intelligently selects an appropriate lower timeframe to ensure precise output while complying with a maximum specified number of bars to maintain good performance.
🔵 Three Range Modes
This indicator offers users the flexibility to choose from three range modes:
1. Visible Range (Default Mode): In this mode, the volume profile calculation begins at the time of the left-most bar displayed in the current viewport. As the user scrolls through the viewport, the volume profile updates automatically.
2. Anchored Range: This mode allows the user to set the start time either by using the datetime input boxes or by dragging the anchor line on the chart.
3. All Range: In this mode, the volume profile calculation is based on all the historical bars available in the chart.
Market Sessions and TPO (+Forecast)This indicator "Market Sessions and TPO (+Forecast)" shows various market sessions alongside a TPO profile (presented as the traditional lettering system or as bars) and price forecast for the duration of the session.
Additionally, numerous statistics for the session are shown.
Features
Session open and close times presented in boxes
Session pre market and post market shown
TPO profile generated for each session (normal market hours only)
A forecast for the remained of the session is projected forward
Forecast can be augmented by ATR
Naked POCs remain on the chart until violated
Volume delta for the session shown
OI Change for the session shown (Binance sourced)
Total volume for the session shown
Price range for the session shown
The image above shows processes of the indicator.
Volume delta, OI change, total volume and session range are calculated and presented for each session.
Additionally, a TPO profile for the most recent session is shown, and a forecast for the remainder of the active session is shown.
The image above shows an alternative display method for the session forecast and TPO profile!
Additionally, the pre-market and post-market times are denoted by dashed boxes.
The image above exemplifies additional capabilities.
That's all for now; further updates to come and thank you for checking this out!
And a special thank you to @TradingView of course, for making all of this possible!
ADR/AWR/AMR Average Daily+Weekly+Monthly Range[Traders Reality]Advanced ADR/AWR/AMR indicator created for Traders Reality community, as well as the greater trading community.
Thanks to the TR community discord guys: infernix, peshocore and xtech5192
Everything is modular and can be turned on/off, including a customisable table showing daily/weekly/monthly average pips/dollars.
If you just want the average daily range lines for example, you can just disable everything else. You can choose how many days to look back; as well as for weeks or months.
Check out Traders Reality on YouTube if you want to see this implemented as part of Tino's strategy that utilizes market manipulation, imbalances, times of day etc.
Price regularly reverses from ADR, making it one of the few highly valuable indicators in price action/smart money trading.
RS: Market ProfileA Market Profile (time price opportunity) implementation with an option to mark a point of control (POC) based on volume.
Config: Hide default candles. Select a session time using exchange timezone. Experiment with tick multiplier value to achieve desired level of detail. Choose the symbols of your choice, e.g. squares or A-Z chars. For multiple sessions you will have to add additional instances of this script with a different time configuration.
Limitations: TradingView has a hard limit for the number of characters (500), if it's reached, label rendering stops. Try increasing tick multiplier value to reduce the number of labels rendered or reduce the window size.
Features:
Use symbols or A-Z chars for TPOs
Mark POC
Calculate Value Area (volume or time based)
Highlight single prints (SP)
Highlight VWAP
Show daily bar
Highlight Open and Close
Highlight current price row (during live market)
Highlight initial balance (IB)
[Pt] Daily Market Profile / TPOA great mentor of mine once told me, trading is like driving. When you are driving, there are directions and road signs to follow. The key areas and levels from TPO market profile are the road signs in trading, you shouldn't trade without them much like you shouldn't drive without road signs, as you will get lost.
From Wikipedia: "A Market Profile is an intra-day charting technique (price vertical, time/activity horizontal) devised by J. Peter Steidlmayer, a trader at the Chicago Board of Trade (CBOT), ca 1959-1985. Steidlmayer was seeking a way to determine and to evaluate market value as it developed in the day time frame. The concept was to display price on a vertical axis against time on the horizontal, and the ensuing graphic generally is a bell shape--fatter at the middle prices, with activity trailing off and volume diminished at the extreme higher and lower prices." If you are unfamiliar with the concept, search for Market Auction Theory, Market Profile, and TPO on the web.
What's cool about this script?
As a professional trading, you should be drafting a trading plan and drawing all your key areas and levels before entering a trade. If you are trading with market profile, with this script, you no longer have to spend the time it takes to manually draw those key areas and levels. All are automatically generated with this script to give you the visual cues in your trades~!!
**IMPORTANT** Please note that due to the limitation on TradingView, there can only be limited number of boxes and lines that can be generated per indicator. Hence, this script only aims to provide you with as many key areas and levels as possible. This may be mitigated by having multiple instances of this indicator. Please use at your risk and discretion.
This script provides a comprehensive set of indicators / elements of daily TPO market profile, which includes the following:
- Market Profile based on TPO
- Point of Control (POC)
- Value Area (VA)
- Single Prints (SP)
- Excess (EX)
- Naked vs Visited (Touched) POC and VA
This script also includes the following key features that hopes to provide value in your trading:
- Automatically generated key areas and levels, including all the elements above
- Those key areas and levels will fade away as they become less significant, based on number of crosses and touches
- Customizable display settings
- Customizable session for generating the MP
- Two positions for MP placement
Setting descriptions:
TPO Market Profile [Kioseff Trading]REPOST; SCRIPT WORKS!!
Due to technical error, this script was republished! Thank you for your support (:
Hello!
This indicator comprises a real time TPO Market Profile!
The script works on any timeframe 1 second or greater - the script calculates relative to the timeframe selected for your chart.
The image above shows the 1-minute BTCUSD chart; 650 +/- tick levels are set.
To see the script in full functionality - try using bar replay on a cryptocurrency 1-minute chart (start at the beginning of a regular hours session). Be sure to adjust the tick spread if necessary (:
So far, the script's held up in real time - I've not had any array loop errors or timeouts. The TPO profile updates accordingly with changes in time / high and low prices. Letters are appended to the profile in real time.
The image above shows configurations for the indicator. I plan to update the indicator quite a bit over the coming days - more to come.
You can select the timeframe change the indicator accounts for. For instance, you can have set the indicator to reset every day, every 30 minutes, every 5 minutes, every week, month, etc.
In the image above, I configured the indicator to recalculate every 3 months. Consequently, the indicator will record a TPO profile for three consecutive, reset, then record a TPO profile for the next 3 months. This setting makes the indicator compatible with any timeframe greater than 1 minute.
You can also use a drag & drop time-start bar to modify the starting point for the market profile TPO calculation.
The indicator hosts an option to auto calculate the tick spread between levels. However, as you switch timeframes and assets, sometimes, you'll have to manually set the tick range (:
Thanks for checking it out; more to come!
Sep 4
Release Notes: UPDATE: The indicator can work on seconds-based charts.
The image above shows the indicator working on the 1-second chart.
(Screenshot is old; characters are now numbered instead of strange unicode)
Release Notes: Added value area + vah + val. Font update. Changed characters to numbered once the alphabet is exhausted. POC, VAH, and VAL label located left of the first bar of the interval. Initial balance range can be toggled. Spaced the characters (more legible). Quite a bit of aesthetic changes so check it out!
Soon, I'll release a version of the script that shows VAH, POC, VAL, and TPO letters from previous sessions. I coded this feature into this indicator; however, it was removed due to load time complications. This feature will be its own script (:
If the script has trouble loading please let me know (:
TPO Letters [Kioseff Trading]Hello!
"TPO Letters" functions similarly to the script "Realtime TPO Profile"; however, TPO characters are appended to a developing bar. Simply, TPO characters display on the bar that formed them.
All colors are configurable.
The image above emphasizes functionality; TPO letters are colored on a gradient . Additionally, the value area range is shaded; characters that form within the range are gradient colored. Gray-colored characters extend beyond the value area.
The columned data displayed right of the TPO letters shows tick levels. Tick levels are shaded various colors, each color indicative of some occurrence.
Tick Levels
Red: Single Print
Yellow: POC
Lime Green: VAH or VAL
Lighter Green: Value Area Inclusive Level
Left of the TPO horizontal-axis, the aqua-colored line (blue-line inclusive) reflects the high-low range of the session; the blue-colored line reflects the initial-balance range (IBR).
You can select to color TPO letters within the IBR blue (any color).
Additionally, you can select to shade the IBR.
The image above shows auxiliary features.
Unfortunately, I'm unable to orient TPO letters at their intended tick levels using one label per bar, a contrasting feature of the "Realtime TPO Profile" script.
This means only 1000 TPO letters can be displayed simultaneously. If the number of TPO letters exceeds 1000, early-session and middle-session characters will begin to disappear. This isn't an issue for the "Realtime TPO Profile" script, as each tick level comprised one label, to which additional TPO characters were appended to the label as necessary and extended horizontally. Using this same method proved fallible for this indicator - vertical scaling is an issue. While I could append all letters formed for a bar to one label, the letters wouldn't superimpose atop their corresponding tick level (using " " didn't suffice).
Consequently, you'll have to, at times, rely on the label & box count oriented in the bottom-right table to see whether the number of labels & boxes transcends the upper threshold. You can hide this table at anytime (:
The image above exemplifies the "Fixed Range" portion of the indicator. A useful inclusion for the "Realtime TPO Profile" script however, while still useful for "TPO Letters", can only display 1000 TPO letters concurrently.
You can also reset the TPO profile at user-defined time intervals.
The indicator hosts an auto-calculate tick levels option; however, there will be times you'll need to manually adjust the tick levels to achieve digestible results (:
That's all! If the script would benefit from an excluded feature, or you notice an error, please let me know! Thank you (:
Shoutout to @kaigouthro for creating an exceptional library for gradient colors!! It was used in this script (:
TAS Float PCL + TAS Static PCL [TASMarketProfile]TAS PRICE COMPRESSION LEVELS (PCLs) includes 2 distinct indicators that use volume at price analysis, volume aggregation and multi-timeframe confluence to calculate and display significant levels of commercial interest above and below the market. These levels reveal reliable trading levels which can be leveraged for enhanced trade entries, trailing stops and targets.
THERE ARE TWO TYPES OF TAS PCLs:
TAS Float PCLs - These levels take into account new data flow throughout the trading session and expands or contracts the levels dynamically in accordance with changing market conditions. These are often referred to by traders as “Floaters” or “Dynamic PCLs.”
TAS Static PCLs - These levels are set upon the start of the trading session and remain intact throughout the duration of the session. Many traders These are often referred to by traders as “Statics.”
Both TAS Floaters and TAS Statics have up to 10 horizontal lines available to display. The four center lines are referred to as Points of Control (POC). Three of these lines are colored cyan and one is yellow. The yellow line is more prominent and referred to as the Master Point of Control (MPOC) of the Price Compression Levels on display. The first area of commercial suppor t and resistance are plotted with red lines on both sides of the POC lines and commonly referred to as S1 and R1 levels. The next level of support and resistance areas are designated by blue lines (S2 and R2 levels) and then lastly the farthest from the POC lines are the green lines (S3 and R3 levels). By default, typically the green lines are not displayed but can be activated on an “as needed” basis within the indicator Style settings.
EXAMPLE OF TAS FLOAT PCLs:
ABOUT TAS FLOAT PCLs:
The TAS Dynamic PCLs (Floaters) reveal the price areas that attract commercial interest based on the current market conditions.
How the PCLs are plotted can be adjusted with two inputs controlled by the user.
----------1) MinSignal_123: This setting controls the sensitivity of the calculations. The default is set to 1 and this represents the most sensitive input that makes it easiest for market conditions to trigger new PCL levels. A setting of 2 is considered “medium” sensitivity and lastly a setting of 3 would require the most substantial change in conditions to trigger an adjustment of PCLs on the chart.
----------2) Length: This input setting determines the number of bars of data included in the calculation for new TAS Float PCLs to be adjusted on the chart. The default is set to 8.
MORE ON INPUT SETTINGS:
Using higher values in both inputs will display more significant areas of commercial interest for higher probability support and resistance levels around PCLs. These are referred to as “slow” Floaters.
Using lower value inputs will create Floaters that are more responsive to market conditions. These are referred to as “fast” Floaters.
When fast Floaters are contracted (cover a narrow range of prices) the market is tightly balanced and can easily enter into breakout conditions, if price closes outside of the TAS Float PCLs.
Expanded Floaters that are wider apart provide for greater rotational range trading conditions.
BELOW ARE THE RECOMMENDED INPUT SETTINGS COMBINATIONS THAT WILL DICTATE HOW RESPONSIVE THE PCLs WILL REACT TO CONDITIONS:
FAST (default): 1 - 8
MEDIUM: 2 - 14
SLOW: 3 - 34
The user will typically choose to have either Statics or Float PCLs active on the chart at a time, but not both as you'll have up to 20 levels on your chart (too many). You can, however, put them on different panes. Visit the INPUT settings of the indicator to select which one you want active.
The user can change the coloring, line type and thickness in the STYLE settings.
ABOUT TAS STATIC PCLs:
Many traders opt for TAS Static PCLs because they prefer to know the significant commercial interest price areas before they trade.
Unlike Floaters, TAS Static levels will not change throughout the trading session and are only affected if the user changes the opening and closing time parameters for the trading session displayed. By default, Static levels will recalculate and display new levels upon the reopen of the next session.
Tightly compacted POC lines designate an area of particularly strong commercial interest that provides higher probability, lower risk entries for extended directional moves. These areas are often referred to as “walls.”
If the POC lines are spread out over a wider range, a trader should be on the lookout for a more rotational trading session.
Periodically, one of the POC lines may be plotted outside of a red line (S1 or R1). In this case, the market may be biased in the same direction that the POC line is in relation to the red line.
TAS PRICE COMPRESSION LEVELS can be used as a stand-alone trading guidance system or in conjunction with other popular TASMarketProfile indicators.
Trade Well My Friends!
SpaceTime TPOSpaceTime TPO Part of the SpaceTime Complete Suite
SpaceTime TPO Provides an modified codebased to remastered to display the TPO Calculations in a separate indicator with multiple new features, a separate release was necessary in order to maximise the usage of the draw history that can be provided.
Significantly improved from its predecessor Spacetime advanced, the display options used here are less resource heavy and therefore can display multiple profiles in comparison to the previous "high res lettering"
Full suite view:
The main additional advantage of this separate indicator comes in the form of Split TPO profiles ! This utilizes the tradingview display engine creating a whole new way to display data comparative to the candlestick method, doing so will help visualise the profile as it develops.
The Split profiles comes with a pro and con
Pro:
Split profile makes it easier to detect real price movement adjusted to tick
Also tracks the VA travel by history so it is easier to visualise value expansion!
Con:
Due to some limitation some data may occasionally be missed on very volatile candles
Fix:
Increase ticksize/Leave on wicks for candles to see these fluctuations
Update fix inbound: Will display the overflow in a dynamic way so no wicks are needed for all candles if this persists to be a problem
SpaceTime TPO also comes with the same advantages of multi session profile TPOs
Additionally comes with the ability to have a session line
Session Line tracking can continue with "Total" For full length of profile
And
"VA" for Value Area tracking
(or off)
Close tracking in the form of a square is available
Pending updates:
Split profile improvement
Close tracking improvement
Naked Intrabar POCThis indicator with an unfortunate and very non PC sounding name approximates (!) the intrabar point of control (POC) either from time or volume at price.
Due to pine limitations, bin size and the sample lower time frame selection will have at least some effect on the accuracy of the approximation. The trade off is between accuracy and historical availability, however bar replay can be used to view prior historical states beyond what is visible from the current real time bar.
In order for all intrabar POC circles to be visible, you will need to manually set the visual order of the indicator by bringing it to the front.
Since the POC represents a price point around which the highest market participation occurred, the exposed global variable intrabar_poc may (or may not) be interesting as an alternative to ohlc based source input.
Session TPO Market ProfileIntroduction
Wikipedia: A Market Profile is an intra-day charting technique (price vertical, time/activity horizontal) devised by J. Peter Steidlmayer, a trader at the Chicago Board of Trade (CBOT), ca 1959-1985. Steidlmayer was seeking a way to determine and to evaluate market value as it developed in the day time frame. The concept was to display price on a vertical axis against time on the horizontal, and the ensuing graphic generally is a bell shape--fatter at the middle prices, with activity trailing off and volume diminished at the extreme higher and lower prices. In this structure he recognized the 'normal', Gaussian distribution he had been introduced to in college statistics.
Important : The market profile tool is designed to be used on the 30min timeframe, however, you can modify its parameters and use it on lower timeframes (15/10/5min)
This indicators displays the following information
Session open
TPO
Value area calculation zone
POC
Highlight of Single prints
Session High/Low
The current price (TPO Profile is often used isolated without any candlesticks on it)
Parameters
Session beginning configuration (not coded with a session input yet)
Number of candles to use for calculation (default 13 for a single session)
Extend yesterday's levels (VAH/VAL/POC)
Show/Hide Market profile calculation area (background color)
Bars number (number of rows that will be used to draw the profile)
Show/Hide TPO's
TPO Colors customization (For in/out of VA, VAL/VAH/POC/High/Low levels and single prints)
Show/Hide High/Low levels
Show/Hide VAL/VAH/POC Levels as lines
Enable/Disable Single prints highlighting
Value area size (as percent)
Show/Hide current price (corresponding to a line scaled on the "close" price)
Additional Notes
Each session is drawn when the day is over
To use as much space as possible, TPO's are not directly drawn on the area of their calculation (which can be confusing if you use candlesticks directly over it)
This script will probably be updated in the future (especially concerning its implementation which is a bit spaghetti coded for now) .
If you have interesting suggestions about new features that are usual within market profile tools and missing from this script , don't hesitate to suggest it.
Market Profile Visible RangeSup TV, 2 important points .
1) surprisingly, it's the first MP Visible Range script on TV;
2) This one doesn't use any bagging/binning*, instead each row represents the time spent on the actual minimal price steps (aka ticks).
The script will be further extended with usual market profile related functionally in future updates. At this point we have:
- Profile itself (each row represents how many bars touch the given price);
- Mode of the profile (called POC)**;
* Still it will be introduced in future when I will find / design the proper aggregating technique. It is vital for processing very wide price ranges (for example, 500 days on ES futures).
** The script correctly calculates POC by finding all the modes in the data & choosing the closest one to data's midrange.
For this kind of technical instrument finally it was more convenient to use Pine Script 5 (btw it's my first Pine 5).
Basically this script is a side-effect of another R&D I'm doing, the stuff is useful tho so let's go.
By choosing length we both specify the amount of data to be processed & the profile's location screen-wise. It's pretty cool and & useful, on my screen it's always almost touching the left side and still always visible.
The code is heavily commented in order to be understood fast, nothing fantastic, just a lil patience required this time.
Rationale
Market & volume profiles are well known concepts, lotta info available, the most important point of all that is that MP is just another way of visualizing data that lets you notice things you don't usually notice on sequential charts. From my side I can only add that it's better to use your own brain for thinking and reconsidering using volume profile in all the cases, especially on decentralized markets (unless you're aggregating ALL the volume data from everywhere, including options, OTC etc).
Here is it, for you
SpaceTime RemasteredSpaceTime Remastered
SpaceTime Remastered provides a new code base for TPO Calculations. Significantly enhanced and some differences justifying leaving both choices for users to choose between. Using the PineV5 library, providing the ability to create a profile of price and time.
The main advantage is now being able to run multiple sessions simultaneously whilst also being more efficient. This has allowed for synchronous data generation for multi profile uses and still executing at a faster speed. Additionally this has given the rise to London, New York and Asia sessions as options with this new knowledge in mind. However, the sessions can be utilised beyond this in the form of D,W,M at the same time as an example with a multitude of possible combinations up to the users interest.
Tick for the multiple sessions to determine the segmented data generation of the TPO, can be split between the sessions and work independently of one another. This tick is vital alongside time and price. The generation of this tool can be used to highlight trending and ranging conditions and opportunities to spot both can be used to take trades, e.g. using value migration in use of trend development.
The release of the AutoTick improvements is significant as well providing more consistency and less affected reaction to the volatility in its calculation leading to a more accurate profile tool. AutoTick is a global controller and will handle tick generation for any enabled session.
The words and their abbreviation plus key.
POC: Point Of Control
VA: Value Area
SP: Single Print
EXS: Excess *sell or buy tail
PHL: Poor High/Low
TPO: Time Price Opportunity
N = Naked e.g. NPOC Naked Point of Control
D = Developing e.g. DVA Developing Value Area
VAStyles and POCStyles exist to better customise the representation of datak,
Show Text Data is toggleable to give the text representation of key inflection points and data. TPO Count, TickSize used, Excess location boundaries, Single Print Location Boundaries.
Display modes exist for All data, VA + Levels and Levels up to the users choosing.
Session timings are adjustable.
ToDo:
Add Initial balance if requested.
Add User Settings for select members of the community.
Add TPO lettering, delayed as mostly unused in predecessor.
Add Rotation Factor
SpaceTime Profile CompositesSpaceTime Profile Composites
SpaceTime Profiel Composites provides an alternative composite builder to the existing solution in the SpaceTime Profile Advanced.
Using the new pinev5 I utilize the ability for user confirmed data to give them the choice in time in a more interactable and user friendly way.
The main advantage of this is the ability to create multiple composites without multiple uses of SpaceTime Profile Advanced, additionally the user can select the indicator and edit the composite start time using the chart as opposed to the date picker in pine.
The indicator is fully fleshed out with all the features:
PoC
NPoC
Single Prints
Naked Single Prints
Value Area
Value Area Levels
Naked Value Area Levels
Excess
Poor highs and lows
Initial Balance
Auto TickSize
Auto TickSize
This has been heavily adjusted to allow greater detail, and less reliant on volatility, should this work well consistently SpaceTime Profile Advanced may also recieve this change to auto ticksize.
How To Use
Composites are best utilized when multiple value areas are overlapping with their POCS in range of the previous VA's, using a composite
the user is able to generate the greater picture for how this area will provide useful levels of interest, instead of multiple smaller profiles, the user can utilize one larger profile to give more accurate levels of reaction.
Market Profile with TPOThis is is Market Profile with TPO (the letters) on the current session. Due to pinescript limitations, we are limited to 500 TPOs, since this script uses 1 label per TPO. It is NOT volume profile, this is Time Profile (Time spent at a price).
SpaceTime Profile Regular SpaceManBTCSpaceTime Profile Regular SpaceManBTC
Is a profiling tool for a market session.
Using time and price it calculates the TPO mapping the POC on your chart as well as the general profile.
The tool is useful as it can give you a general idea of how a day traded/is trading based off of its shape.
As well as provides the current developing POC as a reference for potentially a dynamic level of interest.
Value area shading is also including in the release using 68% as my reference of personal choice to represent where
bulk of the market activity occured on a given time frame.
To generate the data the indicator aims to look at the price variations over time of the given session (you can choose this in settings), this will then stack
and overlay on the chart to generate the TPO calculations by mapping 1 to 1 with the price you see on the chart.
This will give you areas of importance such as the POC which can be retested when naked providing a point of interest.
Works similar to volume profile but with no volume calculations only with price and time in mind.
Very useful tool for trend / market analysis by providing this graphical representation of a trading session between buyers and sellers!
Single PrintsThis indicator plots Single Print levels when applied on the 30min time frame.
In the settings the user can change:
Level Colors
Level Width
Level Linestyle (Dotted, Dashed, Solid)
Toggle Retested Levels on/off
Toggle Profile Mode on/off
______________________________________________
Limitations:
1. Must be on 30min time frame. If you use other time frames to trade I recommend using a separate chart.
2. By default, retested levels are set to hide. For some tickers, the time/space between the creation of the Single Print, and the retest of that Single Print is too large. This causes errors due to a limitation from Tradingview. However, this limitation does not effect untested (naked) Single Prints. Naked Single Prints can be drawn accurately for any ticker without error, so that is the default setting.
______________________________________________
About Single Prints:
Single Prints come from Market Profile charting.
They represent a breakout from an old area of value to a newer area of value.
After a confirmed breakout from value, the extreme of the old area of value is the Single Print.
The level is often sensitive and can provide good trade locations especially on lower time frames.
SpaceTime Profiles Non Overlay SpacemanBTCSpaceTime Profiles Non Overlay is a tool used by many traders that aim to get more confluence with their trading style.
ALPHA V1.0.0
Typically, market profile can be used to help determine high value areas where a likely reaction is to occur when price reaches this level, this can provide market generated support and resistance . This indicator uses time price interaction to accurately create a market profile for TradingView, a feature that is useful for many traders who want to expand their knowledge.
User can choose to enable or disable lettering, and further features such as tick size and color are customizable.
Soon I will include additional features such as point of control extending the area of interest.
Currently works in non overlay mode, apply to existing panel to make it easier to chart lines.
Further more an overlay version is in the works
Looking forward to everyone trying this, you can appropriately message me for access.
Half Back minimalisticless intrusive version of my half back indicator.
Show the midpoint of the current day.
[R&D] Moving CentroidThis script utilizes this concept. Instead of weighting by volume, it weights by amount of price action on every close price of the rolling window. I assume it can be used as an additional reference point for price mode and price antimode.
it is directly connected with Market (not volume) profile, or TPO charts.
The algorithm:
1) takes a rolling window of, for example, 50 data points of close prices:
2) for each of this closing prices, the algorithm will check how many bars touched this close price.
3) then: sum of datapoints * weights/sum of weights
Since the logic is implemented in pretty non-efficient way, the script sometimes can take time to make calculations. Moreover, it calculates the centroid taking into account only close prices, not every tick. of a given rolling window That's why it's still experimental.