Machine Learning: VWAP [YinYangAlgorithms]Machine Learning: VWAP aims to use Machine Learning to Identify the best location to Anchor the VWAP at. Rather than using a traditional fixed length or simply adjusting based on a Date / Time; by applying Machine Learning we may hope to identify crucial areas which make sense to reset the VWAP and start anew. VWAP’s may act similar to a Bollinger Band in the sense that they help to identify both Overbought and Oversold Price locations based on previous movements and help to identify how far the price may move within the current Trend. However, unlike Bollinger Bands, VWAPs have the ability to parabolically get quite spaced out and also reset. For this reason, the price may never actually go from the Lower to the Upper and vice versa (when very spaced out; when the Upper and Lower zones are narrow, it may bounce between the two). The reason for this is due to how the anchor location is calculated and in this specific Indicator, how it changes anchors based on price movement calculated within Machine Learning.
This Indicator changes the anchor if the Low < Lowest Low of a length of X and likewise if the High > Highest High of a length of X. This logic is applied within a Machine Learning standpoint that likewise amplifies this Lookback Length by adding a Machine Learning Length to it and increasing the lookback length even further.
Due to how the anchor for this VWAP changes, you may notice that the Basis Line (Orange) may act as a Trend Identifier. When the Price is above the basis line, it may represent a bullish trend; and likewise it may represent a bearish trend when below it. You may also notice what may happen is when the trend occurs, it may push all the way to the Upper or Lower levels of this VWAP. It may then proceed to move horizontally until the VWAP expands more and it may gain more movement; or it may correct back to the Basis Line. If it corrects back to the basis line, what may happen is it either uses the Basis Line as a Support and continues in its current direction, or it will change the VWAP anchor and start anew.
Tutorial:
If we zoom in on the most recent VWAP we can see how it expands. Expansion may be caused by time but generally it may be caused by price movement and volume. Exponential Price movement causes the VWAP to expand, even if there are corrections to it. However, please note Volume adds a large weighted factor to the calculation; hence Volume Weighted Average Price (VWAP).
If you refer to the white circle in the example above; you’ll be able to see that the VWAP expanded even while the price was correcting to the Basis line. This happens due to exponential movement which holds high volume. If you look at the volume below the white circle, you’ll notice it was very large; however even though there was exponential price movement after the white circle, since the volume was low, the VWAP didn’t expand much more than it already had.
There may be times where both Volume and Price movement isn’t significant enough to cause much of an expansion. During this time it may be considered to be in a state of consolidation. While looking at this example, you may also notice the color switch from red to green to red. The color of the VWAP is related to the movement of the Basis line (Orange middle line). When the current basis is > the basis of the previous bar the color of the VWAP is green, and when the current basis is < the basis of the previous bar, the color of the VWAP is red. The color may help you gauge the current directional movement the price is facing within the VWAP.
You may have noticed there are signals within this Indicator. These signals are composed of Green and Red Triangles which represent potential Bullish and Bearish momentum changes. The Momentum changes happen when the Signal Type:
The High/Low or Close (You pick in settings)
Crosses one of the locations within the VWAP.
Bullish Momentum change signals occur when :
Signal Type crosses OVER the Basis
Signal Type crosses OVER the lower level
Bearish Momentum change signals occur when:
Signal Type crosses UNDER the Basis
Signal Type Crosses UNDER the upper level
These signals may represent locations where momentum may occur in the direction of these signals. For these reasons there are also alerts available to be set up for them.
If you refer to the two circles within the example above, you may see that when the close goes above the basis line, how it mat represents bullish momentum. Likewise if it corrects back to the basis and the basis acts as a support, it may continue its bullish momentum back to the upper levels again. However, if you refer to the red circle, you’ll see if the basis fails to act as a support, it may then start to correct all the way to the lower levels, or depending on how expanded the VWAP is, it may just reset its anchor due to such drastic movement.
You also have the ability to disable Machine Learning by setting ‘Machine Learning Type’ to ‘None’. If this is done, it will go off whether you have it set to:
Bullish
Bearish
Neutral
For the type of VWAP you want to see. In this example above we have it set to ‘Bullish’. Non Machine Learning VWAP are still calculated using the same logic of if low < lowest low over length of X and if high > highest high over length of X.
Non Machine Learning VWAP’s change much quicker but may also allow the price to correct from one side to the other without changing VWAP Anchor. They may be useful for breaking up a trend into smaller pieces after momentum may have changed.
Above is an example of how the Non Machine Learning VWAP looks like when in Bearish. As you can see based on if it is Bullish or Bearish is how it favors the trend to be and may likewise dictate when it changes the Anchor.
When set to neutral however, the Anchor may change quite quickly. This results in a still useful VWAP to help dictate possible zones that the price may move within, but they’re also much tighter zones that may not expand the same way.
We will conclude this Tutorial here, hopefully this gives you some insight as to why and how Machine Learning VWAPs may be useful; as well as how to use them.
Settings:
VWAP:
VWAP Type: Type of VWAP. You can favor specific direction changes or let it be Neutral where there is even weight to both. Please note, these do not apply to the Machine Learning VWAP.
Source: VWAP Source. By default VWAP usually uses HLC3; however OHLC4 may help by providing more data.
Lookback Length: The Length of this VWAP when it comes to seeing if the current High > Highest of this length; or if the current Low is < Lowest of this length.
Standard VWAP Multiplier: This multiplier is applied only to the Standard VWMA. This is when 'Machine Learning Type' is set to 'None'.
Machine Learning:
Use Rational Quadratics: Rationalizing our source may be beneficial for usage within ML calculations.
Signal Type: Bullish and Bearish Signals are when the price crosses over/under the basis, as well as the Upper and Lower levels. These may act as indicators to where price movement may occur.
Machine Learning Type: Are we using a Simple ML Average, KNN Mean Average, KNN Exponential Average or None?
KNN Distance Type: We need to check if distance is within the KNN Min/Max distance, which distance checks are we using.
Machine Learning Length: How far back is our Machine Learning going to keep data for.
k-Nearest Neighbour (KNN) Length: How many k-Nearest Neighbours will we account for?
Fast ML Data Length: What is our Fast ML Length? This is used with our Slow Length to create our KNN Distance.
Slow ML Data Length: What is our Slow ML Length? This is used with our Fast Length to create our KNN Distance.
If you have any questions, comments, ideas or concerns please don't hesitate to contact us.
HAPPY TRADING!
Объем
Voluminati: Uncovering Market SecretsVoluminati: Uncovering Market Secrets
Overview:
The Voluminati indicator dives deep into the secrets of trading volume, providing traders with unique insights into the market's strength and direction. This advanced tool visualizes the Relative Strength Index (RSI) of trading volume alongside the traditional RSI of price, presenting an enriched perspective on market dynamics.
Features:
Volume RSI: A unique twist on the traditional RSI, the Volume RSI measures the momentum of trading volume. This can help identify periods of increasing buying or selling pressure.
Traditional RSI: The renowned momentum oscillator that measures the speed and change of price movements. Useful for identifying overbought or oversold conditions.
Moving Averages: Both the Volume RSI and traditional RSI come with optional moving averages. These can be toggled on or off and are customizable in type (SMA or EMA) and length.
Overbought & Oversold Fills: Visual aids that highlight regions where the Volume RSI is in overbought (above 70) or oversold (below 30) territories. These fills help traders quickly identify potential reversal zones.
How to Use:
Look for divergence between the Volume RSI and price, which can indicate potential reversals.
When the Volume RSI moves above 70, it might indicate overbought conditions, and when it moves below 30, it might indicate oversold conditions.
The optional moving averages can be used to identify potential crossover signals or to smooth out the oscillators for a clearer trend view.
Customizations:
Toggle the display of the traditional RSI and its moving average.
Choose the type (SMA/EMA) and length for both the Volume RSI and traditional RSI moving averages.
Note: Like all indicators, the Voluminati is best used in conjunction with other tools and analysis techniques. Always use proper risk management.
Advanced VSA: Trend and Range LevelsThe indicator is designed for traders who are more interested in market structures and price action using volumes. Analyzing volumes, key market levels, market phases (trend or range/sideways), and multiple timeframes can help the trader build a clearer and more comprehensive view of the market. The data analysis algorithm is developed based on VSA methods, elements of the ICT concept, and the results of my research to assist trader in gaining a better understanding of the market and uncovering information that might go unnoticed.
The key idea is to consider multiple timeframes in trading. Understanding larger market movements from higher timeframes can provide a deeper context when making trading decisions, aiming to assist in more effective entries and exits. This is achieved by identifying the trend and its support levels on multiple timeframes, identifying ranges and their current boundaries, as well as buyer and seller interest zones.
Key Features
Trend Identification: The indicator determines the trend and its current support level. All significant price &movements occur in the form of impulses (either by sellers or buyers). An impulse consists of one or several consecutive candlesticks, at least one of which has a closing price beyond the boundaries of the previous impulse. The indicator displays the base of the impulse and/or the entire impulse. The base of the impulse represents the trend's support level.
Range Identification: The indicator can identify ranges and their current boundaries. Institutional traders take positions within price ranges, and many market reversals occur after flats. A range is a sequential price movement up and down within a specific price range. A range is formed by a minimum of 4 points, 2 above and 2 below, and is defined by its boundaries. The indicator detects ranges based on two (two consecutive impulses in one direction) or three impulses (the first and third in one direction, and the second in the opposite direction). The indicator displays the current boundary points of the range and the level of protection after exiting the range and initiating a trend.
Buyer and seller zones within impulses: After the impulse ends, a correction occurs. It is advisable to look for entry points during this correction in the direction of the impulse from the zone of interest of the owner of the impulse: the buyer's zone for a long impulse and the seller's zone for a short impulse. A zone consists of a series of consecutive candlesticks grouped on the chart in a specific manner.
Multi-Timeframe Trend Identification: The indicator also identifies the trend on two higher timeframes and displays the two latest bases of impulses from those higher timeframes on the chart.
Additional Features
Identification of Test Levels and Effort. A test is the price's return to a zone or to a candle of effort, followed by a continuation in the direction of the initial price movement. It is characterized by the test level. An effort or effort candle is a single candle that is individually larger in volume than the previous 2.
Example Use Cases
You can display the base levels of impulses from a 4-hour time frame and a daily time frame on a 15-minute chart to keep track of important levels from higher timeframes.
By exploring different timeframes, you can identify consolidations (range/sideways movements) and trade within them in the direction of the trend from higher timeframes.
If the market is in a trending phase (the presence of a trend is determined by two consecutive impulses in the same direction), look for trades in the direction of the impulse, following these priorities:
When the impulse base level is protected by the host of the impulse.
During corrections, look for buy trades in the buyer's zone for an uptrend and sell trades in the seller's zone for a downtrend.
During corrections, look for buy trades from a buyer's effort candle for an uptrend and sell trades from a seller's effort candle for a downtrend.
If the market is in a consolidation phase (range), look for trades:
When the current or maximum/minimum historical boundaries of the consolidation (range) are protected, look for trades towards the opposite current boundary.
If the price exits the consolidation/range (closes outside all consolidation boundaries, including both current and historical boundaries), then during corrections, look for trades in the direction of the exit.
Settings
Trend: Display base levels of impulses and/or the entire impulse. Sideways Ranges (Sideways Markets): Display the required number of sideways ranges on the chart, along with protection levels for exiting the sideways range. There are two modes for finding sideways ranges. The first mode requires touching points. The second mode (advanced) does not require precise touching of points if there are increased volumes at the extreme points of the sideways range. Touching these volumes is sufficient for the price.
Zones: Display zones on the chart. Choose the types of displayed zones and their colors. They are divided into three types. The first type is the most promising for finding trades. Type 3 represents more aggressive trades.
Test Levels: Display test levels for zones and efforts on the chart. There are three types of test levels. The first type is the most promising for finding trades. Type 3 is not recommended for finding trades as it represents the most aggressive trades.
Higher Time Frames: Choose 2 timeframes and the types of displayed impulse base lines.
Bull Vs Bear Visible Range VP [Kioseff Trading]Hello!
This Script “Bull vs Bear Visible Range VP” Calculates Bull & Bear Volume Profiles for the Visible Range Alongside a Delta Ladder for the Visible Period!
Features
Volume Profile Anchored to Visible Range
Delta Ladder Anchored to Visible Range
Bull vs Bear Profiles!
Standard Poc and Value Area Lines, in Addition to Separated POCs and Value Area Lines for Bull Profiles and Bear Profiles
Configurable Value Area Target
Curved Profiles
Up to 9999 Profile Rows per Visible Range
Stylistic Options for Profiles
This Script Generates Bull vs. Bear Volume Profiles for the Visible Range!
Up to 9999 Volume Profile Levels (Price Levels) Can Be Calculated for Each Profile, Thanks to the New Polyline Feature, Allowing For Less Aggregation / More Precision of Volume at Price and Volume Delta.
Bull vs Bear Profiles
The Image Above Shows Primary Functionality!
Green Profiles = Buying Volume
Red Profiles = Selling Volume
Bullish & Bearish Pocs for the Visible Range Are Displayable!
Profiles Can Be Anchored on the Left Side for a More Traditional Look.
The indicator is robust enough to calculate on "small price periods", or for a price period spanning your entire chart fully zoomed out!
That’s About It :D
This Indicator Is Part of a Series Titled “Bull vs. Bear” - A Suite of Profile-Like Indicators I Will Be Releasing Over Coming Days. Thanks for Checking This Out!
If You Have Any Suggestions Please Feel Free to Share!
Zig-Zag Open Interest Footprint [Kioseff Trading]Hello!
This script "Zig Zag Open Interest Footprint" calculates open interest x price values for zig zag trends!
Features
Open interest footprints anchored to zig zag trends
Summed OI x price level footprints
Total OI (for each category) for the entire trend shown
Standard POC lines, in addition to separated POC lines for each category of open interest x price possibility
Up to 9999 profile rows per zigzag trend
Stylistic options for profiles
Configurable zig zag - footprints generated for small to large trends
The zigzag indicator is configurable as normal; minor and major trend volume footprints are calculable. This indicator can be thought of as "Open Interest Footprint for Trends''.
Up to 9999 open interest levels (price levels) can be calculated for each profile, thanks to the new polyline feature, allowing for less aggregation / more precision of open interest at price.
Zig Zag OI Footprints
The image above shows primary functionality!
Green = Higher OI + Higher Price
Yellow = Lower OI + Higher Price
Purple = Higher OI + Lower Price
Red = Lower OI + Lower Price
Profiles are generated for each trend identified by the zigzag indicator.
The image above shows the indicator calculating open interest x price for specific price blocks on the footprint. Aggregate open interest for the identified trend is displayed over the profile!
Neon highlighted values correspond to the highest open interest change for the category. This is a configurable option :D
The image above shows POC lines for each category of open interest x price!
Additionally, you can select to show a single POV for footprint - the single level the greatest amount of OI change occurred.
The indicator is robust enough to calculate on "long zig zags" and "short zig zags"; curved profiles can also be used!
The image above shows key levels, each OI footprint, and summed OI values for the current trend!
That's about it :D
This indicator is part of a series titled "Bull vs. Bear" - a suite of profile-like indicators I will be releasing over the coming days. Thanks for checking this out!
If you have any suggestions please feel free to share!
Asiri Colored CandleNote: To use this code, you must choose Hollow candle
This code color the candle based the relationship current volume to previous volume, according these features:
1- White candle when the current volume greater than the previous one, and all of them greater than moving average for 20 periods of volume
2- Green candle color when the current volume greater than the previous one, and all of them lower than moving average for 20 periods of volume
3- Blue candle it means (Bullish Candle) purchasing candles, with change 3% or higher
4- Yellow candle it means (Bearish Candle) with change 3% or higher
5- The number upper the candle means how much does the volume represent relative to the volume moving average
6- The number lower candle means value of MFI indicator value
كود برمجي يقوم بإعطاء لون للشموع بناء على الحجم
لطي تتمكن من استخدام هذا الكود يجب أن يكون نمط الشموع الذي على الشارت شموع مفرغة
من خصائصه التالي
1- إذا الحجم السفلي الحالي أكبر من الحجم السابق وكلاهما فوق متوسط 20 للحجم والسعر الحالي ارتفع عن السعر السابق يقوم بتلوين الشمعة بيضاء
2- إذا الحجم السفلي الحالي أكبر من الحجم السابق وكلاهما أسفل متوسط 20 للحجم والسعر الحالي ارتفع عن السعر السابق يقوم بتلوين الشمعة خضراء
3- إذا الحجم الحالي أقل من السابق ولكن تكونت شمعة شرائية ارتفعت الشمعة بـ 3% أو تغيرها كان 3% فأعلى يكون لونها أزرق
4- إذا تكونت شمعة بيعية انخفاضها أو تغيرها كان 3% بأعلى يكون لونها أصفر
5- الأرقام أعلى الشموع تبين كم أن الحجم المقابل للشمعة ضعف الحجم لمتوسط حجم 20 فترة سابقة للحجم يعني إذا كان أعلى الشمعة 3 فهذا يعني أن الحجم لهذه الشمعة ارتفع بـ 3 أضعاف متوسط 20 فترة سابقة للحجم ، كما أن هذا الرقم يظهر أعلى شمعة الدوجي التي إغلاقها مساوي لافتتاحها
6- الرقم أسفل الشمعة يبين قيمة مؤشر التدفق النقدي MFI
أخيرا تستطيع التعديل على الكود حسب ما تراه و إخفاء الأرقام أعلى أو أسفل الشموع
لا تنسوني من دعائكم
Omega Smart AnalystThe Omega Smart analyst is a tool designed to help traders visualize in a clearer way key price levels on the chart based on the price and the volume.
The indicator has some features, including:
- Option to customize the colors for all of the tools available to have common aesthetics
- Option to choose the length and the sensitivity for all of the tools
Volume clusters: display automatic volume clusters that can be used as support or resistance following the order block theory. These levels can be highlighted or extended in the settings.
Support and resistance: show automatic support and resistance levels based on volume.
Candle coloring: color candles based on volume and volatility, great to use as a signal confirmation.
Full levels: show previous high, low, and close levels on the chart, great to use to detect liquidity and breakouts
Bias target: a tool to enhance one of the low or high of the previous full levels according to the daily liquidity bias ICT method. As shown in the picture above you can also choose to display only these levels.
Market structure: show the current trend according to the market structure.
Structure origin: shows the main level of support and resistance with an area that gives also an indication of the current price volatility.
Risk Disclaimer:
All content and scripts provided are purely for informational & educational purposes only and do not constitute financial advice or a solicitation to buy or sell any securities of any type. Past performance does not guarantee future results. Trading can lead to a loss of the invested capital in the financial markets. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information. All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
Zig-Zag Volume Profile (Bull vs. Bear) [Kioseff Trading]Hello!
Thank you @Pinecoders and @TradingView for putting polylines in production and making this viable!!
This script "Zig Zag Volume Profile" implements the polyline feature for Pine Script!
Features
Volume Profile anchored to zig zag trends
Bull vs Bear profiles!
Delta x price level
Standard POC and value area lines, in addition to separated POCs and value area lines for bull profiles and bear profiles
Up to 9999 profile rows per zigzag trend
Stylistic options for profiles
Configurable zig zag - profiles generated for small to large trends
Polylines!
This script generates Bull vs. Bear volume profiles for zig zag trends!
The zigzag indicator is configurable as normal; minor and major trend volume profiles are calculable. This indicator can be thought of as "Volume Profile/Delta for Trends''.
Up to 9999 volume profile levels (price levels) can be calculated for each profile, thanks to the new polyline feature, allowing for less aggregation / more precision of volume at price and volume delta.
Zig Zag Bull Vs Bear Profiles
The image above shows primary functionality!
Green profiles = buying volume
Red profiles = selling volume
Profiles are generated for each trend identified by the zigzag indicator.
The image above shows the indicator calculating volume delta for specific price blocks on the profile. Aggregate volume delta for the identified trend is displayed over the profile!
The image above shows Bull Profile POC lines and value area lines. Bear Profile POC lines and value area lines are also shown!
All colors and transparencies are configurable to the user's liking :D
Additionally, you can select to have the profiles drawn on contrasting sides. Bull Profile on left and Bear Profile on right.
For a more traditional look - you can select to draw the Bull & Bear profiles on the same x-point.
The indicator is robust enough to calculate on "long zig zags" and "short zig zags"; curved profiles can also be used!
The image above exemplifies usage of the indicator!
Bull & Bear volume profiles are calculated for trends on the 30-second timeframe.
The image above shows a more "utilitarian" presentation of the profiles. Once more, line and linefill colors/transparencies are all customizable; the indicator can look however you would like it to!
The image above shows key levels, the Bull vs. Bear profile, and volume delta for the current trend!
That's about it :D
This indicator is part of a series titled "Bull vs. Bear" - a suite of profile-like indicators I will be releasing over coming days. Thanks for checking this out!
Of course, a big thank you to @RicardoSantos for his MathOperator library that I use in every script.
If you have any suggestions please feel free to share!
Volume Profile with a few polylinesThe base of "Volume Profile with a few polylines" is another script of mine, Volume Profile (Maps) .
The structure of maps is used to gather the data. However, the drawings is done with polylines.
This enables coders to draw an entire volume profile with just a few polylines, while the range is broader.
This results in the benefit to draw more "lines" than with line.new() / box.new() alone.
🔶 CONCEPTS
🔹 Polylines
polyline.new creates a new polyline instance and displays it on the chart, sequentially connecting all of the points in the `points` array with line segments.
The segments in the drawing can be straight or curved depending on the `curved` parameter.
In this script, points are connected, starting from the bottom. The created line moves up until there is a price level where a volume value needs to be displayed,
at which the line goes to the left to the concerning volume value, coming back at the same price level until the line returns to its initial x-axis,
after which the line will continue to rise until all values are displayed.
A polyline can contain maximum 10000 points (10K).
Since the line has to go back and forth, each price/volume line takes 3 points.
In the case that 20K bars all have a different price, we would need 60K points, or just 6 polylines. A maximum of 100 polylines can be displayed.
The 3 highest volume values are displayed with line.new(), each with their own colour.
🔹 Maps
A map object is a collection that consists of key - value pairs
Each key is unique and can only appear once. When adding a new value with a key that the map already contains, that value replaces the old value associated with the key .
You can change the value of a particular key though, for example adding volume (value) at the same price (key), the latter technique is used in this script.
Volume is added to the map, associated with a particular price (default close, can be set at high, low, open,...)
When the map already contains the same price (key), the value (volume) is added to the existing volume at the associated price.
A map can contain maximum 50K values, which is more than enough to hold 20K bars (Basic 5K - Premium plan 20K), so the whole history can be put into a map.
🔹 Rounding function
This publication contains 2 round functions, which can be used to widen the Volume Profile
Round
• "Round" set at zero -> nothing changes to the source number
• "Round" set below zero -> x digit(s) after the decimal point, starting from the right side, and rounded.
• "Round" set above zero -> x digit(s) before the decimal point, starting from the right side, and rounded.
Example: 123456.789
0->123456.789
1->123456.79
2->123456.8
3->123457
-1->123460
-2->123500
Step
Another option is custom steps.
After setting "Round" to "Step", choose the desired steps in price,
Examples
• 2 -> 1234.00, 1236.00, 1238.00, 1240.00
• 5 -> 1230.00, 1235.00, 1240.00, 1245.00
• 100 -> 1200.00, 1300.00, 1400.00, 1500.00
• 0.05 -> 1234.00, 1234.05, 1234.10, 1234.15
•••
🔶 FEATURES
🔹 Volume * currency
Let's take as example BTCUSD, relative to USD, 10 volume at a price of 100 BTCUSD will be very different than 10 volume at a price of 30000 (1K vs. 300K)
If you want volume to be associated with USD, enable Volume * currency . Volume will then be multiplied by the price:
• 10 volume, 1 BTC = 100 -> 1000
• 10 volume, 1 BTC = 30K -> 300K
Polylines has the attributes curved & closed.
When "curved" is enabled the drawing will connect all points from the `points` array using curved line segments.
When "closed" is enabled the drawing will also connect the first point to the last point from the `points` array, resulting in a closed polyline.
They are default disabled, but can be enabled:
🔶 DETAILS
🔹 Put
When the map doesn't contain a price, it will be added, using map.put(id, key, value)
In our code:
map.put(originalMap, price, volume)
or
originalMap.put(price, volume)
A key (price) is now associated with a value (volume) -> key : value
Since all keys are unique, we don't have to know its position to extract the value, we just need to know the key -> map.get(id, key)
We use map.get() when a certain key already exists in the map, and we want to add volume with that value.
if originalMap.contains(price)
originalMap.put(price, originalMap.get(price) + volume)
-> At the last bar, all prices (source) are now associated with volume.
🔶 SETTINGS
Source : Set source of choice; default close , can be set as high , low , open , ...
Volume & currency : Enable to multiply volume with price (see Features )
Amount of bars : Set amount of bars which you want to include in the Volume Profile
🔹 Round -> ' Round/Step '
Round -> see Concepts
Step -> see Concepts
🔹 Display Volume Profile
Offset: shifts the Volume Profile (max. 500 bars to the right of last bar, see Features )
Max width Volume Profile: largest volume will be x bars wide, the rest is displayed as a ratio against largest volume (see Features )
Colours
Curved: make lines curved
Closed: connect last with first point
🔶 LIMITATIONS
• Lines won't go further than first bar (coded).
• The Volume Profile can be placed maximum 500 bar to the right of last price.
Watchlist Heatmap PlusIntroducing 'Watchlist Heatmap Plus,' an advanced indicator designed to supercharge your trading experience. With this tool, you can easily track up to 40 symbols in your watchlist and gain valuable insights into their performance. Here's what it does:
1. Data Visualization: Watchlist Heatmap Plus displays essential data for each symbol, including open, high, low, close, close percent, volume, and volume percent.
2. Dynamic Color Coding: The indicator leverages a dynamic color-coding system to make data interpretation a breeze. By default, red indicates a decrease or a lower value compared to the immediate previous candle, while green represents an increase or a higher value. This color scheme is consistently applied to open, high, low, close, and volume data, making it easy to spot trends at a glance. Close percent and volume percent are color-coded according to their actual values.
3. Customization Options: Users have the power to customize the displayed data to align with their trading strategy. They can choose from several data display options:
- Regular: Display the original data as is.
- Change: Show the difference between the current value and the previous candle.
- Change Percent: Display the percentage change between the current and previous values.
- Equal To, Less Than, Less Than or Equal To, Greater Than, Greater Than or Equal To: Perform comparison operations between the current and previous value, producing a boolean output.
4. Consistent Color Coding: Regardless of the data display option chosen, the color-coding functionality remains the same, based on the percentage change, allowing traders to quickly assess the health of each symbol.
Performance Considerations:
Please be aware that due to the complexity of this indicator and the substantial volume of data requests it handles, users may experience occasional data lag and performance slowdown, particularly when applied to certain timeframes. In some cases, there may be a risk of memory exhaustion, especially on smaller timeframes.
To optimize your experience and ensure smooth functionality, I recommend using this indicator on higher timeframes where data processing is less resource-intensive. Additionally, when using the indicator with the chart's replay feature, be cautious as it may encounter memory limits, affecting its performance.
Intraday Volume Rating [Honestcowboy]The Intraday Volume Rating aims to provide a clearer picture of what volume is telling you on intraday charts.
What is different to other forms of volume analysis
While Volume averages and other measures of volume base their calculations on the previous bars on the chart (for example bars 1954 to 1968). The average volume in this indicator measures expected volume during that time of the day.
🔷 Why would you take this approach?
Markets behave different during certain times of the day, also called sessions.
Here are a couple examples.
Asian Session (generally low volatility)
London Session (bigger volatility starts)
New York Session (overlap of New York with London creates huge volatility)
Generally when using other types of volume averaging it does not take into account these sessions and that the market has a pattern for volume in an intraday chart.
🔷 CALCULATION
Think of this script like an average of volume but instead it uses past days data instead of previous bars data.
This is a chart explaining the indicator this script is based on The same principle applies but instead we measure volume at each bar of the day.
The script also counts the number of bars that exist in a day on your current timeframe chart. After knowing that number it creates the matrix used in it's calculations and data storage.
See how it works perfectly on a lower timeframe chart below:
Getting this right was the hardest part, check the coding if you are interested in this type of stuff. I commented every step in the coding process.
Every setting of the script is commented so no need for further explanation, enjoy!
VWAP (Any Anchor)Hello Traders,
Introduction:
The Volume Weighted Average Price (VWAP) is a powerful trading indicator used to gauge the average price at which an asset has traded, weighted by volume, over a specific period.
One of the key factors that can significantly impact the effectiveness of VWAP is the concept of "anchoring." In this TradingView indicator script description, we'll explore the concept of anchoring and how it's integrated into a customizable VWAP indicator.
Understanding Anchoring:
Anchoring in VWAP refers to selecting a specific point in time from which the VWAP calculation begins.
This "anchor point" serves as the starting reference for VWAP, and it can substantially impact the indicator's behavior and interpretation.
Anchoring allows traders to adapt VWAP to different trading strategies and scenarios.
Here are some common anchor points used in the script and their significance:
1. Time-Based Anchors: Traders often anchor VWAP to specific times of the trading day, such as the market open (e.g., 9:30 am EST) or close (e.g., 4:00 pm EST).
You could add in the script any time-based anchor you think is relevant for your trading.
2. Event-Based Anchors: Anchoring can also be based on specific market events.
For example, some traders anchor VWAP to events like "3 Consecutive Green Candles" or "Supertrend" direction changes.
Feel free to adapt the script here and add the relevant events-based anchor for your trading.
3. Multi-Timeframe Anchoring: Traders can anchor VWAP on different timeframes, allowing them to analyze price and volume interactions across various horizons.
This flexibility is especially valuable for swing traders adapting to longer-term trends.
Anchor Selection
Traders can choose from various anchor points, including time-based, event-based, and even an "External Connector" for flexibility in adapting VWAP to specific scenarios.
The External connector is the output from another script used in this VWAP script.
Your script may have a condition being “true” whenever a signal is printed - you can use this signal as the anchor for the VWAP.
Conclusion:
Understanding anchoring in VWAP is essential for traders using this indicator effectively.
Choosing and customizing anchor points empowers traders to adapt VWAP to their specific trading styles and strategies.
Whether focused on intraday precision or analyzing longer-term trends, a customizable VWAP indicator with flexible anchoring options can be valuable to your trading toolkit.
Tailor your VWAP to your unique needs and gain deeper insights into market trends and price action.
Made with love
Dave
Crypto Manipulation [ProjeAdam]OVERVIEW
Indicator that detects manipulation candles on the Binance exchange according to open interest, volume, candlestick analyzes and percent changes.
IMPORTANT NOTE: This indicator works in Crypto Binance Exchange and only in Future Parities.
Example ->> BTCUSDT.P -- ETHUSDT.P -- ADAUSDT.P
> Topics in the writing of the crypto manipulation indicator <
Market makers manipulate the crypto market because most people who trade on the stock exchange act with their emotions and are forced to close the transaction at a loss. In these manipulations, many people are liquidated and the money they earn is used as fuel in the market.
We can reduce the psychological impact that the market is trying to have on us with this indicator.
IF we detect manipulation candles in the market, we can control our fragile psychology and close our transactions in profit by trading with market-making formations in these areas.
ALGORITHM
In this indicator, I use 4 different datasets to detect manipulation candles in crypto market.
1- Extremely variable volume data in Spot and Future markets
2- Wicks formed by candles
3-Percentage change of price movement
4-Distance from the average value of people who open and close transactions in Future parity
When there is excessive volatility in price movement, the algorithm in this indicator notices this price volatility and calculates a manipulation value by dividing it by the volatility value in past price movements.
In my Python backtests, I noticed that when manipulation is done in the crypto market, there is extreme volatility in certain values. This is because there are more robots in the crypto exchange than in the Bist exchange and the total transaction volume is less than in other exchanges. We observe these data that change in a short time, the amount of volume created by people being liquidated, and the open positions that are forcibly closed due to this situation, only in Cryptocurrency exchanges.
How does the indicator work?
The manipulation candle does not give us information about the direction of price movement, it is only used as an auxiliary indicator. With the help of this indicator, we can prevent large losses by better determining our risk situation during and after manipulation.
We show our manipulation values as columns. We draw a channel over the values we show and we understand that there is manipulation in the candle of our values above this channel.
The indicator shows the manipulation value in the form of columns. Our manipulation value that goes outside the channel we have determined is colored red, within the channel it is colored yellow, and below the channel it is colored green. Red columns indicate candles that are manipulations.
As we observed in the example above, we observe excessive volume increase, momentum in open interest and wick candles during manipulation times. As these values increase, our manipulation value also increases.
What are the BIST and Crypto Exchanges and What are the differences between them?
The differences between the general structure of BIST Exchange and the general structure of the cryptocurrency exchange are as follows;
1- While trading takes place under goverment control in BIST Exchange, there are no regulations in the Cryptocurrency market yet.
2- Since BIST Exchange is a much larger market than the cryptocurrency exchange, manipulations can be made by very large money owners and large companies, but there is a monopolized situation in crypto.
3- We see instantaneous large changes in volume in the cryptocurrency market during manipulation times. While this situation is not seen effectively in the BIST exchange, volume changes have a great impact on the crypto exchange.
4- Since there are many open source codes in the cryptocurrency exchange and much easier and faster trading is allowed thanks to the robots produced by software, manipulations in the cryptocurrency exchange occur very quickly and in a short time.
5- We can know who opened and closed transactions in which candle in the cryptocurrency market, but we cannot access this data in Borsa Istanbul.
The majority of Borsa Istanbul users do not trade in crypto, and many users who trade in crypto do not know Borsa Istanbul because only TURKISH citizens can open transactions here.
Using two completely different algorithms and publishing two different indicators will be convenient for many users at this stage. The indicators to be used for these two exchanges, which have many different features that I have explained above, should also be different.
So What are the differences between the two algorithms?
1-Crypto manipulation indicator uses liquidation data, we cannot access this data on the Bist exchange.
2-While manipulations in the crypto exchange occur in very short periods of time, BIST generally moves slower than crypto.
3-By using the crypto manipulation indicator open interest data, we can access in detail on which candle the transaction was opened and closed, but we cannot access it on the Bist exchange.
In our example above, when manipulation candles are formed, you see the volumetric change and the change in open interest. The excessive increase in volume and the momentum of open interest data affects our crypto manipulation value.
The greater the volume increase, the greater the manipulation.
Regardless of the open interest direction, the greater the momentum change in value, the more manipulation has been done.
Our BIST manipulation indicator only focuses on the change of candles in the market structure. In other words, it cares about percentage changes and the change within the average. I tried to show in the example above that volume data is not a consistent variable in the BIST stock market when calculating manipulation.
The user types of the two different indicators vary greatly, and both indicators benefit the community by making calculations according to the metrics of their own exchanges. For the reasons I explained above, I thought it would be better to write two indicators for tradingview users that work with different algorithms on two different exchanges.
Example
In our example above, we see a manipulation candle clearing the stops formed, the market maker clearing the orders at the people's stop levels at the bottom to move the price up.
We can quickly control manipulation candles in 5 different parities at the same time by entering our parities in the settings panel.
In our example above, we observe a beautiful manipulation candle. As you can see, if there is an extreme increase in volume, a momentum movement in the open line and a candle with a wick, we should look for manipulation here.
SETTINGS PANEL
We have only two setting in this indicator.
Our multiplier value determines the width of the band value formed above our manipulation value. In the chart above, our multiplier value is 3.2. If we reduce our multiplier value, our manipulation sensitivity will decrease as there will be much more candles on the band.
If you have any ideas what to add to my work to add more sources or make calculations cooler, suggest in DM .
Volume and Price Z-Score [Multi-Asset] - By LeviathanThis script offers in-depth Z-Score analytics on price and volume for 200 symbols. Utilizing visualizations such as scatter plots, histograms, and heatmaps, it enables traders to uncover potential trade opportunities, discern market dynamics, pinpoint outliers, delve into the relationship between price and volume, and much more.
A Z-Score is a statistical measurement indicating the number of standard deviations a data point deviates from the dataset's mean. Essentially, it provides insight into a value's relative position within a group of values (mean).
- A Z-Score of zero means the data point is exactly at the mean.
- A positive Z-Score indicates the data point is above the mean.
- A negative Z-Score indicates the data point is below the mean.
For instance, a Z-Score of 1 indicates that the data point is 1 standard deviation above the mean, while a Z-Score of -1 indicates that the data point is 1 standard deviation below the mean. In simple terms, the more extreme the Z-Score of a data point, the more “unusual” it is within a larger context.
If data is normally distributed, the following properties can be observed:
- About 68% of the data will lie within ±1 standard deviation (z-score between -1 and 1).
- About 95% will lie within ±2 standard deviations (z-score between -2 and 2).
- About 99.7% will lie within ±3 standard deviations (z-score between -3 and 3).
Datasets like price and volume (in this context) are most often not normally distributed. While the interpretation in terms of percentage of data lying within certain ranges of z-scores (like the ones mentioned above) won't hold, the z-score can still be a useful measure of how "unusual" a data point is relative to the mean.
The aim of this indicator is to offer a unique way of screening the market for trading opportunities by conveniently visualizing where current volume and price activity stands in relation to the average. It also offers features to observe the convergent/divergent relationships between asset’s price movement and volume, observe a single symbol’s activity compared to the wider market activity and much more.
Here is an overview of a few important settings.
Z-SCORE TYPE
◽️ Z-Score Type: Current Z-Score
Calculates the z-score by comparing current bar’s price and volume data to the mean (moving average with any custom length, default is 20 bars). This indicates how much the current bar’s price and volume data deviates from the average over the specified period. A positive z-score suggests that the current bar's price or volume is above the mean of the last 20 bars (or the custom length set by the user), while a negative z-score means it's below that mean.
Example: Consider an asset whose current price and volume both show deviations from their 20-bar averages. If the price's Z-Score is +1.5 and the volume's Z-Score is +2.0, it means the asset's price is 1.5 standard deviations above its average, and its trading volume is 2 standard deviations above its average. This might suggest a significant upward move with strong trading activity.
◽️ Z-Score Type: Average Z-Score
Calculates the custom-length average of symbol's z-score. Think of it as a smoothed version of the Current Z-Score. Instead of just looking at the z-score calculated on the latest bar, it considers the average behavior over the last few bars. By doing this, it helps reduce sudden jumps and gives a clearer, steadier view of the market.
Example: Instead of a single bar, imagine the average price and volume of an asset over the last 5 bars. If the price's 5-bar average Z-Score is +1.0 and the volume's is +1.5, it tells us that, over these recent bars, both the price and volume have been consistently above their longer-term averages, indicating sustained increase.
◽️ Z-Score Type: Relative Z-Score
Calculates a relative z-score by comparing symbol’s current bar z-score to the mean (average z-score of all symbols in the group). This is essentially a z-score of a z-score, and it helps in understanding how a particular symbol's activity stands out not just in its own historical context, but also in relation to the broader set of symbols being analyzed. In other words, while the primary z-score tells you how unusual a bar's activity is for that specific symbol, the relative z-score informs you how that "unusualness" ranks when compared to the entire group's deviations. This can be particularly useful in identifying symbols that are outliers even among outliers, indicating exceptionally unique behaviors or opportunities.
Example: If one asset's price Z-Score is +2.5 and volume Z-Score is +3.0, but the group's average Z-Scores are +0.5 for price and +1.0 for volume, this asset’s Relative Z-Score would be high and therefore stand out. This means that asset's price and volume activities are notably high, not just by its own standards, but also when compared to other symbols in the group.
DISPLAY TYPE
◽️ Display Type: Scatter Plot
The Scatter Plot is a visual tool designed to represent values for two variables, in this case the Z-Scores of price and volume for multiple symbols. Each symbol has it's own dot with x and y coordinates:
X-Axis: Represents the Z-Score of price. A symbol further to the right indicates a higher positive deviation in its price from its average, while a symbol to the left indicates a negative deviation.
Y-Axis: Represents the Z-Score of volume. A symbol positioned higher up on the plot suggests a higher positive deviation in its trading volume from its average, while one lower down indicates a negative deviation.
Here are some guideline insights of plot positioning:
- Top-Right Quadrant (High Volume-High Price): Symbols in this quadrant indicate a scenario where both the trading volume and price are higher than their respective mean.
- Top-Left Quadrant (High Volume-Low Price): Symbols here reflect high trading volumes but prices lower than the mean.
- Bottom-Left Quadrant (Low Volume-Low Price): Assets in this quadrant have both low trading volume and price compared to their mean.
- Bottom-Right Quadrant (Low Volume-High Price): Symbols positioned here have prices that are higher than their mean, but the trading volume is low compared to the mean.
The plot also integrates a set of concentric squares which serve as visual guides:
- 1st Square (1SD): Encapsulates symbols that have Z-Scores within ±1 standard deviation for both price and volume. Symbols within this square are typically considered to be displaying normal behavior or within expected range.
- 2nd Square (2SD): Encapsulates those with Z-Scores within ±2 standard deviations. Symbols within this boundary, but outside the 1 SD square, indicate a moderate deviation from the norm.
- 3rd Square (3SD): Represents symbols with Z-Scores within ±3 standard deviations. Any symbol outside this square is deemed to be a significant outlier, exhibiting extreme behavior in terms of either its price, its volume, or both.
By assessing the position of symbols relative to these squares, traders can swiftly identify which assets are behaving typically and which are showing unusual activity. This visualization simplifies the process of spotting potential outliers or unique trading opportunities within the market. The farther a symbol is from the center, the more it deviates from its typical behavior.
◽️ Display Type: Columns
In this visualization, z-scores are represented using columns, where each symbol is presented horizontally. Each symbol has two distinct nodes:
- Left Node: Represents the z-score of volume.
- Right Node: Represents the z-score of price.
The height of these nodes can vary along the y-axis between -4 and 4, based on the z-score value:
- Large Positive Columns: Signify a high or positive z-score, indicating that the price or volume is significantly above its average.
- Large Negative Columns: Represent a low or negative z-score, suggesting that the price or volume is considerably below its average.
- Short Columns Near 0: Indicate that the price or volume is close to its mean, showcasing minimal deviation.
This columnar representation provides a clear, intuitive view of how each symbol's price and volume deviate from their respective averages.
◽️ Display Type: Circles
In this visualization style, z-scores are depicted using circles. Each symbol is horizontally aligned and represented by:
- Solid Circle: Represents the z-score of price.
- Transparent Circle: Represents the z-score of volume.
The vertical position of these circles on the y-axis ranges between -4 and 4, reflecting the z-score value:
- Circles Near the Top: Indicate a high or positive z-score, suggesting the price or volume is well above its average.
- Circles Near the Bottom: Represent a low or negative z-score, pointing to the price or volume being notably below its average.
- Circles Around the Midline (0): Highlight that the price or volume is close to its mean, with minimal deviation.
◽️ Display Type: Delta Columns
There's also an option to utilize Z-Score Delta Columns. For each symbol, a single column is presented, depicting the difference between the z-score of price and the z-score of volume.
The z-score delta essentially captures the disparity between how much the price and volume deviate from their respective mean:
- Positive Delta: Indicates that the z-score of price is greater than the z-score of volume. This suggests that the price has deviated more from its average than the volume has from its own average. Such a scenario could point to price movements being more significant or pronounced compared to the changes in volume.
- Negative Delta: Represents that the z-score of volume is higher than the z-score of price. This might mean that there are substantial volume changes, yet the price hasn't moved as dramatically. This can be indicative of potential build-up in trading interest without an equivalent impact on price.
- Delta Close to 0: Means that the z-scores for price and volume are almost equal, indicating their deviations from the average are in sync.
◽️ Display Type: Z-Volume/Z-Price Heatmap
This visualization offers a heatmap either for volume z-scores or price z-scores across all symbols. Here's how it's presented:
Each symbol is allocated its own horizontal row. Within this row, bar-by-bar data is displayed using a color gradient to represent the z-score values. The heatmap employs a user-defined gradient scale, where a chosen "cold" color represents low z-scores and a chosen "hot" color signifies high z-scores. As the z-score increases or decreases, the colors transition smoothly along this gradient, providing an intuitive visual indication of the z-score's magnitude.
- Cold Colors: Indicate values significantly below the mean (negative z-score)
- Mild Colors: Represent values close to the mean, suggesting minimal deviation.
- Hot Colors: Indicate values significantly above the mean (positive z-score)
This heatmap format provides a rapid, visually impactful means to discern how each symbol's price or volume is behaving relative to its average. The color-coded rows allow you to quickly spot outliers.
VOLUME TYPE
The "Volume Type" input allows you to choose the nature of volume data that will be factored into the volume z-score calculation. The interpretation of indicator’s data changes based on this input. You can opt between:
- Volume (Regular Volume): This is the classic measure of trading volume, which represents the volume traded in a given time period - bar.
- OBV (On-Balance Volume): OBV is a momentum indicator that accumulates volume on up bars and subtracts it on down bars, making it a cumulative indicator that sort of measures buying and selling pressure.
Interpretation Implications:
- For Volume Type: Regular Volume:
Positive Z-Score: Indicates that the trading volume is above its average, meaning there's unusually high trading activity .
Negative Z-Score: Suggests that the trading volume is below its average, signifying unusually low trading activity.
- For Volume Type: OBV:
Positive Z-Score: Signifies that “buying pressure” is above its average.
Negative Z-Score: Signifies that “selling pressure” is above its average.
When comparing Z-Score of OBV to Z-Score of price, we can observe several scenarios. If Z-Price and Z-Volume are convergent (have similar z-scores), we can say that the directional price movement is supported by volume. If Z-Price and Z-Volume are divergent (have very different z-scores or one of them being zero), it suggests a potential misalignment between price movement and volume support, which might hint at possible reversals or weakness.
Liquidation Levels [LuxAlgo]The Liquidation Levels indicator aims at detecting and estimating potential price levels where large liquidation events may occur.
By analyzing liquidation Levels, traders can identify potential support & resistance levels, identify stop-loss levels, and gauge market sentiment and potential areas of price volatility.
🔶 USAGE
Liquidation refers to the process of forcibly closing a trader's leveraged positions in the market. It occurs when a trader's margin account can no longer support their open positions due to significant losses or a lack of sufficient margin to meet the maintenance margin requirements.
Liquidation events happen at all times and the script focuses on detecting the most significant ones. Bubbles will appear on the relevant price bar when larger trading activity has been detected. Larger bubbles represent more significant potential liquidation levels. The lines attached to the bubbles represent the liquidation zones at that price.
These liquidation levels are based on clusters of price points where highly leveraged traders open long or short positions. High leverage is identified as 100x, 50x, and 25x leverages used for both long and short positions. The script allows users to either remove or customize leverage levels.
Price generally heads towards zones or clusters of liquidity.
🔶 SETTINGS
🔹Liquidation Levels
Reference Price: defines the base price in calculating liquidation levels.
Volume Threshold: The volume threshold is the primary factor in detecting the significant trading activities that could potentially lead to liquidating leveraged positions.
Volatility Threshold: The volatility threshold option is the secondary factor that aims at detecting significant movement in the underlying asset’s price with relatively lower trading activities that could potentially also lead to liquidating high-leveraged positions.
Leverage Options: The leverage options are where the trader will set the desired leverage value and customize the potential liquidation level colors.
Hide Liquidation Bubbles: Toggles the visibility of the bubbles.
Hide Liquidation Levels: Toggles the visibility of the lines.
🔶 RELATED SCRIPTS
Liquidity-Sentiment-Profile
Buyside-Sellside-Liquidity
OI Volume Oscillator Cross DynamicsThe OI Volume Oscillator Cross Dynamics is a custom indicator designed to analyze the relationship between Open Interest (OI) and Volume Oscillator in the cryptocurrency markets. This tool aims to assist traders in identifying potential market sentiment shifts, enabling them to make informed trading decisions based on the dynamic interplay of these key market components.
Key Components:
Open Interest (OI): This component represents the total number of outstanding derivative contracts, such as futures and options, that have not been settled. Open Interest provides insights into market participation and trader commitment, offering a broader perspective on the flow of money into the market.
Volume Oscillator: The Volume Oscillator is a momentum indicator that showcases the difference between two volume moving averages. It is instrumental in identifying bullish or bearish market trends by providing insights into buying and selling pressure in the market.
Functional Dynamics:
Crossover Analysis: The indicator identifies points where the Volume Oscillator crosses above or below the Open Interest, marking potential shifts in market sentiment. These crossover points are visually represented, making them easily identifiable for analysis.
Visual Cues: The indicator uses visual shapes and colors to enhance interpretability. Bullish crossovers are marked with green upward triangles, while bearish crossovers are represented by red downward triangles.
Customization: The indicator allows for customization of the Volume Oscillator’s sensitivity through a multiplier, enabling traders to adjust the indicator according to their trading strategy and market outlook.
Usage Guidelines:
Bullish Scenario: A crossover of the Volume Oscillator above the Open Interest is interpreted as a bullish signal, indicating potential upward price movement due to increased buying pressure or trading activity.
Bearish Scenario: A crossover of the Volume Oscillator below the Open Interest is seen as a bearish signal, suggesting potential downward price movement due to increased selling pressure or reduced trading activity.
Conclusion:
The OI Volume Oscillator Cross Dynamics indicator is designed to provide traders with a nuanced perspective of market activity through the combined analysis of Open Interest and Volume Oscillator. Its design aims to offer valuable insights, allowing for a strategic approach to trading based on the observed market dynamics.
The code is open source and utilizes Binance info but you can alter the code to meet your needs to go beyond just Bitcoin if needed.
VWAP Balance ZonesVWAP Balance Zones (VBZ) Is based on 3 concepts.
Many Traders use VWAP to help determine Price Trends.
Trends are typically identified by new Highs or new Lows.
Balanced is found when Supply and Demand are mostly Equal.
VBZ tracks the daily, weekly, and monthly highs and lows; Then plots the average (50%) between the VWAP and the respective extremes.
50% VWAP Zones can be considered significant since they attempt to identify the equilibrium between market participants within the current trend, serving as key reference points to consider for decision making. >While in an uptrend, Buyers may see price falling to the Hi 50% as an attractive value entry for the continuation upwards.
>While ALSO in an uptrend, Sellers may see price falling to the Hi 50% as a change in sentiment with more downwards movement on the way.
Because of these conflicting mindsets, these zones are thought to display areas of balance between buyers and sellers, which can serve as potential decision points throughout the day.
VBZ Draws Zones from the Daily (High/Low/Close) VWAPs and the Day's (High/Low/Close) extremes as seen below.
Technically speaking, an average between vwap and extreme is a single point, to make these into zones I am using multiple sources for vwap and tracking different points of the bar throughout the day (ex. Close VWAP & Daily Highest Close)
Weekly and Monthly are only displaying the Average Price between the VWAP and the (Weekly or Monthly) High/Low.
These hold up as important levels for speculation; however, since most action will be discovered at the daily zones, I am not displaying the zones for the Weekly and Monthly to keep noise to a minimum.
Unique Behaviors:
- Weekly values are hidden on the first day of the week since they are similar to the daily values on the first day of the week.
- Monthly values are hidden in the first week of the month for the same reason.
NormInvTargetSeekerNormInvTargetSeeker
The NormInvTargetSeeker is a trading tool designed to aid traders in identifying and capitalizing on Distribution and Accumulation zones, highlighting specific price levels that could serve as targets for future price movements. Although the indicator itself is not multi-timeframe, an effective trading strategy might involve signal validation across multiple timeframes.
🔶 USAGE
The indicator identifies Distribution and Accumulation zones, providing potential targets for future price moves.
Traders are encouraged to use these zones as profit targets or potential reversal points.
Confluence Zones
These zones are identified as regions where various factors or levels converge, signaling an increased probability of price reaction.
They can be used to reinforce signals or identify levels where price might encounter significant resistance or support.
🔹 Trading Strategy
First, identify a signal on your primary trading timeframe.
Manually check higher timeframes to ensure the signal aligns with them.
Use the identified zones, whether Distribution or Accumulation, as target zones for your trades.
🔶 Order Blocks
The NormInvTargetSeeker identifies "Order Blocks" by examining a specified number of consecutive candles with a specific condition: the current candle must completely engulf the previous candle. This means that both the high and low of the current candle are higher and lower, respectively, than the high and low of the previous candle, signifying a dominant move in the direction of the current candle.
🔹 Trading Strategy
Target Confirmation: Order Blocks can serve to confirm target points, providing additional validation for identified levels.
Market Insight: They offer crucial insights into whether "big hands" or institutional players are positioned as buyers or sellers in the market.
Traders can use Order Blocks as a means to validate targets or key price levels, observing if the price reacts significantly upon reaching these blocks.
They can also provide insights into the general market direction or underlying market strength by identifying where the major market players are placing their orders.
🔶 SETTINGS
The indicator allows users to adjust various parameters to customize the display and logic of the tool to fit their needs.
🔹 Display Settings
Users can customize the colors and displays of various zones and labels to match their preferences.
🔶 LICENSE AND CREDITS
This work is licensed under Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0). More information here: creativecommons.org
This indicator utilizes a TypeScript implementation of the Normal Inverse function as a reference, which can be found here : github.com
Special thanks to the authors of the referenced code for providing a foundation upon which this indicator was built.
🔶 UPDATES
Current Version: 1.0.0
For future updates, please check the comment section.
🔶 CONTACT
For any questions or suggestions, please feel free to contact @RickSimpson on TradingView.
Forex Pip MakerIntroducing Forex Pip Maker: A trend detection/riding tool
Let me introduce you to "Forex Pip Maker," a tool that is used for any kind of market condition.
Seize Opportunities with Instant Alerts
In Forex, timing is crucial. Forex Pip Maker comes with an alert system that keeps you updated on potential trading chances with it's real-time alerts.
Navigate Tricky Sideways Markets with Ease
Ever been puzzled by those times when the market seems stuck, making it tough to decide your next move? That's where Forex Pip Maker excels. It's great at spotting and guiding you through these tricky sideways market situations. It does this by keeping an eye on changes in market volatility, ensuring you stay one step ahead.
Simplicity Meets Precision with Color Codes
Trading can be complex, but Forex Pip Maker simplifies it. It employs a color-coded system, making it easy to understand market signals. Green means one thing, red means another – it's that straightforward. You'll be able to make well-informed decisions effortlessly.
Make Confident Choices with the Buy/Sell Dashboard
When decision time arrives, rely on the Buy/Sell dashboard. It provides all the information you need to make smart choices. No more second-guessing – you'll have a crystal-clear view of your options.
See the Bigger Picture with Longer Timeframes
Forex Pip Maker doesn't just focus on short-term trends. It also examines data from longer timeframes, giving you a broader perspective for even wiser decision-making.
Whether you're a novice or a trading expert, Forex Pip Maker is a great addition to any trading setup.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
INPUTS
TimeFrame: This is the time frame which the Forex Pip Maker will calculate the time frame for. By default, it will be the current chart which you've selected, you can however change this to any time frame and display it on any time frame chart which you use. For example, if you want signals for the H1 time frame while you are on the M15 time frame, you can set this to H1 and you'll see the H1 scenerio. It is recommended to leave this the default because the next setting is more important.
TimeFrame: This is the time frame which the Forex Pip Maker will calculate the time frame for. By default, it will be the current chart which you've selected, you can however change this to any time frame and display it on any time frame chart which you use. For example, if you want signals for the H1 time frame while you are on the M15 time frame, you can set this to H1 and you'll see the H1 scenerio. It is recommended to leave this the default because the next setting is more important.
TimeFrameConfirmation: This is the time frame where it will help filter out most of the false moves on your current chart. With this, you will only receive signals in the direction of the trend on this time frame which should always be set to a higher time frame than the one you are trading on. The higher the time frame, the more accuracy you'll have but the fewer signals you will have(which is normal).
TimeFrame: This is the time frame which the Forex Pip Maker will calculate the time frame for. By default, it will be the current chart which you've selected, you can however change this to any time frame and display it on any time frame chart which you use. For example, if you want signals for the H1 time frame while you are on the M15 time frame, you can set this to H1 and you'll see the H1 scenerio. It is recommended to leave this the default because the next setting is more important.
Periud
Input Setting: When using this indicator, traders and users can set a value called "Periud." It's like telling the indicator how far back in time to look. This helps you decide how many past price points or time periods the indicator should pay attention to.
Calculation: Inside the script, this "Period" value is used to do some math. It helps figure out which historical data should be used to make the indicator's predictions.
Effect on Indicator: The "Period" you choose can change how the indicator acts. If you pick a short "Period," the indicator quickly responds to recent price changes. But if you choose a longer "Period," it smooths out its predictions by considering a broader history of prices.
Customization: Traders can tweak the "Period" to match their own trading style. Short "Periods" are great for looking at short-term trends, while longer "Periods" are better for spotting long-term trends. It's all about making the indicator work the way you want it to.
Speed
The 'Speed' setting is like a speed control knob. Traders and users can adjust it to make the indicator react to price changes either quickly or slowly. If you turn the 'Speed' up, the indicator becomes faster and responds to short-term price moves. But if you turn it down, the indicator moves more slowly and focuses on longer-term trends. This way, traders can make the indicator work the way they want it to, whether they prefer quick responses with higher 'Speed' or smoother, longer-term views with lower 'Speed'.
Price
The "Price" option is a handy setting. It lets users pick which part of the price data to focus on when using the indicator. You can choose from different options like "Close," "Open," "High," "Low," "HLC3," "HLC2," and "OLC4." Each choice represents a different aspect of the price movement. For instance, "OLC4" considers Open, Low, Close, and High prices together. This customization is great because it means traders can make the indicator work just the way they want it to. Whether you're into short-term or long-term trading, there's a "Price" option to fit your strategy.
Shift
When utilizing the indicator, traders can input a "Shift" value, which determines how many bars or candlesticks the indicator's data is shifted. A positive shift takes the analysis back in time, providing insights into past market conditions, while a negative shift shifts the focus forward, potentially offering glimpses of potential future market scenarios. This customization of the "Shift" setting provides traders with a valuable means to explore historical data and consider potential future developments in their analysis.
ShowHisto
The "ShowHisto" option is like a toolbox for tweaking how you see the indicator's histogram on the chart. It's all about personalizing your view. You've got choices like "Hide Histogram" for a cleaner chart, "More or Less" for judging how much prices are changing, and others like "One Close," "Double Close," "High/Low range," and "High/Low trend," each giving a different take on price movements. It's your way of fine-tuning the chart to match your analysis style. Whether you're into spotting trends, measuring volatility, or watching price ranges, "ShowHisto" helps you tailor the chart to your liking without any extra fuss.
ShowMA
The "ShowMA" parameter serves as a crucial tool for configuring the display of a specific type of moving average on the chart. It offers a range of options to tailor the appearance of the moving average, allowing users to select the most suitable representation for their analytical needs. The available choices include "Hide Moving Average" to remove it from view, "as Dots" to present it as discrete data points, and "as Line" to display it as a continuous, smoothed line. "ShowMA" grants users the flexibility to fine-tune the visual presentation of the moving average, enabling them to align it with their chart aesthetics and analytical requirements. Whether the preference is for a minimalist, unobtrusive look or a detailed and comprehensive view, "ShowMA" facilitates precise customization of the moving average's presentation on the chart.
FilterPips
"FilterPips" acts like a precision tool for examining price changes on the chart. It lets you specify a certain number of pips, which represent very small price movements. This number becomes a kind of filter. If you choose a positive value, the script will highlight price movements that are larger than this filter, helping you notice significant shifts. Conversely, if you choose a negative value, it will ignore price drops that are smaller than the filter. Essentially, "FilterPips" allows you to zoom in on the price movements that align with your analysis, providing a clearer focus on the chart.
MinimumPreviousTrendDistance
Traders have the power to decide how far the price needs to move before a new trade signal pops up. It's like setting your own trading rules. If you want a new trade signal, the current price must move a certain distance from the previous trend. You can tweak this distance to control how often you get trade signals. Bigger distances mean fewer signals. It's all about putting you in control and helping you make informed trading choices based on significant price moves.
WhichArrows
Although not a very important setting, you can set a preferred option, such as "More or Less" or "Double Close," and the script will display trade signals based on the chosen condition. This customization ensures that the chart reflects the trader's unique strategy and criteria, making it easier to focus on relevant trade opportunities.
ARROWBAR
ARROWBAR functions as a user-defined reference point, allowing traders to specify how many bars or periods in the past the script should begin searching for trade conditions. This level of customization means that trade signals can be precisely placed on the chart based on a trader's strategy.
ShowBoard
The Forex Pip Maker has a dashboard that displays directly on your chart which displays Buy or Sell when the appropriate time has come. It displays the brokers server time as well as the momentum(trend) of the current market. You can enable or disable this.
BoardColor
Allows you to change the background color of the board as well as the font displays inside.(Only the server and momentum info can be color changed)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
IDEAL PAIRS : Since the Forex Pip Maker's strength is riding trends, the trend-bound pairs are the best to use for trading. There are a few pairs that have had decent trend rides in the recent times and they are mentioned below.(Note that you can use any pair in theory, but these are ideal)
OANDA:AUDUSD
OANDA:USDCAD
OANDA:EURJPY
OANDA:GBPJPY
OANDA:NZDUSD
COINBASE:BTCUSD
Moving Average of Volume for Up and Down ClosesThis indicator is intended to provide market bias information at a glance. Depending on the number of periods selected it can help identify changes in buying and selling sentiment or overall market bias. The two lines indicate increases and decreases in volumes for the selected number of periods. I recommend using this indicator with a minimum of clear support and resistance lines and a standard volume indicator. It does provided useful information as a stand-alone indicator. I don't use any indicators except volume, so this was meant to be my own personal volume analysis tool, however I feel that it can be very useful for other traders who may not have a deep understanding of volume analysis.
Candle Sentiment Volume FlowCandle Sentiment Volume Flow (CSVF)
NOTE: The indicator showcased in the 1H chart is utilized on the ticker 'SPY'.
The Candle Sentiment Volume Flow (CSVF) is a custom trading indicator designed to analyze and visualize the momentum and volume flow of a financial instrument within a specified range of candles in a chart. It provides traders with a snapshot of the prevailing market sentiment by calculating the percentage of green (bullish) and red (bearish) candles and the volume associated with them over a defined range of periods (X Range).
Core Components:
1. Candle Counting:
- Green Count: Total number of green (bullish) candles in the defined range.
- Red Count: Total number of red (bearish) candles in the defined range.
2. Volume Calculation:
- Green Volume: Cumulative volume of green candles.
- Red Volume: Cumulative volume of red candles.
3. Percentage Calculation:
- Green Percentage: (Green Count / X Range) * 100
- Red Percentage: (Red Count / X Range) * 100
- Green Volume Percentage: (Green Volume / Total Volume) * 100
- Red Volume Percentage: (Red Volume / Total Volume) * 100
4. User-Defined Parameters:
- Candle Range (X Range): Number of candles to be considered for calculations.
- Green Threshold: User-defined percentage to identify significant bullish sentiment.
- Red Threshold: User-defined percentage to identify significant bearish sentiment.
Visual Component:
- Table Display:
A table is displayed on the top right of the chart, providing a quick overview of the calculated percentages and total volume.
The table is color-coded for easy interpretation and includes:
- Green and Red Candle Percentages
- Green and Red Volume Percentages
- Total Volume
Functional Workflow:
- The indicator loops through the past 'X' candles within the defined range, counting the number of green and red candles and accumulating their respective volumes.
- It calculates the percentage of green and red candles and the percentage of volume associated with them.
- The calculated values are displayed in a table on the chart, providing a clear and concise view of the candle sentiment and volume flow within the specified range.
Flux Charts MTF Supply and Demand Zones (Premium)Indicator Overview
The Multi-Timeframe Supply & Demand Zones indicator by Flux Charts displays supply and demand zones on multiple timeframes with two different zone detection methods. These zones are commonly known as areas where there are lots of buyers/sellers present in the market.
Adaptive Detection Method
AMEX:SPY 5m timeframe, October 8 2023
Indicator Settings: (Timeframe: Chart & 15m, Method: Adaptive, Zone Multiplier: 1)
Many times supply and demand scripts try and precisely define conditions that qualify for supply and demand zones. People, however, when locating supply and demand zones manually generally do not take a quantitative approach, rather looking for qualities in price action that have generalized qualities and trends. The adaptive algorithm uniqueness comes from adapting the human approach to work computationally. It generalizes the qualities of supply and demand zones and locates areas in the chart with an acceptable similarity. Specifically, it looks for consolidated areas within the chart that are preceded by a rise or fall in price. The rise or fall length has to be a certain ratio to the consolidation length. If the criteria are met it will draw the zone, if a zone already exists at that price level it will ignore it or merge them if they are different timeframes. This results in a much more consistent ability to identify areas of supply and demand.
Basic Detection Method
The basic detection method looks for areas where price made drastic movements within a small period of time, which could indicate a high level of buyers/sellers at the spot. Thus, these zones are formed and can be used as areas of trading where money is going in/out of the markets.
Multi-Timeframe (MTF) S&D
Flux Charts supply and demand script utilizes MTF. This allows for displaying zones from different timeframes on one chart. Utilizing higher timeframes is a common practice in trading, and it can be easy to forget about key levels & zones on higher timeframes which could cause reversals/bounces.
Here is an example of a 15 minute supply zone formed on the NASDAQ, and with this indicator, you can also see this same 15 minute supply zone while being on a 5 minute candlestick chart, since you have the 15 minute zones enabled in the settings. This indicator offers supply & demand zones on multiple timeframes including the 5 minute, 15 minute, 30 minute, 1 hour, and 4 hour.
Settings
Method:
Choose between the Supply & Demand zones detection (Basic / Adaptive)
Zone Retests:
Choose how retests should be considered. You can choose between a high/low candle wick entering a zone, or a candle closing inside of a zone to be considered a valid retest.
Zone Invalidation:
Choose how zones are invalidated. You can choose between a high/low candle wick exiting a zone, or a candle closing outside of a zone to be considered a zone invalidation.
Zone multiplier:
Adjust zone size (1 is recommended)
Timeframe:
Choose the timeframes you would like Supply & Demand zones to be displayed from.
Zone Appearance:
Adjust the colors of Supply/Demand zones
Enable/Disable the center dashed line in zones
Display Labels:
Choose to toggle on/off retest & break labels
Notifications:
Choose what alerts you would like to receive. You can choose to have new zone formations, zone breaks, and zone retests.
NSE METRICS Public [ILuvMarkets]This indicator supports the following NSE wide metrics derived from EOD BHAVCOPY.
UP/DOWN VOLUME
UP/DOWN TRADED VALUE
ADVN/DCLN
4% UP/DOWN
NEW HIGHS/LOWS 20D
NEW HIGHS/LOWS 50D
NEW HIGHS/LOWS 100D
NEW HIGHS/LOWS 200D
The metrics can be displayed as NET ( UP - DOWN), ACTUAL VALUE (UP vs. DOWN) or a PERCENTAGE ( UP / (UP + DOWN))
Please use Daily Timeframe for these metrics.
The metrics are updated by an EOD Batch process once NSE BHAVCOPY is available.