[AlbaTherium] MTF Internal Ranges Analysis - IRA-Phoenix for SMCIntroduction:
The MTF Internal Ranges Analysis - IRA - Phoenix acts as an extension to the original main SMC Indicator by AlbaTherium . This add-on provides insights into multi-timeframe internal structure points, swing structure points, POIs (Points of Interest), and order blocks (OB). By integrating this enhancement, your multi-timeframe analyses become more streamlined, expediting the process and minimizing chart workload .
This tool represents an advanced smart money technical analysis aimed at enhancing your trading experience. It introduces four pivotal concepts:
Main Features:
Multiple Timeframes and Confluences,
SCOB Internal Order Block.
Demand to Supply (D2S) or Supply to Demand (S2D) across Multiple timeframes
SCOB on LTF and SCM on HTF across same Candle
By combining these concepts all in one, traders can find confluences zones across multiple timeframes and gain a comprehensive understanding of market dynamics, theses confluences zones empower order block skills and potentiality, showcasing them as essential, crucial, powerful, strategic, and pivotal, one of the pillars in smart money concepts trading strategy to make more informed decisions.
Settings Overview:
Select timeframe {Select or current chart}
Inside bar ranges
Internal structure as Internal zigzag {turn on/ off / unconfirmed(live) zigzag}
Single Candle Mitigation Pattern {turn on/ off / confirmed / unconfirmed}
Single Candle Order Block Pattern {turn on/ off / confirmed / unconfirmed}
Demands and Supplies (D&S) {turn on/ off / confirmed / unconfirmed}
OB Mitigation {touch/ extended}
Understanding the Features:
Chapter 1: Multiple Timeframes and Confluences
Our Multi-timeframe analysis approach enables traders to analyze market trends and volatility across different timeframes. Confluences, where signals align across multiple timeframes, provide strong indications for trading opportunities.
Practical Example:
- With MTF IRA - Phoenix , traders can seamlessly transition between different timeframes while maintaining a cohesive analysis. For instance, traders can monitor the M15, H1, or M5 charts while focusing on entry on the M1 timeframe, enabling a holistic view of market trends and opportunities .
Chapter 2: SCOB Internal Order Block across Multiple Timeframe
SCOB Internal Order Block (SCOB IOB) highlights critical zones in price action, showcasing the dominance of aggressive buyers or sellers on orders blocks. As confluences accumulate across multiple timeframes, the strength of the order block intensifies, presenting entry opportunities.
Practical Example:
You have the ability to detect zones where price ranges have formed; these areas are highly sought after for taking buying as well as selling positions, especially when these areas are reflected across 1 or 3 timeframes.
The only practical way to see theses confluences is to use this Indicator, see the example below
Chapter 03: Demand to Supply (D2S) or Supply to Demand (S2D) across Multiple timeframes
The Demand to Supply or Supply to Demand feature within MTF Internal Ranges Analysis - IRA - Phoenix offers a nuanced analysis of price action dynamics across various timeframes. By identifying shifts in supply and demand zones, traders gain valuable insights into market sentiment and potential price reversals.
This feature enables traders to anticipate changes in market direction by recognizing the interplay between demand and supply across different timeframes. By understanding how price reacts at key support and resistance levels, traders can make informed decisions and capitalize on emerging trends.
The Demand to Supply or Supply to Demand feature enhances the indicator's usefulness by providing traders with actionable information to navigate complex market conditions effectively. With this comprehensive analysis, traders can better manage risk and optimize trading strategies across multiple timeframes.
Real-world Example:
Chapter 04: SCOB on LTF and SCM on HTF across same Candle
with MTF Internal Ranges Analysis - IRA - Phoenix , explores the concepts of SCOB (Single Candle Order Block) on Lower Timeframes (LTF) and SCM (Single Candle Mitigation) on Higher Timeframes (HTF).
SCOB on LTF refers to the identification and analysis of single candle order blocks within shorter timeframes. These blocks represent critical price levels where significant buying or selling activity occurred within a single candlestick. By recognizing SCOB patterns, traders can pinpoint key areas of market interest and anticipate potential price movements.
On the other hand, SCM on HTF involves analyzing single candle mitigation entries within longer timeframes. This technique aims to capitalize on price reversals or shifts in market sentiment indicated by single candlestick patterns. By incorporating SCM analysis, traders can gain insights into broader market trends and make strategic trading decisions accordingly.
the intricacies of SCOB on LTF and SCM on HTF, offering traders valuable tools to enhance their analysis and decision-making processes across different timeframes. Through a comprehensive understanding of these concepts, traders can identify high-probability trading opportunities and navigate the markets with confidence.
Real-world Example:
SCOB on M5 and SCM on M15 generate a powerful order block.
Conclusion:
MTF Internal Ranges Analysis - IRA - Phoenix for Smart Money Concepts is a valuable asset for traders seeking to add more insights in today's dynamic markets especially for Intraday Traders. By focusing on concepts like "Multiple timeframes and Confluences, with one single timeframe u can analyze all timeframes", "SCOB Internal Order Block. With its innovative features and user-friendly interface, whether you're a seasoned trader or just starting your journey, MTF IRA - Phoenix can help you navigate through the complexities of price action and make more informed trading choices.
This document provides an extensive overview of MTF Internal Ranges Analysis - IRA - Phoenix, emphasizing its importance in comprehending market dynamics and utilizing essential smart money concepts trading principles.
Wyszukaj w skryptach "price action"
TradesAI - Elite (Premium)This is an all-inclusive, premium indicator that focuses mainly on price action analysis, a form of looking at raw price data and market structure to analyze and capture areas of interest where price could react.
This indicator is a perfect trading companion that saves you a lot of time in trading price action. Some of the popular methods that use price action analysis are "Smart Money Concepts (SMC)", "Inner Circle Trader (ICT)", and "Institutional Trading".
🔶 POWERFUL TOOLS
The indicator combines three main tools as a trading suite:
Trendlines
Market Structure Breakouts (MSB)
Order Blocks (OBs) and Reversal Order Blocks (ROBs)
These 3 main tools are interconnected together. Below we go over each, and then explain how and why they are brought in together. Please also note that the indicator's settings have tooltips next to most of them, with more detailed information.
🔶 TRENDLINES
This indicator automatically draws the most relevant Trendlines from pivot high/pivot low (based on the defined settings) as origins, while keeping track of candle closes across these Trendlines to adjust or invalidate accordingly.
The indicator will draw all possible Trendlines up to the maximum allowed by TradingView's PineScript. It uses a bullish pivot high candle to draw downtrends, and a bearish pivot low candle to draw uptrends. The algorithm will draw the most suitable active Trendlines from those origin points.
The indicator takes the origin point as the first point of the Trendline, then starts looking for the immediate next same-type candle (bullish to bullish or bearish to bearish), to draw the Trendline between the origin candle and this newer candle.
An uptrend is a ray connecting two bearish candles, as long as the second candle has a Low higher than the low of the origin (first) candle. A downtrend is a ray connecting two bullish candles, as long as the second candle has a high lower than the high of the origin (first) candle.
Upon drawing, the indicator then starts monitoring and adjusting this Trendline, by keeping the origin always the same but changing the second point. The goal is to keep reducing the slope of the Trendline till it is at 0 degrees (horizontal line). That then makes the Trendline "final". Note that you have the option to keep all Trendlines or just show the final, in the settings.
So, the algorithm has three states for the Trendlines:
Initial: not tested, meaning price hasn't yet broken through it and closed a candle beyond it, to cause a re-adjustment of this Trendline.
Broken: a candle hard closed (opened and closed) across it but still, the direction of the trend is maintained with a new Trendline from the same origin – could be replaced (or kept on the chart as a "backside", which is what we call a broken Trendline to be tested from the opposite side) with a new Trendline from the same origin, to the newest candle that caused the break to happen, as then it becomes the new second point of that Trendline.
Final: a candle hard closed (opened and closed) across it and can't draw a new Trendline from the same origin maintaining the direction of the trend (so an uptrend becomes a downtrend or a downtrend becomes an uptrend at this point, which is not allowed). This marks the end of the Trendline adjustment for that origin.
To summarize the Trendlines algorithm, imagine starting from a candle and drawing the Trendline, then keep re-adjusting it to make its slope less and less, till it becomes a horizontal line. That's the final state.
Here is a step-by-step scenario to demonstrate the algorithm:
Notice how first an Uptrend (green ray) is drawn between point A origin pivot (picked by our smart algorithm) and point B, both marked by green arrows:
Uptrend then turned into backside (where it flips from diagonal support to resistance where liquidity potentially resides):
Then a new uptrend is drawn from the same point A origin pivot to a new point B matching the filters in settings.
Finally, it turns also into a backside and is considered final because no more uptrends could be drawn from the same point A origin point.
Unlike traditional Trendline tools, this indicator takes into account numerous rules for each candlestick to determine valid support and resistance levels, which act as liquidity zones.
Unlike conventional Trendline tools, this indicator allows the user to define the pivot point left and right length to capture the proper ones as origins, then automatically recognizes and extends lines from them as liquidity zones where a reaction is expected. Moreover, the indicator monitors those Trendlines in real-time to switch them from buying to selling zones, and vice-versa, as the price structure changes.
Features
Log vs. Linear scale switch to show different Trendlines accordingly. When updating the Trendlines, or deciding whether Touches/Hard Closes are met, it makes a difference.
Ability to show all forms of Trendlines, final Trendlines or just backside Trendlines.
Why is it used?
For experienced traders, it offers the advantage of time efficiency, while new traders can bypass the steep learning curve of drawing Trendlines manually, which could practically be drawn between any two candlesticks on the chart (many variations).
🔶 MARKET STRUCTURE BREAKOUT (MSB)
The Market Structure Breakouts (MSB) tool is a trading tool that detects specific patterns on trading charts and provides ‘take profit’ regions based on the extended direction of the identified pattern. A breakout is a potential trading opportunity that presents itself when an asset's price moves away from a zone of accumulation (i.e. above a resistance level or below a support level) on increasing volume. The most famous form of market structure breakout is double/triple tops/bottoms, or what is referred to as W or M breakouts.
See this example below of how our MSB smart algorithm picked the local bottom of INDEX:BTCUSD
Here is a step-by-step scenario to demonstrate the algorithm:
First, the algorithm picks the pivot points according to our Machine Learning (ML) model, which uses Average True Range (ATR) and Moving Averages of various types to decide. It will then signal a Market Structure Breakout (MSB):
You may either short (sell) this MSB towards the targets (dotted green lines) and/or buy (long) at the targets (dotted green lines). Usually, these targets provide scalp moves, according to our model, but they may also act as strong reversal points on the chart.
Unlike standard indicators, the MSB tool identifies patterns that may not appear in every time frame due to specific conditions that need to be met, including Average True Range (ATR) and Moving Averages at the time of creation. Once these patterns are identified, the tool gives ‘take profit’ regions in the direction of the trading pattern and even allows for trading in the opposite direction (contrarian/counter-trend scalps) once those regions are reached. A confirmed breakout has the potential to drive the price to these specific targets, calculated based on our Machine Learning (ML) model. The Targets are the measured moves placed from the breakout point.
Features
Log vs. Linear scale switch to show different MSBs accordingly based on the ratios.
Detects trading patterns with specific conditions.
Ability to specify how sensitive the pivot points are for capturing market structure breakouts.
Provides take profit regions in the extended direction of the pattern.
Allows for versatile trading styles by permitting trades in the opposite direction (contrarian or counter-trend) once the take profit region is reached.
Highlights 2 levels of interest for potential trade initiation (or as targets of the MSB move).
🔶 ORDER BLOCK (OB) and REVERSAL ORDER BLOCK (ROB)
Before diving deeper into OBs and ROBs, you may consider the following chart for a general understanding of price ladders, and how they break. This is a bearish price ladder leaving Lower Lows and Lower Highs after an initial Low and High (L->H->LL->LH). Bullish ladders are the opposite (H->L->HH->HL).
In this bearish ladder case, notice the numbers representing the highs made (being lower). While this is a clean structure, markets don't always create such clean ladders, but you may switch to a higher timeframe to see it in a clearer form (usually, you will be able to spot it there).
In SMC or ICT concepts, the "Break Of Structure (BOS)" is pretty much creating a new lower low (LL) for the bearish ladder (and the creation of a higher high (HH) for the bullish ladder). By doing so, markets are grabbing liquidity below these levels and could either continue the ladder or stop/flip it. This gives you the context of how the ladder prints.
Price usually ends the ladder with a "Change of Character (CHoCH)", which represents a BOS (to grab liquidity) followed by an aggressive move in the opposite direction, which could lead the market to close the gaps and balance out. It is considered a good practice to then target liquidity in the opposite direction when a CHoCH happens, meaning for a bearish ladder you may target the pivots marked by 3, 2 and 1 at the top (start of the ladder).
Now we move to Order Blocks (OBs) and Reversal Order Blocks (ROBs). Think of them as sniper zones or micro ladders inside the bigger ladder/structure.
Order Blocks are usually used as zones of support and resistance on a trading chart where liquidity is present, or what some traders call "potential institutional interest zones". Order Blocks can be observed at the beginning of these strong moves of BOS or the CHoCH, leaving behind a zone (one or more candles) to be revisited later to balance the market. Therefore, these are interesting levels to place Limit/Market orders (sell the peaks or buy the valleys) instead of doing so at the swing highs or swing lows of the ladder (where BOS or CHoCH happened). The idea here is that the price could go deep into the ladder's step (peak or valley), and by doing so, it usually goes to these zones.
A bullish Order Block (Valley-OB) is the last bearish candle of a downtrend before a sequence of bullish candles (thus forming a "Valley"). A bearish Order Block (Peak-OB) is the last bullish candle of an uptrend before a sequence of bearish candles (thus forming a "Peak"). Our indicator captures the full range zones of the OB meaning not only the last candle but the sequence of same-type candles immediately next to it, which creates a zone, thus the name "OB/ROB Zone". Not only does the tool mark those levels on the chart, but it also has a smart tracking algorithm to remove the appropriate levels dynamically. It will monitor, candle by candle, what is happening to all the OBs/ROBs, and update them according to how they are being tested/visited (eg. weak testing being a touch, and strong testing being a touch of the same colour candle).
Bullish Valley-OB:
Bearish Peak-OB:
The indicator follows our concept of "Zone Activation" to determine whether to mark zones with dashed or solid lines.
If we take a bearish Peak-OB as an example, notice how it first gets drawn with a dashed red line (as the algorithm monitors how far the price moved away from the zone):
As price moves away (distance based on our Machin Learning (ML) model), it turns into solid lines:
Some people prefer to enter market orders or limit (pending) orders close to the zone, while others wait for it to hit. You may wait for these zones to turn into solid lines (meaning that the price made a decent move away from it before revisiting it). It depends on your trading strategy.
When Order Block (OB) zones break instead of holding the ladder, they turn into what we call Reversal Order Blocks (ROB); our algorithm of flipping these zones where price could react from the other side of the OB. Our algorithm monitor and highlight the most suitable ones to trade, based on +30 conditions and variables by our Machine Learning (ML) models. Examples of ROBs in the SMC or ICT trading community are a "Breaker Block", a "Mitigation Block" or a "Unicorn Setup". However, our algorithm filters the zones based on many factors such as ratios of price movement before, inside and after these zones, along with many other factors.
The algorithm monitors the ratios of how price moved into and away from the OB/ROB, as well as the type of move happening, to then filter the ones that are considered of high probability to break/not do a reaction.
A bullish Valley-OB (green) turns into a bearish Valley-ROB (neon red) where you may short (sell), while a bearish Peak-OB (red) turns into a bullish Peak-ROB (neon green) where you may long (buy).
Example of a bullish Valley-OB that turned into a bearish Valley-ROB:
Features
Log vs. Linear scale switch to show OBs/ROBs accordingly based on the ratios and the price action around these zones (before and after creation).
Uses our Machine Learning (ML) model to determine relevant Order Blocks (OBs) to show or hide based on price action.
Considers distribution and accumulation candles to find relevant Order Blocks.
Various types of triggers to mark those Order Blocks and their zones: breakout, close, hard close (open and close) or full close (low, high, open and close).
Monitors the 1:1 expansion of price from key areas of interest, which would change the importance of the zones through our concept of “Zone Activation”.
Allows for customization in the settings to display different types of Order Blocks (e.g., tested or untested).
Marking and invalidating levels based on many variables, including single or multiple candle zones, touching/closing beyond specific levels, weak/strong testing criteria, price tolerance % (near a level), and many more.
Provides color-coded visual representation for easier interpretation.
Why is it used?
Order Blocks (OB) and Reversal Order Blocks (ROB) represent the building blocks of price ladders, in conjunction with Swing Highs and Swing Lows. By identifying where liquidity is potentially present, they become common targets for big market players. Additionally, they provide clear invalidation points based on various types of candle closes, such as hard closes or simply a candle close.
One strategy that could be used is to open positions at these OB or ROB Levels as long as the chart maintains the trend (ladder), for a potentially higher win rate (or against it for a quick scalp). Be mindful of the breaking of a ladder or the building of a new one. A ladder breaks with a hard close (open and close) of a candle across the closest two levels; a ladder builds by not breaking back down across the levels it has tested. By definition, strong ladders will have a few untested levels and come back to wick them but still retain the structure of the laddering direction (trending with Lower Lows + Lower Highs or Higher Lows + Higher Highs).
🔶 COMBINING ALL TOOLS
In summary, Trendlines could be great tools to give you a general context of whether the price is laddering up or down. Once you spot the ladder, your goal is to either trade in its direction (not to go against the trend) or to counter-trend trade (contrarian). To do so, you could use the MSB tool to spot these BOS/CHoCH. And to give you more precise entries, you may rely on the OB/ROB zones which usually mesh over the ladder, to provide a sniper entry!
🔶 RISK DISCLAIMER
Trading is risky, and most day traders lose money. The risk of loss in trading can be substantial. Decisions to buy, sell, hold or trade in securities, commodities and other investments involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results. All content is to be considered hypothetical, selected after the fact, in order to demonstrate our product and should not be construed as financial advice. You should therefore carefully consider whether such trading is suitable for you in light of your financial condition.
PKJ StrategyWelcome to the Daily Price Action Mastery Strategy, a powerful approach to navigating the financial markets using the purest form of market analysis – price action. This trading view strategy is meticulously crafted for those seeking a method that harnesses the daily price movements to make informed and strategic trading decisions.
Key Features:
Daily Candlestick Analysis: Dive into the daily candlestick patterns to identify key support and resistance levels, trend reversals, and potential breakout points. The strategy leverages the valuable information encapsulated in each day's price action to discern market sentiment.
Trend Identification: Utilize trend analysis tools and indicators to pinpoint the prevailing market direction. By understanding the dynamics of daily trends, traders can align their positions with the broader market movement for higher probability trades.
Dynamic Support and Resistance: Implement dynamic support and resistance levels derived from daily price action. These levels act as crucial markers for entry and exit points, helping traders set effective stop-loss and take-profit orders.
Chart Patterns Recognition: Uncover chart patterns such as head and shoulders, flags, and triangles on the daily timeframe. The strategy incorporates pattern recognition techniques to identify potential trend continuation or reversal scenarios, offering traders a comprehensive view of market dynamics.
Volatility Analysis: Gauge market volatility by studying daily price ranges and fluctuations. Volatility indicators are integrated to help traders adjust their risk management strategies in response to varying market conditions.
Confirmation through Indicators: Supplement price action analysis with carefully selected indicators for additional confirmation signals. These indicators are chosen to align with the philosophy of the Daily Price Action Mastery Strategy, enhancing the precision of trade entries and exits.
Risk Management Guidelines: Discover effective risk management practices tailored to the daily timeframe. Learn how to optimize position sizes, set appropriate stop-loss levels, and manage capital to ensure long-term success and sustainability in your trading journey.
Whether you are a seasoned trader or a newcomer to the markets, the Daily Price Action Mastery Strategy provides a comprehensive framework to navigate the complexities of daily price movements. Elevate your trading experience by incorporating this strategy into your analysis, and empower yourself to make well-informed decisions in the dynamic world of finance.
RS for VPAThis is a supporting Indicator for the Volume Price Analysis Script VPA 5.0.
Purpose
To indicate the performance of the stock compared to an Index or any other selected stock. It also provides an idea about the strength of the Reference Index as well.
Description
The indicator is an unbound oscillator moving around a zero line. If the stock is strong then the values are positive and if it is weak the values are negative. If the stock is performing better (Stronger) than the Index the indicator is positive and colored green. If the stock is weaker than the Index it is negative and is colored Red.
The background indicates the strength of the Reference Index/Stock. Bullishness/up trend of the Index/Stock is indicated by yellow colour. Short term uptrend, Mid term uptrend and Long term trends are indicated by different shades of yellow varying from light to Dark. The bearishness / down trend is indicated by blue back ground.
How it Works
The relative strength is calculated by using the formula
RS = Gain of the stock / (Gain of the Ref. Index -1)
= (Stock Price today / Stock Price (N period ago)) /
(Index Price today / Index price (N period ago)) – 1
The Index strength is calculated as below
Short term trend up = 5 ema > 22 ema
Mid Term trend up = 22 ema > 60 ema
Long term trend up = 60 ema > 130 ema
Trend down = 5 ema < 22 ema
How to use
Use this indicator to assist your Price Action Analysis using VPA 5.0. When the Price action and volume indicates Bullishness, you can check if the relative strength is also supporting (Positive and in green Territory). This adds credibility to the Price action. Also check if the index is also positive (the Back ground is yellow). This makes the Price action even stronger. Ideally both the stock and index should be strong. Many time you would find the that the stock is in green territory but the index is in blue territory. This calls for some caution in evaluating the Price Action.
When the price action is positive but the relative strength is negative then one should be cautious and wait for the relative strength to turn positive before any entry decision.
Option for the Indicator
One can select the following from the setting for the indicator
1. Index or reference stock – Default is CNX 500
2. Relative Strength Calculation period – Default is 22
3. The EMA periods for the Index/Reference stock strength calculation
Scalp Zones [SI]The Scalp Zones indicator provides traders with visual ranges or "zones" on their charts, which can be used to quickly identify potential entry points for their trades in real time. Once price action enters the designated zone, trade signals and alerts will be generated, making it easier for both scalpers and swing traders to identify promising trading opportunities with greater confidence.
Although Scalp Zones is relatively easy to use, its simplicity is the end result of some interesting and rather complex analysis of price action and market structure.
█ CONCEPTS
Price Action vs Market Structure
For our purposes, “price action” refers to the movement of a security's price over time, whereas “market structure”, which is built upon price action, includes trends and support/resistance levels, breakouts, reversals of trend, etc. All of which can help traders identify potential entry and exit points for their trades.
Scalp Zone
A “Scalp Zone” is an area just above resistance or just below support that is deemed to be part of a trend that is exhausted or part of a “whipsaw” in the price action.
█ FEATURES
Can be combined with other indicators
Scalp Zones displays color-coded rectangles or "zones" that indicate areas of potential volatility, trend reversals and consolidation in price action. These zones can be used in conjunction with other indicators to more effectively identify trade opportunities.
Can also serve as an exit signal
Since Scalp Zones identifies areas where market participants are likely to enter or exit positions, they can offer some traders a way to spot good exits for their trades. For instance, if the price fails to surpass a significant resistance level (identified by a “scalp Zone”) and begins to decline, this may serve as a sell signal for traders who intend to lock in profits on a potential trend reversal.
Automatically adjusts to market conditions
Scalp Zones uses Average True Range (ATR) to dynamically adjust the size of the color-coded zones based on the current market conditions. By factoring in the ATR, the tool can produce zones that reflect the volatility of the market and adjust to changing levels of price movement.
█ LIMITATIONS
The Scalp Zones indicator is designed to provide traders with signals for potential entry points in the market, but it should not be used as the sole basis for making trading decisions. As with any trading indicator, it is important to acknowledge and understand that past performance does not guarantee future outcomes and that several other variables contribute to achieving success as a trader, especially proper risk management.
RedK TrendBeads: 3 x MA Crossover Signal with Preset TemplatesRedK TrendBeads is a super simple 3 x Moving Average Crossover Signal (Long/Short/Break) script that provides a simple and effective way for traders to identify potential trading opportunities. By combining three moving averages and only exposing a simple signal, the script helps filter out noise and focus on the trend and the trade execution.
Background
===========
A 3 x Moving Average Crossover strategy is a popular trading method in technical analysis . It uses the relationship between a fast, medium, and slow moving averages to generate buy or sell signals.
The approach usually utilizes three moving averages to track the average price of a financial instrument over different time periods. By comparing the fast, medium, and slow moving averages, we can generates a signal to trade long or short
If the fast moving average crosses above the medium moving average and the medium moving average is above the slow moving average, we have a probability of an up-trend forming, and we generate a signal to go long. Conversely, if the fast moving average crosses below the medium moving average and the medium moving average is below the slow moving average, we have a probability of a down-trend forming, and we generate a signal to go short. When the moving averages are not in the right order (above or below each other), we have a trend break, usually on consolidation or base forming.
in TrendBeads, the fastest MA is called "Price Proxy MA" and will be used with a relatively short length to represent the price itself - then there are the Fast MA, Slow MA and a Filter MA (usually with the longest/slowest length) which is the main line that will be used to plot the TrendBeads - So the TrendBeads will represent the state of the other 3 Moving Average lines (Proxy, Fast and Slow) and how they are aligned - and it will also be common to use the Filter / Beads line itself as a main filter, i.e., take long positions *only* when the price action is above the Filter MA, and short positions *only* when the price is below the Filter MA.
So what is different with TrendBeads:
=====================================
Simplicity, No Clutter: I put this together to provide a super simple mechanism to track trend on the price chart without so much noise as i also wanted to have other top-chart indicators (like LadderTrader) - so TrendBeads only shows the "beads" on the chart - they act like "traffic lights" with little distracting information - Simplicity here was deliberately part if the idea
Presets, What others are Watching: The other feature I needed was the ability to track price action against "different sets" of Moving Averages quickly - for example, when executing short-term trades, I needed to use Moving Averages with shorter length and want to utilize my RSS_WMA MA type - but when assessing big breakout opportunities, I need to analyze price action against a different set of MA's with (usually) longer length and mainly SMA's (hint, The Minervini template) - This is where the built-in Preset Templates become very useful.
Having these preset templates quickly available (thru the dropdown in indicator settings) provides time saving, convenience and the confidence that we're looking at what other traders are using in their analysis - so not missing out on key-level breakouts or reversals
TrendBeads v1.0 includes the following 5 preset MA templates
======================================================
Preset 1 : RedK_1: 8RSS / 15RSS / 21RSS / 30SMA
Preset 2 : RedK_2: 5WMA / 10SMA / 20SMA / 40SMA
Preset 3 : SWNG_1: 7EMA / 21EMA / 30EMA / 50SMA
Preset 4 : SWNG_2: 10EMA / 21EMA / 50SMA / 100SMA
Preset 5 : SWNG_3: 10EMA / 21EMA / 100SMA / 200SMA
The above presets represent some of the most common sets of MA's traders use in various scenarios (Short-term/day trading, Swing, Long term / growth). Well, except for the first one since it utilizes my own RSS_WMA :) which I use in many charts
I may add some more presets in future.
below chart shows an example of different presets against AAPL for the same time range / window
There's also the ability to manually set different MA source price, MA type and length for each of the 4 MA lines. Supported MA types are SMA , EMA , WMA , HMA and my RSS_WMA
TrendBeads Usage Tips:
=====================
*If you have used any MA crossover (2 lines or 3 lines) on your chart, your should find TradeBeads very easy to use. TrendBeads works the same way except that the signal will show as colored beads on the Filter MA line instead of showing multiple crossing lines .. and that is by design.
* Feel free to expose any or all of the individual MA lines - for example, i find that exposing the Proxy Line helps in quickly finding famous chart patterns ( cup & handle , H&S ..etc)
* Experiment with the different presets depending on the type of trade you're working on (swing, long term growth candidates, day trades..etc)
* Note that in a long trend up (Aqua Beads), usually the first gray + orange sequence will usually act as a "reversal sign" - and are usually not actionable - always look for the "second" color sequence to action/trade .. Same thing for a long trend down -- get used to how the beads change color against the trend changes and play with various timeframes.
* As usual - we should have other indicators that track strength, volume , etc and ensure proper confirmation before trade execution - A good signal is only a small part of a trade - risk management and good trade execution are key to winning.
Hope some fellow traders will find this useful - feel free to leave me any comments or feedback - Good luck!
Price Correction to fix data manipulation and mispricingPrice Correction corrects for index and security mispricing to the extent possible in TradingView on both daily and intraday charts. Price correction addresses mispricing issues for specific securities with known issues, or the user can build daily candles from intraday data instead of relying on exchange reported daily OHLC prices, which can include both legitimate special auction and off-exchange trades or illegitimate mispricing. The user can also detect daily OHLC prices that don’t reflect the intraday price action within a specified percent deviation. Price Correction functions as normal candles or bars for any time frame when correction is not needed.
On the 4th of October 2022, the AMEX exchange, owned by the New York Stock Exchange, decided to misprice the daily OHLC data for the SPY, the world’s largest ETF fund. The exchange eliminated the overnight gap that should have occurred in the daily chart that represents regular trading hours by showing a wick connecting near the close of the previous day. Neither the SPX, the SP500 cash index that the SPY ETF tracks, nor other SPX ETFs such as VOO or IVV show such a wick because significant price action at that level never occurred. The intraday SPY chart never shows the price drop below 372.31 that day, but there is a wick that extends to 366.57. On the 6th of October, they continued this practice of using a wick that connects with the close of the previous day to eliminate gaps in daily price action. The objective of this indicator is to fix such inconsistent mispricing practices in the SPY, NYA, and other indices or securities.
Price Correction corrects for the daily mispricing in the SPY to agree with the price action that actually occurred in the SPX index it tracks, as well as the other SPX ETFs, by using intraday data. The chart below compares the Price Correction of the SPY (top) to the SPX (middle) and the original mispriced SPY (bottom) with incorrect wicks. Price correction (top) removes those incorrect wicks (bottom) to match the SPX (middle).
The daily mispricing of the SPY follows after the successful deployment of the NYSE Composite Index mispricing, NYA, an index that represents all common stocks within the New York Stock Exchange, the largest exchange in the world. The importance of the NYA should not be understated. It is the price counterpart to NYSE’s market internals or statistics. Beginning in 2021, the New York Stock Exchange eliminated gaps in daily OHLC data for the NYA by using the close of the previous day as the open for the following day, in violation of their own NYSE Index Series Methodology. The Methodology states for the opening price that “The first index level is calculated and published around 09:30 ET, when the U.S. equity markets open for their regular trading session. The calculation of that level utilizes the most updated prices available at that moment.” You can verify for yourself that this is simply not the case. The first update of the NYA price for each day matches the close of the previous day, not the “most updated prices available at that moment”, causing data providers to often represent the first intraday bar with a huge sudden price change when an overnight price change occurred instead. For example, on 13 Jun 2022, TradingView shows a one-minute bar drop 2.3%. With a market capitalization of roughly 23 trillion dollars, the NYSE composite capitalization did not suddenly drop a half-trillion dollars in just one minute as the intraday chart data would have you believe. All major US indices, index ETFs, and even foreign indices like the Toronto TAX, the Australian ASXAL, the Bombay SENSEX, and German DAX had down gaps that day, except for the mispriced NYSE index. Price Correction corrects for this mispricing in daily OHLC data, as shown in the main chart at the top of this page comparing the original NYA (top) to the Price Corrected NYA (bottom).
Price Correction also corrects for the intraday mispricing in the NYA. The chart below shows how the Price Correction (top) replaces the incorrect first one-minute candles with gaps (bottom) from 22 Sep 2022 to 29 Sep 2022. TradingView is inconsistent in how intraday data is reported for overnight gaps by sometimes connecting the first intraday bar of the day to the close of the previous day, and other times not. This inconsistency may be due to manually changing the intraday data based on user support tickets. For example, after reporting the lack of a major gap in the NYA daily OHLC prices that existed intraday for 13 Jun 2022, TradingView opted to remove the true gap in intraday prices by creating a 2.3% half-a-trillion-dollar one-minute bar that connected the close of the previous day to show a sudden drop in price that didn’t occur, instead of adding the gap in the daily OHLC data that actually took place from overnight price action.
Price Correction allows users to detect daily OHLC data that does not reflect the intraday price action within a certain percent difference by changing the color of those candles or bars that deviate. The chart below clearly shows the start of the NYSE disinformation campaign for NYA that started in 2021 by painting blue those candles with daily OHLC values that deviated from the intraday values by 0.1%. Before 2021, the number of deviating candles is relatively sparse, but beginning in 2021, the chart is littered with deviating candles.
If there are other index or security mispricing or data issues you are aware of that can be incorporated into Price Correction, please let me know. Accurate financial data is indispensable in making accurate financial decisions. Assert your right to accurate financial data by reporting incorrect data and mispricing issues.
How to use the Price Correction
Simply add this “indicator” to your chart and remove the mispriced default candles or bars by right clicking on the chart, selecting Settings, and de-selecting Body, Wick, and Border under the Symbol tab. The Presets settings automatically takes care of mispricing in the NYA and SPY to the extent possible in TradingView. The user can also build their own daily candles based off of intraday data to address other securities that may have mispricing issues.
Extended Volume With Historical & Realtime Intrabar ProfileExtended Volume With Historical & Realtime Intrabar Profile
This indicator displays some additional information on the normal volume bars. Apart from the normal co-relation between price action, it is possible to configure an intrabar timeframe.
Intrabar volume analysis
On historical bars, this will calculate the last intrabar timeframe minutes volumes. The intrabar timeframe is user input. On a realtime bar, it will calculate the "rolling/forward" minutes cumulative volume . Which means from the time the script is loaded, it will on subsequent volume ticks, calculate the cumulative volume till then. The realtime cumulative volume will roll-over once the intrabar timeframe minutes is reached. For example, if the script was set to an intrabar timeframe of 30 minutes and loaded on the chart at 2:00 PM, then the realtime bar, will start adding up the volume on each volume tick. At 2:30 PM, this cumulative volume will be reset to zero, again start the same process for 30 minutes till 3:00 PM. It must be noted that fetching lower timeframe data from higher timeframe is not supported/guaranteed in pine script, yet. So the data is approximate and can be erroneous at times. Physical checking maybe required on lower timeframes to confirm the actions.
Price Action and Volume
Each volume bar is coloured on the basis of resulting price action and relative to volume bars prior to this day. This is very helpful in spotting "unusual" volumes.
Color Codes
A normal day volume on an up day, (today close > previous close) is displayed in Blue.
A normal day volume on a down day, is displayed in Fuchsia.
An up day with up volume day with today's volume higher than daily average volume is displayed in Teal.
A down volume day but with high close with lower average volume maybe a sign of weak hands, displayed in Orange.
An up day with volume above the weekly average is displayed in Lime.
Special Info
When enabled, a 52W High volume bar is noted by the sign "1Yr H".
When enabled (for historical bars), if the last intrabar cumulative volume is greater than 1.5 times the 5 day's average intrabar volume , "HD:XX" is displayed on top of the volume bar. The ratio of the day's volume to last 5 day's is displayed. For many markets, a higher value is indicative of delivery based trades near the end of the trading sessions when intraday volumes reside.
Nudge
A modification of the "Volume Buzz", this is a percentage change of the current rolling volume to the daily average of the intrabar volumes for realtime bar. For historical bars, it is the percentage change of the day volume to the daily average volume . The realtime "Nudge" is displayed in the
RT Box
The RT Box, displays the following information:
Elapsed Time - Time elapsed since realtime monitoring, will reset to 0 after intrabar timeframe is elapsed
Vol : Cumulative volume till recent tick since start of monitoring
Chng% : Change in price between the current time and the price at start of the monitoring
Nudge : The volume Nudge value, as explained above
Input controls
Intrabar volumes
Session Closing Volumes, when enabled activates realtime monitoring
Lookback minutes , in steps of 15 minutes, define the intrabar timeframe. Max 210 minutes. Minimum 15 minutes.
Show Only Intrabar Volumes , display on the intrabar timeframe volumes on historical bars, turn off normal day volumes
RT Box , when enabled displays realtime stats about rolling volumes on realtime bar
Volume Averages
Daily Avg Lookback , enable and set the lookback for daily volume average - disabled when "Only Last bars Info" is selected
Weekly Avg Lookback , enable and set the lookback for weekly volume average
Intrabars Avg Lookback , enable and set the lookback for intrabar volume average - enabled only when "Only Last bars Info" is selected
Debug & Info
Display Debug info on each volume bar, set by offset. 0 will show on last bar, 1 on the second last and sop on.
Enhanced Info : When enabled displays "1 Yr H" and "HD" data as explained above
Known Issue
The intrabar volume average does not get displayed on the last historical bar during market-off hours.
(FireflyTA) COG AverageCOG Average
COG stands for Center of Gravity. This indicator is an average of multiple COGs based on different sets of timeframes. To get the single COGs this average is based on, use the Market Flow COG (Overlay) indicator.
COG Average is primarily a support and resistance indicator. It can also be used to identify trend and trend changes as well imminent breakouts.
----------------------
About "Center of Gravity"
The COG is an entity that is pulling price back to it frequently (this is why it is called Center of Gravity ) as the law of mean reversion dictates. Mean reversion can be loosely broken up into mean reversion on multiple timeframes, and the COGs are included for ULT (ultra low, 15-60m), L (low, 1h-4h), M (medium, 6h-12H) and H (higher, 1D+) timeframes. As this entity is a new development in TA there is still a lack of scientific evidence that it is reliable. However, if you look at the charts, you will notice that price action will respect this entity and circle around it on the appropriate timeframes most of the time.
The COG is similar to a Bollinger Band , it is using volatility as its main component. However, COGs are aggregated entities looking at more timeframes at the same time, so besides the Time X Volatility perspective that is provided by Bollinger Bands , this entity adds a third dimension by looking at multiple timeframes. The COG is the mean of all the BBs that are included in the calculation, which can be a large number. This makes a COG a meta-analytic entity that is more sensitive to market price action.
The COG helps you in identifying how far and for how long price has been overextended to one side beyond the means. In theory, the probabilities increase dramatically to see a mean reversion to the COG. Watching price interacting with the COG should make clear that the correlations are significant, however there might be differences based on the markets used. The COGs have primarily been tested with the BTCUSD market and for crypto in general.
A way to trade based on COGs is to look for weakness (if price is above the COG) or strength (if price is below the COG) in price action while it is approaching S&R.; If signs of accumulation or distribution arise, and the distance to the COG is meaningful (as well as being maintained for a few candles), it can provide additional backing for your long/short scalping and swing trading ideas. I'd recommend to always use the COG in combination with your knowledge on price action.
By using all COGs at the same time for ULTF, LTF , MTF and HTF you can get a feeling for where price is in the context overall market flow.
----------------------
Deviation Bands
The Deviation Bands are fib-based deviations of the COG. When this module is enabled, the deviation bands are plotted around the COG. The deviations can be adjusted manually as well by changing the values in the indicator UI. The main purpose of these bands is to identify the structure of price movements in relation to the COG distance, i.e. analyzing how long price can maintain levels in an area >X or
Realtime Delta Volume Action [LucF]█ OVERVIEW
This indicator displays on-chart, realtime, delta volume and delta ticks information for each bar. It aims to provide traders who trade price action on small timeframes with volume and tick information gathered as updates come in the chart's feed. It builds its own candles, which are optimized to display volume delta information. It only works in realtime.
█ WARNING
This script is intended for traders who can already profitably trade discretionary on small timeframes. The high cost in fees and the excitement of trading at small timeframes have ruined many newcomers to trading. While trading at small timeframes can work magic for adrenaline junkies in search of thrills rather than profits, I DO NOT recommend it to most traders. Only seasoned discretionary traders able to factor in the relatively high cost of such a trading practice can ever hope to take money out of markets in that type of environment, and I would venture they account for an infinitesimal percentage of traders. If you are a newcomer to trading, AVOID THIS TOOL AT ALL COSTS — unless you are interested in experimenting with the interpretation of volume delta combined with price action. No tool currently available on TradingView provides this type of close monitoring of volume delta information, but if you are not already trading small timeframes profitably, please do not let yourself become convinced that it is the missing piece you needed. Avoid becoming a sucker who only contributes by providing liquidity to markets.
The information calculated by the indicator cannot be saved on charts, nor can it be recalculated from historical bars.
If you refresh the chart or restart the script, the accumulated information will be lost.
█ FEATURES
Key values
The script displays the following key values:
• Above the bar: ticks delta (DT), the total ticks for the bar, the percentage of total ticks that DT represents (DT%)
• Below the bar: volume delta (DV), the total volume for the bar, the percentage of total volume that DV represents (DV%).
Candles
Candles are composed of four components:
1. A top shaped like this: ┴, and a bottom shaped like this: ┬ (picture a normal Japanese candle without a body outline; the values used are the same).
2. The candle bodies are filled with the bull/bear color representing the polarity of DV. The intensity of the body's color is determined by the DV% value.
When DV% is 100, the intensity of the fill is brightest. This plays well in interpreting the body colors, as the smaller, less significant DV% values will produce less vivid colors.
3. The bright-colored borders of the candle bodies occur on "strong bars", i.e., bars meeting the criteria selected in the script's inputs, which you can configure.
4. The POC line is a small horizontal line that appears to the left of the candle. It is the volume-weighted average of all price updates during the bar.
Calculations
This script monitors each realtime update of the chart's feed. It first determines if price has moved up or down since the last update. The polarity of the price change, in turn, determines the polarity of the volume and tick for that specific update. If price does not move between consecutive updates, then the last known polarity is used. Using this method, we can calculate a running volume delta and ticks delta for the bar, which becomes the bar's final delta values when the bar closes (you can inspect values of elapsed realtime bars in the Data Window or the indicator's values). Note that these values will all reset if the script re-executes because of a change in inputs or a chart refresh.
While this method of calculating is not perfect, it is by far the most precise way of calculating volume delta available on TradingView at the moment. Calculating more precise results would require scripts to have access to tick data from any chart timeframe. Charts at seconds timeframes do use exchange/broker ticks when the feeds you are using allow for it, and this indicator will run on them, but tick data is not yet available from higher timeframes. Also, note that the method used in this script is far superior to the intrabar inspection technique used on historical bars in my other "Delta Volume" indicators. This is because volume and ticks delta here are calculated from many more realtime updates than the available intrabars in history. Unfortunately, the calculation method used here cannot be used on historical bars, where intrabar inspection remains, in my opinion, the optimal method.
Inputs
The script's inputs provide many ways to personalize all the components: what is displayed, the colors used to display the information, and the marker conditions. Tooltips provide details for many of the inputs; I leave their exploration to you.
Markers
Markers provide a way for you to identify the points of interest of your choice on the chart. You control the set of conditions that trigger each of the five available markers.
You select conditions by entering, in the field for each marker, the number of each condition you want to include, separated by a comma. The conditions are:
1 — The bar's polarity is up/dn.
2 — `close` rises/falls ("rises" means it is higher than its value on the previous bar).
3 — DV's polarity is +/–.
4 — DV% rises (↕).
5 — POC rises/falls.
6 — The quantity of realtime updates rises (↕).
7 — DV > limit (You specify the limit in the inputs. Since DV can be +/–, DV– must be less than `–limit` for a short marker).
8 — DV% > limit (↕).
9 — DV+ rises for a long marker, DV– falls for a short.
10 — Consecutive DV+/DV– on two bars.
11 — Total volume rises (↕).
12 — DT's polarity is +/–.
13 — DT% rises (↕).
14 — DT+ rises for a long marker, DT– falls for a short.
Conditions showing the (↕) symbol do not have symmetrical states; they act more like filters. If you only include condition 4 in a marker's setup, for example, both long and short markers will trigger on bars where DV% rises. To trigger only long or short markers, you must add a condition providing directional differentiation, such as conditions 1 or 2. Accordingly, you would enter "1,4" or "2,4".
For a marker to trigger, ALL the conditions you specified for it must be met. Long markers appear on the chart as "Mx▲" signs under the values displayed below candles. Short markers display "Mx▼" over the number of updates displayed above candles. The marker's number will replace the "x" in "Mx▲". The script loads with five markers that will not trigger because no conditions are associated with them. To activate markers, you will need to select and enter the set of conditions you require for each one.
Alerts
You can configure alerts on this script. They will trigger whenever one of the configured markers triggers. Alerts do not repaint, so they trigger at the bar's close—which is also when the markers will appear.
█ HOW TO USE IT
As a rule, I do not prescribe expected use of my indicators, as traders have proved to be much more creative than me in using them. Additionally, I tend to think that if you expect detailed recommendations from me to be able to use my indicators, it's a sign you are in a precarious situation and should go back to the drawing board and master the necessary basics that will allow you to explore and decide for yourself if my indicators can be useful to you, and how you will use them. I will make an exception for this thing, as it presents fairly novel information. I will use simple logic to surmise potential uses, as contrary to most of my other indicators, I have NOT used this one to actually trade. Markets have a way of throwing wrenches in our seemingly bullet-proof rationalizing, so drive cautiously and please forgive me if the pointers I share here don't pan out.
The first thing to do is to disable your normal bars. You can do this by clicking on the eye icon that appears when you hover over the symbol's name in the upper-left corner of your chart.
The absolute value and polarity of DV mean little without perspective; that's why I include both total volume for the bar and the percentage that DV represents of that total volume. I interpret a low DV% value as indecision. If you share that opinion, you could, let's say, configure one of the markers on "DV% > 80%", for example (to do so you would enter "8" in the condition field of any marker, and "80" in the limit field for condition 8, below the marker conditions).
I also like to analyze price action on the bar with DV%. Small DV% values should often produce small candle bodies. If a small DV% value occurs on a bar with much movement and high volume, I'm thinking "tough battle with potential explosive power when one side wins". Conversely, large bodies with high DV% mean that large volume is breaching through multiple levels, or that nobody is suddenly willing to take the other side of a normal volume of trades.
I find the POC lines really interesting. First, they tell us the price point where the most significant action (taking into account both price occurrences AND volume) during the bar occurred. Second, they can be useful when compared against past values. Third, their color helps us in figuring out which ones are the most significant. Unsurprisingly, bunches of orange POCs tend to appear in consolidation zones, in pauses, and before reversals. It may be useful to often focus more on POC progression than on `close` values. This is not to say that OHLC values are not useful; looking, as is customary, for higher highs or lower lows, or for repeated tests of precise levels can of course still be useful. I do like how POCs add another dimension to chart readings.
What should you do with the ticks delta above bars? Old-time ticker tape readers paid attention to the sounds coming from it (the "ticker" moniker actually comes from the sound they made). They knew activity was picking up when the frequency of the "ticks" increased. My thinking is that the total number of ticks will help you in the same way, since increasing updates usually mean growing interest—and thus perhaps price movement, as increasing volatility or volume would lead us to surmise. Ticks delta can help you figure out when proportionally large, random orders come in from traders with other perspectives than the short-term price action you are typically working with when you use this tool. Just as volume delta, ticks delta are one more informational component that can help you confirm convergence when building your opinions on price action.
What are strong bars? They are an attempt to identify significance. They are like a default marker, except that instead of displaying "Mx▲/▼" below/above the bar, the candle's body is outlined in bright bull/bear color when one is detected. Strong bars require a respectable amount of conditions to be met (you can see and re-configure them in the inputs). Think of them as pushes rather than indications of an upcoming, strong and multi-bar move. Pushes do, for sure, often occur at the beginning of strong trends. You will often see a few strong bars occur at 2-3 bar intervals at the beginning or middle of trends. But they also tend to occur at tops/bottoms, which makes their interpretation problematic. Another pattern that you will see quite frequently is a final strong bar in the direction of the trend, followed a few bars later by another strong bar in the reverse direction. My summary analyses seemed to indicate these were perhaps good points where one could make a bet on an early, risky reversal entry.
The last piece of information displayed by the indicator is the color of the candle bodies. Three possible colors are used. Bull/bear is determined by the polarity of DV, but only when the bar's polarity matches that of DV. When it doesn't, the color is the divergence color (orange, by default). Whichever color is used for the body, its intensity is determined by the DV% value. Maximum intensity occurs when DV%=100, so the more significant DV% values generate more noticeable colors. Body colors can be useful when looking to confirm the convergence of other components. The visual effect this creates hopefully makes it easier to detect patterns on the chart.
One obvious methodology that comes to mind to trade with this tool would be to use another indicator like Technical Ratings at a higher timeframe to identify the larger context's trend, and then use this tool to identify entries for short-term trades in that direction.
█ NOTES AND RAMBLINGS
Instant Calculations
This indicator uses instant values calculated on the bar only. No moving averages or calculations involving historical periods are used. The only exception to this rule is in some of the marker conditions like "Two consecutive DV+ values", where information from the previous bar is used.
Trading Small vs Long Timeframes
I never trade discretionary at the 5sec–5min timeframes this indicator was designed to be used with; I trade discretionary at 1D, 1W and 1M timeframes, and let systems trade at smaller timeframes. The higher the timeframe you trade at, the fewer fees you will pay because you trade less and are not churning trading volume, as is inevitable at smaller timeframes. Trading at higher timeframes is also a good way to gain an instant edge on most of the trading crowd that has its nose to the ground and often tends to forget the big picture. It also makes for a much less demanding trading practice, where you have lots of time to research and build your long-term opinions on potential future outcomes. While the future is always uncertain, I believe trades riding on long-term trends have stronger underlying support from the reality outside markets.
To traders who will ask why I publish an indicator designed for small timeframes, let me say that my main purpose here is to showcase what can be done with Pine. I often see comments by coders who are obviously not aware of what Pine is capable of in 2021. Since its humble beginnings seven years ago, Pine has grown and become a serious programming language. TradingView's growing popularity and its ongoing commitment to keep Pine accessible to newcomers to programming is gradually making Pine more and more of a standard in indicator and strategy programming. The technical barriers to entry for traders interested in owning their trading practice by developing their personal tools to trade have never been so low. I am also publishing this script because I value volume delta information, and I present here what I think is an original way of analyzing it.
Performance
The script puts a heavy load on the Pine runtime and the charting engine. After running the script for a while, you will often notice your chart becoming less responsive, and your chart tab can take longer to activate when you go back to it after using other tabs. That is the reason I encourage you to set the number of historical values displayed on bars to the minimum that meets your needs. When your chart becomes less responsive because the script has been running on it for many hours, refreshing the browser tab will restart everything and bring the chart's speed back up. You will then lose the information displayed on elapsed bars.
Neutral Volume
This script represents a departure from the way I have previously calculated volume delta in my scripts. I used the notion of "neutral volume" when inspecting intrabar timeframes, for bars where price did not move. No longer. While this had little impact when using intrabar inspection because the minimum usable timeframe was 1min (where bars with zero movement are relatively infrequent), a more precise way was required to handle realtime updates, where multiple consecutive prices often have the same value. This will usually happen whenever orders are unable to move across the bid/ask levels, either because of slow action or because a large-volume bid/ask level is taking time to breach. In either case, the proper way to calculate the polarity of volume delta for those updates is to use the last known polarity, which is how I calculate now.
The Order Book
Without access to the order book's levels (the depth of market), we are limited to analyzing transactions that come in the TradingView feed for the chart. That does not mean the volume delta information calculated this way is irrelevant; on the contrary, much of the information calculated here is not available in trading consoles supplied by exchanges/brokers. Yet it's important to realize that without access to the order book, you are forfeiting the valuable information that can be gleaned from it. The order book's levels are always in movement, of course, and some of the information they contain is mere posturing, i.e., attempts to influence the behavior of other players in the market by traders/systems who will often remove their orders when price comes near their order levels. Nonetheless, the order book is an essential tool for serious traders operating at intraday timeframes. It can be used to time entries/exits, to explain the causes of particular price movements, to determine optimal stop levels, to get to know the traders/systems you are betting against (they tend to exhibit behavioral patterns only recognizable through the order book), etc. This tool in no way makes the order book less useful; I encourage all intraday traders to become familiar with it and avoid trading without one.
(FireflyTA) Market Flow COG (Oscillator)Market Flow COG (Oscillator)
Market Flow COG in the "Oscillator" version gives you an aggregated score (bullishness vs. bearishness) based on market flow analysis. I'm using my own definition of market flow since I'm actively doing scientific research on that topic and developing concepts and tools around it.
This indicator is best used together with Market Flow COG (Overlay) , which is also public.
----------------------
About Market Flow
The market flow is a concept describing the directional force driving price movement that a market experiences based on term-specific (short-, mid- and long-term) momentum as well as dynamic range support and resistance.
In a strong uptrend for example, market flow is upwards, so dynamic range S&R (i.e. Bollinger Bands) is flowing upwards, too. This is increasing the probability to see continuation after dips. In a shifting trend, it is possible to observe market flow still continuing upwards, because the the flow is only changing slowly. Momentum takes a while to run out and exert pressure into the other direction. This phenomenon can be observed on all timeframes in high-volume markets, even more so on the higher timeframes.
Given the complex nature of market flow , there is still a lack of tools available to properly examine it and to derive appropriate trading decisions.
----------------------
About Market Flow COG
This indicator calculates a score that indicates where price is in relation all the different COGs (described below). This information is multiplied by a weight depending on the various trends price is in, i.e. a HTF uptrend makes it more likely to see price deviating from the mean to the upside, so the score is not as bearish when price is doing so.
This score is an assessment of how bullish or bearish the market is depending on mean reversion probabilities. If you use this indicator together with the Overlay version of this script, you can visualize where appropriate mean reversion targets are in case score hits very high or low levels. This way, it is possible to supplement your own research and improve your strike rate with your setups. But keep in mind that this indicator is not supposed to be used to derive trading decisions without doing proper interpretation work on the price action itself. It is supposed to help you find evidence supporting your own ideas.
----------------------
About "Center of Gravity"
Included as a module in the "Overlay" version of this script - but also being used in the calculations of this script.
The COG is an entity that is pulling price back to it frequently (this is why it is called Center of Gravity) as the law of mean reversion dictates. Mean reversion can be loosely broken up into mean reversion on multiple timeframes, and the COGs are included for ULT (ultra low, 15-60m), L (low, 1h-4h), M (medium, 6h-12H) and H (higher, 1D+) timeframes. As this entity is a new development in TA there is still a lack of scientific evidence that it is reliable. However, if you look at the charts, you will notice that price action will respect this entity and circle around it on the appropriate timeframes most of the time.
The COG is similar to a Bollinger Band, it is using volatility as its main component. However, COGs are aggregated entities looking at more timeframes at the same time, so besides the Time X Volatility perspective that is provided by Bollinger Bands, this entity adds a third dimension by looking at multiple timeframes. The COG is the mean of all the BBs that are included in the calculation, which can be a large number. This makes a COG a meta-analytic entity that is more sensitive to market price action.
The COG helps you in identifying how far and for how long price has been overextended to one side beyond the means. In theory, the probabilities increase dramatically to see a mean reversion to the COG. Watching price interacting with the COG should make clear that the correlations are significant, however there might be differences based on the markets used. The COGs have primarily been tested with the BTCUSD market and for crypto in general.
A way to trade based on COGs is to look for weakness (if price is above the COG) or strength (if price is below the COG) in price action while it is approaching S&R. If signs of accumulation or distribution arise, and the distance to the COG is meaningful (as well as being maintained for a few candles), it can provide additional backing for your long/short scalping and swing trading ideas. I'd recommend to always use the COG in combination with your knowledge on price action.
By using all COGs at the same time for ULTF, LTF, MTF and HTF you can get a feeling for where price is in the context overall market flow .
----------------------
Candle Colorization
This script has an optional feature that lets you colorize the candles depending on certain score tresholds you can change manually in the indicator UI. Don't take these as signals, but rather as a possibility to become aware of when price is deviating far from the means.
----------------------
How to Use
You can find in-depth tutorials on how to use this indicator by browsing the links and resources in my signature.
(FireflyTA) Market Flow COG (Overlay)Market Flow COG (Overlay)
Market Flow COG in the "Overlay" version offers you a variety of modules to do analysis on the market flow . I'm using my own definition of market flow since I'm actively doing scientific research on that topic and developing concepts and tools around it.
This indicator is best used together with Market Flow COG (Oscillator) , which is also public.
----------------------
About Market Flow
The market flow is a concept describing the directional force driving price movement that a market experiences based on term-specific (short-, mid- and long-term) momentum as well as dynamic range support and resistance.
In a strong uptrend for example, market flow is upwards, so dynamic range S&R; (i.e. Bollinger Bands) is flowing upwards, too. This is increasing the probability to see continuation after dips. In a shifting trend, it is possible to observe market flow still continuing upwards, because the the flow is only changing slowly. Momentum takes a while to run out and exert pressure into the other direction. This phenomenon can be observed on all timeframes in high-volume markets, even more so on the higher timeframes.
Given the complex nature of market flow , there is still a lack of tools available to properly examine it and to derive appropriate trading decisions.
----------------------
About Market Flow COG
This indicator allows you to look at various different aspects to market flow . Additional ones might be added in future updates. In this first release, the following are included. Browse the update notes below for further modules added later.
Center of Gravity (COG)
Deviation Bands
Trend EMAs
----------------------
About "Center of Gravity"
The COG is an entity that is pulling price back to it frequently (this is why it is called Center of Gravity) as the law of mean reversion dictates. Mean reversion can be loosely broken up into mean reversion on multiple timeframes, and the COGs are included for ULT (ultra low, 15-60m), L (low, 1h-4h), M (medium, 6h-12H) and H (higher, 1D+) timeframes. As this entity is a new development in TA there is still a lack of scientific evidence that it is reliable. However, if you look at the charts, you will notice that price action will respect this entity and circle around it on the appropriate timeframes most of the time.
The COG is similar to a Bollinger Band, it is using volatility as its main component. However, COGs are aggregated entities looking at more timeframes at the same time, so besides the Time X Volatility perspective that is provided by Bollinger Bands, this entity adds a third dimension by looking at multiple timeframes. The COG is the mean of all the BBs that are included in the calculation, which can be a large number. This makes a COG a meta-analytic entity that is more sensitive to market price action.
The COG helps you in identifying how far and for how long price has been overextended to one side beyond the means. In theory, the probabilities increase dramatically to see a mean reversion to the COG. Watching price interacting with the COG should make clear that the correlations are significant, however there might be differences based on the markets used. The COGs have primarily been tested with the BTCUSD market and for crypto in general.
A way to trade based on COGs is to look for weakness (if price is above the COG) or strength (if price is below the COG) in price action while it is approaching S&R.; If signs of accumulation or distribution arise, and the distance to the COG is meaningful (as well as being maintained for a few candles), it can provide additional backing for your long/short scalping and swing trading ideas. I'd recommend to always use the COG in combination with your knowledge on price action.
By using all COGs at the same time for ULTF, LTF, MTF and HTF you can get a feeling for where price is in the context overall market flow .
----------------------
Deviation Bands
The Deviation Bands are fib-based deviations of the COG that is chosen with the 'mode' setting (i.e. LTF). When this module is enabled, the deviation bands are plotted around the COG of that timeframe mode. The deviations can be adjusted manually as well by changing the values in the indicator UI. The main purpose of these bands is to identify the structure of price movements in relation to the COG distance, i.e. analyzing how long price can maintain levels in an area >X or
Bollinger Band Width PercentileIntroducing the Bollinger Band Width Percentile
Definitions :
Bollinger Band Width Percentile is derived from the Bollinger Band Width indicator.
It shows the percentage of bars over a specified lookback period that the Bollinger Band Width was less than the current Bollinger Band Width.
Bollinger Band Width is derived from the Bollinger Bands® indicator.
It quantitatively measures the width between the Upper and Lower Bands of the Bollinger Bands.
Bollinger Bands® is a volatility-based indicator.
It consists of three lines which are plotted in relation to a security's price.
The Middle Line is typically a Simple Moving Average.
The Upper and Lower Bands are typically 2 standard deviations above, and below the SMA (Middle Line).
Volatility is a statistical measure of the dispersion of returns for a given security or market index, measured by the standard deviation of logarithmic returns.
The Broad Concept :
Quoting Tradingview specifically for commonly noted limitations of the BBW indicator which I have based this indicator on....
“ Bollinger Bands Width (BBW) outputs a Percentage Difference between the Upper Band and the Lower Band.
This value is used to define the narrowness of the bands.
What needs to be understood however is that a trader cannot simply look at the BBW value and determine if the Band is truly narrow or not.
The significance of an instruments relative narrowness changes depending on the instrument or security in question.
What is considered narrow for one security may not be for another.
What is considered narrow for one security may even change within the scope of the same security depending on the timeframe.
In order to accurately gauge the significance of a narrowing of the bands, a technical analyst will need to research past BBW fluctuations and price performance to increase trading accuracy. ”
Here I present the Bollinger Band Width Percentile as a refinement of the BBW to somewhat overcome the limitations cited above.
Much of the work researching past BBW fluctuations, and making relative comparisons is done naturally by calculating the Bollinger Band Width Percentile.
This calculation also means that it can be read in a similar fashion across assets, greatly simplifying the interpretation of it.
Plotted Components of the Bollinger Band Width Percentile indicator :
Scale High
Mid Line
Scale Low
BBWP plot
Moving Average 1
Moving Average 2
Extreme High Alert
Extreme Low Alert
Bollinger Band Width Percentile Properties:
BBWP Length
The time period to be used in calculating the Moving average which creates the Basis for the BBW component of the BBWP.
Basis Type
The type of moving average to be used as the Basis for the BBW component of the BBWP.
BBWP Lookback
The lookback period to be used in calculating the BBWP itself.
BBWP Plot settings
The BBWP plot settings give a choice between a user defined solid color, and a choice of "Blue Green Red", or "Blue Red" spectrum palettes.
Moving Averages
Has 2 Optional User definable and adjustable moving averages of the BBWP.
Visual Alerts
Optional User adjustable High and low Signal columns.
How to read the BBWP :
A BBWP read of 95 % ... means that the current BBW level is greater than 95% of the lookback period.
A BBWP read of 5 % .... means that the current BBW level is lower than 95% of the lookback period.
Proposed interpretations :
When the BBWP gets above 90 % and particularly when it hits 100% ... this can be a signal that volatility is reaching a maximum and that a macro High or Low is about to be set.
When the BBWP gets below 10 % and particularly when it hits 0% ...... this can be a signal that volatility is reaching a minimum and that there could be a violent range breakout into a trending move.
When the BBWP hits a low level < 5 % and then gets above its moving average ...... this can be an early signal that a consolidation phase is ending and a trending move is beginning.
When the BBWP hits a high level > 95 % and then falls below its moving average ... this can be an early signal that a trending move is ending and a consolidation phase is beginning.
Essential knowledge :
The BBWP was designed with the daily timeframe in mind, but technical analysists may find use for it on other time frames also.
High and Low BBWP readings do not entail any direction bias.
Deeper Concepts :
In finance, “mean reversion” is the assumption that a financial instrument's price will tend to move towards the average price over time.
If we apply that same logic to volatility as represented here by the Bollinger band width percentile, the assumption is that the Bollinger band width percentile will tend to contract from extreme highs, and expand from extreme lows over time corresponding to repeated phases of contraction and expansion of volatility.
It is clear that for most assets there are periods of directional trending behavior followed by periods of “consolidation” ( trading sideways in a range ).
This often ends with a tightening range under reducing volume and volatility ( popularly known as “the squeeze” ).
The squeeze typically ends with a “breakout” from the range characterized by a rapid increase in volume, and volatility when price action again trends directionally, and the cycle repeats.
Typical Use Cases :
The Bollinger Band Width Percentile may be especially useful for Options traders, as it can provide a bias for when Options are relatively expensive, or inexpensive from a Volatility (Vega) perspective.
When the Bollinger Band Width Percentile is relatively high ( 85 percentile or above ) it may be more advantageous to be a net seller of Vega.
When the Bollinger Band Width Percentile is relatively low ( 15 percentile or below ) it may be advantageous to be net long Vega.
Here we examine a number of actionable signals on BTCUSD daily timeframe using the BBWP and a momentum oscillator ( using the TSI here but can equally be used with Bollinger bands, moving averages, or the traders preferred momentum oscillator ).
In this first case we will examine how a spot trader and an options trader could each use a low BBWP read to alert them to a good potential trade setup.
note: using a period of 30 for both the Bollinger bands and the BBWP period ( approximately a month ) and a BBWP lookback of 350 ( approximately a year )
As we see the Bollinger Bands have gradually contracted while price action trended down and the BBWP also fell consistently while below its moving average ( denoting falling volatility ) down to an extremely low level <5% until it broke above its moving average along with a break of range to the upside ( signaling the end of the consolidation at a low level and the beginning of a new trending move to the upside with expanding volatility).
In this next case we will continue to follow the price action presuming that the traders have taken or locked in profit at reasonable take profit levels from the previous trade setup.
Here we see the contraction of the Bollinger bands, and the BBWP alongside price action breaking below the BB Basis giving a warning that the trending move to the upside is likely over.
We then see the BBWP rising and getting above its moving average while price action fails to get above the BB Basis, likewise the TSI fails to get above its signal line and actually crosses below its zeroline.
The trader would normally take this as a signal that the next trending move could be to the downside.
The next trending move turns out to be a dramatic downside move which causes the BBWP to hit 100% signaling that volatility is likely to hit a maximum giving good opportunities for profitable trades to the skilled trader as outlined.
Limitations :
Here we will look at 2 cases where blindly taking BBWP signals could cause the trader to take a failed trade.
In this first example we will look at blindly taking a low volatility options trade
Low Volatility and corresponding low BBWP levels do not automatically mean there has to be expansion immediately, these periods of extreme low volatility can go on for quite some time.
In this second example we will look at blindly taking a high volatility spot short trade
High volatility and corresponding high BBWP levels do not automatically mean there has to be a macro high and contraction of volatility immediately, these periods of extreme high volatility can also go on for quite some time, hence the famous saying "The trend is your friend until the end of the trend" and lesser well known, but equally valid saying "never try to short the top of a parabolic blow off top"
Markets are variable and past performance is no guarantee of future results, this is not financial advice, I am not a financial advisor.
Final thoughts
The BBWP is an improvement over the BBW in my opinion, and is a novel, and useful addition to a Technical Analysts toolkit.
It is not a standalone indicator and is meant to be used in conjunction with other tools for direction bias, and Good Risk Management to base sound trades off.
John Bollinger has suggested using Bolliger bands, and its related indicators with two or three other non-correlated indicators that provide more direct market signals.
He believes it is crucial to use indicators based on different types of data.
Some of his favored technical techniques are moving average divergence/convergence (MACD), on-balance volume and relative strength index (RSI).
Thanks
Massive respect to John Bollinger, long-time technician of the markets, and legendary creator of both the Bollinger Bands® in the 1980´s, and the Bollinger band Width indicator in 2010 which this indicator is based on.
His work continues to inspire, decades after he brought the original Bollinger Bands to the market.
Much respect also to Eric Crown who gave me the fundamental knowledge of Technical Analysis, and Options trading.
VCCB Stocks - Volume Coloured Candle BarsVCCB Volume Coloured Candle Bars (for Stocks, Indices, ETF, Commodities)
This indicator colour-codes the candlesticks to help traders easily identify if price action is supported by STRONG BULLISH -or- BEARISH VOLUME.
.
.
DARK GREEN CANDLE when prices MOVE UP & VOLUME is MORE than 150% of its 21 day average --- indicates price action is supported by a VERY STRONG BULLISH VOLUME.
TIP: I will look out for this DARK GREEN CANDLE to identify entries for trading price breakout with high volume)
OLIVE GREEN CANDLE when prices MOVE UP & VOLUME is BETWEEN 100% AND 150% of its 21 day average ---- indicates volume is STRONG BULLISH.
LIGHT GREEN CANDLE when prices MOVE UP & VOLUME is EQUAL to or MORE than 50% but LESS than 100% of its 21 day average ---- indicates volume is neither strong or weak.
YELLOW CANDLE when prices MOVE UP but VOLUME is LESS than 50% of its 21 day average ---- indicates volume is weak and does not support the bullish price action.
.
.
DARK RED CANDLE when prices MOVE DOWN & VOLUME is MORE than 150% of its 21 day average --- indicates price action is supported by a VERY STRONG BEARISH VOLUME.
TIP: I will look out for this DARK RED CANDLE to identify entry setups for trading price breakdown with high volume.
RED CANDLE when prices MOVE DOWN & VOLUME is BETWEEN 100% AND 150% of its 21 day average ---- indicates volume is STRONG BEARISH.
PINK CANDLE when prices MOVE DOWN & VOLUME is EQUAL to or MORE than 50% but LESS than 100% of its 21 day average ---- indicates volume is neither strong or weak.
ORANGE CANDLE when prices MOVE DOWN but VOLUME is LESS than 50% of its 21 day average ---- indicates volume is weak and does not support the bearish price action.
.
.
I recommend using this indicator in conjuction with Supertrend Indicator (that provides dynamic levels of support and resistance) to help you identify potential entry/exit points.
The Ultimate TPE by ATKDaily Energy Trigger Levels – AI-Enhanced Precision
This indicator captures the daily energy of price movement by extending the day’s high/low trigger levels across the chart. It translates daily institutional flow into clean visual levels, dynamic alerts, and actionable signals.
Key Highlights
🔹 Automatic Daily Energy Mapping – anchors to each day’s high and low in your selected timezone.
🔹 Full Chart Extension – upper and lower lines stretch across all timeframes for constant context.
🔹 Custom Color Control – personalize your green/red levels for clarity.
🔹 1-Minute Arrow Signals – see precise entries when price crosses daily energy zones.
🔹 Proximity & Touch Alerts – get notified when price touches or approaches your levels within a tick range.
🔹 Dynamic Alert Text – each alert displays the exact level name, price, and Long/Short direction.
Why It Matters
Every day creates a unique energy signature in price action. By tracking how the market respects or rejects those levels, traders can see where liquidity and momentum build up. TPE visualizes that energy in real time, helping you react faster and with greater precision.
Best Use Case
Use on the 1-minute chart for scalping or fine entry timing.
Entries + FVG SignalsE+FVG: A Masterclass in Institutional Trading Concepts
Chapter 1: The Modern Trader's Dilemma—Decoding the Institutional Footprint
In the vast, often chaotic ocean of the financial markets, retail traders navigate with the tools they are given: conventional indicators like moving averages, RSI, and MACD. While useful for gauging momentum and general trends, these tools often fall short because they were not designed to interpret the primary force that moves markets: institutional order flow. The modern trader faces a critical challenge: the tools and concepts taught in mainstream trading education are often decades behind the sophisticated, algorithm-driven strategies employed by banks, hedge funds, and large financial institutions.
This leads to a frustrating cycle of seemingly inexplicable price movements. A trader might see a perfect breakout from a classic pattern, only for it to reverse viciously, stopping them out. They might identify a strong trend, yet struggle to find a logical entry point, consistently feeling "late to the party." These experiences are not random; they are often the result of institutional market manipulation designed to engineer liquidity.
The fundamental problem that E+FVG (Entries + FVG Signals) addresses is this informational asymmetry. It is a sophisticated, institutional-grade framework designed to move a trader's perspective from a retail mindset to a professional one. It does not rely on lagging, derivative indicators. Instead, it focuses on the two core elements of price action that reveal the true intentions of "Smart Money": liquidity and imbalances.
This is not merely another indicator to add to a chart; it is a complete analytical engine designed to help you see the market through a new lens. It deconstructs price action to pinpoint two critical things:
Where institutions are likely to hunt for liquidity (running stop-loss orders).
The specific price inefficiencies (Fair Value Gaps) they are likely to target.
By focusing on these core principles, E+FVG provides a logical, rules-based solution to identifying high-probability trade setups. It is built for the discerning trader who is ready to evolve beyond conventional technical analysis and learn a methodology that is aligned with how the market truly operates at an institutional level. It is, in essence, an operating system for "Smart Money" trading.
Chapter 2: The Core Philosophy—Liquidity is the Fuel, Imbalances are the Destination
To fully grasp the power of this tool, one must first understand its foundational philosophy, which is rooted in the core tenets of institutional trading, often referred to as Smart Money Concepts (SMC). This philosophy can be distilled into two simple, powerful ideas:
1. Liquidity is the Fuel that Moves the Market:
The market does not move simply because there are more buyers than sellers, or vice-versa. It moves to seek liquidity. Large institutions cannot simply click "buy" or "sell" to enter or exit their multi-million or billion-dollar positions. Doing so would cause massive slippage and alert the entire market to their intentions. Instead, they must strategically accumulate and distribute their positions in areas where there is a high concentration of orders.
Where are these orders located? They are clustered in predictable places: above recent swing highs (buy-stop orders from shorts, and breakout buy orders) and below recent swing lows (sell-stop orders from longs, and breakout sell orders). This collective pool of orders is called liquidity. Institutions will often drive price towards these liquidity pools in a "stop hunt" or "liquidity grab" to trigger those orders, creating the necessary volume for them to fill their own large positions, often in the opposite direction of the liquidity grab itself. Understanding this concept is the key to avoiding being the "fuel" and instead learning to trade alongside the institutions.
2. Imbalances (Fair Value Gaps) are the Magnets for Price:
When institutions enter the market with overwhelming force, they create an imbalance in the order book. This energetic, one-sided price movement often leaves behind a gap in the market's pricing mechanism. On a candlestick chart, this appears as a Fair Value Gap (FVG)—a three-candle formation where the wicks of the first and third candles do not fully overlap the range of the middle candle.
These are not random gaps; they represent an inefficiency in the market's price delivery. The market, in its constant quest for equilibrium, has a natural tendency to revisit these inefficiently priced areas to "rebalance" the order book. Therefore, FVGs act as powerful magnets for price. They serve as high-probability targets for a price move and, critically, as logical points of interest where price may reverse after filling the imbalance. A fresh, unfilled FVG is one of the most significant clues an institution leaves behind.
E+FVG is built entirely on this philosophy. The "Entries Simplified" engine is designed to identify the liquidity grabs, and the "FVG Signals" engine is designed to identify the imbalances. Together, they provide a complete, synergistic framework for institutional-grade analysis.
Chapter 3: The Engine, Part I—"Entries Simplified": A Framework for Precision Entry
This is the primary trade-spotting engine of the E+FVG tool. It is a multi-layered system designed to identify a very specific, high-probability entry model based on institutional behavior. It filters out market noise by focusing solely on the sequence of a liquidity sweep followed by a clear and energetic displacement.
Feature 1: The Multi-Timeframe Liquidity Engine
The first and most crucial step in the engine's logic is to identify a valid liquidity grab. The script understands that the most significant reversals are often initiated after price has swept a key high or low from a higher timeframe. A sweep of yesterday's high holds far more weight than a sweep of the last 5-minute high.
Automatic Timeframe Adaptation: The engine intelligently analyzes your current chart's timeframe and automatically selects an appropriate higher timeframe (HTF) for its core analysis. For instance, if you are on a 15-minute chart, it might reference the 4-hour or Daily chart to identify key structural points. This is done seamlessly in the background, ensuring the analysis is always anchored to a significant structural context without requiring manual input.
The "Sweep" Condition: The script is not looking for a simple touch of a high or low. It is looking for a definitive sweep (also known as a "stop hunt" or "Judas swing"). This is defined as price pushing just beyond a key prior candle's high or low and then closing back within its range. This specific price action pattern is a classic signature of a liquidity grab, indicating that the move's purpose was to trigger stops, not to start a new, sustained trend. The "Entries Simplified" engine is constantly scanning the HTF price action for these sweep events, as they are the necessary precondition for any potential setup.
Feature 2: The Upshift/Downshift Signal—Confirming the Reversal
Once a valid HTF liquidity sweep has occurred, the engine moves to its next phase: identifying the confirmation. A sweep alone is not enough; institutions must show their hand and reveal their intention to reverse the market. This confirmation comes in the form of a powerful structural breakout (for bullish reversals) or breakdown (for bearish reversals). We call these events Upshifts and Downshifts.
Defining the Upshift & Downshift: This is the critical moment of confirmation, the market "tipping its hand."
An Upshift occurs after a liquidity sweep below a key low. Following the sweep, price reverses with energy and produces a decisive breakout to the upside, closing above a recent, valid swing high. This action confirms that the prior downtrend's momentum is broken, the downward move was a trap to engineer liquidity, and institutional buyers are now in aggressive control.
A Downshift occurs after a liquidity sweep above a key high. Following the sweep, price reverses aggressively and produces a sharp breakdown to the downside, closing below a recent, valid swing low. This confirms that the prior uptrend's momentum has failed, the upward move was a liquidity grab, and institutional sellers have now taken control of the market.
Algorithmic Identification: The E+FVG engine uses a proprietary algorithm to identify these moments. It analyzes the candle sequence immediately following a sweep, looking for a specific type of market structure break characterized by high energy and displacement—often leaving imbalances (Fair Value Gaps) in its wake. This is not a simple "pivot break"; the algorithm is designed to distinguish between a weak, indecisive wiggle and a true, institutionally-backed Upshift or Downshift.
The Signal: When this precise sequence—a HTF liquidity sweep followed by a valid Upshift or Downshift on the trading timeframe—is confirmed, the indicator plots a clear arrow on the chart. A green arrow below a low signifies a Bullish setup (confirmed by an Upshift), while a red arrow above a high signifies a Bearish setup (confirmed by a Downshift). This is the core entry signal of the "Entries Simplified" engine.
Feature 3: Automated Price Projections—A Built-In Trade Management Framework
A valid entry signal is only one part of a successful trade. A trader also needs a logical framework for taking profits. The E+FVG engine completes its trade-spotting process by providing automated, mathematically-derived price projections.
Fibonacci-Based Logic: After a valid Upshift or Downshift signal is generated, the script analyzes the price leg that created the setup (i.e., the range from the liquidity sweep to the confirmation breakout/breakdown). It then uses a methodology based on standard Fibonacci extension principles to project several potential take-profit (TP) levels.
Multiple TP Levels: The indicator projects four distinct TP levels (TP1, TP2, TP3, TP4). This provides a comprehensive trade management framework. A conservative trader might aim for TP1 or TP2, while a more aggressive trader might hold a partial position for the higher targets. These levels are plotted on the chart as clear, labeled lines, removing the guesswork from profit-taking.
Dynamic and Adaptive: These projections are not static. They are calculated uniquely for each individual setup, based on the specific volatility and range of the price action that generated the signal. This ensures that the take-profit targets are always relevant to the current market conditions.
The "Entries Simplified" engine, therefore, provides a complete, end-to-end framework: it waits for a high-probability condition (HTF sweep), confirms it with a specific entry model (Upshift/Downshift), and provides a logical road map for managing the trade (automated projections).
Chapter 4: The Engine, Part II—"FVG Signals": Mapping Market Inefficiencies
This second, complementary engine of the E+FVG tool operates as a market mapping system. Its sole purpose is to identify, plot, and monitor Fair Value Gaps (FVGs)—the critical price inefficiencies that act as magnets and potential reversal points.
Feature 1: Dual Timeframe FVG Detection
The significance of an FVG is directly related to the timeframe on which it forms. A 1-hour FVG is a more powerful magnet for price than a 1-minute FVG. The FVG engine gives you the ability to monitor both simultaneously, providing a richer, multi-dimensional view of the market's inefficiencies.
Chart TF FVGs: The indicator will, by default, identify and plot the FVGs that form on your current, active chart timeframe. These are useful for short-term scalping and for fine-tuning entries.
Higher Timeframe (HTF) FVGs: With a single click, you can enable the HTF FVG detection. This allows you to overlay, for example, 1-hour FVGs onto your 5-minute chart. This is an incredibly powerful feature. Seeing a 5-minute price rally approaching a fresh, unfilled 1-hour bearish FVG gives you a high-probability context for a potential reversal. The HTF FVGs act as major points of interest that can override the short-term price action.
Feature 2: The Intelligent "Tap-In" Logic—Beyond a Simple Touch
Many FVG indicators will simply alert you when price touches an FVG. The E+FVG engine employs a more sophisticated, two-stage logic to generate its signals, which helps to filter out weak reactions and focus on confirmed reversals.
Stage 1: The Entry. The first event is when price simply enters the FVG zone. This is a "heads-up" moment, and the indicator can be configured to provide an initial alert for this event.
Stage 2: The Confirmed "Tap-In." The official signal, however, is the "Tap-In." This is a more stringent condition. For a bullish FVG, a Tap-In is only confirmed after price has touched or entered the FVG zone and then closed back above the FVG's high. For a bearish FVG, the price must touch or enter the zone and then close back below the FVG's low. This confirmation logic ensures that the FVG has not just been touched, but has been respected and rejected by the market, making the resulting arrow signal significantly more reliable than a simple touch alert.
Feature 3: Interactive and Clean Visuals
The FVG engine is designed to provide maximum information with minimum chart clutter.
Clear, Color-Coded Boxes: Bullish FVGs are plotted in one color (e.g., green or blue), and bearish FVGs in another (e.g., red or orange), with a clear distinction between Chart TF and HTF zones.
Optional Box Display: Recognizing that some traders prefer a cleaner chart, you have the option to hide the FVG boxes entirely. Even with the boxes hidden, the underlying logic remains active, and the script will still generate the crucial Tap-In arrow signals.
Automatic Fading: Once an FVG has been successfully "tapped," the script can be set to automatically fade the color of the box. This provides a clear visual cue that the zone has been tested and may have less significance going forward.
Expiration: FVGs do not remain relevant forever. The script automatically removes old FVG boxes from the chart after a user-defined number of bars, ensuring your analysis is always focused on the most recent and relevant market inefficiencies.
Chapter 5: The Power of Synergy—How the Two Engines Work Together
While both the "Entries Simplified" engine and the "FVG Signals" engine are powerful standalone tools, their true potential is unlocked when used in combination. They are designed to provide confluence—a scenario where two or more independent analytical concepts align to produce a single, high-conviction trade idea.
Scenario A: The A+ Setup (Upshift into FVG). This is the highest probability setup. Imagine the "Entries Simplified" engine detects a HTF liquidity sweep below a key low, followed by a bullish Upshift signal. You look at your chart and see that this strong upward displacement is heading directly towards a fresh, unfilled bearish HTF FVG. This provides you with both a high-probability entry signal and a logical, high-probability target for the trade.
Scenario B: The FVG Confirmation. A trader might see the "Entries Simplified" engine generate a bearish Downshift signal. They feel it is a valid setup but want one extra layer of confirmation. They wait for price to rally a little further and "tap-in" to a nearby bearish FVG that formed during the Downshift's displacement. The FVG Tap-In signal then serves as their final confirmation trigger to enter the trade.
Scenario C: The Standalone FVG Trade. The FVG engine can also be used as a primary trading tool. A trader might notice that price is in a strong uptrend. They see price pulling back towards a fresh, bullish HTF FVG. They are not waiting for a full Upshift/Downshift setup; instead, they are simply waiting for the FVG Tap-In signal to confirm that the pullback is likely over and the trend is ready to resume.
By learning to read the interplay between these two engines, a trader can elevate their analysis from a one-dimensional process to a multi-dimensional, context-aware methodology.
Chapter 6: The Workflow—A Step-by-Step Guide to Practical Application
Step 1: The Pre-Market Analysis (Mapping the Battlefield). Before your session begins, enable the HTF FVG detection. Identify the key, unfilled HTF FVGs above and below the current price. These are your major points of interest for the day—your potential targets and reversal zones.
Step 2: Await the Primary Condition (Patience for Liquidity). During your trading session, your primary focus should be on the "Entries Simplified" engine. Your job is to wait patiently for the script to identify a valid HTF liquidity sweep. Do not force trades in the middle of a price range where no significant liquidity has been taken.
Step 3: The Upshift/Downshift Alert (The Call to Action). When the red or green arrow from the "Entries Simplified" engine appears, it is your cue to focus your attention. This is a potential high-probability setup.
Step 4: The Confluence Check (Building Conviction). With the Upshift or Downshift signal on your chart, ask the key confluence questions:
Did the displacement from the Upshift/Downshift create a new FVG?
Is the projected path of the trade heading towards a pre-identified HTF FVG?
Has an FVG Tap-In signal appeared shortly after the initial signal, offering further confirmation?
Step 5: Execute and Manage. If you have sufficient confluence, execute the trade. Use the automated price projections as your guide for profit-taking. A logical stop-loss is typically placed just beyond the high or low of the liquidity sweep that initiated the entire sequence.
Chapter 7: The Trader's Mind—Mastering the Institutional Mindset
This tool is more than a set of algorithms; it is a training system for professional trading psychology.
From Chasing to Trapping: You stop chasing breakouts and instead learn to identify where others are being trapped.
From FOMO to Patience: The strict, sequential logic of the entry model (Sweep -> Upshift/Downshift) forces you to wait for the highest quality setups, curing the Fear Of Missing Out.
Probabilistic Thinking: By focusing on liquidity and imbalances, you begin to think in terms of probabilities, not certainties. You understand that you are putting on trades where the odds are statistically in your favor, which is the cornerstone of any professional trading career.
Clarity and Confidence: The clear, rules-based signals remove ambiguity and second-guessing. This builds the confidence needed to execute trades decisively when the opportunity arises.
Chapter 8: Frequently Asked Questions & Scenarios
Q: The "Entries Simplified" code looks complex. Do I need to understand all of it?
A: No. The engine is designed to perform its complex analysis in the background. Your job is to understand the principles—liquidity sweep and the resulting Upshift or Downshift—and to recognize the clear arrow signals that the script generates when those conditions are met.
Q: Can I turn one of the engines off?
A: Yes, the indicator is modular. If you only want to focus on Fair Value Gaps, for example, you can disable the plot shapes for the "Entries Simplified" signals in the settings, and vice-versa.
Q: Does this work on all assets and timeframes?
A: The principles of liquidity and imbalance are universal and apply to all markets, from cryptocurrencies to forex to indices. The fractal nature of the analysis means the concepts are valid on all timeframes. However, it is always recommended that a trader backtest and forward-test the tool on their specific instrument and timeframe of choice to understand its unique behavior.
Author's Instructions
To request access to this script, please send me a direct private message here on TradingView.
Alternatively, you can find more information and contact details via the link on my profile signature.
Please DO NOT request access in the Comments section. Comments are for questions about the script's methodology and for sharing constructive feedback.
Swing AURORA v4.0 — Refined Trend Signals### Swing Algo v4.0 — Refined Trend Signals
#### Overview
Swing Algo v4.0 is an advanced technical indicator designed for TradingView, built to detect trend changes and provide actionable buy/sell signals in various market conditions. It combines multiple technical elements like moving averages, ADX for trend strength, Stochastic RSI for timing, and RSI divergence for confirmation, all while adapting to different timeframes through auto-tuning. This indicator overlays on your chart, highlighting trend regimes with background colors, displaying buy/sell labels (including "strong" variants), and offering early "potential" signals for proactive trading decisions. It's suitable for swing trading, trend following, or as a filter for other strategies across forex, stocks, crypto, and other assets.
#### Purpose
The primary goal of Swing Algo v4.0 is to help traders identify high-probability trend reversals and continuations early, reducing noise and false signals. It aims to provide clear, non-repainting signals that align with market structure, volatility, and momentum. By incorporating filters like higher timeframe (HTF) alignment, bias EMAs, and divergence, it refines entries for better accuracy. The indicator emphasizes balanced performance across aggressive, balanced, and conservative modes, making it versatile for both novice and experienced traders seeking to optimize their decision-making process.
#### What It Indicates
- **Trend Regimes (Background Coloring)**: The chart background changes color to reflect the current market regime:
- **Green (Intense for strong uptrends, faded when cooling)**: Indicates bullish trends where price is above the baseline and EMAs are aligned upward.
- **Red/Maroon (Intense maroon for strong downtrends, faded red when cooling)**: Signals bearish trends with price below the baseline and downward EMA alignment.
- **Faded Yellow**: Marks "no-trade" zones or potential trend changes, where conditions are choppy, weak, or neutral (e.g., low ADX, near baseline, or low volatility).
- **Buy/Sell Signals**: Labels appear on the chart for confirmed entries:
- "BUY" or "STRONG BUY" for bullish signals (strong variants require higher scores and optional divergence).
- "SELL" or "STRONG SELL" for bearish signals.
- **Potential Signals**: Early warnings like "Potential BUY" or "Potential SELL" appear before full confirmation, allowing traders to anticipate moves (confirmed after a few bars based on the trigger window).
- **Divergence Marks**: Small "DIV↑" (bullish) or "DIV↓" (bearish) labels highlight RSI divergences on pivots, adding confluence for strong signals.
- **Lines**: Optional plots for baseline (teal), EMA13/21 (lime/red based on crossover), providing visual trend context.
Signals are anchored either to the current bar or confirmed pivots, ensuring alignment with price action. The indicator avoids repainting by confirming on close if enabled.
#### Key Parameters and Customization
Swing Algo v4.0 offers minimal yet efficient parameters for fine-tuning, with defaults optimized for common use cases. Most can be auto-tuned based on timeframe for simplicity:
- **Confirm on Close (no repaint)**: Boolean (default: true) – Ensures signals don't repaint by waiting for bar confirmation.
- **Auto-tune by Timeframe**: Boolean (default: true) – Automatically adjusts lengths and sensitivity for 5-15m, 30-60m, 2-4h, or higher frames.
- **Mode**: String (options: Aggressive, Balanced , Conservative) – Controls signal thresholds; Aggressive for more signals, Conservative for fewer but higher-quality ones.
- **Signal Anchor**: String (options: Pivot (divLB) , Current bar) – Places labels on confirmed pivots or the current bar.
- **Trigger Window (bars)**: Integer (default: 3) – Window for signal timing; auto-tuned if enabled.
- **Baseline Type**: String (options: HMA , EMA, ALMA) – Core trend line; lengths auto-tune (e.g., 55 for short frames).
- **Use Bias EMA Filter**: Boolean (default: false) – Adds a long-term EMA for trend bias.
- **Use HTF Filter**: Boolean (default: false) – Aligns with higher timeframe (auto or manual like 60m, 240m, D); override for stricter scoring.
- **Sensitivity (10–90)**: Integer (default: 55) – Adjusts ADX threshold for trend detection; higher = more sensitive.
- **Use RSI-Stoch Trigger**: Boolean (default: true) – Enables Stochastic RSI for entry timing; customizable lengths, smooths, and levels.
- **Use RSI Divergence for STRONG**: Boolean (default: true) – Requires divergence for strong signals; pivot lookback (default: 5).
- **Visual Options**: Booleans for background regime, labels, divergence marks, and lines (all default: true).
These parameters are grouped for ease, with tooltips in TradingView for quick reference. Start with defaults and tweak based on backtesting.
#### How It Works
At its core, Swing Algo v4.0 calculates a baseline (e.g., HMA) to define the trend direction. It then scores potential buys/sells using factors like:
- **Trend Strength**: ADX above a dynamic threshold, combined with EMA crossovers (13/21) and slope analysis.
- **Volatility/Volume**: Bollinger/Keltner squeeze exits, volume z-score, and ATR filters to avoid choppy markets.
- **Timing**: Stochastic RSI crossovers or micro-timing via DEMA/TEMA for precise entries.
- **Filters**: Bias EMA, HTF alignment, gap from baseline, and no-trade zones (weak ADX, near baseline, low vol).
- **Divergence**: RSI pivots confirm strong signals.
- **Scoring**: Buy/sell scores (min 3-5 based on mode) trigger labels only when all gates pass, with early "potential" detection for foresight.
The algorithm processes these in real-time, auto-adapting to timeframe for efficiency. Signals flip only on direction changes to prevent over-trading. For best results, use on liquid assets and combine with risk management.
#### Disclaimer
This indicator is for educational and informational purposes only and does not constitute financial advice, investment recommendations, or trading signals. Trading involves significant risk of loss and is not suitable for all investors. Past performance is not indicative of future results. Always backtest the indicator on your preferred assets and timeframes, and consult a qualified financial advisor before making any trading decisions. The author assumes no liability for any losses incurred from using this script. Use at your own risk.
CVD Candles + Divergence (Pane) [NIRALA]This indicator provides a powerful way to analyze market dynamics by visualizing Cumulative Volume Delta (CVD) as candlesticks and automatically detecting divergences between price and order flow. It is designed to help traders spot potential trend exhaustion and reversals that may not be apparent from price action alone.
Key Concepts
Cumulative Volume Delta (CVD): CVD is a running total of the difference between buying and selling volume from market orders. A rising CVD indicates aggressive buying, while a falling CVD indicates aggressive selling. Unlike price, which can be influenced by passive limit orders, CVD shows the raw intent of aggressive market participants.
Divergence: A divergence occurs when price and CVD move in opposite directions. This signals a potential conflict between price action and the underlying order flow, often preceding a reversal.
Bearish Divergence: Price makes a new high, but CVD fails to make a new high (or makes a lower high). This suggests buying aggression is weakening despite the higher price, and a reversal to the downside may be imminent.
Bullish Divergence: Price makes a new low, but CVD fails to make a new low (or makes a higher low). This suggests selling pressure is drying up, and a reversal to the upside may be coming.
Features
CVD as Candlesticks: Plots CVD in a familiar OHLC candlestick format in a separate pane, providing a more intuitive view of order flow momentum and volatility compared to a simple line.
Automatic Divergence Detection: The script automatically identifies classic bullish and bearish divergences between price pivots and CVD pivots, drawing lines on both the main price chart and the indicator pane to clearly highlight them.
Multi-Timeframe Analysis: Calculates CVD from a user-defined lower timeframe, offering a more granular and precise view of the order flow that builds up a single candle on your chart.
Customizable Pivot Lookbacks: Allows you to adjust the sensitivity of the pivot detection for finding both short-term and long-term divergences.
Alerts: Includes built-in alerts that can notify you when a new bullish or bearish divergence is confirmed.
How to Use
Look for High-Probability Setups: This indicator is most powerful when its signals appear at key areas of support or resistance. A divergence at a major price level is a much stronger signal than one in the middle of a range.
Confirm with Price Action: Do not trade on a divergence signal alone. Wait for a confirmation candle (e.g., a bearish engulfing candle after a bearish divergence, or a bullish hammer after a bullish divergence) before considering an entry.
Combine with Your Strategy: Use this indicator as a confirmation tool to enhance your existing trading strategy. For example, if your primary strategy gives a sell signal and this indicator simultaneously prints a bearish divergence, it significantly increases the probability of the trade.
This tool is designed for discretionary traders looking to add a layer of order flow analysis to their decision-making process.
ICT Anchored Market Structures with Validation [LuxAlgo]The ICT Anchored Market Structures with Validation indicator is an advanced iteration of the original Pure-Price-Action-Structures tool, designed for price action traders.
It systematically tracks and validates key price action structures, distinguishing between true structural shifts/breaks and short-term sweeps to enhance trend and reversal analysis. The indicator automatically highlights structural points, confirms breakouts, identifies sweeps, and provides clear visual cues for short-term, intermediate-term, and long-term market structures.
A distinctive feature of this indicator is its exclusive reliance on price patterns. It does not depend on any user-defined input, ensuring that its analysis remains robust, objective, and uninfluenced by user bias, making it an effective tool for understanding market dynamics.
🔶 USAGE
Market structure is a cornerstone of price action analysis. This script automatically detects real-time market structures across short-term, intermediate-term, and long-term levels, simplifying trend analysis for traders. It assists in identifying both trend reversals and continuations with greater clarity.
Market structure shifts and breaks help traders identify changes in trend direction. A shift signals a potential reversal, often occurring when a swing high or low is breached, suggesting a transition in trend. A break, on the other hand, confirms the continuation of an established trend, reinforcing the current direction. Recognizing these shifts and breaks allows traders to anticipate price movement with greater accuracy.
It’s important to note that while a CHoCH may signal a potential trend reversal and a BoS suggests a continuation of the prevailing trend, neither guarantees a complete reversal or continuation. In some cases, CHoCH and BoS levels may act as liquidity zones or areas of consolidation rather than indicating a clear shift or continuation in market direction. The indicator’s validation component helps confirm whether the detected CHoCH and BoS are true breakouts or merely liquidity sweeps.
🔶 DETAILS
🔹 Market Structures
Market structures are derived from price action analysis, focusing on identifying key levels and patterns in the market. Swing point detection, a fundamental concept in ICT trading methodologies and teachings, plays a central role in this approach.
Swing points are automatically identified based exclusively on market movements, without requiring any user-defined input.
🔹 Utilizing Swing Points
Swing points are not identified in real-time as they form. Short-term swing points may appear with a delay of up to one bar, while the identification of intermediate and long-term swing points is entirely dependent on subsequent market movements. Importantly, this detection process is not influenced by any user-defined input, relying solely on pure price action. As a result, swing points are generally not intended for real-time trading scenarios.
Instead, traders often analyze historical swing points to understand market trends and identify potential entry and exit opportunities. By examining swing highs and lows, traders can:
Recognize Trends: Swing highs and lows provide insight into trend direction. Higher swing highs and higher swing lows signify an uptrend, while lower swing highs and lower swing lows indicate a downtrend.
Identify Support and Resistance Levels: Swing highs often act as resistance levels, referred to as Buyside Liquidity Levels in ICT terminology, while swing lows function as support levels, also known as Sellside Liquidity Levels. Traders can leverage these levels to plan their trade entries and exits.
Spot Reversal Patterns: Swing points can form key reversal patterns, such as double tops or bottoms, head and shoulders, and triangles. Recognizing these patterns can indicate potential trend reversals, enabling traders to adjust their strategies effectively.
Set Stop Loss and Take Profit Levels: In ICT teachings, swing levels represent price points with expected clusters of buy or sell orders. Traders can target these liquidity levels/pools for position accumulation or distribution, using swing points to define stop loss and take profit levels in their trades.
Overall, swing points provide valuable information about market dynamics and can assist traders in making more informed trading decisions.
🔹 Logic of Validation
The validation process in this script determines whether a detected market structure shift or break represents a confirmed breakout or a sweep.
The breakout is confirmed when the close price is significantly outside the deviation range of the last detected structural price. This deviation range is defined by the 17-period Average True Range (ATR), which creates a buffer around the detected market structure shift or break.
A sweep occurs when the price breaches the structural level within the deviation range but does not confirm a breakout. In this case, the label is updated to 'SWEEP.'
A visual box is created to represent the price range where the breakout or sweep occurs. If the validation process continues, the box is updated. This box visually highlights the price range involved in a sweep, helping traders identify liquidity events on the chart.
🔶 SETTINGS
The settings for Short-Term, Intermediate-Term, and Long-Term Structures are organized into groups, allowing users to customize swing points, market structures, and visual styles for each.
🔹 Structures
Swings and Size: Enables or disables the display of swing highs and lows, assigns icons to represent the structures, and adjusts the size of the icons.
Market Structures: Toggles the visibility of market structure lines.
Market Structure Validation: Enable or disable validation to distinguish true breakouts from liquidity sweeps.
Market Structure Labels: Displays or hides labels indicating the type of market structure.
Line Style and Width: Allows customization of the style and width of the lines representing market structures.
Swing and Line Colors: Provides options to adjust the colors of swing icons, market structure lines, and labels for better visualization.
🔶 RELATED SCRIPTS
Pure-Price-Action-Structures.
Market-Structures-(Intrabar).
CRT [TakingProphets]CRT (Candle Range Theory) — HTF context overlay with alerts
Purpose
Informational overlay to structure higher-timeframe (HTF) context. It does not generate buy/sell signals and is not financial advice. Use it to organize analysis and alerts—not to automate trades.
What it does
Projects HTF candles (1m → 1M) on any lower timeframe so the big picture stays on the chart.
Detects CRT transitions on the HTF (bullish/bearish “failed continuation” pattern).
Evaluates SMT divergence vs. a user-selected correlated instrument on the same HTF (historical & real-time).
Extends live HTF Open/High/Low/Close as developing reference levels.
Concepts (what it looks for)
Candle Range Theory (CRT) — a 3-bar HTF pattern where candle 2 fails to continue candle 1’s move:
Bearish CRT: candle 2 trades above candle 1’s high but closes back inside candle 1’s range and does not break its low.
Bullish CRT: candle 2 trades below candle 1’s low but closes back inside candle 1’s range and does not break its high.
SMT divergence (intermarket) — compares HTF swing extremes between the chart symbol and a correlated symbol:
Bearish SMT: one makes a higher high while the other does not.
Bullish SMT: one makes a lower low while the other does not.
Checked in two modes: historical (between the two last closed HTF bars) and real-time (last closed vs. current forming HTF bar).
How the elements work together (integration, not a mashup)
All modules share one HTF time base, so annotations describe the same segment of price action. The overlay produces an explicit context state by sequencing the modules in this order:
HTF Projection → Structural Frame
The last three HTF candles are drawn (bodies+wicks). This creates the “canvas” the rest of the logic references (ranges, highs/lows, and time boundaries).
CRT Test → Directional Bias Candidate
The script evaluates the 3-bar CRT conditions on those exact HTF candles (not lower-TF approximations).
If conditions are forming on the current HTF bar, status is CRT Forming.
If they complete on the close, status becomes CRT Confirmed (Bullish/Bearish).
SMT Check → Confirmation/Stress-Test on the Same HTF
Using the same HTF window, the tool compares swing progress with the correlated symbol.
Historical SMT comments on whether the prior HTF segment’s push had intermarket agreement.
Real-time SMT comments on the current forming push.
This lets you confirm a CRT bias (e.g., Bearish CRT + Bearish SMT) or challenge it (e.g., Bullish CRT but Bearish SMT).
Live HTF OHLC → Actionable Reference Levels
The current HTF Open/High/Low/Close are extended as levels. These are the decision rails you’ll typically use to judge follow-through, failure, mitigation, or targets in the same CRT/SMT context.
Resulting context states (what you’ll see in alerts/labels):
Neutral (no CRT; SMT may still inform context).
CRT Forming (monitor): HTF push is underway; watch real-time SMT into HTF High/Low/Close projections.
CRT Confirmed (bias): HTF failure pattern locked; use projections as reference for continuation/invalidations.
CRT + SMT Aligned (confluence): CRT direction agrees with SMT; strongest context.
CRT vs. SMT Mixed (caution): bias exists but intermarket is disagreeing; treat levels as potential fade zones.
Why this is not a mashup
Every module is computed and plotted in the same HTF coordinate system, so signals are about one thing: the current HTF segment.
CRT provides the bias hypothesis, SMT provides a cross-market test of that hypothesis in the same window, and live OHLC projections supply the exact levels used to act on or fade that hypothesis.
Alerts are tied to state transitions (e.g., CRT forming → confirmed; SMT flip), not to unrelated features.
Mechanics (high-level)
HTF Projection: pulls HTF OHLC/time for the last three HTF bars and renders body boxes + wicks; optional time labels adapt to intraday vs D/W/M.
CRT Labels: when the three-bar conditions are met, prints BULLISH CRT or BEARISH CRT on the HTF stack.
SMT Lines: draws labeled diagonals across the relevant HTF pair for historical and real-time checks using your correlated symbol.
Live Levels: extends the current HTF Open/High/Low/Close horizontally; anchors are deterministic (Open = first bar, High/Low = first occurrence, Close = current bar).
Inputs & customization
HTF timeframe: 1m–1M.
Display: candle width/opacity, borders/wicks, time labels (12h/24h).
SMT: enable/disable, correlated symbol, line style/width, optional labels.
Projections: enable/disable, left extension (bars), per-level styling and price labels.
Alerts: switches for CRT, SMT-historical, SMT-real-time.
Alerts (workflow prompts)
Bullish/Bearish CRT detected on the selected HTF.
Bullish/Bearish SMT (historical) between the two last closed HTF bars.
Bullish/Bearish SMT (real-time) between the last closed and current forming HTF bar.
Suggested text includes the HTF and current context state so you know if CRT and SMT are aligned or mixed.
Example use
Bearish scenario: A Bearish CRT confirms on the 4H; soon after, real-time SMT (bearish) appears while price probes the projected 4H High. Context = CRT + SMT Aligned → treat the projected Open/Close as near-term objectives.
Mixed scenario: A Bullish CRT forms on 1H, but historical SMT (bearish) printed in the prior segment. Context = Mixed → continue to monitor real-time SMT and projected Low for possible invalidation.
Notes & limitations
HTF values are provisional until the HTF bar closes; labels/lines can update while forming.
SMT depends on the correlated symbol you select; relationships vary by market/regime.
Session gaps/illiquid hours can distort extremes and time labels.
Educational tool: no performance claims, no entry/exit signals.
Originality & scope (for protected/invite-only publications)
A unified HTF projection → CRT test → SMT check → live level pipeline that yields explicit context states instead of separate, unrelated overlays.
Formal CRT detection performed on actual HTF bars (not lower-TF approximations).
Dual-mode SMT tied to the same HTF windows (historical + real-time), plotted as labeled span lines.
Deterministic OHLC projection (first-occurrence anchoring) to align decisions with the identified context.
Attribution: CRT/SMT concepts inspired by ICT. Design, implementation, and alert framework by TakingProphets.
PAS/ML Hybrid Score System Metrics & SignalsThis tool provides trade signal visualization and live performance metrics for the PAS+ML Hybrid framework. It builds on the core " Price Action Strength/Machine Learning Hybrid Score System " indicator and displays actionable entries, exits, and historical trade statistics directly on the chart.
Signals:
Plots entry (▲) and exit (▼) arrows based on the Hybrid PAS+ML crossover logic, with an optional long-term trend filter for confirmation. Entry arrows occur at candle following the signal (i.e. the next open); exit arrows occur on the same candle, at the close. Metrics are calculated using these prices.
Performance Metrics:
Displays a live table of cumulative results including total trades, win rate, average realized profit, average maximum profit, and profit after X bars. Results can be viewed in percent or pips.
Customization:
Adjustable parameters for lookback lengths, smoothing, ML weighting, trend filter type (SMA/EMA), and FX pip display options.
Integration:
Designed to be used together with the ""Price Action Strength/Machine Learning Hybrid Score System" indicator, which provides the underlying hybrid score and volatility context. Use this metrics version for trade execution analysis and performance tracking.
Use Case:
Ideal for traders who want to quantify the historical and ongoing effectiveness of PAS+ML hybrid signals. Can assist in refining thresholds, holding periods, and risk-reward calibration.
Aggregation Index SmoothedAggregation Index Smoothed (AIS) - Multi-Method Trend Consensus Oscillator
What This Indicator Does
The Aggregation Index Smoothed combines four independent trend-detection methodologies into a unified momentum oscillator that operates across multiple timeframes simultaneously. Unlike traditional single-method indicators that can produce conflicting or false signals during market transitions, AIS requires consensus agreement across all four calculation methods before confirming trend direction.
Technical Methodology
Four-Component Loop System
Each component analyzes 16 different lookback periods (default range: 5-20 bars), creating a multi-timeframe perspective within a single calculation:
1. Price Change Analysis
Measures directional price movement across all periods. Each period scores +1 for positive change or -1 for negative change. Results are averaged and scaled to ±100.
2. RSI Multi-Period Analysis
Evaluates Relative Strength Index values across the same 16 periods. Scores +1 when RSI > 50 (momentum favoring bulls) or -1 when RSI < 50 (momentum favoring bears). This captures overbought/oversold conditions across multiple timeframes.
3. EMA Trend Position
Compares current price against Exponential Moving Averages of varying lengths (5-20 periods). Scores +1 when price trades above EMA (uptrend) or -1 when below (downtrend). This identifies trend alignment across short, medium, and longer-term moving averages.
4. Momentum Rate-of-Change
Calculates price momentum across all periods using the mom() function. Scores +1 for positive momentum or -1 for negative momentum, detecting acceleration and deceleration patterns.
Aggregation Process
Each of the four indicators independently calculates scores across all 16 periods
Individual indicator scores are averaged (range: -100 to +100)
All four indicator averages are combined using arithmetic mean
The resulting index undergoes EMA smoothing (default: 20 periods)
Optional double-smoothing applies a second EMA pass for maximum noise reduction
Why This Approach Is Unique
Problem Solved: Traditional oscillators often conflict - RSI might be bullish while MACD is bearish, or stochastic shows oversold while price trend is clearly down. Traders waste time reconciling these contradictions.
Solution: AIS eliminates conflicts by design. A bullish signal (+10 threshold) means all four methods across all 16 timeframes agree on upward momentum. This consensus approach dramatically reduces whipsaws and false signals compared to using any single method.
Technical Advantage: The for-loop methodology validates each signal across a spectrum of timeframes (5 bars through 20 bars), ensuring the trend is confirmed in both immediate-term and intermediate-term contexts. This is mathematically equivalent to running 64 separate indicators (4 methods × 16 periods) and requiring majority agreement.
Signal Generation
Long Signal (Bullish): Index crosses above +10 threshold
Indicates all four methods confirm upward momentum across multiple timeframes
Sustained readings above +10 suggest strong trend continuation
Short Signal (Bearish): Index crosses below -10 threshold
Indicates all four methods confirm downward momentum across multiple timeframes
Sustained readings below -10 suggest strong downtrend
Neutral Zone (-10 to +10): Mixed signals or consolidation
Methods disagree on direction, suggesting choppy or range-bound conditions
Avoid trend-following strategies in this zone
How to Use This Indicator
Best Practices
Timeframe Selection:
Most effective on 4-hour charts and higher (Daily, Weekly)
Lower timeframes (1H, 15m) may produce excessive signals despite smoothing
The 16-period loop range is optimized for swing trading timeframes
Entry Strategy:
Wait for index to cross threshold levels (±10)
Confirm with price action (breakout, support/resistance levels)
Consider entering on first pullback after threshold cross for better risk/reward
Parameter Adjustment:
Volatile instruments (crypto, small-caps): Increase thresholds to ±15 or ±20 to filter noise
Stable instruments (large-cap stocks, indices): Reduce thresholds to ±5 for earlier signals
Smoothing Length: Increase to 30+ for cleaner signals; decrease to 10-15 for faster response
Double Smoothing: Keep enabled for trend following; disable for more reactive signals
Risk Management:
Exit longs when index drops back into neutral zone (below +10)
Exit shorts when index rises into neutral zone (above -10)
Use index slope as trend strength indicator (steeper = stronger)
Interpretation Guidelines
Strong Trending Conditions:
Index sustained above +50 or below -50 indicates powerful directional move
All four methods showing extreme agreement across all timeframes
High probability of trend continuation
Trend Exhaustion Signals:
Index reaches extreme levels (+80 to +100 or -80 to -100)
Potential reversal zone; watch for divergence with price
Consider taking partial profits on existing positions
Divergence Detection:
Price makes new highs while index fails to confirm = bearish divergence
Price makes new lows while index shows higher lows = bullish divergence
Divergences on 4H+ timeframes carry significant weight
Limitations and Considerations
Not Suitable For:
Scalping or very short-term trading (under 1-hour timeframes)
Range-bound markets with no clear trend (index oscillates in neutral zone)
Instruments with erratic, news-driven price action
Known Lag:
Double smoothing introduces 40+ bar delay in signal generation
Designed for trend confirmation, not early trend detection
Fast market reversals may produce late exit signals
Complementary Tools:
Combine with support/resistance levels for entry precision
Use with volume analysis to confirm signal strength
Pair with volatility indicators (ATR) for position sizing
Technical Implementation Notes
The indicator pre-calculates all RSI and EMA values for lengths 5-20 to comply with Pine Script's requirement for constant-length parameters in ta.rsi() and ta.ema() functions. This workaround allows dynamic loop-based analysis while maintaining calculation consistency on every bar.
The scoring methodology uses binary classification (+1/-1) rather than normalized percentage values to ensure equal weighting across all four methods, preventing any single indicator from dominating the aggregate signal.
Summary: The Aggregation Index Smoothed provides trend confirmation through multi-method consensus across variable timeframes. Its primary value is eliminating the confusion of conflicting indicator signals by requiring agreement from four independent trend calculations before generating actionable signals. Best suited for swing traders and position traders on 4-hour and higher timeframes seeking high-probability trend-following entries with reduced false signals.
DX Fibonacci LevelsDX Fibonacci Levels Indicator
This Pine Script code implements a custom Fibonacci levels indicator that displays key Fibonacci retracement and extension levels on a price chart. The indicator helps traders identify potential support, resistance, and breakout areas by plotting significant Fibonacci levels based on the most recent high and low price range.
How to Use the Indicator:
Interpretation of Fibonacci Levels:
The indicator plots the following Fibonacci levels:
23.6% Retracement (Gray Line): This level represents a shallow retracement and is often considered a potential minor support or resistance area. It can signal a short-term price correction.
38.2% Retracement (Blue Line): One of the most widely used retracement levels. A price reversal at this level is seen as a potential indication of a strong move in the original direction.
50.0% Retracement (Gray Line): Although not a Fibonacci ratio itself, this level is a psychological midpoint. A 50% retracement often represents a neutral point where price could either reverse or continue in the original direction.
61.8% Retracement (Yellow Line): A key level for traders, as it is considered the "golden ratio" of Fibonacci. It is a critical area for determining the continuation of the trend or a potential reversal.
78.6% Retracement (Red Line): This level is closer to the 100% retracement and indicates a deeper pullback. It can represent an area of strong support or resistance.
100.0% (Purple Line): This level is equivalent to the recent low. It represents the full retracement or the lowest price point within the selected range.
127.2% Extension (Green Line): A Fibonacci extension level, indicating a potential area where price could extend beyond the previous high. This level often marks the beginning of a new trend or significant price movement.
161.8% Extension (Green Line): Another Fibonacci extension, marking an even further price projection. Traders use this level to forecast a continuation of the price movement in the direction of the prevailing trend.
Using the Indicator in Trading:
Identifying Support and Resistance: When the price approaches one of the key retracement levels (such as 38.2%, 50%, or 61.8%), traders often watch for signs of a reversal, like candlestick patterns or volume spikes, as these could indicate a potential entry or exit point.
Trend Continuation: If the price retraces to one of these levels and then continues in the direction of the trend, it can confirm that the trend is still intact. The extension levels (127.2% and 161.8%) help identify where the price may head next if the trend continues.
Breakout Zones: The extension levels can also act as breakout points. A price that surpasses the 100% level could indicate that the trend is gaining momentum, with potential for further movement beyond the 127.2% and 161.8% levels.
Chart Customization:
Color-Coded Fibonacci Levels: Each Fibonacci level is color-coded for easy identification:
Gray: 23.6% and 50.0% retracement levels
Blue: 38.2% retracement level
Yellow: 61.8% retracement level
Red: 78.6% retracement level
Purple: 100.0% level (the low of the range)
Green: 127.2% and 161.8% extension levels
The use of different colors allows for quick visual analysis, helping traders to distinguish between retracement and extension levels while identifying critical price zones on the chart.
Tips for Effective Use:
Monitor Price Action: Watch for price action signals like candlestick patterns, reversals, or trend-following indicators around these Fibonacci levels.
Combine with Other Indicators: To improve the reliability of the Fibonacci levels, combine them with other technical analysis tools such as moving averages, RSI, or MACD for confirmation of potential reversals or breakouts.
Adjust the Lookback Period: The lookback period can be adjusted to fit the time frame and asset being traded. A shorter lookback period may provide more sensitive levels, while a longer one may offer more reliable, long-term reference points.
This indicator is most useful when combined with your trading strategy to spot potential price points for reversals or continued movements.






















