Whale Trend AnalysisLarge entity and whales are always smart, they hide in the market to make money. Learning how they operate, we will become smarter. How to distinguish the structure of participants, find the large entities or giant whales, this is a difficult problem.
Indicators: Whale Trend Analysis , using AI algorithms to find them.
⏩Principle overview:
The core of Whale Trend Analysis is trading volume. By subdividing the cumulative value of trading volume in different periods and price, algorithm-weighted splitting is performed on ultra-large trading volume, large trading volume, medium trading volume and small trading volume to distinguish each magnitude is subdivided from the four dimensions of large entities, whales, large investors, and retail investors, effectively exploring the main trading entities.
⏩Usage:
4 characters:
· "Light blue column": represents the trading volume of large entities.
· "Red column": represents the trading volume of whales.
· "Green column": represents the trading volume of large investors.
· "Gray column": represents the trading volume of retail investors.
🧿Tip I:
Identify upside willingness. When the market is rising and the column representing large entities and whales appear, it means that the willingness to buy is strong, and the market is rising healthily at this time.
However, when the market continues to rise,but large entities and whales disappear, and only retail investors are trading intensively. At this time, we need to be vigilant. Large entities and whales may be quietly leaving the market, so don’t be cut off.
🧿Tip II:
Recognize bottom-buying sentiment. Most retail investors stop loss and leave the market at the end of the decline, which is the favorite scene of large entities and whales, because they can pick up a lot of cheap chips.
When falling, pay attention to their movements. If the blue and red column that represent large entities and whales appear frequently, it means that they are actively buying. It is possible that the downward momentum will weaken and usher in a short-term bottom.
🧿Tip III:
This indicator is an open indicator that describes the trading methods and participation time of participants at all levels. There are different forms of expression in fluctuation, trends, rises, and falls. It cannot be generalized, and must be analyzed with reference to the market sentiment at that time.
*The signals in the indicators are for reference only and not intended as investment advice. Past performance of a strategy is not indicative of future earnings results.
Объем
TTP VWAP BandThis indicator offers 20 VWAP bands and on-chart statistic data about the bands.
Features
- Longs and shorts
- Cherry-pick up to 5 bands for backtesting
- Plots 20 bands
- Step scale to increase deviation percentage on each band
- Period and timeframe selectors
- Band crosses: how many times a band was crossed (also percentage)
- Band bounces: how many times each band was pinched and bounced back (also percentage)
How to use:
1) Set the chart to 15 or 5 minute timeframe for higher backtesting accuracy
2) Select the first band deviation % (MIN Long VWAP % and MIN Short VWAP %), use a small number like 0.3 or 1.0 since the rest of the 20 bands will increase that amount later.
3) Select a step scale or leave it in 1 if you prefer same distance between all bands. Notice that if you use a value below 1 the bands will get closer to each other.
4) Observe the statistics and pay attention to how many times each of the bands are being crossed in percentage. This will later help you make decisions on when to enter and where to potentially put an SL.
Connect with your preferred backtester:
You can backtest a single or multiple bands at once. For example you could use the 7th band to enter a base order and later use crosses of the 4th band to enter safety orders. Any combination is possible!
Let's assume you decide that you will be backtesting only 1 band at the time as your single entry condition for your backtester.
Let's also assume that you want to use the 2nd band for long entries then do follow these steps:
- Set "Band 1 backtesting" to 2 so that it prints 1 every time the price crosses below the 2nd band.
- Leave the other Band backtesting band settings with a 0 so they stay disabled
- Add your backtester to the same chart and select "band 1 long signal"
- This signal will contain 1 every time your conditions are met
Buyer/Seller Dominance ©TMW
The "Buyer/Seller Dominance" indicator script, developed by Deepanshu Sharma under The Market Wisdom (TMW), is a powerful analytical tool designed for use on the TradingView platform. This script is released under the Mozilla Public License 2.0, and it offers traders and investors an innovative perspective on market dynamics by assessing the relative strength of buyers and sellers within a given time frame.
Key Features:
1. Dominance Calculation: The indicator calculates the dominance of buyers and sellers over a specified number of candles. Users can define the number of candles (`n`) to consider in the dominance calculation.
2. Visual Representation: The script provides a visual representation of buyer and seller dominance using colored columns on the price chart. Green columns represent buyer dominance, while red columns represent seller dominance.
3. Balance Line: The indicator includes a dashed horizontal line at the zero level, representing a balance point between buyer and seller dominance. When the green and red columns cross this line, it signifies shifts in market sentiment.
How it Works:
The script divides the historical price data into segments of specified candle count (`n`) and assesses each segment's dominance. It calculates the volume associated with both green (bullish) and red (bearish) candles within each segment.
If a candle's closing price is higher than its opening price, it is considered a green candle. Similarly, if the closing price is lower than the opening price, the candle is classified as red. The volume of each respective type of candle is then accumulated for each segment.
The script plots the cumulative green candle volume as the "Buyer Dominance" column and the cumulative red candle volume as the "Seller Dominance" column. This visual representation helps traders gauge the ebb and flow of buyer and seller strength in the market.
Disclaimer :
The indicator is provided for informational purposes only and should not be considered as financial advice. It's important to conduct thorough research and analysis before making any trading decisions. The creator, Deepanshu Sharma, and "The Market Wisdom" team are not responsible for any trading losses incurred based on the usage of this indicator.
Remember that trading involves risks, and historical performance may not necessarily predict future results. Always consider multiple indicators, market trends, and risk management strategies when making trading decisions.
Liquidity Sentiment Profile (Auto-Anchored) [LuxAlgo]
The Liquidity Sentiment Profile (Auto-Anchored) is an advanced charting tool that measures by combining PRICE and VOLUME data over specified anchored periods and highlights the distribution of the liquidity and the market sentiment at specific price levels. This version is a variation of the previously published Liquidity Sentiment Profile , wherewith this version allows users to select a variety of different anchoring periods, such as 'Auto', 'Fixed Range', 'Swing High', 'Swing Low', 'Session', 'Day', 'Week', 'Month', 'Quarter', and 'Year'
Liquidity refers to the availability of orders at specific price levels in the market, allowing transactions to occur smoothly.
🔶 USAGE
A Liquidity Sentiment Profile (Auto-Anchored) is a combination of liquidity and a sentiment profile, where the right side of the profile highlights the distribution of the traded activity at different price levels, and the left side of the profile highlights the market sentiment at those price levels
The liquidity profile is categorized by assigning different colors based on the significance of the traded activity of the specific price levels, allowing traders to reveal significant price levels, such as support and resistance levels, supply and demand zones, liquidity gaps, consolidation zones, etc
The Liquidity Sentiment Profiles aim to present Value Areas based on the significance of price levels, thus allowing users to identify value areas that can be formed more than once within the range of a single profile
Level of Significance Line - displays the changes in the price levels with the highest traded activity (developing POC)
Buyside & Sellside Liquidity Zones - displays Liquidity Levels, also known as Supply and Demand Zones
🔶 SETTINGS
The script takes into account user-defined parameters and plots the profiles, where detailed usage for each user-defined input parameter in indicator settings is provided with the related input's tooltip.
🔹 Liquidity Sentiment Profile
Anchor Period: The indicator resolution is set by the input of the Anchor Period.
Fixed Period: Applicable if the Anchor Period is set to 'Fixed Range' then the period of the profile is defined with this option
Swing Detection Length: Applicable if the Anchor Period is set to 'Swing High' or 'Swing Low' then the length required to detect the Swing Levels is defined with this option which is then used to determine the period of the profile
🔹 Liquidity Profile
Liquidity Profile: Toggles the visibility of the Liquidity Profiles
High Traded Nodes: Threshold and Color option for High Traded Nodes
Average Traded Nodes: Color option for Average Traded Nodes
Low Traded Nodes: Threshold and Color option for Low Traded Nodes
🔹 Sentiment Profile
Sentiment Profile: Toggles the visibility of the Sentiment Profiles
Bullish Nodes: Color option for Bullish Nodes
Bearish Nodes: Color option for Bearish Nodes
🔹 Buyside & Sellside Liquidity Zones
Buyside & Sellside Liquidity Zones: Toggles the visibility of the Liquidity Levels
Buyside Liquidity Nodes: Color option for Buyside Liquidity Nodes
Sellside Liquidity Nodes: Color option for Sellside Liquidity Nodes
🔹 Other Settings
Level of Significance: Toggles the visibility of the Level of Significance Line
Price Levels, Color: Toggles the visibility of the Profile Price Levels
Number of Rows: Specify how many rows each profile histogram will have. Caution, having it set to high values will quickly hit Pine Script™ drawing objects limit and fewer historical profiles will be displayed
Profile Width %: Alters the width of the rows in the histogram, relative to the profile length
Profile Range Background Fill: Toggles the visibility of the Profiles Range
🔶 RELATED SCRIPTS
Liquidity-Sentiment-Profile
Buyside-Sellside-Liquidity
ICT-Concepts
Zaree - Predictive Imparity Momentum IndicatorThe "Zaree - Predictive Imparity Momentum Indicator" (Z-PIMI) is a custom indicator designed to measure the momentum difference between two currency pairs. Let's break down its components and functionality:
Inputs:
pimiLength: Defines the period for the RSI calculation.
selectedMAType: Allows the user to choose the type of moving average (SMA, EMA, WMA, VWMA) they want to apply to the PIMI.
maLength: Defines the period for the chosen moving average.
baseCurrency & quoteCurrency: These are the two currency pairs that the user wants to compare.
Timeframe Selection:
The user can select a specific timeframe for the analysis, or they can use the chart's current timeframe.
Calculation of Currency Indices:
The closing prices of the Base Currency and Quote Currency are fetched for the selected timeframe.
The RSI (Relative Strength Index) is calculated for both currencies using the pimiLength.
The PIMI is then calculated by subtracting the RSI of the Quote Currency from the RSI of the Base Currency.
Moving Average Calculation:
A moving average of the PIMI is calculated based on the user's selected type (selectedMAType) and period (maLength).
Style Settings:
These are hardcoded values that define the levels for the upper and lower bands. These bands can help identify overbought or oversold conditions.
Highs and Lows Calculation:
The highest and lowest values of the PIMI over specified periods (highsLength and lowsLength) are calculated. These can help identify extreme values or turning points.
Plotting:
The PIMI is plotted as a white line.
The moving average of the PIMI is plotted as a purple line.
The upper and lower bands are plotted as horizontal lines at specified levels.
The highest and lowest values of the PIMI are plotted as red and green lines, respectively.
Interpretation:
The PIMI provides a measure of the momentum difference between two currency pairs. When the PIMI is rising, it indicates that the Base Currency is gaining momentum relative to the Quote Currency, and vice versa.
The moving average can be used as a signal line. For instance, when the PIMI crosses above its moving average, it might be considered a bullish signal, and when it crosses below, it might be considered bearish.
The upper and lower bands, as well as the highs and lows lines, can help identify overbought or oversold conditions. For example, if the PIMI reaches or exceeds the upper band, it might indicate overbought conditions, suggesting a potential reversal or pullback.
Overall, the Z-PIMI offers a tool to compare the momentum of two currency pairs and identify potential trading opportunities based on their relative strength and established thresholds.
Dynamic Point of Control (POC)The Dynamic Point of Control (POC) indicator provides traders and analysts with insightful information about price levels, volume distribution, and sentiment within a specified historical range.
Instant Updates : POC recalculates with every new bar, keeping you ahead of the game.
Market Bias : Assess market sentiment through bullish volume share.
Customization : Tailor inputs to match your unique trading strategy.
Chart Presence : See POC and related data graphically on your price chart.
How to Use :
Traders can use the Dynamic POC indicator to identify Point of Control price level, understand volume distribution, and gauge market sentiment. The indicator's visual cues and customizable parameters make it a valuable tool for technical analysis and decision-making.
Bias of Volume Share inside Std Deviation ChannelThe "Bias of Volume Share inside STD Deviation Channel" indicator is a powerful tool for traders aiming to assess market sentiment within a standard deviation (STD) price channel. This indicator calculates the bullish or bearish bias by analysing the share of volume within the standard deviation channel and provides valuable insights for decision-making.
Usage:
This indicator is a valuable tool for traders seeking to gain in-depth insights into market sentiment within a specified price channel. By focusing on price movements that fall within the standard distribution range and filtering out noise and market manipulations, it provides a clear view of prevailing bullish or bearish biases. Traders can leverage this information to make well-informed trading decisions that align with current market conditions, enhancing their trading strategies and potential for success.
Please ensure you review and adhere to the terms of the Mozilla Public License 2.0, as outlined in the indicator's source code.
*Predictive Volume + HTF [Free]*"Predictive Volume + HTF " is a predictor of real-time to near-future volume % change on the current chart and the next highest time frame. The script calculates the volume's % change (Pred Vol) between Current Volume vs. Previous Volume by predicting whether Pred Vol will be higher or lower at the end of the current bar using an "elapsed time" vs "volume so far" concept. This gives the benefit of the most up-to-date information without artificial low/high comparisons when a bar has just formed. For example, it would be common to see -100% in a lot of instances when a new bar is just forming which would be normal because volume at the start of a new candle will generally be lower than where it was when the last bar closed. Where this indicator shines is during this old to new bar formation and the volume that's carried over to the new bar. As a result, it will now be common to see Pred Vol values starting much higher because the calculation is dividing up the bar and analyzing fractions of it instead of the entire bar that would otherwise lead to these incorrect volume % change calculations.
A few examples of Predictive Volume % Change:
In addition, this indicator uses many advanced and dynamic features:
⚡ Matrices that create the table, allowing you to add and remove columns to customize the table to show only the information that's important to you
⚡ View 2 time frames at once - meaning every time you switch time frames, the table will auto-adjust to show the next highest time frame, or "HTF"
⚡ Header function that keeps you aware of the ticker, time frame and session that you're on at all times (can use in lieu of TV's watermark feature, or use together)
⚡ Timer that shows you when a bar will begin/end
⚡ Includes the following popular time frames: 1m, 3m, 5m, 10m, 15m, 30m, 1h, 2h, 4h, 8h, 1d, week, month
⚡ 3 "bias mode" choices that use Relative Volume (RVOL) from calculations between Current, Previous & Average Volume that provide a visual with varying degrees of color representing buying & selling momentum of your favorite asset. Traders generally have an innate bias when it comes to their trading methodology. Of course it can change quickly depending on current market structure. The script's author created separate modes to account for these biases. One way to utilize the indicator is to use 2 on your chart with 1 Bullish bias \"middle right\" and another Bearish bias \"lower right\" to see if volume pressure is skewed towards your particular bias by showing how many colored boxes there are on each table.
⏩ Standard - 🟢🔴 - displays green and red to depict volume momentum using same RVOL calculations as Bullish & Bearish modes
⏩ Bullish - 🐂🐂 - displays 5 colors to represent the levels of intensity of the Buy/Sell/RVOL data (light blue, green, yellow, light orange, dark orange)
⏩ Bearish - 🐻🐻 - displays 5 colors to represent the levels of intensity of the Buy/Sell/RVOL data (light red to dark purple)
Ex. of all 3 bias modes during a burst of bullish volume momentum:
Ex. of all 3 bias modes during a burst of bearish volume momentum:
⚡ 2 alert types: 1 bullish & 1 bearish with 2 levels for each
⏩ The PREDEFINED ALERTS consist of 2 Bullish & Bearish levels with Lvl 1 designed to be less sensitive than Lvl 2
⏩ Configurable for every time frame, "On Close" or "Each Bar". On Close could be a better choice on lower time frames so that you're not getting a bunch of triggers over a short duration & Each Bar could be a better option for higher time frames so that you don't miss a move mid bar for instance
⏩ Creating a PREDEFINED BULLISH/BEARISH ALERT saves a snapshot of the alert's settings. You can then change the settings and create another alert. In this way, you can create multiple unique alerts
⏩ Create one alert for any alert type (bull and/or bear), for every time frame all at once, or you can create multiple & separate alerts, giving each one a unique name with the time frame that it's for: ex. BTC - Bullish Vol Lvl1 (1m)
In this example, you'll see what causes the alerts to trigger as well as how to create them and how they'll look when they do fire.
////////////////////////////////
It is with a sense of gratitude, appreciation and indebtedness to the coder of this script ©SimpleCryptoLife that I'm able to present this indicator to you after months of hard work. We hope that you find it invaluable during your own trading journey! Should you have any questions, feedback or critiques please do not hesitate to leave a comment.
Support and Resistance Signals MTF [LuxAlgo]The Support and Resistance Signals MTF indicator aims to identify undoubtedly one of the key concepts of technical analysis Support and Resistance Levels and more importantly, the script aims to capture and highlight major price action movements, such as Breakouts , Tests of the Zones , Retests of the Zones , and Rejections .
The script supports Multi-TimeFrame (MTF) functionality allowing users to analyze and observe the Support and Resistance Levels/Zones and their associated Signals from a higher timeframe perspective.
This script is an extended version of our previously published Support-and-Resistance-Levels-with-Breaks script from 2020.
Identification of key support and resistance levels/zones is an essential ingredient to successful technical analysis.
🔶 USAGE
Support and resistance are key concepts that help traders understand, analyze and act on chart patterns in the financial markets. Support describes a price level where a downtrend pauses due to demand for an asset increasing, while resistance refers to a level where an uptrend reverses as a sell-off happens.
The creation of support and resistance levels comes as a result of an initial imbalance of supply/demand, which forms what we know as a swing high or swing low. This script starts its processing using the swing highs/lows. Swing Highs/Lows are levels that many of the market participants use as a historical reference to place their trading orders (buy, sell, stop loss), as a result, those price levels potentially become and serve as key support and resistance levels.
One of the important features of the script is the signals it provides. The script follows the major price movements and highlights them on the chart.
🔹 Breakouts (non-repaint)
A breakout is a price moving outside a defined support or resistance level, the significance of the breakout can be measured by examining the volume. This script is not filtering them based on volume but provides volume information for the bar where the breakout takes place.
🔹 Retests
Retest is a case where the price action breaches a zone and then revisits the level breached.
🔹 Tests
Test is a case where the price action touches the support or resistance zones.
🔹 Rejections
Rejections are pin bar patterns with high trading volume.
Finally, Multi TimeFrame (MTF) functionality allows users to analyze and observe the Support and Resistance Levels/Zones and their associated Signals from a higher timeframe perspective.
🔶 SETTINGS
The script takes into account user-defined parameters to detect and highlight the zones, levels, and signals.
🔹 Support & Resistance Settings
Detection Timeframe: Set the indicator resolution, the users may examine higher timeframe detection on their chart timeframe.
Detection Length: Swing levels detection length
Check Previous Historical S&R Level: enables the script to check the previous historical levels.
🔹 Signals
Breakouts: Toggles the visibility of the Breakouts, enables customization of the color and the size of the visuals
Tests: Toggles the visibility of the Tests, enables customization of the color and the size of the visuals
Retests: Toggles the visibility of the Retests, enables customization of the color and the size of the visuals
Rejections: Toggles the visibility of the Rejections, enables customization of the color and the size of the visuals
🔹 Others
Sentiment Profile: Toggles the visibility of the Sentiment Profiles
Bullish Nodes: Color option for Bullish Nodes
Bearish Nodes: Color option for Bearish Nodes
🔶 RELATED SCRIPTS
Support-and-Resistance-Levels-with-Breaks
Buyside-Sellside-Liquidity
Liquidity-Levels-Voids
PTS Pi-Osc V1
The PTS - Pi-Osc know as Precision Index Oscillator by Roger Medcalf - Precision Trading Systems.
How does the Pi-Osc work?
Pi-Osc is a highly sophisticated consensus type indicator comprising of many different component signals.
A technical traders tool that measures everything from divergences to probabilities all blended into one simple to use product.
The buy and selling opportunities are highlighted by the moves away from + or - 3.14.
Simple to use for all levels of experience from beginner to expert and offers a unique edge in terms of precision.
The components that go into computations are identified below.
Money flow index provides a simple snapshot of how sold out or pumped up a stock or future really is and when measured in three different time frames gives a slick consensus view of money flow.
Relative strength index (RSI) still the No1 most popular indicator in use today as its power to identify overbought and oversold qualities in sideways markets is exceptional.
Its poor performance in trends is greatly reduced when seamlessly integrated with the PI-Osc algorithm.
Demand index being one of the designers favourite indicators for measuring the future direction caused by a large volume trade is incorporated here as well as its exceptional efficiency as a divergence indicator.
James Sibbet's creation provides an additional stellar incisive cutting accuracy to the Pi-Osc. Sibbets creation is one of the only indicators with true predictive qualities as a leading indicator.
Divergences. Pi-Osc measures divergences which occur over many look back periods from two different indicators, realising that divergences are often spurious in their reliability, the indicator only factors 4% of the total indicator
reading from these. Paradoxically the buy and sell zones have to have at least one observation of a divergence to trigger a signal.
Volume is always a factor that precedes a price change, as stock prices cannot move without a real money value being assigned to it either as a recent trade or a bid-offer order being placed.
The designer's understanding of volume patterns is a very useful addition incorporated into the Pi-Osc indicators unique conception.
Momentum frequently decelerates prior to market turning points and PI-osc is monitoring several timeframes of smoothed momentum samples in its calculations.
But unlike a conventional rate of change or momentum indicator the Pi-Osc indicator scores a neutral reading when momentum is rising or falling fast, and a reading is only factored into the output when momentum is reducing, thus
indicating a higher probability of success.
Probability is another feature of this algorithm.
Although rarely used in industry standard oscillators, the designer has added a standard deviation (2.9) factor into this indicator as the more usual 2 standard deviations used in Bollinger bands is just not reliable enough to bet hard earned cash on.
Normally distributed price sets have a 99.9% containment within 3.3 standard deviations, so when this is breached the Pi-Osc adds or deducts a further value to its output number.
Stochastics have similar attributes to RSI oscillators and have contributed a factor into PI-osc due to their smooth and reliable ability to identify buying and selling points in non trending markets.
Price patterns. Generally the industry standard oscillators just use the closing price to calculate their values, and although some indicators such as the stochastic use the high and low in their mathematics, few oscillators are actually programmed to respond to unique candlestick chart set ups.
PI-osc is setting the standard with its intelligent programming to recognise when the current chart pattern is shouting buy signals. Several of the more reliable patterns are factored into the algorithm.
When all the maths is done, Pi-Osc does an exceptional job of determining true buying and selling points.
Basically the trading interpretation is made very simple for you, as the buy and sell zones are so logically determined, not by one factor but from a large consensus "vote" from more than one different computation.
The benefits of this indicator are that it saves valuable time in "confirming technical analysis signals" and all trades know time is precious as large price changes can be missed in seconds while checking other confirming factors.
It takes the hard work out of it, and lets your computer do the brain work.
Ideally this indicator is best as an entry signal, and exits are best done with a trailing stop which has a logical trend following exit, as its quite rare that the Pi-Osc will run right to the other extreme and issue a reverse signal.
Precision Index Oscillator has now got a new rule as a result of the gradual rise in market volatility.
Apart from the other well known main rules to wait for the bounce away from Pi and trade in the direction of the major trend, the new rule is to experiment to find the best historical timeframe.
In the old days it would fire up very nicely on a 10 minute chart of most things, and still does (sometimes) but the futures markets and the very volatile cryptocurrencies now go way out of the old extremities in terms of deviations from the norm.
So it is essential to know what the market volatility is capable of on each instrument.
The point being made here is that using this on very short term time frames is not as safe as used to be.
Institutions enjoy working together to drive the prices into areas where most traders did not expect them to go, taking out all the stops and getting a better price for themselves.
So the first task after ordering this product is to create multiple minute chart settings in your Trading View platform and then click through them and there you will find hopefully find the holy grail, just like finding the best guitar,
amplifier and effects pedal settings for creating your own personalized type of music, finding the best timeframe to use you Pi-Osc is the essential work.
The holy grail usually turns out to be nothing more complex than a stop watch:
If the best setting turns out to be 15 minutes or 30 seconds on a volatile market or a 4 hours minute chart on a very volatile market then so be it.
Who cares? Does it matter?
All that matters is you find the way to get to the best results from this product.
Precision Index Oscillator has eight rules
1. Trade in the direction of the major trend
2. Find the time frame that has worked best in historical testing ( This can be a different setting for each market )
3. ALWAYS use a stop loss
4. Wait for the bounce away from Pi
5. Wait for the bounce away from Pi
6 Wait for the bounce away from Pi
7 Wait for the bounce away from Pi
8. Remember the other seven rules.
Precision Index Oscillator clarification of rules 3 to 7
This indicator can stay locked at the extreme Pi level for many bars, days, hours, minutes, seconds etc.
Taking the signal before the bounce comes is like the well known phrase "catching the falling knife".
Taking the signal before the bounce is a "Pi-Crime" and is a bad idea. Ignoring this point will likely result in losses
As Ed Seykota puts it in his usual amusing style, the problem with catching falling knives is that there are more knives than we have fingers.
He is referring to a market sell off rather than a sell off in one market.
When everything is crashing and we buy all of the crashing things at once, yes you guessed it: A painful day for the fingers!
Suggested settings for various lengths:
There are no settings to change. The beauty of Pi-Osc is there are no settings to be changed.
Your testing of "Pi signal qualifications" is confined only to selecting a time frame which appears to have offered good Pi-trades in the past.
This does not guarantee future signals will be good, and this is why risk control is essential.
Of course it is smart to experiement with different time periods of chart.
Execution of trades:
Exercise caution with this product.
Risk control is essential and risking more than 1% to 1.5% of your capital from entry price to stop would NOT be advised:
As with hunting, firing out lots of small trades in a shot gun approach will lead to better results than gambling all on the first signal you see.
There is much more chance of hitting a bird with a shot gun than a canon and the ammunition is much cheaper.
Always always use a stop loss. Something like 3 to 7 times a fifty period average true range for example.
Whilst it is often possible that a Pi-bounce appears exactly at the precise high or low of the week and could be the only one you see it is risky just to pile into it instantly as some markets produce several failed signals which continue to move in the same direction.
The safest and least risky method is to wait for the trend to change after the Pi-bounce. This is subjective to your own definition of how to measure the trend as "changing" but I would suggest waiting for a 8-20 period Exponential average to turn around before entering a trade.
Once the trade is entered you can implement a trailing stop to allow maximum potential gains and if your style is one of wanting to take quick profits then it is wise to take only some partial profits and give the move a chance to go somewhere and exit the remainder when the trend changes.
If the move was picked up near the absolute top or bottom it could be a large mistake to bail out of all of it early.
Market selection is important:
Avoid markets in endless smooth trends. These are best trading with trend following products ( Pi-Osc is not a trend following product )
Look for a choppy up or down trend or sideways market with some cycle qualities to it.
Best results are on liquid markets, you can observe the past signals and often history repeats with the good previous signals tending to indicate that future signals may also be good. (This is not certain of course)
This is also true of a market showing several historically bad signals which may be leading to more bad signals.
If the past performance of this indicator is poor on the market you are viewing, then move to another market until one is found where the readings show good price action after the signals in historical data.
Time frames:
This product can be applied to any time frame of market but be aware as is stated above, the slower time frames yield more valid signals and shorter time frames lead to more randomness and noise ridden plots of lower significance.
That said, it provides a valid reason to enter a trade and can give good results providing good stops and risk control are used. I have seen plenty of valid signals on 30 second charts right up to weekly charts.
The reliability of short term intra day time frames is usually lower than weekly or daily time frames. As 10 minute time frame is more reliable than a 30 second chart.
Please take this into consideration, try slowing down the impulses to go fast.
I am now accepting payments in USD or CHF for this product
This is not because I expect a US Dollar collapse but as a precaution to spread currency risk over different classes.
As FX rates vary substantially you can find the option that is cheaper than the other and it is fine to do that and choose the cheaper payment option.
Thanks for reading and I hope you do well with Pi-Osc on Trading View, just remember all the eight rules. You do remember them don't you?
Roger Medcalf - Precision Trading Systems
Liquidity Heatmap [BigBeluga]The Liquidity Heatmap is an indicator designed to spot possible resting liquidity or potential stop loss using volume or Open interest.
The Open interest is the total number of outstanding derivative contracts for an asset—such as options or futures—that have not been settled. Open interest keeps track of every open position in a particular contract rather than tracking the total volume traded.
The Volume is the total quantity of shares or contracts traded for the current timeframe.
🔶 HOW IT WORKS
Based on the user choice between Volume or OI, the idea is the same for both.
On each candle, we add the data (volume or OI) below or above (long or short) that should be the hypothetical liquidation levels; More color of the liquidity level = more reaction when the price goes through it.
Gradient color is calculated between an average of 2 points that the user can select. For example: 500, and the script will take the average of the highest data between 500 and 250 (half of the user's choice), and the gradient will be based on that.
If we take volume as an example, a big volume spike will mean a lot of long or short activity in that candle. A liquidity level will be displayed below/above the set leverage (4.5 = 20x leverage as an example) so when the price revisits that zone, all the 20x leverage should be liquidated.
Huge volume = a lot of activity
Huge OI = a lot of positions opened
More volume / OI will result in a stronger color that will generate a stronger reaction.
🔶 ROUTE
Here's an example of a route for long liquidity:
Enable the filter = consider only green candles.
Set the leverage to 4.5 (20x).
Choose Data = Volume.
Process:
A green candle is formed.
A liquidity level is established.
The level is placed below to simulate the 20x leverage.
Color is applied, considering the average volume within the chosen area.
Route completed.
🔶 FEATURE
Possibility to change the color of both long and short liquidity
Manual opacity value
Manual opacity average
Leverage
Autopilot - set a good average automatically of the opacity value
Enable both long or short liquidity visualization
Filtering - grab only red/green candle of the corresponding side or grab every candle
Data - nzVolume - Volume - nzOI - OI
🔶 TIPS
Since the limit of the line is 500, it's best to plot 2 scripts: one with only long and another with only short.
🔶 CONCLUSION
The liquidity levels are an interesting way to think about possible levels, and those are not real levels.
Value at Risk (VAR)Value at Risk (VAR) is a measure of risk metric in finance used to quantify the potential loss in the value of a portfolio of assets or a single investment in a specific time horizon, given a certain level of confidence.
For instance, lets say there is a VAR of $1000000 at the 95% confidence level in a daily time horizon period, that means that there is a 5% chance that the portfolio will decrease by more than a million within a single day.
Indicator Overview
This indicator calculates the Value at Risk (VAR) using the Variance - Covariance method. On the settings of the indicator you can also determine what significance level you want for the indicator.
Confidence level = 1 - α
α is the significance level.
Basically a 5% significance level will have a 95% Confidence level.
There is also a information tab that displays the Value at Risk (VAR), the Confidence level of the significant level you selected, and an Estimated Range. This is just an estimated range because this is based on returns which follow a normal distributions, unlike price which follows a log normal distribution. So this range will only be obeyed here and then.
Calculation method: Variance - Covariance Method
This method involves the expected return and the standard deviation (volatility). It is based on the assumption that returns follow a normal distribution. For more information on this calculation check this link out.
www.investopedia.com
Applications:
If the calculated Value at Risk (VAR) is high then, that means the risk is high and if the trader has a low risk tolerance then the trader might want to reconsider the trade.
The indicator also lets you see what the potential losses (Long and Short) of the asset can be with the confidence level of your choice.
Volume Profile (Maps) [LuxAlgo]The Pine Script® developers have unleashed "maps"!
Volume Profile (Maps) displays volume, associated with price, above and below the latest price, by using maps
The largest and second-largest volume is highlighted.
🔶 USAGE
The proposed script can highlight more frequent closing prices/prices with the highest volume, potentially highlighting more liquid areas. The prices with the highest associated volume (in red and orange in the indicator) can eventually be used as support/resistance levels.
Voids within the volume profile can highlight large price displacements (volatile variations).
🔶 CONCEPTS
🔹 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.
🔹 Visible line/box limit
We can only display maximum 500 line.new() though.
The code locates the current (last) close, and displays volume values around this price, using lines, for example 250 lines above and 250 lines below current price.
If one side contains fewer values, the other side can show more lines, taking the maximum out of the 500 visible line limitation.
Example (max. 500 lines visible)
• 100 values below close
• 2000 values above close
-> 100 values will be displayed below close
-> 400 remaining -> 400 values will be displayed above close
Pushing the limits even further, when ' Amount of bars ' is set higher than 500, boxes - box.new() - will be used as well.
These have a limit of 500 as well, bringing the total limit to 1000.
Note that there are visual differences when boxes overlap against lines.
If this is confusing, please keep ' Amount of bars ' at max. 500 (then only lines will be used).
🔹 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
🔹 Adjust position & width
🔹 Table
The table shows the details:
• Size originalMap : amount of elements in original map
• # higher: amount of elements, higher than last "close" (source)
• index "close" : index of last "close" (source), or # element, lower than source
• Size newMap : amount of elements in new map (used for display lines)
• # higher : amount of elements in newMap, higher than last "close" (source)
• # lower : amount of elements in newMap, lower than last "close" (source)
🔹 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
Disabled
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.
🔹 Copy & sort
Next, every key of the map is copied and sorted (array of keys), after which the index (idx) is retrieved of last (current) price.
copyK = originalMap.keys().copy()
copyK.sort()
idx = copyK.binary_search_leftmost(src)
Then left and right side of idx is investigated to show a maximum amount of lines at both sides of last price.
🔹 New map & display
The keys (from sorted array of copied keys) that will be displayed are put in a new map, with the associated volume values from the original map.
newMap = map.new()
🔹 Re-cap
• put in original amp (price key, volume value)
• copy & sort
• find index of last price
• fetch relevant keys left/right from that index
• put keys in new map and fetch volume associated with these keys (from original map)
Simple example (only show 5 lines)
bar 0, price = 2, volume = 23
bar 1, price = 4, volume = 3
bar 2, price = 8, volume = 21
bar 3, price = 6, volume = 7
bar 4, price = 9, volume = 13
bar 5, price = 5, volume = 85
bar 6, price = 3, volume = 13
bar 7, price = 1, volume = 4
bar 8, price = 7, volume = 9
Original map:
Copied keys array:
Sorted:
-> 5 keys around last price (7) are fetched (5, 6, 7, 8, 9)
-> keys are placed into new map + volume values from original map
Lastly, these values are displayed.
🔶 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
Max lines : maximum 1000 (if you want to use only lines, and no boxes -> max. 500, see Concepts )
🔹 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 )
Show table : Show details (see Features )
🔶 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.
• Maximum 500 lines/boxes can be displayed
Heikin-Ashi Rolling Time Decay Volume OscillatorThe indicator calculates a time-decayed moving sum of volume data for both bullish (green) and bearish (red) candles. It then generates a volume share oscillator as a smoothed and weighted (time-decayed) moving sum of bullish volume (positive share) or bearish volume (negative share) relative to the total volume.
The volume share is displayed as an area chart with gradient fills representing overbought and oversold regions. Additionally, an Arnaud Legoux Moving Average (ALMA) of the volume oscillator is plotted on the chart.
Trend Momentum and Price Control :
This indicator serves as a powerful tool for traders to gauge trend momentum and identify which side, bulls or bears, is controlling price movements. When the volume oscillator trends strongly in the green territory, it suggests that bulls are in control of price movements, indicating a potential uptrend. Conversely, when the oscillator tilts into the red, it indicates bearish dominance and a potential downtrend. With the incorporation of ALMA for smoothing, this indicator becomes an essential tool for traders and analysts navigating the dynamics of traded assets.
Source Candles :
This indicator is designed to work with Heiken Ashi or Japanese candlesticks to discern candle bias, whether it's red or green. Heiken Ashi tends to produce red candles during downtrends and green candles during uptrends, providing a clearer trend indication. In contrast, traditional candlesticks alternate colors regardless of the dominant price direction. Users can select between "Heikin-Ashi Candles" and regular "Japanese Candles" as the source for price direction."
A time decay cumulative sum, also known as a weighted moving sum or exponentially weighted moving sum, offers several advantages when it comes to determining market dynamics compared to other methods:
Responsive to Recent Data: Time decay cumulative sum gives more weight to recent data points and gradually reduces the impact of older data. This responsiveness is crucial in rapidly changing market conditions where recent price and volume information is more relevant for analysis.
Adaptive to Market Volatility : It adapts to changes in market volatility. When markets are highly volatile, it places more emphasis on recent data to reflect the current market environment accurately. Conversely, during calmer periods, it considers older data less important.
Effective for Identifying Turning Points : Time decay cumulative sums are particularly effective at identifying turning points in market dynamics. They can indicate shifts from bullish to bearish sentiment and vice versa, providing early signals of potential trend reversals.
Reduces Lag : Traditional cumulative sums or simple moving averages can lag behind actual market changes, making them less effective for real-time decision-making. Time decay cumulative sums reduce this lag by giving more weight to recent events.
Dynamic Weighting: The weighting scheme can be adjusted to fit specific market dynamics or trading strategies. Traders can customize the decay rate or smoothing factor to align with their analysis goals and timeframes.
Improved Signal Clarity : The time decay cumulative sum can provide clearer and more precise signals for overbought and oversold conditions, as well as trend strength, due to its ability to emphasize recent relevant data.
In summary, a time decay cumulative sum is a valuable tool in determining market dynamics because it adapts to changing market conditions, reduces noise, and provides timely and accurate insights into trends, turning points, and the relative strength of bullish and bearish forces. Its responsiveness and adaptability make it an essential component of many technical analysis and trading strategies.
Colored VWAP and BarcolorThis indicator plots the Volume Weighted Average Price (VWAP) as well as changes the bar color if the current price is above or below VWAP, for quick visual reference.
Background Information
Straight from TradingView, "Volume Weighted Average Price (VWAP) is a technical analysis tool used to measure the average price weighted by volume. VWAP is typically used with intraday charts as a way to determine the general direction of intraday prices. It's similar to a moving average in that when price is above VWAP, prices are rising and when price is below VWAP, prices are falling. VWAP is primarily used by technical analysts to identify market trend."
About the Indicator
This indicator changes the VWAP line color and bar color based on the current price.
Bar Color
Bullish Up Candle Color = Current price is above VWAP and the close of the candle was greater than the open.
Bullish Down Candle Color = Current price is above VWAP and the close of the candle was less than the open.
Bearish Up Candle Color = Current price is below VWAP and the close of the candle was greater than the open.
Bearish Down Candle Color = Current price is below VWAP and the close of the candle was less than the open.
Liquidity Levels/Voids (VP) [LuxAlgo]The Liquidity Levels/Voids (VP) is a script designed to detect liquidity voids & levels by measuring traded volume at all price levels on the market between two swing points and highlighting the distribution of the liquidity voids & levels at specific price levels.
🔶 USAGE
Liquidity is a fundamental market force that shapes the trajectory of assets.
The creation of a liquidity level comes as a result of an initial imbalance of supply/demand, which forms what we know as a swing high or swing low. As more players take positions in the market, these are levels that market participants will use as a historical reference to place their stops. When the levels are then re-tested, a decision will be made. The binary outcome here can be a breakout of the level or a reversal back to the mean.
Liquidity voids are sudden price changes that occur in the market when the price jumps from one level to another with little trading activity (low volume), creating an imbalance in price. The price tends to fill or retest the liquidity voids area, and traders understand at which price level institutional players have been active.
Liquidity voids are a valuable concept in trading, as they provide insights about where many orders were injected, creating this inefficiency in the market. The price tends to restore the balance.
🔶 SETTINGS
The script takes into account user-defined parameters and detects the liquidity voids based on them, where detailed usage for each user-defined input parameter in indicator settings is provided with the related input's tooltip.
🔹 Liquidity Levels / Voids
Liquidity Levels/Voids: Color customization option for Unfilled Liquidity Levels/Voids.
Detection Length: Lookback period used for the calculation of Swing Levels.
Threshold %: Threshold used for the calculation of the Liquidity Levels & Voids.
Sensitivity: Adjusts the number of levels between two swing points, as a result, the height of a level is determined, and then based on the above-given threshold the level is checked if it matches the liquidity level/void conditions.
Filled Liquidity Levels/Voids: Toggles the visibility of the Filled Liquidity Levels/Voids and color customization option for Filled Liquidity Levels/Voids.
🔹 Other Features
Swing Highs/Lows: Toggles the visibility of the Swing Levels, where tooltips present statistical information, such as price, price change, and cumulative volume between the two swing levels detected based on the detection length specified above, Coloring options to customize swing low and swing high label colors, and Size option to adjust the size of the labels.
🔹 Display Options
Mode: Controls the lookback length of detection and visualization.
# Bars: Lookback length customization, in case Mode is set to Present.
🔶 RELATED SCRIPTS
Liquidity-Voids-FVG
Buyside-Sellside-Liquidity
Swing-Volume-Profiles
Dynamic Liquidity Map [Kioseff Trading]Hello!
Just a quick/fun project here: "Dynamic Heatmap".
This script draws a volume delta or open interest delta heatmap for the asset on your chart.
The adjective "Dynamic" is used for two reasons (:
1: Self-Adjusting Lower Timeframe Data
The script requests ~10 lower timeframe volume and open interest data sets.
When using the fixed range feature the script will, beginning at the start time, check the ~10 requested lower timeframes to see which of the lower timeframes has available data.
The script will always use the lowest timeframe available during the calculation period. As time continues, the script will continue to check if new lower timeframe data (lower than the currently used lowest timeframe) is available. This process repeats until bar time is close enough to the current time that 1-minute data can be retrieved.
The image above exemplifies the process.
Incrementally lower timeframe data will be used as it becomes available.
1: Fixed range capabilities
The script features a "fixed range" tool, where you can manually set a start time (or drag & drop a bar on the chart) to determine the interval the heatmap covers.
From the start date, the script will calculate the calculate the sub-intervals necessary to draw a rows x columns heatmap. Consequently, setting the start time further back will draw a heat map with larger rows x columns, whereas, a start time closer to the current bar time will draw a more "precise" heatmap with smaller rows x columns.
Additionally, the heatmap can be calculated using open interest data.
The image above shows the heatmap displaying open interest delta.
The image above shows alternative settings for the heatmap.
Delta values have been hidden alongside grid border colors. These settings can be replicated to achieve a more "traditional" feel for the heatmap.
Thanks for checking this out!
Omega OscillatorThe Omega Oscillator is a toolkit designed to help both experienced and new traders with their trading decisions.
This indicator is a part of the omega toolkit, and his creation method is based on the concept that every trading strategy should have a way to determine the trend, or the bias, that answers the question “long or short?”; the location, which identifies the best price level to enter into a position and to exit, both in profit and in loss, and that will decide the final risk-to-reward ratio of the trade you take; the signal, which is useful to determine the best moment to enter into a position and that if paired with the trend point, his purpose is to identify when the large trend picture is in confluence with the small term; and last but not least the filter point, the filter is used to have another way to have an additional confluence with the trade you want to take, and it’s important to reduce the number of false signals and to increase the win rate.
This tool aims to help traders with the identification of the filter, to allow traders to judge their trades with other tools that can reduce false signals. It’s important to note that indicator and technical analysis is only one of the several different ways to analyze an asset.
One of the main things to keep in mind when working with the financial markets is that not every asset, every historical phase, and every market condition is the same, this is why this tool can be highly personalized and adjustable and provide different overlay tools in order to allow traders to choose the best settings considering these variables and your backtests.
The Oscillator can potentially work on any timeframe and any market thanks to these characteristics, and contains several different unique features:
- Optimization for the perception length parameter, used to analyze data.
- Optimization for the analysis length parameter, used to display data.
- Faculty to personalize the aesthetics of the indicators with the colors and the line width of the main line.
- 5 different tools to let the user choose the optimal way to filter out false signals and analyze the markets.
This script contains several different oscillators, each one precisely designed to remove false signals of different methods of trade.
The first one, called “Omega” is a combination of the best functionality of the other indicator. It contains the “Pendulum” advanced stochastic lines and overbought and oversold lines to analyze reversals, a long-term smoothed histogram to analyze the trend direction based on the “Pullback” formula, and the excess in the volume of the “Interest” oscillator.
The second one is called “Efficiency” and it aims to be the optimal tool to combine with the popular volume spread analysis. His purpose is to analyze the efficiency that the volume has to move the price and this means that when the oscillator is positive, either for the short term with the separated colored lines or the histograms that show the difference between the two lines in the middle-long term trend, this means that the volume has more strength compared to the opposite site volume. The usage of this indicator is to filter out bad signals in the area you are evaluating to take a trade. Be aware that using this oscillator at the beginning of open sessions can lead to false results.
The third one is called “Interest” and it does not include the price in his calculation, but only the volume. It has both the main line and the histogram that like other indicators display respectively the short and the medium-long-term trend. His usage, with the deviation bands automatically displayed, is to detect if there is more strength in the positive candle volume or in the negative candles, to use the volume strength analysis, it’s great to predict reversal and to analyze divergences.
The fourth one is called “Pendulum” and it displays an advanced formula of the popular stochastic oscillator that includes volume, with the oversold and overbought formula that if crossed origin the colored area that you see at the opposite levels, his usage is to determine potential reversal and trend direction, occasionally you can also use the cross of the two lines as a signal to enter a trade.
Additionally, this tool has a histogram that displays the true momentum of the asset you are trading.
The fifth and last one is the Pullback oscillator, and it contains several unique features. This tool will show you the price, displayed as standard candles, of the price. This oscillator can be used both for trend following and for mean reversal trading analysis. The middle area and the smoothed line that you can see aim to be potential support and resistance zones for the price. Note that the price on the moving average of the oscillator is based on volume pressure, and the color of the middle zone area is on the direction of the large trend.
This oscillator also has reversal zones that can help traders identify potential trend exhaustion and reversal price levels, that dynamically change based on the trend situation and adapt their width to the 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.
Omega IndicatorThe Omega Trend and Signal indicator is a toolkit designed to help both experienced and new traders with their trading decisions.
This indicator is a part of the omega toolkit, and his creation method is based on the concept that every trading strategy should have a way to determine the trend, or the bias, that answers the question “long or short?”; the location, which identifies the best price level to enter into a position and to exit, both in profit and in loss, and that will decide the final risk-to-reward ratio of the trade you take; the signal, which is useful to determine the best moment to enter into a position and that if paired with the trend point, his purpose is to identify when the large trend picture is in confluence with the small term; and last but not least the filter point, the filter is used to have another way to have an additional confluence with the trade you want to take, and it’s important to reduce the number of false signals and to increase the win rate.
This tool aims to help traders with the identification of the trend and the signal points, based on a large number of different formula that works combined to display the final output. It’s important to note that indicator and technical analysis is only one of the several different ways to analyze an asset.
One of the main things to keep in mind when working with the financial markets is that not every asset, every historical phase, and every market condition is the same, this is why this tool can be highly personalized and adjustable and provide different overlay tools in order to allow traders to choose the best settings considering this variable and your backtests.
This tool, thanks to the previously cited characteristics, can work on any market and any horizontal time frame, and it has different features:
- Both Trends following and Mean Reversal usage: with different trend detection and signal formulas (not to be followed blindly like any other indicator or trading method).
- Minimalistic usage: with easy-to-enable functions both functionally and aesthetically, to keep your charts clean and to give you the power to choose only what you want to use this indicator for.
- Candle coloring: the easiest way to identify the trend current situation based on the technical formula, with the color you have chosen, and with 5 different variations: strong sell, sell (same color of strong sell but less opacity), neutral, buy, strong buy (same color of buy with more opacity).
- Automatic signal coloring, that will change the way the signals are visualized based on the mid-term trend condition, giving you both entry and exit suggested signals.
- Trend signals: an option that will display the signal based on the same algorithm that works for the candle coloring, but visualizing only the most significant trend changes
- Signal filters, that works differently for trend following and for mean reversal settings, and are divided into three different categories: additional filters remove the repetitive signals in the trend following usage and the low volume signals in the mean reversal usage; location filter remove the signal that is over/below the current trend fair value, giving you only premium or discount signal based on the direction of the trade; and the confluence filter, that for trend following usage filter out signal not in confluence with the Trend cloud overlay indicator and for mean reversal keeps only the signal that is at least in the first band of the Extreme zones overlay indicator.
- Signal sensitivity optimization with the “Fast length” parameter, with base value “1” you can choose the multiplier for that parameter.
- Trend detection optimization with the “Slow length” parameter, with base value “1” you can choose the multiplier for that parameter.
- Overlay indicator optimization with the “Trend length” parameter, with base value “1” you can choose the multiplier for that parameter.
- 4 Overlay indicator to keep the analysis simple and to assist traders to see the trend clearer and identifying the best zones and conditions to enter a trade.
- The option to visualize as numbers that go from 0 to 10 the current trend strength based on the settings to want to use and calculated with the historical best number that has been displayed (it’s shown under the last candles, only if you have selected the trend following or the mean reversal settings).
- Automatic alerts for Buy and Sell signals based on the settings and the filter that you have chosen.
- The option to show only some parts of the indicator, such as the signals or the candle coloring.
- Heikin Ashi: a modified and more simple version of the classic Heikin Ashi candle that is not realistic on the market when used improperly. This option enables the overlay of the candle with the same high, low, and close of the original candle, but the open is the average of the previous open and the previous close.
The signals work this way: if the script has detected a buy signal if the current trend strength is in confluence with the signal, you’ll see a colored dot under the candle (or over if it’s sell), but if the signal is not in confluence, you’ll see a gray (or the color you have chosen for neutral color settings) mark in the same location, so under the candle, if it’s a buy signal not supported by the trend and over the candle if it’s a sell signals not in confluence with the trend parameters, and in this cases the signals aim to suggest to close your open opposite position. This works both for Trend following and for Mean reversal usage.
In this image, there are enable the Adaptive Zone and the Extreme Zones overlay indicators, with the Mean Reversal candle coloring and signal usage.
As you can see, the Extreme Zones are designed to give with a complex script the zones in which the price is likely to reverse, of course depending on the market condition and asset.
The Adaptive Zone is a modified version of the popular super trend indicator, and is designed to work in a different way: instead of giving a buy and sell signal at the switch of the direction, this tool gives its best when used as an area of support and resistance to enter a trade with a bigger risk to reward ratio.
In these other photos, you can see the Trend Midline and the Trend Cloud overlay indicators, with the Trend Following candle coloring and signal usage.
The Trend Midline is a powerful tool that includes different calculations inside and can work like a moving average to identify the level of support and resistance, take profit and stop loss. In addition to that, the Trend Midline overlay indicator is colored based on a large number of different indicators that display the final output as colors, this way, whenever the indicator is colored as the positive color (blue by default) you’ll have another confirmation that the trend is bullish, and vice versa.
The Trend Cloud is a modified version of the popular Ichimoku Kumo, created to help traders identify the trend direction the best. Another great way to use this tool is to mark a horizontal line at the price level in which the two lines of the indicator have switched in position to identify potential future levels of support and resistance.
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.
PTS Divergence Finder SellThe PTS Divergence Finder Sell Indicator by Roger Medcalf of Precision Trading Systems.
Bearish - Sell Indications only.
First and foremost, I have been asked many times why I did not provide a sell divergence indicator while happily providing a buy signal divergence finder for many years.
I gave the answer that sell divergences are less reliable than the buy divergences, which is still true.
Some solutions to change this were found, not by giving in to peer pressure or by modification of this indicator which I made more than fifteen years ago, but by changing the default settings to be more strict.
I also noticed that Trading View calculates indicators very fast.
The nature of fear and greed are entirely different as fear is fast and instinct driven at market tops as the opposite emotions of fear and euphoria can instantly lead a human brain into the survival mode of fight or flight.
In the bottoming or oversold conditions in markets greed probogates slowly in buyers as they consider picking up value purchases at market lows with a mindset of having a low expectation of success.
This is what causes the asymmetry in market tops versus bottoms. Therefore the asymmetric settings of the buy and sell versions of this product are now explained for clarity.
I have decided to release the sell divergence indicator with "stricter" default settings.
The Demand Index length used is 55 and the difference it needs to trigger a signal is 12. These of course are user adjustable. The strictness means there are less bad signals.
The results are many tops and intermediate high points defined with pinpoint accuracy. As expected there are some disastrous signals in the midst of violent up trends which a trader can lose on if not using risk management and stops. Likewise it frequently finds the exact top.
How does the PTS Divergence Finder Sell Indicator work?
The PTS Divergence Finder Sell Indicator accurately measures the number of divergences which have occurred in Demand Index, which is a volume based indicator.
This is a histogram style indicator for subgraph two, which plots spikes which appear like stalagmites coming up from the base.
The indicator examines multiple lookback periods of the volume based Demand Index Indicator for the length that you specify. It finds high points in prices where the DI is not making a new "local" high and missing it by the "difference" setting you input.
The Demand Index is called via the library file and the intelligent code sets volume to 1 if no volume is found.
For this reason it will “work” (producing a meaningful plot) on Forex or indices without volume but performance is going to be slightly less than optimal as the valuable dimension of volume is missing.
It is therefore best to focus on instruments like stocks and futures and cryptos that have large volumes and lots of participants.
Liquid markets where many people are “voting” on the market direction give the best results.
A total of twenty look back periods are scanned on every bar and these are hard coded and non adjustable. The length of Demand Index is user adjustable but it is suggested not to wander too far below the default setting of length 55.
The second user adjustable field is “difference” and this represents the difference between Demand Index now and Demand Index “N” bars ago. (N being 20 different look back periods of various periods)
You will understand that a length 18 Demand Index produces a much more volatile plot than a 80 period plot.
For this reason you can find short lengths of “DI” and small “difference” values will produce many more signals of divergences as there is higher volatility in the underlying indicator.
You will observe this when you use it. You can set it to give hundreds of insignificant values but it is best used so you just see the significant ones by following the guidelines below.
Consider this like using a 20 period MA on a 30 second chart compared to a 20 period MA on an hourly chart.
Clearly the hourly MA change of direction is much more meaningful and important.
Suggested settings for various lengths:
Demand Index lengths less than 12 are not generally recommended for finding "good" sell divergences
DI Length 20 = difference of 20 – 35
DI Length 30 = difference of 15 – 33
DI Length 40 = difference of 13 – 31
DI Length 50 = difference of 10 – 19
DI Length 60 = difference of 9 – 15
DI Length 70 = difference of 8 – 14
DI Length 80 = difference of 8 – 13
DI Length 90 = difference of 7 – 12
DI Length 100 = difference of 7 – 11
DI Length 110 to DI Length 200 = difference of 6 – 10
DI Length > 200 = difference of less than 6
You can use decimal places of 0.24 or 0.65 if using lengths > 500
This indicator goes up to length 1000.
As I designed this myself and have been using it for more than fifteen years you can trust me when I suggest to stay reasonably close to the default settings.
Output relevance.
The minimum value is zero which means there are no divergences found, you can then find values from 1 to 20 which is a count of the number of instances found.
Paradoxically it is not so significance if the number is very high or very low as a major top occurring on a multi month high may just show a reading of 1, but some minor mid up trend rally might show a reading of 9.
Be suspicious if you see too many large readings of 12 to 18 reoccurring as it is likely that the indicator is plotted on a market in a very long term and rapid up trend which is dangerous to be shorting.
Execution of trades.
Exercise caution with this product.
Risk control is essential and risking more than 1% to 1.5% of your capital from entry price to stop would not be advised.
As with hunting, firing out lots of small trades in a shot gun approach will lead to better results than gambling all on the first signal you see.
There is much more chance of hitting a bird with a shot gun than a canon and the ammunition is much cheaper.
Always always use a stop loss. Something like 3 to 7 times a fifty period average true range for example.
Whilst it is often possible that a spike appears exactly at the precise high of the week or year and could be the only one you see all year it is risky just to short it or sell it instantly as some markets produce several failed signals which continue to rally higher.
The safest and least risky method is to wait for the trend to begin falling after you see a divergence. This is subjective to your own definition of how to measure the trend as “falling” but I would suggest waiting for a 8-20 period Exponential average to turn down before selling.
Once the trade is entered you can implement a trailing stop to allow maximum potential gains and if your style is one of wanting to take quick profits then it is wise to take only some partial profits and give the sell off a chance to go lower and exit the remainder when the trend changes. If the move was picked up near the absolute top it could be a very large collapse in the downtrend.
Sometimes you might wait up to twenty five bars after the divergence is seen before the trend begins falling. Much longer than this an it gradually negates the signal as it shows the buyers have become stronger and the safest decision is to stay out of the market.
It is not unusual for the divergences to mark the exact high of a market and this high can lead to a large move down.
There are however frequent “failed divergences” and these can be treated in the same technical analysis manner as a failed head and shoulders or failed double top where the failure to fall indicates a likelihood of a continuation higher, meaning it is time to cut a loss.
This indicator only gives sell signals. Every single signal will be given in some degree or another in an up trend at the highest high price.
Market selection is important.
Avoid markets in an endless up trend. Look for ebbs and flows in a major down trend.
Best results are on liquid markets in a good long term down trend that has frequent rallies, you can observe the past signals and often history repeats with the good previous signals tending to indicate that future signals may also be good. (This is not certain of course)
This is also true of a market showing several historically bad divergence signals leading to more bad signals.
If the past performance of this indicator is poor on the market you are viewing, then move to another market until one is found where the readings show good price dips after the signals in historical data.
Time frames.
This product can be applied to any time frame of market but be aware as is stated above, the slower time frames yield more valid signals and shorter time frames lead to more randomness and noise ridden plots of lower significance.
That said, it provides a valid reason to enter a trade and can give good results providing good stops and risk control are used. I have seen plenty of valid signals on 30 second charts right up to weekly charts.
Idiosyncrasies.
It can often be seen that multiple divergences occur over a range of ten to thirty or so bars during a very gentle spiky kind of rally.
This can be treated in the same way as above - waiting for the trend to fall after the last divergence occurs is the way to play it.
Groups of divergences can indicate some patient insider selling patterns in anticipation of some bad news they might know.
Thanks for reading this and please read it a few more times to fully understand the points mentioned.
After that please spend some time changing settings and markets to fully appreciate how it operates.
Roger Medcalf - Precision Trading Systems
Volume SuperTrend AI (Expo)█ Overview
The Volume SuperTrend AI is an advanced technical indicator used to predict trends in price movements by utilizing a combination of traditional SuperTrend calculation and AI techniques, particularly the k-nearest neighbors (KNN) algorithm.
The Volume SuperTrend AI is designed to provide traders with insights into potential market trends, using both volume-weighted moving averages (VWMA) and the k-nearest neighbors (KNN) algorithm. By combining these approaches, the indicator aims to offer more precise predictions of price trends, offering bullish and bearish signals.
█ How It Works
Volume Analysis: By utilizing volume-weighted moving averages (VWMA), the Volume SuperTrend AI emphasizes the importance of trading volume in the trend direction, allowing it to respond more accurately to market dynamics.
Artificial Intelligence Integration - k-Nearest Neighbors (k-NN) Algorithm: The k-NN algorithm is employed to intelligently examine historical data points, measuring distances between current parameters and previous data. The nearest neighbors are utilized to create predictive modeling, thus adapting to intricate market patterns.
█ How to use
Trend Identification
The Volume SuperTrend AI indicator considers not only price movement but also trading volume, introducing an extra dimension to trend analysis. By integrating volume data, the indicator offers a more nuanced and robust understanding of market trends. When trends are supported by high trading volumes, they tend to be more stable and reliable. In practice, a green line displayed beneath the price typically suggests an upward trend, reflecting a bullish market sentiment. Conversely, a red line positioned above the price signals a downward trend, indicative of bearish conditions.
Trend Continuation signals
The AI algorithm is the fundamental component in the coloring of the Volume SuperTrend. This integration serves as a means of predicting the trend while preserving the inherent characteristics of the SuperTrend. By maintaining these essential features, the AI-enhanced Volume SuperTrend allows traders to more accurately identify and capitalize on trend continuation signals.
TrailingStop
The Volume SuperTrend AI indicator serves as a dynamic trailing stop loss, adjusting with both price movement and trading volume. This approach protects profits while allowing the trade room to grow, taking into account volume for a more nuanced response to market changes.
█ Settings
AI Settings:
Neighbors (k):
This setting controls the number of nearest neighbors to consider in the k-Nearest Neighbors (k-NN) algorithm. By adjusting this parameter, you can directly influence the sensitivity of the model to local fluctuations in the data. A lower value of k may lead to predictions that closely follow short-term trends but may be prone to noise. A higher value of k can provide more stable predictions, considering the broader context of market trends, but might lag in responsiveness.
Data (n):
This setting refers to the number of data points to consider in the model. It allows the user to define the size of the dataset that will be analyzed. A larger value of n may provide more comprehensive insights by considering a wider historical context but can increase computational complexity. A smaller value of n focuses on more recent data, possibly providing quicker insights but might overlook longer-term trends.
AI Trend Settings:
Price Trend & Prediction Trend:
These settings allow you to adjust the lengths of the weighted moving averages that are used to calculate both the price trend and the prediction trend. Shorter lengths make the trends more responsive to recent price changes, capturing quick market movements. Longer lengths smooth out the trends, filtering out noise, and highlighting more persistent market directions.
AI Trend Signals:
This toggle option enables or disables the trend signals generated by the AI. Activating this function may assist traders in identifying key trend shifts and opportunities for entry or exit. Disabling it may be preferred when focusing on other aspects of the analysis.
Super Trend Settings:
Length:
This setting determines the length of the SuperTrend, affecting how it reacts to price changes. A shorter length will produce a more sensitive SuperTrend, reacting quickly to price fluctuations. A longer length will create a smoother SuperTrend, reducing false alarms but potentially lagging behind real market changes.
Factor:
This parameter is the multiplier for the Average True Range (ATR) in SuperTrend calculation. By adjusting the factor, you can control the distance of the SuperTrend from the price. A higher factor makes the SuperTrend further from the price, giving more room for price movement but possibly missing shorter-term signals. A lower factor brings the SuperTrend closer to the price, making it more reactive but possibly more prone to false signals.
Moving Average Source:
This setting lets you choose the type of moving average used for the SuperTrend calculation, such as Simple Moving Average (SMA), Exponential Moving Average (EMA), etc.
Different types of moving averages provide various characteristics to the SuperTrend, enabling customization to align with individual trading strategies and market conditions.
-----------------
Disclaimer
The information contained in my Scripts/Indicators/Ideas/Algos/Systems does not constitute financial advice or a solicitation to buy or sell any securities of any type. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
My Scripts/Indicators/Ideas/Algos/Systems are only for educational purposes!
AlpHay : ToolKitToolKit:
First Impressions for Securities; (like crime scene investigators) 🧐
Our first job is to understand "What did happen here?" (historically, like Price Ranges or Price Performances) 🤔
Secondly, we try to figure out "where are we now?" (like common indicators or Moving Averages) 🤔
Then "What was the chain of events?" (macro, local, fundamentals, shorts, etc.)
Note: There are a lot of useful scripts out there, but If you want to see my approach for "Fundamentals" or "Finra Short Report" scripts, have a look.
Now we have a Clue. 😎
Includes;
1. Daily Metrics (Price performance, Price Difference, Volume, Trade)
2. Historic Price Performances
3. Historic Price ranges
4. RSI and MACD (you can change) Indicators for four "Time Frame" (you can change also)
5. Moving Averages (also shows daily values on the chart)
* Easy to customize.
* You can be positioned where ever you need. (be careful about overlays)
* You can turn on/off tables for your daily usage.
* You can flip Horizontally for some of the tables.
* Always look at tooltips (mouse over for Averages etc.)
I hope you enjoy it.
Disclaimer and Warning!
* Do not forget this is my Interpolation of the data sets. You can't invest in relying on this indicator. This is just a visual representation of the data sets.
* Just be careful what you wish for. And search for anomalies.
// ToDO List.
* Pre/Post Market Price and Volume
PTS Demand IndexPTS Demand Index Indicator for Trading View coded by Precision Trading Systems
This is a complex volume-based indicator which has powerful applications as a leading indicator.
It belongs in Subgraph two under the chart. It ranges from minus 50 to plus 50 hence the reason that zero is significant in its interpretations.
On a regular daily chart of a stock you can consider approximately +29 as overbought and -25 as oversold.
Above zero is considered a bullish uptrend and below zero is seen as a bearish downtrend. This point is more valid on a slower time frame of Demand Index > 50
Shorter lengths of 6-12, etc. offer scalping opportunities for day traders or swing traders when peaks and troughs are encountered at the usual "overbought and oversold" levels similar to using RSI.
At this length you will see frequent crossings of zero as the window of data being examined is tiny.
As a future predictor of price action my preference is the longer lengths from 50 upwards. This makes for a smoother plot without it telling lies by being smoothed. Just increase the length.
They tell stories and show up insider buying and selling in a clear manner. The screenshot is length 200 and shows a power blast signal very well. Because it uses volume, a big volume trade that does not move the price much will often show up in the Demand Index Indicator, warning us of impending rapid price changes.
This is when two big traders or houses buy and sell to each other, both assuming they are right, but obviously one of them will be wrong. It is this wrong person rushing to get out of their position that causes the big move.
This is usually in the direction of the Demand Index move and this is a startling observation and seems to follow the "principle of least action" (PLA), or as Jesse Livermore said, "the price broke very badly on my selling which showed me which was the path of least resistance" . You don't need to take my word for this, just look at the chart.
There are six well known rules to Demand Index, which are widely published but still worth knowing.
However after using this for more than twenty five years I have identified some new "rules" which I will share.
The six "regular" rules
1. Divergences. If the price of a market is making a new low and DI is not this is a positive divergence seen as bullish
2. The extreme peak, this forecasts that price in the underlying market will move higher shortly. (A rare rule)
3. If the market is making new highs and Demand Index is not this is often a sign of a top and is also a bearish divergence
4. If Demand Index crosses above zero this usually signals a change in market trend
5. A long term divergence between prices and DI usually indicate a long term top or bottom is forming.
6. If DI is hovering around zero without much direction it is a sign of an indecisive and weak market lacking gusto.
The five "extra rules" of Demand Index below.
7. "The DI trend line break"
If one draws a trend line on the indicator when one has a nice place to put it that links two or three peaks or troughs together, then it breaks up or down through it, then it often signifies a price break in the same direction.
Demand Index will often signal this price break a few bars ahead of time (Sometimes as much as 10 bars ahead) Making it justified in its title as a "leading indicator" because those who know trade without telling what they know. Demand Index listens and reports it back to you.
8. "DI power blast"
(This is the example in the screenshot which lead to a big move up at 230pm UK time which is the US opening time on the ES SP500 Futures 30 second chart)
This is when a bigger than normal move occurs in DI, it does not have to "cross zero" in the event just that it can be just below or just above. It signals a big move in the direction of the blast. The example shot from -15 up to +5 in a couple of bars which lead to a 14 point move up in the futures a few minutes later.
9. "DI congestion break out"
A congested area in DI, such as is described of a stock price in a narrow range break out known as "NR" is a valid signal when emerging up or down from this range and predicts a move in that direction from the market studied.
10. "Failed zero break"
If a market is far above zero and falls down to it just puncturing it then rises up again, this is a bullish sign and a sign of a supportive market. The same applies to the vice versa signal. It acts as support and resistance often.
To be cautious you can use a plus or minus 2 or 3 as the threshold instead of zero, to give less fake signals.
11. "DI Support and resistance"
This one takes more of a deeper look. If you see a level of DI acting as support and draw a line across the subgraph two chart then you can sometimes see that this acts as support again even though the market price is totally different. A strange phenomenon but worth looking for. The same applies for resistance in the vice versa argument.
The original Demand Index formula has been adhered to exactly as it was designed without any deviations, smoothing or added parameters.
I was unable to find another script on Trading View which followed it exactly when checking against my other versions.
According to legend, the designer of this indicator Mr James Sibbet called a very big move in the Silver futures markets back in 1979 which was reported in his weekly newsletter called "Let's Talk Silver & Gold".
It was called the Silver short squeeze and the price doubled in just a few months. As a designer of trading software myself since 2006 I can say Demand Index is truly an elegant work of art.
More about divergences
Having studied many technical indicators over the years I have formed the opinion that Demand Index is the best of the best for finding meaningful divergences.
This indicator needs volume to work correctly at its best.
You can still use it on indices and Forex but as the essential volume element is missing the results will be less than optimal.
It will "work" as the library code assigns a volume of 1 if no volume is found on the symbol used.
The best markets are those with a lot of volume and a lot of players arguing over the direction.
Liquid futures and stocks do well with this indicator.
Please remember to use risk management and stop losses as not every signal will win.
Thanks for reading and good luck with using it on Trading View
Roger Medcalf - Precision Trading Systems