CFB-Adaptive CCI w/ T3 Smoothing [Loxx]CFB-Adaptive CCI w/ T3 Smoothing is a CCI indicator with adaptive period inputs and T3 smoothing. Jurik's Composite Fractal Behavior is used to created dynamic period input.
What is Composite Fractal Behavior ( CFB )?
All around you mechanisms adjust themselves to their environment. From simple thermostats that react to air temperature to computer chips in modern cars that respond to changes in engine temperature, r.p.m.'s, torque, and throttle position. It was only a matter of time before fast desktop computers applied the mathematics of self-adjustment to systems that trade the financial markets.
Unlike basic systems with fixed formulas, an adaptive system adjusts its own equations. For example, start with a basic channel breakout system that uses the highest closing price of the last N bars as a threshold for detecting breakouts on the up side. An adaptive and improved version of this system would adjust N according to market conditions, such as momentum, price volatility or acceleration.
Since many systems are based directly or indirectly on cycles, another useful measure of market condition is the periodic length of a price chart's dominant cycle, (DC), that cycle with the greatest influence on price action.
The utility of this new DC measure was noted by author Murray Ruggiero in the January '96 issue of Futures Magazine. In it. Mr. Ruggiero used it to adaptive adjust the value of N in a channel breakout system. He then simulated trading 15 years of D-Mark futures in order to compare its performance to a similar system that had a fixed optimal value of N. The adaptive version produced 20% more profit!
This DC index utilized the popular MESA algorithm (a formulation by John Ehlers adapted from Burg's maximum entropy algorithm, MEM). Unfortunately, the DC approach is problematic when the market has no real dominant cycle momentum, because the mathematics will produce a value whether or not one actually exists! Therefore, we developed a proprietary indicator that does not presuppose the presence of market cycles. It's called CFB (Composite Fractal Behavior) and it works well whether or not the market is cyclic.
CFB examines price action for a particular fractal pattern, categorizes them by size, and then outputs a composite fractal size index. This index is smooth, timely and accurate
Essentially, CFB reveals the length of the market's trending action time frame. Long trending activity produces a large CFB index and short choppy action produces a small index value. Investors have found many applications for CFB which involve scaling other existing technical indicators adaptively, on a bar-to-bar basis.
What is Jurik Volty used in the Juirk Filter?
One of the lesser known qualities of Juirk smoothing is that the Jurik smoothing process is adaptive. "Jurik Volty" (a sort of market volatility ) is what makes Jurik smoothing adaptive. The Jurik Volty calculation can be used as both a standalone indicator and to smooth other indicators that you wish to make adaptive.
What is the Jurik Moving Average?
Have you noticed how moving averages add some lag (delay) to your signals? ... especially when price gaps up or down in a big move, and you are waiting for your moving average to catch up? Wait no more! JMA eliminates this problem forever and gives you the best of both worlds: low lag and smooth lines.
Ideally, you would like a filtered signal to be both smooth and lag-free. Lag causes delays in your trades, and increasing lag in your indicators typically result in lower profits. In other words, late comers get what's left on the table after the feast has already begun.
What is the T3 moving average?
Better Moving Averages Tim Tillson
November 1, 1998
Tim Tillson is a software project manager at Hewlett-Packard, with degrees in Mathematics and Computer Science. He has privately traded options and equities for 15 years.
Introduction
"Digital filtering includes the process of smoothing, predicting, differentiating, integrating, separation of signals, and removal of noise from a signal. Thus many people who do such things are actually using digital filters without realizing that they are; being unacquainted with the theory, they neither understand what they have done nor the possibilities of what they might have done."
This quote from R. W. Hamming applies to the vast majority of indicators in technical analysis . Moving averages, be they simple, weighted, or exponential, are lowpass filters; low frequency components in the signal pass through with little attenuation, while high frequencies are severely reduced.
"Oscillator" type indicators (such as MACD , Momentum, Relative Strength Index ) are another type of digital filter called a differentiator.
Tushar Chande has observed that many popular oscillators are highly correlated, which is sensible because they are trying to measure the rate of change of the underlying time series, i.e., are trying to be the first and second derivatives we all learned about in Calculus.
We use moving averages (lowpass filters) in technical analysis to remove the random noise from a time series, to discern the underlying trend or to determine prices at which we will take action. A perfect moving average would have two attributes:
It would be smooth, not sensitive to random noise in the underlying time series. Another way of saying this is that its derivative would not spuriously alternate between positive and negative values.
It would not lag behind the time series it is computed from. Lag, of course, produces late buy or sell signals that kill profits.
The only way one can compute a perfect moving average is to have knowledge of the future, and if we had that, we would buy one lottery ticket a week rather than trade!
Having said this, we can still improve on the conventional simple, weighted, or exponential moving averages. Here's how:
Two Interesting Moving Averages
We will examine two benchmark moving averages based on Linear Regression analysis.
In both cases, a Linear Regression line of length n is fitted to price data.
I call the first moving average ILRS, which stands for Integral of Linear Regression Slope. One simply integrates the slope of a linear regression line as it is successively fitted in a moving window of length n across the data, with the constant of integration being a simple moving average of the first n points. Put another way, the derivative of ILRS is the linear regression slope. Note that ILRS is not the same as a SMA ( simple moving average ) of length n, which is actually the midpoint of the linear regression line as it moves across the data.
We can measure the lag of moving averages with respect to a linear trend by computing how they behave when the input is a line with unit slope. Both SMA (n) and ILRS(n) have lag of n/2, but ILRS is much smoother than SMA .
Our second benchmark moving average is well known, called EPMA or End Point Moving Average. It is the endpoint of the linear regression line of length n as it is fitted across the data. EPMA hugs the data more closely than a simple or exponential moving average of the same length. The price we pay for this is that it is much noisier (less smooth) than ILRS, and it also has the annoying property that it overshoots the data when linear trends are present.
However, EPMA has a lag of 0 with respect to linear input! This makes sense because a linear regression line will fit linear input perfectly, and the endpoint of the LR line will be on the input line.
These two moving averages frame the tradeoffs that we are facing. On one extreme we have ILRS, which is very smooth and has considerable phase lag. EPMA has 0 phase lag, but is too noisy and overshoots. We would like to construct a better moving average which is as smooth as ILRS, but runs closer to where EPMA lies, without the overshoot.
A easy way to attempt this is to split the difference, i.e. use (ILRS(n)+EPMA(n))/2. This will give us a moving average (call it IE /2) which runs in between the two, has phase lag of n/4 but still inherits considerable noise from EPMA. IE /2 is inspirational, however. Can we build something that is comparable, but smoother? Figure 1 shows ILRS, EPMA, and IE /2.
Filter Techniques
Any thoughtful student of filter theory (or resolute experimenter) will have noticed that you can improve the smoothness of a filter by running it through itself multiple times, at the cost of increasing phase lag.
There is a complementary technique (called twicing by J.W. Tukey) which can be used to improve phase lag. If L stands for the operation of running data through a low pass filter, then twicing can be described by:
L' = L(time series) + L(time series - L(time series))
That is, we add a moving average of the difference between the input and the moving average to the moving average. This is algebraically equivalent to:
2L-L(L)
This is the Double Exponential Moving Average or DEMA , popularized by Patrick Mulloy in TASAC (January/February 1994).
In our taxonomy, DEMA has some phase lag (although it exponentially approaches 0) and is somewhat noisy, comparable to IE /2 indicator.
We will use these two techniques to construct our better moving average, after we explore the first one a little more closely.
Fixing Overshoot
An n-day EMA has smoothing constant alpha=2/(n+1) and a lag of (n-1)/2.
Thus EMA (3) has lag 1, and EMA (11) has lag 5. Figure 2 shows that, if I am willing to incur 5 days of lag, I get a smoother moving average if I run EMA (3) through itself 5 times than if I just take EMA (11) once.
This suggests that if EPMA and DEMA have 0 or low lag, why not run fast versions (eg DEMA (3)) through themselves many times to achieve a smooth result? The problem is that multiple runs though these filters increase their tendency to overshoot the data, giving an unusable result. This is because the amplitude response of DEMA and EPMA is greater than 1 at certain frequencies, giving a gain of much greater than 1 at these frequencies when run though themselves multiple times. Figure 3 shows DEMA (7) and EPMA(7) run through themselves 3 times. DEMA^3 has serious overshoot, and EPMA^3 is terrible.
The solution to the overshoot problem is to recall what we are doing with twicing:
DEMA (n) = EMA (n) + EMA (time series - EMA (n))
The second term is adding, in effect, a smooth version of the derivative to the EMA to achieve DEMA . The derivative term determines how hot the moving average's response to linear trends will be. We need to simply turn down the volume to achieve our basic building block:
EMA (n) + EMA (time series - EMA (n))*.7;
This is algebraically the same as:
EMA (n)*1.7-EMA( EMA (n))*.7;
I have chosen .7 as my volume factor, but the general formula (which I call "Generalized Dema") is:
GD (n,v) = EMA (n)*(1+v)-EMA( EMA (n))*v,
Where v ranges between 0 and 1. When v=0, GD is just an EMA , and when v=1, GD is DEMA . In between, GD is a cooler DEMA . By using a value for v less than 1 (I like .7), we cure the multiple DEMA overshoot problem, at the cost of accepting some additional phase delay. Now we can run GD through itself multiple times to define a new, smoother moving average T3 that does not overshoot the data:
T3(n) = GD ( GD ( GD (n)))
In filter theory parlance, T3 is a six-pole non-linear Kalman filter. Kalman filters are ones which use the error (in this case (time series - EMA (n)) to correct themselves. In Technical Analysis , these are called Adaptive Moving Averages; they track the time series more aggressively when it is making large moves.
Included:
Bar coloring
Signals
Alerts
Pesquisar nos scripts por "price action"
Trend Friend - Swing Trade & Scalp Signals - Stocks Crypto ForexTREND FRIEND is a custom built, data driven algorithm that gives buy and sell signals when many different factors line up together on a single candle. It is designed to catch every move so you can expect early entries and exits across all of your favorite markets. Use scalp mode for early entries with lots of signals or swing mode for longer swings with fewer signals and long swing mode for really long swing trades with even less signals.
The best markets to use this indicator on are high volume tickers with a lot of price action as these markets have enough data to use to give the signals the algo needs to be able to detect highly probable moves in price. That being said, it works across all markets such as stocks, crypto, forex and futures and across all timeframes(on really long timeframes it may not give signals due to not having enough data to work with).
***MAJOR POINTS TO REMEMBER BEFORE USING THIS INDICATOR***
The algo is designed to catch major moves, so if a signal seems to come in late, it is highly likely the market is about to reverse so use caution when taking signals that seem late. This typically happens because the market is indecisive so always be careful in these situations and just wait for a better signal when markets are really decisive.
Always trade in the direction of the trend meaning the volume weighted moving average clouds. There is also a trend detection label and risk level label that you should follow to keep your trades as safe as possible. The safest way to do this is only trade short when the VWMA 100 is below the VWMA 500 and a Bear signal comes in very close to a VWMA line. Only trade long when the VWMA 100 is above the VWMA 500 and a Bull signal comes in very close to a VWMA line.
If price is between the moving averages, play the VWMA 100 and VWMA 500 as support and resistance and only take signals near one of the VWMAs with the plan of price returning to the other VWMA. If you are taking trades against the trend, like trying to buy the dips or sell the tops, wait for price to cross the VWMA 100 before following a signal.
If the VWMA 100 and VWMA 500 are close to each other and/or moving sideways, you can expect choppy price action and consolidation so use caution when taking trades during this time. It is better to wait for the price to hold above or below both VWMAs and stay supportive there before taking trades. Waiting for volume to increase is also a good way to avoid chop after the trend decides a direction.
This indicator will repaint sometimes before the candle has closed, so either wait for the candle to close with a signal before entering trades or only take signals before it closes on candles with good volume and technical analysis backing it.
***ALL THE FEATURES YOU NEED***
Trend Friend has multiple features designed to help you trade better and make decisions faster.
Buy & Sell Signals - When the algo detects all of our required parameters lining up on a single candle, Trend Friend will give Bull or Bear signals on the chart. Bull means upward price action is expected. Bear means downward price action is expected.
Take Profit Signals - When the price action makes a move that typically signals a reversal, a take profit signal will show up on the chart to help you get out of a trade before the next signal comes in.
Risk Levels For Signals
There is a risk detection system that tells you how risky each signal is as it comes in to help you stay out of dangerous trades. Wait for signals with low risk and you’ll be much safer than trying to take trades against the trend.
Alerts - There are options for alerts on buy signals, sell signals, take profit signals, price crossing the VWMA 100 and price crossing the VWMA 500. All of these can be controlled using tradingview alerts so you don't have to watch the charts and wait for things to happen. These alerts can also be used to send orders to trading bots if you choose.
Candles Painted Green Or Red According To Buy & Sell Pressure - By default, this indicator paints the candle sticks green, red or blue according to buy & sell pressure(DMI). You will need to turn off candle colors in your chart settings for this to appear correctly.
Percentage Updates - The table on the right has live percentage updates so you don’t have to measure out every move you are expecting. It will tell you the percentage from closest fibonacci levels, percentage away from the VWAP, percent gain or loss from the last signal entry and percentages from your own trades that can be configured in the settings. These help you always know how much more you can squeeze out of a trade and where your position stands without having to switch screens between Tradingview and your broker constantly.
Moving Average & VWAP Clouds - We included two color coded volume weighted moving averages(VWMA 100 and VWMA 500) and a color coded RMA 10 moving average. We also have a VWAP dotted line and cloud so you can easily see the trend direction on the chart at all times. The cloud and moving averages will turn green or red in real time depending on whether price is above or below each moving average or the VWAP respectively.
Trend Detection Label - The top label on the percentage update table tells you if the trend for this timeframe is Bullish or Bearish as well as when the trend is undecisive with choppy price action expected.
Chop & Low Volume Warning Labels - When price action is choppy or there is very low volume compared to historic candles, a warning label will appear at the top of the screen so you know to use caution and stay out of trades during these times.
Auto Fibonacci Levels - The chart will automatically populate fibonacci retracement and extension levels. The percentage update table will also give you real time updates on how far away the next fibonacci levels are from the current price.
Bounce Zone - We also included a very long term moving average cloud(EMA 1000 and EMA 2000) that shows as purple on the chart. When price enters that cloud, you can expect a reversal in that area. If price was trending above the cloud, expect that cloud to act as support. If price was trending below the cloud, expect that cloud to act as resistance. When price is trying to break through that cloud in either direction you can expect price action to be choppy and big moves to happen once price gets supportive in that zone and breaks out.
Margin Multiplier - If you are using margin to trade, our margin multiplier will multiply all of the percentage updates by the margin level you input in the settings tab so your percentages will reflect the percentages in your account.
***HOW TO USE***
Scalp, Swing And Long Swing Mode
You can choose from scalp mode, swing mode or long swing mode in the indicator settings. It is set to scalp mode by default. Scalpers will want to use the scalp mode as it provides early entries and exits and is designed to catch every move quickly. Swing mode is designed to catch almost every move and filter out some of the noise so it will have less signals than scalp mode. Long swing mode is designed to catch those lengthy moves and will hold positions the longest but give entries later than the other modes.
Try all three on a few charts and timeframes to see which setting matches your trading style the best. If you want more signals with any of the 3 modes, go to a lower timeframe. If you want less signals on any mode, go to a higher timeframe.
Bull & Bear Signals - When all of our algo parameters line up, a BULL or BEAR label will print on the chart. Bull labels will be colored green and bear labels will be colored red. Bull indicates a good place to enter a long trade because the algo is detecting patterns that indicate price should move upwards. Bear indicates a good place to enter a short trade because the algo is detecting patterns that indicate price should move downwards.
For best results using these signals, take trade signals that line up very closely with fibonacci levels or volume weighted moving averages or the vwap or any combination of them. It is also recommended to only take trades in the direction of the trend to avoid trading false reversals. Wait for low risk signals using our risk identifier and then enter the market. Waiting for good volume to come in will also help you avoid chop and catch those quick moves.
Also, make sure to check the percentage updates table to see if the expected move to the next fibonacci level is far enough away to make the risk to reward ratio worth taking the trade. Watch for signals when the VWMAs squeeze together after a wide gap and price breaks out with a corresponding signal as these can bring large, quick moves in price. Use caution when the VWMAs are close to each other and trending sideways as this usually brings choppy price action.
(The bull and bear signals can be turned on or off in the indicator settings input tab. Useful if you want to clean up the chart or only show bear or bull signals according to the trend.)
Take profit Signals - Take profit labels will show up on the chart when a reversal candle pattern or reversal indicator pattern is detected while a trade is still open. Use these signals as times that it may be a good point to exit the trade to avoid losses or reduced profits.
(The take profit signals can be turned on or off in the indicator settings input tab.)
Risk Level Label
Taking trades against the trend is dangerous because there are more false bottoms than there are actual bottoms. Our risk detection label is there to keep you from taking dangerous trades against the trend. The label will say Low Risk when the trend is in the same direction as the last signal given. The label will say Medium Risk when the trend is neutral because price likes to chop around during these times. The label will say High Risk when the trend is in the opposite direction as the last signal given.
Make sure you wait for the risk level detector to show Low Risk before taking trades or you may be buying a false bottom.
Candles Colored According To Buy & Sell Pressure - By default this indicator will paint the candlesticks green, red or blue depending on the buy & sell pressure for those candles using the Directional Movement Index or DMI. If buy pressure is higher than sell pressure, it will paint green. If Sell pressure is higher than buy pressure, it will paint red. If buy pressure is equal to sell pressure, it will paint blue. Use this to confirm which direction buying and selling is favoring and use a change in color trend to determine reversal points early. For this to work correctly you will need to go into chart settings(gear icon top right) and in the symbol tab turn off body, wicks and border.
(The buy & sell pressure candle coloring can be turned on or off in the indicator settings input tab.)
Auto Fibonacci - This indicator will automatically populate fibonacci retracement and extension levels for you. These levels are calculated using the previous high and low. You can switch the source between the previous day, week, month, quarter and year(the weekly setting is the default as it is great for day trading). The previous high and low levels will show as white(These are very important levels so watch for price to bounce off of the white lines). The percentage update table will also show the percentage gap from the current price and the next closest fibonacci level above and below, with labels telling you which fib levels they are.
(The fibonacci levels can be turned on or off in the indicator settings input tab.)
Volume Weighted Moving Averages With Clouds - The red or green moving averages should be treated as dynamic support and resistance as well as a visual way of telling current price trends. You can expect price to bounce off of these moving averages very often and quick moves usually happen when price breaks out of these moving averages.
The safest long trades you can take will be when the VWMA 100 is above the VWMA 500 and you get a BULL signal that is very close to the VWMA 100 or VWMA 500. The safest short trades you can take will be when the VWMA 100 is below the VWMA 500 and you get a BEAR signal that is very close to the VWMA 100 or VWMA 500.
When the moving averages squeeze together and price bounces between them, you can expect big moves in price when it breaks out. If price has been trending up and the moving averages squeeze together, expect the price to fall quickly once it breaks down from there. If price has been trending down and the moving averages squeeze together, expect the price to jump quickly once it breaks out from there.
These moving averages and the clouds associated with them will paint green when price is above them, indicating a bullish trend and they will change to red when price is below the moving averages, indicating a bearish trend.
You can also use the moving averages as support and resistance levels when markets are moving sideways. Since these are volume weighted moving averages, price tends to stick to them very well and paints a much clearer picture of what is going to happen than regular moving averages that don't take volume into account. Try it on a bunch of different timeframes and charts to see for yourself.
(The moving averages and clouds can be turned on or off in the indicator settings input tab.)
Bounce Zone - The bounce zone is a purple cloud that is made up of two very long term moving averages. When price is trending above this cloud and comes back down to it, you can expect the price to bounce back upwards in this zone. If the price is trending below this cloud and comes up to it, you can expect the price to bounce back downwards when it reaches this zone.
Sometimes price will break through this cloud and you will usually notice a lot of choppy price action and accumulation in this zone. When price does break out of it, you can expect fast, large moves. I also like to call this zone the safe zone because taking trades in this zone is typically a very safe place to enter trades depending on how the price is trending before it entered this zone. If you look at the cloud on any of your favorite charts, you will see that the cloud usually represents support and resistance areas quite well.
(The bounce zone can be turned on or off in the indicator settings input tab.)
Chop & Low Volume Warnings - When price is choppy, it can be a portfolio killer. When volume is low, it can give false signals or the market can reverse easily, so stay out of trades when these warning labels appear on your chart. If you were already in a trade when these warnings appear, keep a close eye on your trades and be ready to exit if things start to go the wrong way.
Long & Short Entry Calculator - Here you can enter your own entry price for short or long positions so that your actual P&L will be shown live on your chart. This eliminates the need to calculate percentages in your head or switch screens to your broker often or use the measuring tool to calculate your P&L. These will show as zero until a trade price is entered.
Margin Multiplier - If you use margin to trade, enter your margin multiplier in this input and all of the percentages in the percentage update table will reflect how far each level is based on your margin. So a 5x margin will multiply all percentages in the chart by 5 and so on. This way you don’t have to calculate everything in your head or switch between your chart and your broker constantly.
Customization - Go into the indicator settings and you can customize just about everything to suit your style. In the Input tab you can: turn the Bull or Bear labels off or on so you only get the signals that are going in the direction of the trend, turn on or off the moving average lines & clouds, turn on or off the vwap & clouds, set your fibonacci timeframe or turn them off completely and set your long or short entry price as well as your margin level for percentage updates according to your portfolio.
You can also easily customize: the moving average lines & clouds, the bounce zone lines and cloud, the vwap color and line style, the support and resistance line colors and thickness, the bull and bear label styles, the take profit label styles and more.
***MARKETS***
This indicator can be used as a signal on all markets, including stocks, crypto, futures and forex as long as Tradingview has enough data to support the calculations needed by the algo.
***TIMEFRAMES***
Trend Friend can be used on all timeframes.
***IMPORTANT NOTES***
For the buy & sell pressure colored candles to show up properly you will need to go to the chart settings(gear icon in top right corner) and in the symbol tab turn off body, wicks and border.
No indicator can be right 100% of the time and remember that past results do not guarantee future performance. You still need to make smart decisions when using this indicator to be successful. It is also important to note that markets with little volume and price action may not give very good signals due to many different parameters needing to line up on one candle for a signal to be given so use it on high volume tickers with lots of price action for best results.
***TIPS***
Try using numerous indicators of ours on your chart so you can instantly see the bullish or bearish trend of multiple indicators in real time without having to analyze the data. Some of our favorites are our Volume Spikes, Directional Movement Index + Fisher, Volume Profile with DMI, and MOM + MFI + RSI with Trend Friend. They all have real time Bullish and Bearish labels as well so you can immediately understand each indicator's trend.
Jimmy's Dikfat DaytraderThis Day Trading Indicator applies the use of multiple techniques designed to maximize profits and trade success probability while utilizing proprietary mathematical techniques to calculate specific high probability Pivot Points, Break of Structure, Supply and Demand, previous days High and Low, Liquidity Hunts, Dynamic Trend Lines and Fibonacci Discount Zones. The combination of these techniques combined with unique mathematical calculation & variance allow the user to make an informed analysis to take high probability trades by exposing Market Maker discount zones and highlight smart money purchasing.
Pivot Points: A traditional pivot point is described as an individual candle high that is higher than the previous two candles to the left and forward two candles to the right. Likewise a pivot is also an individual candle low that is lower than the previous two candles to the left and forward two candles to the right. In this indicator standard pivots are highlighted as yellow and white candles. Yellow candles are High or Top Pivots; White Candles are Low or Bottom Pivots. The number of pivots checked for either left or right or both can be changed in the settings. Increasing this value will add more pivot points to the chart, decreasing this value will add less. It is recommended to change values left and right with the same number.
Note: In this study, all traditional pivots will be highlighted by yellow or white for the advanced user, but not all pivot markers will highlight all pivots for the purposes of identifying a high probability trade.
Break of Structure: Break of structure occurs when current price drops below or likewise rises above a pivot point. For the purposes of this study, a break of structure tag will appear over a previous pivot tag ONLY when there is a candle close below or above the previous pivot for the purposes of identifying liquidity hunts and high probability trades. As you will note in the example chart, break of structure is used to determine not only trend but high probability trade areas by identifying market structure. Unbroken pivot highs or lows can be used to take trades, with a stop below the low (or above the high) of the unbroken pivot candle. BOS (Break of Structure) Tags will effectively show where market participants do not want to take a trade and be chopped up in a market that is trending only 30% of the time. BOS also gives future indication of where the Market Makers are taking price action. Breaks of structure in a particular direction typically indicate a continuation of price action in that direction. Trade opportunities occur after the pullback in the opposite direction of break of structure. This highlights areas traders can take on the pullback, in the direction of structure breaks, typically on unbroken pivots.
Note: In this study, not all BOS (Break of Structure) markers will highlight all breaks of structure for the purposes of identifying a high probability trade. Some very few examples of structure is not marked as broken to assist in identifying Liquidity Hunts.
Liquidity Hunt: A Liquidity Hunt is where price action moves in the opposite direction of an intended move (typically with high magnitude and velocity) to gather "Liquidity" and trigger stops created by traders caught in the break of structure zone. Any unbroken pivot is a relevant area of Liquidity. Some of the High probability areas of Liquidity will be found at Equal (or near equal) Lows or Equal High pivots. Current areas of Liquidity are marked on the chart as an Aqua (Light Blue) Background line that extends right infinitely. Once Liquidity has been taken at one of these lines, the Line will "Break" And stop displaying forward. The number of pivots calculated specifically for break of structure and Liquidity Hunts can be changed under the Liquidity Hunt setting. Much like with pivots, it is recommended to change these numbers with the same value for best results.
Due to the complexity of the math, Some liquidity pivots will only confirm and display a pivot tag after twice the candles defined have been found to the left and right under liquidity hunt settings, and some will display after the exact number specified in settings. As noted previous some will not display at all due to the high probability nature of this indicator and having been found as a "cluster" in the Supply and Demand Boxes.
Supply and Demand Boxes: Supply and Demand boxes will be created when a specific number of pivots are found in succession or in a "cluster" and a box will be drawn from the current grouping of pivots, first pivot high to the nearest pivot low in the cluster. This unique style of supply and demand box drawing has been proven to be an effective identifier of buying and selling in the price action, or likewise support or resistance upon return to these boxes. The boxes were specifically designed to identify high probability areas of Supply and Demand and are more likely to be areas of high probability buying and selling. Supply is when price action moves into or creates an area where sellers are waiting. Demand is when price action moves into or creates an area where Buyers are waiting. When price action creates a box, the box will remain Neutral with a white color while Price action remains within the box. This box will turn Red or into a Supply Box, when price action drops below the box boundaries. The box will likewise turn Green or into a Demand Box, when price action rises above the box boundaries. Any return to a colored box from the direction it was created could be anticipated as a retracement to continue in the direction of price action indicated by the box.
In the settings boxes can be extended to the current bar right to show previous areas of supply and demand, or can be left "Truncated" or in box form as a highlighter for cluster analysis.
Previous Days High and Low: The previous days High and low will be displayed on the current day as a magenta line. Some traders use these lines to anticipate price action on the day compared to where price action is moving relative to the previous day. Historical Magenta lines are also the marked on a specific day, for the previous days High and low. Historical Lines can be turned off by reducing Opacity of the setting to Zero, leaving only the previous days high and low on the current day.
Dynamic Trend Lines: Trend Lines will be created automatically that will connect unbroken pivots and extend right, highlighting the current trend. (Coming Soon™️)
Fibonacci Discount Zone: The Fibonacci Discount Zone can be found by measuring an unbroken pivot High or Low, that breaks structure left to create a new High or Low. When structure is broken and price begins a retracement before moving back in the direction of the broken structure, the retracement is typically back into the "Discount Zone" between the 618 and 786 Fibonacci zone. This zone will be automatically plotted as a light grey box in the background of the chart. (Coming Soon™️)
PVSRA Volume Price - Some people say "Price Action is King". I say, we cannot know how the MMs (Market Makers) will move price next, period. But price tends to consolidate above key SR when MMs are filling short orders for SM (Smart Money) and long orders for DM (Dumb Money), and price tends to consolidate below key SR when MMs are filling long orders for SM and short orders for DM. The MMs are also "SM", and they tend to do the other SMs "one better"! This means that after the MMs fill the SM/DM orders, they might move price a bit further in an attempt to stop out some of those SM executed orders and sucker in more DM; both giving liquidity for the MMs to add to their own SM side position. Yes, the MMs are bastards. But the point is that could leave price not "nicely" above or below a SR anymore, yet more consolidation can occur.
Volume - Increases in activity denote increase in interest. But, is it long or short interest? Where is price in the bigger picture when this is happening? Is it at relative highs, or lows in the overall price action? And if a high volume bar is for a candle which you can examine by going to lower TF charts, you might see where in the spread of that candle the most volume occurred, high or low! Using volume is about taking note of relative increases in volume and what price is doing at the same time. Are the better volumes favoring the lower or the higher prices, as the MMs waffle price up and down? And do the volumes get particularly notable when the MMs take price above or below key SR?
S&R - Read all about S&R at "Baby Pips.com". What I want you to realize here is that the whole, half and quarter numbered price levels (hereinafter referred to as "Levels") are the most important SR of all in this market! Not because price stops, pauses, proceeds or reverses there, but because it is above or below these levels that important consolidation (MMs filling SM orders) takes place. Once SM long orders are filled, they become interested in placing orders to close them at higher prices, and hence the MMs will be moving price higher, eventually. Once SM short orders are filled, they become interested in placing orders to close them at lower prices, and hence the MMs will be moving price lower, eventually.
PVSRA - If we can spot consolidations above/below key SR, examine the overall price action on various TF charts, and take note of where the notable increases in volume have most recently occurred (did volume favor relative highs or lows), then we can build a consensus about what kind of orders the MMs have most recently been filling; buying to open longs or close shorts, or selling to open shorts or close longs. And we can get a better idea if things will next become bullish or bearish. And once PA confirms our bullish or bearish PVSRA results, by recognizing the importance of Levels we can look beyond current PA in the direction it is going and look to historic PA S&R (consolidation around key Levels) to come up with candidates for where the price might be headed. And bull or bear swings typically run in terms of 100+, 150+, 200+ pips, .....etc. And now you know why.
Okay. Now, if this is your first introduction to PVSRA, and having just read the above, you are likely scratching your head and still confused. That is normal. I will tell you a secret about the market and why you have a right to be confused. The secret is this. The market cannot be defined by mathematics nor by immutable logic. This is why the most advanced mathematicians over a century have never even come close to cracking the market. It cannot be done. Something else, other than math and immutable logic is the fundamental operand in the market. Have you ever watched a child attempt a jigsaw puzzle for the first time? And watched as that child grew and attempted more of them, and more complex ones? What is at work in the market I will elaborate on later, but for now trust me in this. We need to apply ourselves to learning how to do PVSRA just as a child attacks learning how to do jigsaw puzzles. And we must continue doing PVSRA, because in time our mind will "learn" when we have just picked up an important piece of the puzzle, and that we know where it goes! Developing the skill of PVSRA is an art form. We must not allow ourselves to feel badly if we miss clues. PVSRA is an art form that takes time to perfect. Over time our skill will grow and our "read" of the unpredictable market will improve. We must take to ongoing learning and application of PVSRA.
Introduction to How the Market Really Works
Does anybody remember the "lil' Abner" cartoons in the Sunday papers? Let me draw for you a mental picture of how the market really works.....
Imagine Daddy Yokum ferociously racing a buckboard wagon up and down the steep inclines and declines in the rough, rocky mountain road that has sharp turns and a sheer cliff on one side. The wagon wheels are spewing rocks off the side of the cliff! Even Daddy Yokum's shotgun is going off due to the jolting of the buckboard! Daddy Yokum has a demented look on his face, but he is smiling! The horse has a wild look in it's eyes and is frothing at the mouth. There are two passengers being tossed around in the back of the buckboard, terror stricken! Now, let's pan back from this cartoon picture and place the labels needed. On the side of the wagon is the sign "Market Pricing". The demented, smiling Daddy Yokum, is the Market Maker. The passengers being tossed around are the buyers and sellers.
.....Got it? Market prices are not determined by the buyers and sellers. They are determined by the Robber Bank Market Makers (MMs).
MMs are Market Manipulators of Price, and Thieves!
The "market" is the sole creation of the Robber Banks that "make the market". While it serves the world of commerce, they run it to make profits. And they opened the market up to foster prolific currency trading by others for the sole purpose of making more profits. They move prices up and down to "create liquidity" to fill the orders of SM (Smart Money) and DM (Dumb Money), for the commissions they make by filling the orders. When they have some orders above the current price and some below the current price, who do you think determines the sequence of direction and distance the price is going to move so these orders can be filled? And always - since they know how they are going to move price next - they take positions themselves to make additional profits.
They do this by:
1. Manipulating price to sucker into the market DM that is taking the wrong side position.
2. Manipulating price to sucker into the market SM that is taking the right side position, but too soon, and later manipulating price to hit their stops.
They have total control of pricing, and by these actions they effectively "steal" from others the money to fill their own "right side" positions before moving the price to the next area they have decided on for filling orders, and for taking profit on their positions built beforehand. Don't get me wrong. I do not object to the market volatility these thieving Robber Banks create. We need it. But we also need to understand what these people are like, the cloth they are cut from. They are crooks, and we have to be extra careful about trading in the market they operate. On some special days you can see them in their true colors. We should witness it. Take note of it. Speak of it. And remember it!
MoonFlag AI Cloud (JWTainsh)This is a cloud that is based on a novel overshoot algo and also provides a 'central line' which represents to some degree an average moving in the direction of the trade (as indicated by the cloud).
Most indicators are based on moving averages which lag the price action.
This indicator uses a predictive overshoot algo that is different to a moving average. The algo overshoots the price action by following momentum. The cloud is made from multiple overshoot algo's all at different lengths (number of lookback bars).
In comparison to a moving average, the moving average will never give a reading greater than the price action in an up-trend. A moving average will lag the price action and eventually the price will come down and intersect with the moving average. In this overshoot algo (that forms the cloud), the parts of the algo with the shorter length will shoot way above the price action as the uptrend weakens.
The cloud is made from multiple overshoots algo's all with a different length. So when an uptrend weakens, the overshoot algo's with the longer length will still be below the price action and the price action will dip below the base of cloud - thus indicating an end to the uptrend - and possibly the start of a downwards momentum if the price action persists into the red.
So, when the price action dips below the cloud, it forms a line whereby below the line the cloud is colored red - indicating a possible downturn in the trend as the up momentum has receded. There is still a green part to the cloud above the lower line, as the up momentum could re-establish if the price action stays about the red.
Similarly, if in a down trend (price action in a red part of the cloud) and the price action breaks above the top of the cloud, the cloud will go green - until the price action falls below the cloud again.
There is also a half-way average line (although this is not entirely correct - it does describe what the mid-line does with some understanding). This mid-line only moves up when in an upward momentum. Similarly, the mid-line only moves down in a down momentum. Its interesting to see when the price action crosses the mid-line as this can indicate a change in momentum early on.
For example, if the price action remains above the mid-line, this can show a pump is still in progress.
If the price action just bounces above the cloud, then below, then above - it means the could length is not great enough - and the price action is probably governed more by RSI on a relatively fast timeframe.
When the cloud gets thin - this generally means the price action is in line with a steady momentum and has been for a while. This can be thought of as all the moving averages converging and this sometimes can indicate a biggish move is about to happen (and thus throw the cloud into a wider state - and get all the traders excited).
I started coding this cloud when trying to intersect with the start of shorts or to locate the end of a long trend cycle. Shorts generally happen on a faster timeframe than longs so I generally use separate cloud timeframes (or lengths) for longs or shorts.
I also find that market conditions change considerably every few weeks or months - so the cloud is best reliable on recent data.
Also use in conjunction with other indicators such as OCC, 1D ATR Trend or VRSI/MACD Confluence - as this is a predictive indicator based on price action overshoot from momentum information. This is not - a moving average - this cloud does not lag price action - it kind of predicts where the price action will go if the present momentum remains - and then detects when a change in this momentum occurs due to price action intersection.
Please get in touch for more information or, if you would like to see the webhooks bot strategy I linked to the code.
Sincerely,
Moonflag (Josef Tainsh PhD)
LT Elliott Wave AddendumLT Elliott Wave Addendum Indicator:
According to Elliott Wave Theory, price moves in 5 waves in the direction of the major trend and moves in 3 waves (ABC) when it moves against the major trend. The key purpose and value of elliott wave theory (EWT) is to provide context for chart analysis. According to the book The Elliott Wave Principle by Frost & Prechter: “This context provides both a basis for disciplined thinking and a perspective on the market's general position and outlook.” The benefit of having context is that one can identify and anticipate changes in direction.
In Elliott Wave theory, waves 1, 3, 5 and C are impulse waves (a five wave pattern that makes progress) whereas waves 2, 4, A and B are corrective waves (a three wave pattern – or combination of three waves - that moves against the direction of the larger trend). Although wave A can also be formed of 5 waves, it is commonly formed of 3 waves. Here is a brief summary of the waves:
Wave 3 tends to be the strongest and most dynamic wave – it is usually (but not always) the longest wave but it is never the shortest. Wave 4 is a corrective wave that is typically composed of 3 smaller waves (ABC) and is notorious for being messy and unpredictable in nature. Wave 5 is the final wave before a significant correction or reversal in trend and is often accompanied by divergences (e.g. negative divergences in an uptrend) and exhaustions in momentum. It is also possible for a wave 5 to form after a “blow-off top” pattern. Wave 2 is composed of 3 smaller waves (ABC) and is a retracement of wave 1 – the retracement can be shallow to moderate (23.6% to 38.2%) or deep (50%, 61.8% to 78.6%). Wave 1 is the first wave of a trend and is composed of 5 smaller waves – it usually occurs after divergences (in the prior move) and extremes in both sentiment and momentum. For example, the wave 1 of an uptrend can often begin after capitulation in the price (after a major decline), extremely pessimistic sentiment, extremely oversold momentum readings, positive divergences and sometimes accompanied by a volume breadth thrust. Waves A and C are often equal in measure. Wave A can be formed of either 5 waves or 3 waves - but more commonly it is composed of 3 waves. Wave B is always corrective and composed of 3 smaller waves. Wave C is a five wave impulse pattern.
The Elliott Wave indicator (and elliott wave addendum) seeks to simplify elliott wave theory (EWT) in that its main purpose is to identify the potential major trends and corrections. The indicator takes a more simple and direct approach to EWT in that it focuses more on trying to identify whether price is trending or not and if so, the probable wave pattern. It does this by mainly using the structure of the price chart and sometimes other factors such as divergences, momentum and the relationship of price to its key averages. The indicator then takes its best guess at whether price is in a trending environment, and if so, which wave it is probably forming. The wave count can therefore depend on the chart timeframe chosen. For example, what may appear as a major downtrend on a lower timeframe chart may potentially be a corrective drop on a much higher timeframe, due to the different price structure of the charts. To keep things simple and to avoid complexity, the indicator does not display the minor sub-waves within the major waves (probably with the exception of wave 4).
The main feature and benefit of the Elliott Wave indicator is that it can remove subjectivity in chart and wave analysis. It also for flexibility in that it allows the chartist to alter the wave count and the position of the wave counts if they choose to do so (within the parameters and rules set by the indicator). As with all of technical analysis, the wave counts shown by the elliott wave indicator are NOT certain – they are only a possibility or a probability. So the risk always exists of an alternative wave count. It is for the chartist to determine the probable wave counts and limit or control the risks based on their knowledge of technical analysis and risk management.
The LT Elliott Wave addendum indicator is meant to be used in combination with the main LT Elliott Waves indicator, so in this sense they supplement each other.
The settings of the LT Elliott Wave Addendum indicator (“EW addendum”) are fairly self-explanatory but here is a brief summary:
The Elliott Wave indicator has options in the settings to change the positions of certain wave counts based on the structure of the chart. This is achieved by choosing the different major and minor structures based on the zigzag patterns of the chart. So the user can alter the positions of certain wave counts (if needed) by modifying the zigzag structure on the chart.
The lookback period in the settings can be increased (or decreased) to include more data on the chart, when needed. In the majority of situations the lookback period can remain at the default setting of 200 bars – but the user can decide to take into account more (or less) data by changing the lookback period to 300 (or 100 if less data is required).
In the elliott wave addendum indicator, the most recent probable ABC waves are shown in pink and the probable 123 wave counts are shown in dark blue. The position of the wave counts can be changed and modified to a reasonable degree in the settings.
In certain circumstances where there are volatile conditions and charts, it is possible that the elliott wave addendum indicator may show an “unusual” wave count. For example, it is possible that the positions of certain wave counts (such as waves 1, 2, 3 and 5) may be in the “wrong” order. This happens rarely so it is not an issue that happens very often. However, if this issue occurs, the chartist can rectify the matter by first increasing the lookback period (e.g. to 300) to see if this resolves the issue. If it does not, then Alt9 “temporary wave shift” in the elliott wave addendum (EW addendum) can be enabled as this can usually resolve the issue and show the wave counts in a “proper” manner. Changing to a slightly lower timeframe can also usually resolve this issue. If Alt9 is enabled, care should be taken to unselect this option at a later date (as it is only a temporary solution).
The aggressive wave count setting (called “Aggressive 123”) is mainly for the addendum of the elliott wave indicator (i.e. EW addendum). Enabling this option can often change the wave count from an ABC to a 123 provided this is permitted by the parameters of the indicator. For example, if the elliott wave addendum indicator is showing an ABC wave count, it may be possible to change this wave count to a 123 wave count by enabling the “Aggressive 123” setting in the indicator. The other option is to change the wave count at the very top of the settings (where it says “Change recent ABC to 123”). This option as well as others are included for further flexibility in the wave count.
The user can also choose to enable the zigzags of the waves to be shown on the chart. This can display the minor and major wave structures and zigzags, if enabled. By default, it is set to off.
It may also be a good idea to reset the settings of the indicators whenever a new chart or timeframe is chosen. This then refreshes the settings back to its default.
It is important to appreciate that the elliott wave indicator generally requires between 1,500 to 2000 bars of data on the chart in order to display the wave counts adequately and appropriately. So if a chart or timeframe has less than the minimum number of historical data or bars on the chart, the wave counts may not display properly or not appear at all. Certain chart symbols and timeframes (such as the monthly timeframe) may have very limited amount of data on them. Therefore, the elliott wave indicator will likely not appear on these charts or may not display properly. In these situations, a different chart symbol or a lower timeframe with more data on it can be chosen. For example, instead of a monthly timeframe, a weekly or daily timeframe can be chosen.
The Elliott Wave Addendum indicator (“EW Addendum”) displays the most recent and “immediate” probable wave counts – usually after a potential wave 3 or a wave 5 of the main elliott wave indicator (i.e. LT Elliott Waves). So in this sense the EW addendum is more short term in that it focuses on the most recent price action (e.g. after a wave 5) in what may be either a possible corrective pattern (ABC) or the development of a potential new trend (123).
For example, let’s say the price has been trending up and we are seeing a probable wave 5 in the main elliott wave indicator (LT Elliott Waves), and then the price starts to reverse lower. The decline in price could either be an ABC correction or it may possibly be the beginning of a reversal or downtrend. The elliott wave addendum indicator (EW addendum) starts by showing the probable waves A, B and C of a correction (shown in pink). The EW addendum waits for the structure of the chart to develop before making its best guess at what may be an ABC pattern. However, if the price action begins to break support levels and the probability of a downward trend increases, then the wave count may change from ABC to 123 (shown in dark blue). The same principle can apply in the opposite direction: if the price has been trending down in a likely wave 5 and then suddenly price begins to reverse and move higher, at first we may see a potential ABC corrective pattern on the EW addendum indicator. However, if price continues to move up by a certain degree and break resistance levels the wave count may change on the EW addendum to a probable 123 uptrend.
The reason for why the possible ABC wave count may change to a possible 123 trending wave count is because the elliott wave indicator is programmed to look for and identify potential trending patterns (as well as corrective patterns). In this sense, we are looking to simplify elliott wave theory by taking a more flexible and common-sense approach to the wave patterns. So if the price action has broken key levels of support or resistance, momentum is increasing and price is moving deliberately in a specific direction, it becomes more likely that price is in a trending environment (rather than just a correction).
If the main elliott wave indicator (i.e. LT Elliott Waves) is showing a probable wave 3, and price begins to pullback or move in the opposite direction to the main trend of the wave 3, the EW addendum may be used to display the probable ABC wave counts. These ABC wave counts could be for the likely wave 4 correction. However, if price starts to break key support levels (e.g. after an uptrend) and then reverse lower in the opposite direction (to the mentioned wave 3), then it is likely that the main indicator will change the wave count from a wave 3 to a wave 5. This can indicate that the main uptrend may have probably ended and that we are in either a large correction or a trend reversal, as shown by the EW addendum. This example can also apply in reverse for downtrends (e.g. if price starts to break resistance levels and move higher after a downtrend).
We have allowed for further flexibility in the main elliott wave indicator (LT Elliott Waves) – including the EW addendum – so that the user can change the wave counts from a 123 to ABC (or vice versa) if they choose to do so. For example, if the EW addendum is showing a probable 123 wave count (in dark blue), the chartist can choose to change the wave counts to an ABC wave count from within the settings. Please allow up to minute or more for the change to take place as it can sometimes take some time for the modification to take effect.
The position of the wave counts (ABC or 123) can be changed as well to a reasonable degree. In the settings of the EW addendum the positions of the wave counts can be changed by applying Alt3 or by modifying the minor or major structure of the waves (or zigzags). There is also the option to modify or move the position of wave 2 (or Wave B) in Alt2 of the indicator. Please allow up to a minute or more for the change to take place as it can sometimes take some time for the modification to take effect.
The EW addendum indicator also has the option to show a probable projection for wave 4 by enabling this in the settings. This does not mean that the price has to move in the direction of that “wave 4” projection, but it is merely a guide on the basis of probabilities. The chartist can apply other methods of chart analysis – such as trendline breaks, oscillators, regression channels, breaks of support/resistance – to determine when a probable wave 4 has likely completed. However, confirmation that the probable wave 4 has completed will not come until price has taken out the highs prior to the decline (i.e. the highs before the pullback in the probable “wave 4” correction). The same applies in reverse for a downtrend: confirmation that the probable wave 4 has completed will not come until price has taken out the lows prior to the rally (in a probable wave 4 correction).
Here is a brief summary of the “aggressive 123” option in the EW addendum settings: the aggressive wave count setting is mainly for the EW addendum. Enabling this option can often change the wave count from an ABC to a 123 provided this is permitted by the parameters of the indicator. For example, if the elliott wave addendum indicator is showing an ABC wave count, it may be possible to change this wave count to a 123 wave count by enabling the “Aggressive 123” setting in the indicator. The other option is to change the wave count at the very top of the settings (where it says “Change recent ABC to 123”). This option as well as others are included for further flexibility in the wave count.
It should be remembered that the appearance of the most recent wave counts (or wave labels) shown by the indicator, by themselves do NOT mean that the specific waves in question have definitely completed or finished. Nothing in chart analysis is certain or definite. The wave label itself is simply an indication that the most recent wave is probably still in progress, not necessarily that it has completed. Chartists can apply other technical analysis tools and methods (e.g. trend lines, support/resistance breaks, moving averages and regression channels etc.) to increase the probability of when a specific wave has probably completed. The same also applies to past or “completed” wave counts (or past wave labels): they do NOT mean that the specific waves have definitely completed or finished – it is merely a possibility or probability. So the risk always exists that the wave counts may potentially be wrong, and that an alternative wave count interpretation may exist.
Price action, markets and their charts are non-linear and chaotic, which means that they are subject to uncertainty, variable change and being unpredictable in nature. So we must maintain a probabilistic mindset and attitude to technical analysis. Nothing is certain. Therefore, no wave count is certain or “set in stone”. Wave counts, just like the actions and emotions of human beings, are subject to change. Elliott Wave theory, just like all of technical analysis is about what is possible, what is probable and what the risks are of a particular outcome. The advantage of elliott wave theory, as explained previously, is about gaining an understanding of context and the likely big picture. The indicator is provided in good faith but we do not vouch for its accuracy.
As mentioned previously, chartists should be aware of the probabilistic and uncertain nature of price action and the markets, and therefore prepare to limit and control any potential risks.
The indicator can be used on the charts of the majority of markets (e.g. stocks, indices, ETFs, currencies, cryptocurrencies, precious metals, commodities etc.) and any timeframe. Nothing in this indicator, its signals or labels should be construed as a recommendation to buy or sell any market (e.g. stocks, securities, indices, ETFs, currencies, cryptocurrencies, metals, commodities etc.). The indicator is provided solely for educational purposes, to gain a better understanding of technical analysis and elliott wave theory. It should be noted that the degree of noise and randomness increases significantly on lower timeframes. So the lower the timeframe that is chosen (e.g. 15-min or lower) the greater the degree of noise and randomness and therefore the higher the frequency of false signals or whipsaws. The indicator can be applied to candlestick charts and bar charts.
If you would like access, please send me a PM on Tradingview.
TradeChartist Trend Splitter ™TradeChartist Trend Splitter is a visual Trend spotting script based on two simple models fused together - Dynamic Volatility Bands and Dynamic Mean Bands. The fusion of these two models based on user defined parameters of length, Volatility Risk and Mean Bands type, along with optional Trend Splitter color bars and Trend background split will make it visually engaging for any trader to understand the price action.
===================================================================================================================
Trend Splitter User Manual
========================
Trend Splitter settings has option to enable and disable the Volatility Bands and also the Mean Bands.
Under each heading, user can adjust the parameters to suit the trading style, based on time-frame traded.
Volatility Bands track the price action based on volatility trend lookback (Default - 55, MIn - 5, Max - 337) and also uses a Detector plot based on user defined risk (Default is 2.618, Min - 0.618, Max - 5) to continuously track the price action.
Mean Bands track the Mean values of the price action based on TradeChartist's original Mean Reversion Model based on one of 4 time tested Fib Lengths (Default - 55, Options - 55, 89, 144, 233, 337) and detects the price testing of Mean using Orange touchpoints.
Using Price Action in relation to both Volatility Bands and the Mean Bands, the script creates Mean Bands filtered Trend splits that plot Bull or Bear Trend background.
The Mean Bands Filter can be disabled for Trend Splits by just disabling Mean Bands from the settings. Also the option to display Trend Split background can also be enabled or disabled from the settings.
The settings also includes a useful feature to enable or disable coloured price bars using one of 3 colour themes.
Users can create alerts for Price testing mean, Bull and Bear trends using Long or Short from Trend Splitter's Alert Condition.
The indicator doesn't repaint even though a potential repaint warning appears when creating alerts. This can be confirmed by doing bar replay with vertical lines at various lines and trend change zones to get confidence using the indicator. The vertical lines will stay in the same place on both current time and when running a bar replay.
===================================================================================================================
Example Charts
1. 5m chart of BINANCE:AXSUSDTPERP using Trend Splitter (144, 2.618, Normal, 55) and TradeChartist Momentum Drift Oscillator (144 with Drift Visualizer). The Trend Splitter and MDO combo work brilliantly on Lower Time Frames and even on 15s/30s charts with MDO length of 144.
Best Practice - Always wait for a very long trend (over 337 bars on both MDO and Trend Splitter before taking a reverse trend trade at either Exhaustion or Super OB/OS zones of MDO) when using very low time-frames.
2. 5m chart of NYSE:PLTR using Trend Splitter (144, 3.618, Normal, 55) connected to TradeChartist Fib Master to plot Automatic Fibs. Just use Trend Identifier of Trend Splitter from Fib Master signal dropdown from settings, having both scripts active on chart.
3. Daily chart of OANDA:XAUUSD using Trend Splitter (using only Mean Bands - Weighted/144) to spot areas of support and resistance at Mean Bands.
Best Practice - Mean Bands can also act as confirmation indicator when used with other Trading View Indicators like RSI, Stohastic, Bollinger Bands etc.
4. Daily chart of COINBASE:ETHUSD using Trend Splitter (55, 0.618, Weighted, 55) connected to TradeChartist Plug and Trade to show Trend Splitter based Entries with Targets and Past Performance to assess the settings parameters in Trend Splitter. Just use Trend Identifier of Trend Splitter from Plug and Trade signal dropdown from settings, having both scripts active on chart.
===================================================================================================================
Best Practice: Test with different settings first using Paper Trades before trading with real money
===================================================================================================================
TRADE WAR ZONESAbout the Indicator:
This indicator is includes moving average ribbons, signal line, unique price action and support and resistance. I will explain a bit about everything.
Moving average ribbons:
We take 2 inputs from user. One is the length of minimum moving average line and other is length of maximum moving average line. We plot total 8 ema in between these 2 lengths, with equal distribution. User can control the min and max length but he cannot change its color or shade.
Signal Line:
Here different combination of multiple ema’s are used. And its outcome is this signal line. This signal line color tells you the strength of the trend. Darker the color, higher the trend. When the trend changes, color also changes slowly from green to red or vice versa. This signal line is used to identify the trend and its momentum. We take “EMA length” as a input from user. This input is used to calculate signal lines.
Price action:
A Unique price action method is used here , to identify the price momentum. If it indicates the price momentum to be upside then whole candle color will become blue, if it indicates down then candle color becomes red and if it indicates sideways then color becomes black. We don’t take anything as input here. This price action works in any timeframe.
Support and resistance:
We take “Number of candles on left” and “number of candles on right” as input. We take highs and lows of n candle to left and n candle to right. And plot dotter lines. All highs are blue colored dotted line and lows are red colored dotted line. When high or low is broken, a new dotted line starts forming. This helps you to find higher highs and lower lows. And these lines work as support and resistance.
Apart from this you can find green and red colored arrows:
-Whenever signal line crosses above Slow ema , a dark green color arrow below candle is formed
--Whenever signal line crosses below Slow ema , a dark red color arrow above candle is formed
--When ema of (least length MA) crosses above ema of (max length MA) , a light green color arrow below candle is formed
--When ema of (least length MA) crosses below ema of (max length MA) , a light red color above below candle is formed
DM-130 EDGE SignalThe DM-130 EDGE is a price action trading signal indicator. There is no need for downloading nor installing. It is an effective signal indicator that has proven to be successful in trading. We will help you set it up within minutes so that you can start trading immediately. It works in trading most markets!
How To Use The DM-130 EDGE:
For a BUY, the signal will display a blue arrow below the candle stick facing upwards when there is a buying opportunity, a pullback or a bullish move in the market.
For a SELL, the signal will display a red arrow above the candle stick facing downwards when there is a selling opportunity, a pullback or a bearish move in the market.
Tradingview Account Level: All Users
The indicator appears once or twice during the UK trading sessions and works best in at confluence points:
1. A Trend Line
2. A Support or Resistant Level
3. Supply or Demand Zone
4. Off Pivots
5. Off a Fibonacci Level
6. In Trend Direction
Best Pair: GBP/USD
Best Trading Times: UK Sessions
How To Set Alerts:
Click on the Alerts button on the charts
Under 'Condition', change from the currency pair displayed to 'DM-130 EDGE Signal'
Then under 'Option' click on 'Once Per Bar'.
Make sure that the you tick the boxes that appeal to you under the 'Alert Actions' part (usually 'Notify on App' and 'Show Popup') and then click the 'Create' button at the bottom.
If you tick the 'Notify on App' box under 'Alerts Actions' the alerts would appear on your smart device if you have the Tradingview App set on the device.
Amongst many great benefits you will 1. Have the confidence to enter trades 2. Have the ability to enter trades after a pullback (something only experienced traders can spot that) and even more importantly 3. You can trade profitably with consistency even if you get stopped out a few times because the wins are usually bigger!
This strategy signal will analyse price action automatically when there is a high probability of a profitable trade to enter.
It does work on most markets. We recommend using the 30m charts as it works best with this indicator. This signal is ideal for intraday/day trading.
This signal allows you to enter trades with confidence.
Use the link below to obtain access to this indicator or you can send us a private message on Tradingview.
The SetUpps Strategy EDGE SignalThe SetUpps Trading Strategy HM-415 EDGE, DM-130 EDGE and MD-11 are price action trading signal indicators. There is no need for downloading nor installing. It is an effective signal indicator that has proven to be successful in trading. We will help you set it up within minutes so that you can start trading immediately. It works in trading most markets!
How To Use SetUpps Strategy Signals:
For a BUY, the SetUpps Signal will display a blue arrow below the candle stick facing upwards when there is a buying opportunity, a pullback or a bullish move in the market.
For a SELL, the SetUpps Signal will display a red arrow above the candle stick facing downwards when the is a selling opportunity, a pullback or a bearish move in the market.
The indicator works best in at confluence points:
1. A Trend Line
2. A Support or Resistant Level
3. Supply or Demand Zone
4. Off Pivots
5. Off a Fibonacci Level
How To Set Alerts:
Click on the Alerts button on the charts
Under 'Condition', change from the currency pair displayed to 'The SetUpps Strategy EDGE Signal'
Then under 'Option' click on 'Once Per Bar'.
Make sure that the you tick the boxes that appeal to you under the 'Alert Actions' part (usually 'Notify on App' and 'Show Popup') and then click the 'Create' button at the bottom.
If you tick the 'Notify on App' box under 'Alerts Actions' the alerts would appear on your smart device if you have the Tradingview App set on the device.
Amongst many great benefits you will 1. Have the confidence to enter trades 2. Have the ability to enter trades after a pullback (something only experienced traders can spot that) and even more importantly 3. You can trade profitably with consistency even if you get stopped out a few times because the wins are usually bigger!
The SetUpps Trading Strategy signals will analyse price action automatically when there is a high probability of a profitable trade to enter.
It does work on most markets on all time charts but we will give you our recommended time frames that works best with this indicator.
The SetUpps Strategy signal is ideal for scalping, intraday and for swing trading.
This signal allows you to enter trades with confidence.
Disclaimer:
Previous performances are not an indication of any future performances. We are not investment adviser nor do we advice you on trading. All our opinions, information, analysis, prices and/or market commentary are not advice about investments. Any SetUpps™ Trading staff or partners or representatives can not warrant the completeness, accuracy or timeliness of any information we have supplied and we shall not be liable for any losses or damages, consequential or otherwise, incurred by the use of our products which may be the result of relying on the SetUpps™ Trading strategy. © 2020 SetUpps™ Trading.
The SetUpps™ Trading indicator is built for use on Tradingview. SetUpps™ Trading is not part of Tradingview.
Price & Volume Action_KMThis Indicator is a volume indicator but with price action ...
Dark Blue = Price and Volume both increasing
Light Blue = Price is increasing and Volume is decreasing
Dark Pink = Price and Volume both decreasing
Light Pink = Price is decreasing and Volume is increasing
[KICK] NutshellThe Nutshell indicator gives you a true read of the market at quick glance – “in a nutshell”. The indicator contains components for volatility, momentum, trend strength, volume flow, price divergence detection, and impulsive move detection. This allows you to discern improved entry and exit points and accommodates many trading styles, systems, and strategies. It will work with most instruments and timeframes (though a few of the components do require volume, so some things like indexes won't work). The specific components of the indicator are:
Price action volatility indicator (the background zig-zags that are purple, orange, red, and pink). We are using a percentile ranking of ATR which gives a broader picture of the price volatility intra-bar than something like historical volatility percentile because it encompasses the range of price action and not simply the close of each bar. It is typically best to enter trades in the purple zone and “ride them out” through the higher volatility intervals.
Low volatility warning indicator (the bright green background highlights). When the ATR-PR is critically low, that means price volatility can only go on way (expand). These warnings are key to volatility strategies where knowing large moves are imminent is critical. While these warnings do not indicate the direction of the imminent move, there are plenty of other directional indicators present.
Gravity Tunnel Squeeze indicator (the yellow dots down the center-line, culminating in a yellow background highlight upon release). This is a slightly different take on the Momentum Squeeze indicator. In the traditional implementation a squeeze occurs when Keltner Channels move inside Bollinger Bands. In our implementation we use the Center of Gravity as a basis and measure when the Z-Score Deviation moves inside an ATR multiple. At the point of release you typically see an expansion of volatility, though often the signal presents earlier than an ATR-PR expansion. The longer the price action was under the squeeze the longer/farther the released price action is likely to go.
Swing Momentum indicator (white line with various red/green dots on it). The swing momentum indicator uses stochastic oscillators in the style of the ever-popular “Wave Trend” indicator to give a responsive read on the price action momentum. Green and Red dots indicate a change in direction of the momentum and when these occur in the extreme the center of the dot will be a black cross. Usually these extreme direction changes denote larger trend changes.
Momentum velocity indicator (blue area fill). This indicator can be used with the swing momentum line to determine how close/far the next direction change is away (every time the blue line crosses the zero-line a direction change occurs). The steeper the slope of this line also gives an indication of how fast the swing momentum is accelerating or decelerating.
Volatility Adjusted Volume Waves (the red/green dots across the top of the indicator) denote the current direction of price action based on cumulative volume weighted based on the ATR of the associated price action. While they are slower to respond than some of the other directional momentum components of this indicator, they can be treated as a pretty strong (conservative) confirmation of trend direction.
Strength of Trend (the blue/orange dots across the bottom of the indicator) is indicated with a Leaf-West variant of the ADX. Basically, if you see orange the price action is considered choppy and if it’s blue it’s trending. Depending on your time frame you can interpret these a bit differently. On smaller time frames you might consider the orange areas no-trade zones and wait until it turns blue.
Topping or Bottoming moves (Red triangles at the top or Green triangles at the bottom). We use a series of methods to detect likely reversal points (including checks for 10+ oscillator/price divergences). Since divergence is only confirmed after new local price highs/lows are established these reversal points won’t always be accurate, but we want to provide the earliest warning possible. Keep this in mind when taking action on them and wait a few bars for confirmation to be more conservative.
Pump and Dump warnings (red/green spirals that appear in the center of the indicator). Using 3rd generation moving average stochastics we get a very sensitive read on when they form patterns that typically precede large price action movements. These patterns work better for some markets than others so you will have to test with your instrument and timeframe to see how accurate they are for you. If you get one of these in conjunction with a red/green triangle and/or just after a low volatility or GT-Sqz release highlight, then buckle up.
The indicator also includes a number of custom alert conditions (all related to the above indicator components) that can be used to create alerts.
Use the link below to watch a tutorial video, request a trial, or purchase for access.
Main Indicators @ MadnessCryptoInspired by veteran contributors of tradingview
Indicators list:
1. Main indicators: Moving average collection, Ichimoku, Bollinger Bands, fibonanci, simplize candlestick price action...
2. Price Action indicators: Candlesticks of (almost) any kinds. Harmonic Patterns: ABCD, Alt Bat, Butterfly, Crab, Wolf Wave, Head and Shoulders, Triangle...
3. Advanced indicators: top/bot finder, breakout detector, unpopular indicators
4. Signal & backtest tools: focus on two main factors: percent profitable & profit factor
Cheers,
Madness Crypto
-----------------------------------------------------------
Incase if those's scripts are useful, you can buy me a coffee
ETH & ERC20 tokens: 0xA2F57Cc46A5268F16A0224a81EDe7154218Ce890
Bitcoin: 1PTSbWK6snVSULBXhfx5TD9pJkkYCDe4PC
Binance & BEP2 tokens: bnb1tlxgpnguzq0w3w6myhd0t3d2j9wqd2pzpkudpc
AutoUFOs (patented)█ OVERVIEW:
AutoUFOs is a cutting-edge trading tool designed to enhance your trading precision and to save you trading time. With its unique patented technology, AutoUFOs analyzes various financial markets, identifying potential Un-Filled Orders (UFOs) and plotting them on your charts. By leveraging these UFOs, you can define precise entry, stop, and target points, giving you a strategic edge in your trading decisions.
█ CONCEPTS:
AutoUFOs identifies price regions with pending buy and sell orders
UFOs on the charts represent these regions and indicate potential upcoming turning points
UFOs help define more precise entry, stop, and target points
Enhances trading precision and improves performance
Useful for all styles: long-term, intermediate-term, short-term
Powerful for commercial hedging strategies
Time interval flexibility for different trading styles
Benefits options traders in identifying powerful strike prices
Empowers users to make informed trading decisions
█ WITH MORE DETAIL:
AutoUFOs goes beyond simple technical analysis and plots UFO Bands on your charts. These UFO Bands visually represent the price regions where potential buy and sell orders are waiting to be executed. The intensity of the color within the bands provides a valuable indication of the potential strength of the unfulfilled orders in those regions.
In addition to UFO Bands, AutoUFOs introduces round Flying Saucers to enhance your understanding of market dynamics. These Flying Saucers highlight the areas on the chart with the highest concentration of UFOs. By pinpointing these areas, you gain deeper insights into where the market is likely to react and experience significant movement.
The combination of UFO Bands and Flying Saucers provides a comprehensive visual representation of potential order flow and market sentiment. Traders can leverage this information to make more informed decisions about entry and exit points, allowing for greater precision in their trading strategies.
Whether you're a technical analyst seeking to identify price levels where the market is likely to bounce or a trend follower looking for confirmation of market momentum, AutoUFOs empowers you with detailed visuals to support your trading decisions.
█ BEHIND THE SCENES:
AutoUFOs employs a unique and patented approach to identifying Un-Filled Orders (UFOs) in the market. Unlike traditional methods that rely on current order book data, AutoUFOs takes into account the intricate nuances of market dynamics, considering the intentions and strategies of larger market players who employ sophisticated algorithms to execute their orders, such as iceberg algos. By doing so, AutoUFOs uncovers potential UFOs that are likely to remain in the market based on the underlying reasons behind their placement.
One key aspect of AutoUFOs' analysis is the recognition of price levels that hold significance due to the presence of UFOs. These levels represent areas where market makers, for instance, strategically hedge their positions in response to large orders that were only partially filled upon injection into the marketplace. AutoUFOs diligently identifies these signs, allowing traders to gain insights into the potential existence of unfulfilled orders that can significantly impact market behavior.
AutoUFOs operates on a distinctive methodology that sets it apart from traditional approaches. Notably, it eschews the use of order book information, relying solely on level 1 data for its analysis. This unconventional approach seeks out subtle indications that hint at the existence of Un-Filled Orders (UFOs). By examining these signs, AutoUFOs uncovers potential price levels where UFOs may be lurking.
Consider, for instance, a scenario where a market experiences a sudden and pronounced price movement. In such cases, AutoUFOs directs its attention to the origin of the movement, recognizing it as a crucial area to investigate. The underlying rationale is simple yet profound: if all orders had been filled at the origin, the price would have stagnated, resulting in a sideways price action. However, the occurrence of a significant movement suggests that the market encountered a scarcity of buyers (for a downward movement) or sellers (for an upward movement) at that specific price level. This scarcity implies the presence of Un-Filled Orders that remained unfilled from the outset. By diligently identifying such scenarios, AutoUFOs initiates additional analytical processes that consider factors such as volume ratios, tick ratios range ratios, etc., providing an evaluation of the expected quantity of potential UFOs.
This example illuminates the essence of the concept previously mentioned—AutoUFOs diligently "looks for signs" that point towards the potential existence of UFOs. By systematically examining various market dynamics, AutoUFOs unravels hidden opportunities that arise from unfulfilled orders, leveraging metrics like volume ratios and tick ratios to gauge the anticipated abundance of UFOs. Through this meticulous and sophisticated analysis, AutoUFOs empowers traders with invaluable insights into the market, enabling them to make more informed decisions based on these hidden signals.
Once this initial analysis is complete and multiple relevant price points are identified based on the UFOs detected, AutoUFOs delves further by employing its advanced technology to retrospectively evaluate the UFO Performance. This evaluation assesses the characteristics and attributes that contributed to the effectiveness of specific UFOs in the past. By unraveling these statistical insights, AutoUFOs identifies the most relevant UFOs that are likely to retain their predictive power into the future.
Through its scientific and technical methodology, AutoUFOs offers traders a powerful way to navigate the complexities of the market for informed decision-making.
█ FEATURES:
Precise Trade Entries: Utilize the power of UFOs to identify optimal moments/prices to enter trades with confidence
Strategic Exits: Plan your exits by leveraging the UFOs' reaction points, maximizing your profits and minimizing risk
Flexible Time Intervals: Apply AutoUFOs to different time intervals, from seconds to monthly bars, range bars, etc. tailoring it to your preferred trading style
Options Trading Advantage: For options traders, AutoUFOs helps identify price levels that are unlikely to be reached, allowing you to profit from selling out-of-the-money options and collecting premiums
█ HOW TO USE:
Follow the author’s instructions to request access to this invite-only script or follow the links in the vendor’s signature field that appears under this description
Add AutoUFOs to your TradingView chart by clicking on Indicators > Invite-only scripts > AutoUFOs
Select the market and timeframe you want to analyze and make sure you have adjusted the calibration settings to your liking
For long trades, you may consider buying within a Green UFO and sell within a Red UFO
For short trades, you may consider selling within a Red UFO and buy within a Green UFO
Options traders can utilize UFOs to identify areas for selling options with limited risk or to select their strike prices
Consider the color intensity of UFOs for potential trade strength
Enhance your current trading methodology by combining UFOs with what you currently do
Plan your trades based on the Un-Filled Orders identified by AutoUFOs and the rules of your trading plan
We strongly recommend you to read the HOW-TO idea on " HOW-TO Add Precision To Entries & Exits With AutoUFOs (patented) " which is linked below as a related idea
█ LIMITATIONS:
AutoUFOs should not be used as the sole basis for trading decisions
The tool is not infallible and should be used in conjunction with other market analysis tools, especially when it comes to defining the current market condition, for which we prefer AutoClimate
Thank you for considering AutoClimate as your ultimate market environment indicator. We hope it enhances your trading experience and leads to greater success in your trades
═════════════════════════════════════════════════════════════════════════
Disclaimer: Trading involves risk and each investor/trader must determine if it is a suitable investment. Past performance is not indicative of future results. You accept responsibility for your actions and agree not to hold the author/developer liable for any outcomes.
No Service Guarantee: The author/developer makes no guarantee that the TradingView indicators and services will be uninterrupted, timely, secure, accurate, or error-free. The market data may be delayed, inaccurate, or contain errors, and the developer is not liable for any issues that arise.
Calibration: The user is responsible for calibrating the indicator as different parameters can produce different results. The author/developer is not responsible for any outcomes resulting from the user's calibration.
Testimonials: Testimonials are subjective and not independently verified.
Kernel Market Dynamics🔍 Kernel Market Dynamics Pro - Advanced Distribution Divergence Detection System
OVERVIEW
Kernel Market Dynamics Pro (KMD Pro) is a revolutionary market regime detection system that employs Maximum Mean Discrepancy (MMD) - a cutting-edge statistical technique from machine learning - to identify when market behavior diverges from its recent historical distribution patterns. The system transforms complex statistical divergence analysis into actionable trading signals through kernel density estimation, regime classification algorithms, and multi-dimensional visualization frameworks that reveal hidden market transitions before traditional indicators can detect them.
WHAT MAKES IT ORIGINAL
While conventional indicators measure price or momentum divergence, KMD Pro analyzes distribution divergence - detecting when the statistical properties of market returns fundamentally shift from their baseline state. This approach, borrowed from high-frequency trading and quantitative finance, uses kernel methods to map market data into high-dimensional feature spaces where regime changes become mathematically detectable. The system is the first TradingView implementation to combine MMD with real-time regime visualization, making institutional-grade statistical arbitrage techniques accessible to retail traders.
HOW IT WORKS (Technical Methodology)
1. KERNEL DENSITY ESTIMATION ENGINE
Maximum Mean Discrepancy (MMD) Calculation:
The core innovation - measures distance between probability distributions:
• Maps return distributions to Reproducing Kernel Hilbert Space (RKHS)
• Computes empirical mean embeddings for reference and test windows
• Calculates supremum of mean differences across all RKHS functions
• MMD = ||μ_P - μ_Q||_H where H is the RKHS induced by kernel k
Three Kernel Functions Available:
RBF (Radial Basis Function) Kernel:
• k(x,y) = exp(-||x-y||²/2σ²)
• Gaussian kernel with smooth, infinite-dimensional feature mapping
• Bandwidth σ controls sensitivity (0.5-10.0 user configurable)
• Optimal for normally distributed returns
• Default choice providing balanced sensitivity
Laplacian Kernel:
• k(x,y) = exp(-|x-y|/σ)
• Exponential decay with heavier tails than RBF
• More sensitive to outliers and sudden moves
• Ideal for volatile, news-driven markets
• Faster regime shift detection at cost of more false positives
Cauchy Kernel:
• k(x,y) = 1/(1 + ||x-y||²/σ²)
• Heavy-tailed distribution from statistical physics
• Robust to extreme values and fat-tail events
• Best for cryptocurrency and emerging markets
• Most stable signals with fewer whipsaws
Implementation Details:
• Reference window: 30-300 bars of baseline distribution
• Test window: 10-100 bars of recent distribution
• Double-sum kernel matrix computation with O(m*n) complexity
• EMA smoothing (period 3) reduces noise in raw MMD
• Real-time updates every bar with incremental calculation
2. REGIME DETECTION FRAMEWORK
Three-State Regime Classification:
STABLE Regime (MMD < threshold):
• Market follows historical distribution patterns
• Mean-reverting behavior dominates
• Low probability of breakouts
• Reduced position sizing recommended
• Visual: Subtle background coloring
SHIFTING Regime (threshold < MMD < 2×threshold):
• Distribution divergence detected
• Transition period with directional bias emerging
• Optimal entry zone for trend-following
• Increased volatility expected
• Visual: Yellow/orange zone highlighting
EXTREME Regime (MMD > 2×threshold):
• Severe distribution anomaly
• Black swan or structural break potential
• Maximum caution required
• Consider hedging or exit
• Visual: Red/magenta warning zones
Adaptive Threshold System:
• Base threshold: 0.05-1.0 (default 0.15)
• Volatility adjustment: ±30% based on ATR ratio
• Regime persistence: 20-bar minimum for stability
• Cooldown periods prevent signal clustering
3. DIRECTIONAL BIAS DETERMINATION
Multi-Factor Direction Analysis:
Distribution Mean Comparison:
• Recent mean = SMA(normalized_returns, test_window)
• Reference mean = SMA(normalized_returns, reference_window)
• Direction = sign(recent_mean - reference_mean)
Momentum Confluence:
• Price momentum = close - close
• Volume momentum = volume/SMA(volume, reference_window)
• Weighted composite direction score
Trend Alignment:
• Fast EMA vs Slow EMA positioning
• Slope analysis of regression line
• Multi-timeframe bias confirmation (optional)
4. SIGNAL GENERATION ARCHITECTURE
Entry Signal Logic:
Stage 1 - Regime Shift Detection:
• MMD crosses above threshold
• Sustained for minimum 2 bars
• No signals within cooldown period
Stage 2 - Direction Confirmation:
• Distribution mean aligns with momentum
• Volume ratio > 1.0 (optional)
• Price above/below VWAP (optional)
Stage 3 - Risk Assessment:
• Calculate ATR-based stop distance
• Verify risk/reward ratio > 1.5
• Check for nearby support/resistance
Stage 4 - Signal Generation:
• Long: Regime shift + bullish direction
• Short: Regime shift + bearish direction
• Extreme: MMD > 2×threshold warning
5. PROBABILITY CLOUD VISUALIZATION
Adaptive Confidence Intervals:
• Standard deviation multiplier = 1 + MMD × 3
• Inner band: ±0.5 ATR × multiplier (68% probability)
• Outer band: ±1.0 ATR × multiplier (95% probability)
• Width expands with divergence magnitude
• Real-time adjustment every bar
Interpretation:
• Narrow cloud: Low uncertainty, stable regime
• Wide cloud: High uncertainty, shifting regime
• Asymmetric cloud: Directional bias present
6. MOMENTUM FLOW VECTORS
Three-Style Momentum Visualization:
Flow Arrows:
• Length proportional to momentum strength
• Width indicates confidence (1-3 pixels)
• Angle shows rate of change
• Frequency: Every 5 bars or on events
Gradient Bars:
• Vertical lines from price
• Height = momentum/ATR ratio
• Opacity based on strength
• Continuous flow indication
Momentum Ribbon:
• Envelope around price action
• Expands in momentum direction
• Color intensity shows strength
7. SIGNAL CONNECTION SYSTEM
Relationship Mapping:
• Links consecutive signals with lines
• Solid lines: Same direction (continuation)
• Dotted lines: Opposite direction (reversal)
• Maximum 10 connections maintained
• Distance limit: 100 bars
Purpose:
• Identifies signal clusters
• Shows trend development
• Reveals regime persistence
• Confirms directional bias
8. REGIME ZONE MAPPING
Unified Zone Visualization:
• Main zones: Full regime periods (entry to exit)
• Emphasis zones: Specific trigger points
• Historical memory: Last 20 regime shifts
• Color gradient based on intensity
• Border style indicates zone type
Zone Analytics:
• Duration tracking
• Maximum excursion
• Retest probability
• Support/resistance conversion
9. DYNAMIC RISK MANAGEMENT
ATR-Based Position Sizing:
• Stop loss: 1.0 × ATR from entry
• Target 1: 2.0 × ATR (2R)
• Target 2: 4.0 × ATR (4R)
• Volatility-adjusted scaling
Visual Target System:
• Entry pointer lines
• Target boxes with prices
• Stop boxes with invalidation
• Real-time P&L tracking
10. PROFESSIONAL DASHBOARD
Real-Time Metrics Display:
Primary Metrics:
• Current MMD value and threshold
• Risk level (MMD/threshold ratio)
• Velocity (rate of change)
• Acceleration (second derivative)
Signal Information:
• Active signal type and entry
• Stop loss and targets
• Current P&L percentage
• Bars since signal
Market Metrics:
• Directional bias (BULL/BEAR)
• Confidence percentage
• Win rate statistics
• Signal count tracking
Visual Design:
• Four position options
• Three size modes
• Five color themes
• Gauge visualizations
• Status banners
11. MMD INFO PANEL
Floating Statistics:
• Compact 3×4 table
• MMD vs threshold comparison
• Velocity with direction arrows
• Current bias indication
• Always-visible reference
FIVE COLOR THEMES
Quantum: Cyan/Magenta/Yellow - Modern, high contrast, optimal visibility
Matrix: Green/Red - Classic terminal aesthetic, traditional
Fire: Orange/Gold/Red - Warm spectrum, energetic feel
Aurora: Northern lights palette - Unique, beautiful gradients
Nebula: Deep space colors - Purple/Blue, futuristic
HOW TO USE
Step 1: Select Your Kernel
• RBF for normal markets (stocks, forex majors)
• Laplacian for volatile markets (small-caps, news-driven)
• Cauchy for fat-tail markets (crypto, emerging markets)
Step 2: Configure Bandwidth
• 0.5-2.0: Scalping (high sensitivity)
• 2.0-5.0: Day trading (balanced)
• 5.0-10.0: Swing trading (smooth signals)
Step 3: Set Analysis Windows
• Reference: 3-5× your holding period
• Test: Reference ÷ 3 approximately
• Adjust based on timeframe
Step 4: Calibrate Threshold
• Start with 0.15 default
• Increase if too many signals
• Decrease for earlier detection
Step 5: Enable Visuals
• Probability Cloud for volatility assessment
• Momentum Flow for direction confirmation
• Regime Zones for historical context
• Signal Connections for trend visualization
Step 6: Monitor Dashboard
• Check MMD vs threshold
• Verify regime state
• Confirm directional bias
• Review confidence metrics
Step 7: Execute Signals
• Wait for triangle markers
• Verify regime shift confirmed
• Check risk/reward setup
• Enter at close or next open
Step 8: Manage Position
• Place stop at calculated level
• Scale out at Target 1 (2R)
• Trail remainder to Target 2 (4R)
• Exit if regime reverses
OPTIMIZATION GUIDE
By Market Type:
Forex Majors:
• Kernel: RBF
• Bandwidth: 2.0-3.0
• Windows: 100/30
• Threshold: 0.15
Stock Indices:
• Kernel: RBF
• Bandwidth: 3.0-4.0
• Windows: 150/50
• Threshold: 0.20
Cryptocurrencies:
• Kernel: Cauchy
• Bandwidth: 2.5-3.5
• Windows: 100/30
• Threshold: 0.10-0.15
Commodities:
• Kernel: Laplacian
• Bandwidth: 2.0-3.0
• Windows: 200/60
• Threshold: 0.15-0.25
By Timeframe:
Scalping (1-5m):
• Test Window: 10-20
• Reference: 50-100
• Bandwidth: 1.0-2.0
• Cooldown: 5-10 bars
Day Trading (15m-1H):
• Test Window: 30-50
• Reference: 100-150
• Bandwidth: 2.0-3.0
• Cooldown: 10-20 bars
Swing Trading (4H-Daily):
• Test Window: 50-100
• Reference: 200-300
• Bandwidth: 3.0-5.0
• Cooldown: 20-50 bars
ADVANCED FEATURES
Multi-Timeframe Capability:
• HTF MMD calculation via security()
• Regime alignment across timeframes
• Fractal analysis support
Statistical Arbitrage Mode:
• Pair trading applications
• Spread divergence detection
• Cointegration breaks
Machine Learning Integration:
• Export signals for ML training
• Regime labels for classification
• Feature extraction support
PERFORMANCE METRICS
Computational Complexity:
• MMD calculation: O(m×n) where m,n are window sizes
• Memory usage: O(m+n) for kernel matrices
• Update frequency: Every bar (real-time)
• Optimization: Incremental updates where possible
Typical Signal Frequency:
• Conservative settings: 2-5 signals/week
• Balanced settings: 5-10 signals/week
• Aggressive settings: 10-20 signals/week
Win Rate Expectations:
• Trend following mode: 40-50% wins, 2:1 reward/risk
• Mean reversion mode: 60-70% wins, 1:1 reward/risk
• Depends heavily on market conditions
IMPORTANT DISCLAIMERS
• This indicator detects statistical divergence, not future price direction
• MMD measures distribution distance, not predictive probability
• Past regime shifts do not guarantee future performance
• Kernel methods are descriptive statistics, not AI predictions
• Requires minimum 100 bars historical data for stability
• Performance varies significantly across market conditions
• Not suitable for illiquid or heavily manipulated markets
• Always use proper risk management and position sizing
• Backtest thoroughly on your specific instruments
• This is an analysis tool, not a complete trading system
THEORETICAL FOUNDATION
The Maximum Mean Discrepancy was introduced by Gretton et al. (2012) as a kernel-based statistical test for comparing distributions. In financial markets, we adapt this technique to detect when return distributions shift, indicating potential regime changes. The mathematical rigor of MMD provides a robust, non-parametric approach to identifying market transitions without assuming specific distribution shapes.
SUPPORT & UPDATES
• Questions or configuration help via TradingView messaging
• Bug reports addressed within 48 hours
• Feature requests considered for monthly updates
• Video tutorials available on request
• Join our community for strategy discussions
FINAL NOTES
KMD Pro represents a paradigm shift in technical analysis - moving from price-based indicators to distribution-based detection. By measuring statistical divergence rather than price divergence, the system identifies regime changes that precede traditional breakouts. This anticipatory capability, combined with comprehensive visualization and risk management, provides traders with an institutional-grade toolkit for navigating modern market dynamics.
Remember: The edge comes not from the indicator alone, but from understanding when market distributions diverge from their normal state and positioning accordingly. Use KMD Pro as part of a complete trading strategy that includes fundamental analysis, risk management, and market context.
CHOCH + FVG Signals [30m Optimized]CHOCH + FVG Signals
🎯 What It Does:
This script automatically scans your chart for high-probability Smart Money Concepts (SMC) setups based on two key institutional trading principles:
Change of Character (CHOCH) – A shift in market structure signaling potential reversal
Fair Value Gap (FVG) – An imbalance zone where price moved too fast, often acting as support/resistance
When both conditions align, the script plots clear Buy (▲) and Sell (▼) signals directly on your chart — ideal for intraday trading on the 30-minute timeframe (but works on any timeframe).
✅ Key Features:
🔹 Visual Fair Value Gaps
Green shaded zones = Bullish FVGs (potential support)
Red shaded zones = Bearish FVGs (potential resistance)
Toggle on/off in settings
🔹 Smart CHOCH Detection
Detects breaks of recent swing highs/lows with proper context
Avoids false signals by confirming prior price structure
🔹 Clear Trade Signals
Green ▲ below bar = Buy signal (Bullish CHOCH + FVG confluence)
Red ▼ above bar = Sell signal (Bearish CHOCH + FVG confluence)
🔹 Customizable Filters
Option to require FVG for a signal (recommended for higher accuracy)
Adjust sensitivity via swing detection settings (default optimized for 30m)
🔹 Alert-Ready
Built-in alert conditions for instant notifications on TradingView mobile/desktop
⚙️ How to Use:
Apply to a 30-minute chart (e.g., EURUSD, Gold, NAS100, BTC)
Wait for at least 50–100 bars to load (so swing points appear)
Look for:
A green triangle (▲) → consider long entry near FVG support
A red triangle (▼) → consider short entry near FVG resistance
Confirm with price action: Wait for a strong candle close or rejection at the FVG zone
Use stop-loss below/above the FVG and target recent liquidity pools
💡 Pro Tip: Best used during high-volume sessions (e.g., London Open 7–10 AM UTC, NY Open 12:30–3:30 PM UTC).
🛠️ Settings (Inputs):
Show Fair Value Gaps
✅ Enabled
Visualize FVG zones
Max FVG History
100 bars
Prevent chart clutter
Require FVG for Signal?
✅ Enabled
Higher-quality setups (disable to test CHOCH-only)
⚠️ Important Notes:
This is a signal generator, not financial advice. Always manage risk.
Works best in trending or breaking markets — avoid during low-volatility ranges.
FVGs may get filled (tested) before price continues — patience improves results.
Backtest on historical data before live trading.
📣 Ideal For:
Retail traders learning Smart Money Concepts (SMC)
Price action traders seeking institutional-level confluence
Intraday scalpers & swing traders on 30m–1H timeframes
MESA Adaptive Ehlers Flow | AlphaNattMESA Adaptive Ehlers Flow | AlphaNatt
An advanced adaptive indicator based on John Ehlers' MESA (Maximum Entropy Spectrum Analysis) algorithm that automatically adjusts to market cycles in real-time, providing superior trend identification with minimal lag across all market conditions.
🎯 What Makes This Indicator Revolutionary?
Unlike traditional moving averages with fixed parameters, this indicator uses Hilbert Transform mathematics to detect the dominant market cycle and adapts its responsiveness accordingly:
Automatically detects market cycles using advanced signal processing
MAMA (MESA Adaptive Moving Average) adapts from fast to slow based on cycle phase
FAMA (Following Adaptive Moving Average) provides confirmation signals
Dynamic volatility bands that expand and contract with cycle detection
Zero manual optimization required - the indicator tunes itself
📊 Core Components
1. MESA Adaptive Moving Average (MAMA)
The MAMA is the crown jewel of adaptive indicators. It uses the Hilbert Transform to measure the market's dominant cycle and adjusts its smoothing factor in real-time:
During trending phases: Responds quickly to capture moves
During choppy phases: Smooths heavily to filter noise
Transition is automatic and seamless based on price action
Parameters:
Fast Limit: Maximum responsiveness (default: 0.5) - how fast the indicator can adapt
Slow Limit: Minimum responsiveness (default: 0.05) - maximum smoothing during consolidation
2. Following Adaptive Moving Average (FAMA)
The FAMA is a slower version of MAMA that follows the primary signal. The relationship between MAMA and FAMA provides powerful trend confirmation:
MAMA > FAMA: Bullish trend in progress
MAMA < FAMA: Bearish trend in progress
Crossovers signal potential trend changes
3. Hilbert Transform Cycle Detection
The indicator employs sophisticated DSP (Digital Signal Processing) techniques:
Detects the dominant cycle period (1.5 to 50 bars)
Measures phase relationships in the price data
Calculates adaptive alpha values based on cycle dynamics
Continuously updates as market character changes
⚡ Key Features
Adaptive Alpha Calculation
The indicator's "intelligence" comes from its adaptive alpha:
Alpha dynamically adjusts between Fast Limit and Slow Limit based on the rate of phase change in the market cycle. Rapid phase changes trigger faster adaptation, while stable cycles maintain smoother response.
Dynamic Volatility Bands
Unlike static bands, these adapt to both ATR volatility AND the current cycle state:
Bands widen when the indicator detects fast adaptation (trending)
Bands narrow during slow adaptation (consolidation)
Band Multiplier controls overall width (default: 1.5)
Provides context-aware support and resistance
Intelligent Color Coding
Cyan: Bullish regime (MAMA > FAMA and price > MAMA)
Magenta: Bearish regime (MAMA < FAMA and price < MAMA)
Gray: Neutral/transitional state
📈 Trading Strategies
Trend Following Strategy
The MESA indicator excels at identifying and riding strong trends while automatically reducing sensitivity during choppy periods.
Entry Signals:
Long: MAMA crosses above FAMA with price closing above MAMA
Short: MAMA crosses below FAMA with price closing below MAMA
Exit/Management:
Exit longs when MAMA crosses below FAMA
Exit shorts when MAMA crosses above FAMA
Use dynamic bands as trailing stop references
Mean Reversion Strategy
When price extends beyond the dynamic bands during established trends, look for bounces back toward the MAMA line.
Setup Conditions:
Strong trend confirmed by MAMA/FAMA alignment
Price touches or exceeds outer band
Enter on first sign of reversal toward MAMA
Target: Return to MAMA line or opposite band
Cycle-Based Swing Trading
The indicator's cycle detection makes it ideal for swing trading:
Enter on MAMA/FAMA crossovers
Hold through the detected cycle period
Exit on counter-crossover or band extremes
Works exceptionally well on 4H to Daily timeframes
🔬 Technical Background
The Hilbert Transform
The Hilbert Transform is a mathematical operation used in signal processing to extract instantaneous phase and frequency information from a signal. In trading applications:
Separates trend from cycle components
Identifies the dominant market cycle without curve-fitting
Provides leading indicators of trend changes
MESA Algorithm Components
Smoothing: 4-bar weighted moving average for noise reduction
Detrending: Removes linear price trend to isolate cycles
InPhase & Quadrature: Orthogonal components for phase measurement
Homodyne Discriminator: Calculates instantaneous period
Adaptive Alpha: Converts period to smoothing factor
MAMA/FAMA: Final adaptive moving averages
⚙️ Optimization Guide
Fast Limit (0.1 - 0.9)
Higher values (0.5-0.9): More responsive, better for volatile markets and lower timeframes
Lower values (0.1-0.3): Smoother response, better for stable markets and higher timeframes
Default 0.5: Balanced for most applications
Slow Limit (0.01 - 0.1)
Higher values (0.05-0.1): Less smoothing during consolidation, more signals
Lower values (0.01-0.03): Heavy smoothing during chop, fewer but cleaner signals
Default 0.05: Good noise filtering while maintaining responsiveness
Band Multiplier (0.5 - 3.0)
Adjust based on instrument volatility
Backtest to find optimal value for your specific market
1.5 works well for most forex and equity indices
Consider higher values (2.0-2.5) for cryptocurrencies
🎨 Visual Interpretation
The gradient visualization shows probability zones around the MESA line:
MESA line: The adaptive trend center
Band expansion: Indicates strong cycle detection and trending
Band contraction: Indicates consolidation or ranging market
Color intensity: Shows confidence in trend direction
💡 Best Practices
Let it adapt: Give the indicator 50+ bars to properly calibrate to the market
Combine timeframes: Use higher timeframe MESA for trend bias, lower for entries
Respect the bands: Price rarely stays outside bands for extended periods
Watch for compression: Narrow bands often precede explosive moves
Volume confirmation: Combine with volume for higher probability setups
📊 Optimal Timeframes
15m - 1H: Day trading with Fast Limit 0.6-0.8
4H - Daily: Swing trading with Fast Limit 0.4-0.6 (recommended)
Weekly: Position trading with Fast Limit 0.2-0.4
⚠️ Important Considerations
The indicator needs time to "learn" the market - avoid trading the first 50 bars after applying
Extreme gap events can temporarily disrupt cycle calculations
Works best in markets with detectable cyclical behavior
Less effective during news events or extreme volatility spikes
Consider the detected cycle period for position holding times
🔍 What Makes MESA Superior?
Compared to traditional indicators:
vs. Fixed MAs: Automatically adjusts to market conditions instead of using one-size-fits-all parameters
vs. Other Adaptive MAs: Uses true DSP mathematics rather than simple volatility adjustments
vs. Manual Optimization: Continuously re-optimizes itself in real-time
vs. Lagging Indicators: Hilbert Transform provides earlier trend change detection
🎓 Understanding Adaptation
The magic of MESA is that it solves the eternal dilemma of technical analysis: be fast and get whipsawed in chop, or be smooth and miss the early move. MESA does both by detecting when to be fast and when to be smooth.
Adaptation in Action:
Strong trend starts → MESA quickly detects phase change → Fast Limit kicks in → Early entry
Trend continues → Phase stabilizes → MESA maintains moderate speed → Smooth ride
Consolidation begins → Phase changes slow → Slow Limit engages → Whipsaw avoidance
🚀 Advanced Applications
Multi-timeframe confluence: Use MESA on 3 timeframes for high-probability setups
Divergence detection: Watch for MAMA/price divergences at band extremes
Cycle period analysis: The internal period calculation can guide position duration
Band squeeze trading: Narrow bands + MAMA/FAMA cross = high-probability breakout
Created by AlphaNatt - Based on John Ehlers' MESA research. For educational purposes. Always practice proper risk management. Not financial advice. Always DYOR.
Historical Matrix Analyzer [PhenLabs]📊Historical Matrix Analyzer
Version: PineScriptv6
📌Description
The Historical Matrix Analyzer is an advanced probabilistic trading tool that transforms technical analysis into a data-driven decision support system. By creating a comprehensive 56-cell matrix that tracks every combination of RSI states and multi-indicator conditions, this indicator reveals which market patterns have historically led to profitable outcomes and which have not.
At its core, the indicator continuously monitors seven distinct RSI states (ranging from Extreme Oversold to Extreme Overbought) and eight unique indicator combinations (MACD direction, volume levels, and price momentum). For each of these 56 possible market states, the system calculates average forward returns, win rates, and occurrence counts based on your configurable lookback period. The result is a color-coded probability matrix that shows you exactly where you stand in the historical performance landscape.
The standout feature is the Current State Panel, which provides instant clarity on your active market conditions. This panel displays signal strength classifications (from Strong Bullish to Strong Bearish), the average return percentage for similar past occurrences, an estimated win rate using Bayesian smoothing to prevent small-sample distortions, and a confidence level indicator that warns you when insufficient data exists for reliable conclusions.
🚀Points of Innovation
Multi-dimensional state classification combining 7 RSI levels with 8 indicator combinations for 56 unique trackable market conditions
Bayesian win rate estimation with adjustable smoothing strength to provide stable probability estimates even with limited historical samples
Real-time active cell highlighting with “NOW” marker that visually connects current market conditions to their historical performance data
Configurable color intensity sensitivity allowing traders to adjust heat-map responsiveness from conservative to aggressive visual feedback
Dual-panel display system separating the comprehensive statistics matrix from an easy-to-read current state summary panel
Intelligent confidence scoring that automatically warns traders when occurrence counts fall below reliable thresholds
🔧Core Components
RSI State Classification: Segments RSI readings into 7 distinct zones (Extreme Oversold <20, Oversold 20-30, Weak 30-40, Neutral 40-60, Strong 60-70, Overbought 70-80, Extreme Overbought >80) to capture momentum extremes and transitions
Multi-Indicator Condition Tracking: Simultaneously monitors MACD crossover status (bullish/bearish), volume relative to moving average (high/low), and price direction (rising/falling) creating 8 binary-encoded combinations
Historical Data Storage Arrays: Maintains rolling lookback windows storing RSI states, indicator states, prices, and bar indices for precise forward-return calculations
Forward Performance Calculator: Measures price changes over configurable forward bar periods (1-20 bars) from each historical state, accumulating total returns and win counts per matrix cell
Bayesian Smoothing Engine: Applies statistical prior assumptions (default 50% win rate) weighted by user-defined strength parameter to stabilize estimated win rates when sample sizes are small
Dynamic Color Mapping System: Converts average returns into color-coded heat map with intensity adjusted by sensitivity parameter and transparency modified by confidence levels
🔥Key Features
56-Cell Probability Matrix: Comprehensive grid displaying every possible combination of RSI state and indicator condition, with each cell showing average return percentage, estimated win rate, and occurrence count for complete statistical visibility
Current State Info Panel: Dedicated display showing your exact position in the matrix with signal strength emoji indicators, numerical statistics, and color-coded confidence warnings for immediate situational awareness
Customizable Lookback Period: Adjustable historical window from 50 to 500 bars allowing traders to focus on recent market behavior or capture longer-term pattern stability across different market cycles
Configurable Forward Performance Window: Select target holding periods from 1 to 20 bars ahead to align probability calculations with your trading timeframe, whether day trading or swing trading
Visual Heat Mapping: Color-coded cells transition from red (bearish historical performance) through gray (neutral) to green (bullish performance) with intensity reflecting statistical significance and occurrence frequency
Intelligent Data Filtering: Minimum occurrence threshold (1-10) removes unreliable patterns with insufficient historical samples, displaying gray warning colors for low-confidence cells
Flexible Layout Options: Independent positioning of statistics matrix and info panel to any screen corner, accommodating different chart layouts and personal preferences
Tooltip Details: Hover over any matrix cell to see full RSI label, complete indicator status description, precise average return, estimated win rate, and total occurrence count
🎨Visualization
Statistics Matrix Table: A 9-column by 8-row grid with RSI states labeling vertical axis and indicator combinations on horizontal axis, using compact abbreviations (XOverS, OverB, MACD↑, Vol↓, P↑) for space efficiency
Active Cell Indicator: The current market state cell displays “⦿ NOW ⦿” in yellow text with enhanced color saturation to immediately draw attention to relevant historical performance
Signal Strength Visualization: Info panel uses emoji indicators (🔥 Strong Bullish, ✅ Bullish, ↗️ Weak Bullish, ➖ Neutral, ↘️ Weak Bearish, ⛔ Bearish, ❄️ Strong Bearish, ⚠️ Insufficient Data) for rapid interpretation
Histogram Plot: Below the price chart, a green/red histogram displays the current cell’s average return percentage, providing a time-series view of how historical performance changes as market conditions evolve
Color Intensity Scaling: Cell background transparency and saturation dynamically adjust based on both the magnitude of average returns and the occurrence count, ensuring visual emphasis on reliable patterns
Confidence Level Display: Info panel bottom row shows “High Confidence” (green), “Medium Confidence” (orange), or “Low Confidence” (red) based on occurrence counts relative to minimum threshold multipliers
📖Usage Guidelines
RSI Period
Default: 14
Range: 1 to unlimited
Description: Controls the lookback period for RSI momentum calculation. Standard 14-period provides widely-recognized overbought/oversold levels. Decrease for faster, more sensitive RSI reactions suitable for scalping. Increase (21, 28) for smoother, longer-term momentum assessment in swing trading. Changes affect how quickly the indicator moves between the 7 RSI state classifications.
MACD Fast Length
Default: 12
Range: 1 to unlimited
Description: Sets the faster exponential moving average for MACD calculation. Standard 12-period setting works well for daily charts and captures short-term momentum shifts. Decreasing creates more responsive MACD crossovers but increases false signals. Increasing smooths out noise but delays signal generation, affecting the bullish/bearish indicator state classification.
MACD Slow Length
Default: 26
Range: 1 to unlimited
Description: Defines the slower exponential moving average for MACD calculation. Traditional 26-period setting balances trend identification with responsiveness. Must be greater than Fast Length. Wider spread between fast and slow increases MACD sensitivity to trend changes, impacting the frequency of indicator state transitions in the matrix.
MACD Signal Length
Default: 9
Range: 1 to unlimited
Description: Smoothing period for the MACD signal line that triggers bullish/bearish state changes. Standard 9-period provides reliable crossover signals. Shorter values create more frequent state changes and earlier signals but with more whipsaws. Longer values produce more confirmed, stable signals but with increased lag in detecting momentum shifts.
Volume MA Period
Default: 20
Range: 1 to unlimited
Description: Lookback period for volume moving average used to classify volume as “high” or “low” in indicator state combinations. 20-period default captures typical monthly trading patterns. Shorter periods (10-15) make volume classification more reactive to recent spikes. Longer periods (30-50) require more sustained volume changes to trigger state classification shifts.
Statistics Lookback Period
Default: 200
Range: 50 to 500
Description: Number of historical bars used to calculate matrix statistics. 200 bars provides substantial data for reliable patterns while remaining responsive to regime changes. Lower values (50-100) emphasize recent market behavior and adapt quickly but may produce volatile statistics. Higher values (300-500) capture long-term patterns with stable statistics but slower adaptation to changing market dynamics.
Forward Performance Bars
Default: 5
Range: 1 to 20
Description: Number of bars ahead used to calculate forward returns from each historical state occurrence. 5-bar default suits intraday to short-term swing trading (5 hours on hourly charts, 1 week on daily charts). Lower values (1-3) target short-term momentum trades. Higher values (10-20) align with position trading and longer-term pattern exploitation.
Color Intensity Sensitivity
Default: 2.0
Range: 0.5 to 5.0, step 0.5
Description: Amplifies or dampens the color intensity response to average return magnitudes in the matrix heat map. 2.0 default provides balanced visual emphasis. Lower values (0.5-1.0) create subtle coloring requiring larger returns for full saturation, useful for volatile instruments. Higher values (3.0-5.0) produce vivid colors from smaller returns, highlighting subtle edges in range-bound markets.
Minimum Occurrences for Coloring
Default: 3
Range: 1 to 10
Description: Required minimum sample size before applying color-coded performance to matrix cells. Cells with fewer occurrences display gray “insufficient data” warning. 3-occurrence default filters out rare patterns. Lower threshold (1-2) shows more data but includes unreliable single-event statistics. Higher thresholds (5-10) ensure only well-established patterns receive visual emphasis.
Table Position
Default: top_right
Options: top_left, top_right, bottom_left, bottom_right
Description: Screen location for the 56-cell statistics matrix table. Position to avoid overlapping critical price action or other indicators on your chart. Consider chart orientation and candlestick density when selecting optimal placement.
Show Current State Panel
Default: true
Options: true, false
Description: Toggle visibility of the dedicated current state information panel. When enabled, displays signal strength, RSI value, indicator status, average return, estimated win rate, and confidence level for active market conditions. Disable to declutter charts when only the matrix table is needed.
Info Panel Position
Default: bottom_left
Options: top_left, top_right, bottom_left, bottom_right
Description: Screen location for the current state information panel (when enabled). Position independently from statistics matrix to optimize chart real estate. Typically placed opposite the matrix table for balanced visual layout.
Win Rate Smoothing Strength
Default: 5
Range: 1 to 20
Description: Controls Bayesian prior weighting for estimated win rate calculations. Acts as virtual sample size assuming 50% win rate baseline. Default 5 provides moderate smoothing preventing extreme win rate estimates from small samples. Lower values (1-3) reduce smoothing effect, allowing win rates to reflect raw data more directly. Higher values (10-20) increase conservatism, pulling win rate estimates toward 50% until substantial evidence accumulates.
✅Best Use Cases
Pattern-based discretionary trading where you want historical confirmation before entering setups that “look good” based on current technical alignment
Swing trading with holding periods matching your forward performance bar setting, using high-confidence bullish cells as entry filters
Risk assessment and position sizing, allocating larger size to trades originating from cells with strong positive average returns and high estimated win rates
Market regime identification by observing which RSI states and indicator combinations are currently producing the most reliable historical patterns
Backtesting validation by comparing your manual strategy signals against the historical performance of the corresponding matrix cells
Educational tool for developing intuition about which technical condition combinations have actually worked versus those that feel right but lack historical evidence
⚠️Limitations
Historical patterns do not guarantee future performance, especially during unprecedented market events or regime changes not represented in the lookback period
Small sample sizes (low occurrence counts) produce unreliable statistics despite Bayesian smoothing, requiring caution when acting on low-confidence cells
Matrix statistics lag behind rapidly changing market conditions, as the lookback period must accumulate new state occurrences before updating performance data
Forward return calculations use fixed bar periods that may not align with actual trade exit timing, support/resistance levels, or volatility-adjusted profit targets
💡What Makes This Unique
Multi-Dimensional State Space: Unlike single-indicator tools, simultaneously tracks 56 distinct market condition combinations providing granular pattern resolution unavailable in traditional technical analysis
Bayesian Statistical Rigor: Implements proper probabilistic smoothing to prevent overconfidence from limited data, a critical feature missing from most pattern recognition tools
Real-Time Contextual Feedback: The “NOW” marker and dedicated info panel instantly connect current market conditions to their historical performance profile, eliminating guesswork
Transparent Occurrence Counts: Displays sample sizes directly in each cell, allowing traders to judge statistical reliability themselves rather than hiding data quality issues
Fully Customizable Analysis Window: Complete control over lookback depth and forward return horizons lets traders align the tool precisely with their trading timeframe and strategy requirements
🔬How It Works
1. State Classification and Encoding
Each bar’s RSI value is evaluated and assigned to one of 7 discrete states based on threshold levels (0: <20, 1: 20-30, 2: 30-40, 3: 40-60, 4: 60-70, 5: 70-80, 6: >80)
Simultaneously, three binary conditions are evaluated: MACD line position relative to signal line, current volume relative to its moving average, and current close relative to previous close
These three binary conditions are combined into a single indicator state integer (0-7) using binary encoding, creating 8 possible indicator combinations
The RSI state and indicator state are stored together, defining one of 56 possible market condition cells in the matrix
2. Historical Data Accumulation
As each bar completes, the current state classification, closing price, and bar index are stored in rolling arrays maintained at the size specified by the lookback period
When the arrays reach capacity, the oldest data point is removed and the newest added, creating a sliding historical window
This continuous process builds a comprehensive database of past market conditions and their subsequent price movements
3. Forward Return Calculation and Statistics Update
On each bar, the indicator looks back through the stored historical data to find bars where sufficient forward bars exist to measure outcomes
For each historical occurrence, the price change from that bar to the bar N periods ahead (where N is the forward performance bars setting) is calculated as a percentage return
This percentage return is added to the cumulative return total for the specific matrix cell corresponding to that historical bar’s state classification
Occurrence counts are incremented, and wins are tallied for positive returns, building comprehensive statistics for each of the 56 cells
The Bayesian smoothing formula combines these raw statistics with prior assumptions (neutral 50% win rate) weighted by the smoothing strength parameter to produce estimated win rates that remain stable even with small samples
💡Note:
The Historical Matrix Analyzer is designed as a decision support tool, not a standalone trading system. Best results come from using it to validate discretionary trade ideas or filter systematic strategy signals. Always combine matrix insights with proper risk management, position sizing rules, and awareness of broader market context. The estimated win rate feature uses Bayesian statistics specifically to prevent false confidence from limited data, but no amount of smoothing can create reliable predictions from fundamentally insufficient sample sizes. Focus on high-confidence cells (green-colored confidence indicators) with occurrence counts well above your minimum threshold for the most actionable insights.
ZynAlgo S&R ProZynAlgo S&R Pro™ automatically identifies high-probability support and resistance zones by detecting swing highs and lows, visualizing liquidity areas where large market participants are likely active.
The indicator dynamically draws and updates these levels in real time, providing traders with an instant map of market structure — where price is most likely to react, reverse, or break through.
It’s built for traders who rely on structure-based trading, smart money concepts (SMC), and liquidity-based analysis, offering a clean, efficient, and objective way to view market levels without manual charting.
⚙️ CORE CONCEPT
Markets move through cycles of liquidity — sweeping previous highs and lows before establishing new structure.
S&R Pro captures these key points automatically, creating clear horizontal levels that represent potential liquidity zones and high-probability reaction areas.
Every zone is drawn dynamically using confirmed swing highs and lows, ensuring that the indicator adapts to evolving price action while keeping your charts clean and uncluttered.
🧩 FEATURES
Automatic Detection of swing highs/lows based on user-defined sensitivity
Liquidity Pool Visualization for both buy-side and sell-side zones
Dynamic Extension Lines that update until new structure forms
Customizable Styling: color, line width, and line type
Candle Coloring System to enhance visual clarity of price action
Smart Alerts for liquidity sweeps and swing confirmations
Lightweight & Fast Rendering — optimized for all market types
🧠 HOW TO USE
Add the indicator to your chart and adjust “Left/Right Bar” to control how sensitive swing detection is.
Liquidity lines (red for buy-side, blue for sell-side) will automatically appear and extend until new structure is formed.
Watch how price interacts with these lines — reactions often occur near recent liquidity zones.
Combine with your existing confluence tools such as trend dashboards or volume filters to refine entries and exits.
Set alerts for when liquidity zones are reached or when new swing points form.
📊 INTERPRETATION
🟥 Red Lines: Previous highs, representing buy-side liquidity (potential stop hunts above).
🟦 Blue Lines: Previous lows, representing sell-side liquidity.
🟢 Candle Color Change: Visualizes shifts in short-term momentum relative to previous close.
These levels help traders spot where liquidity sweeps may occur — a key concept in institutional trading and SMC methodology.
⚙️ CUSTOMIZATION
Adjust bar sensitivity to detect major or minor structures
Modify line color, style, and thickness
Toggle swing labels and liquidity visualization
Control candle color behavior (body, border, wick)
🔶 CONCLUSION
We believe that success lies in the association of the user with the indicator, opposed to many traders who have the perspective that the indicator itself can make them become profitable. The reality is much more complicated than that. The aim is to provide an indicator comprehensive, customizable, and intuitive enough that any trader can be led to understand this truth and develop an actionable perspective of technical indicators as support tools for decision making. You can see the Author's instructions below to get instant access to this indicator
🔶 RISK DISCLAIMER
Trading is risky & most day traders lose money. All content, tools, scripts, articles, & education provided by ZynAlgo are purely for informational & educational purposes only. Past performance does not guarantee future results.
QUANTUM MOMENTUMOverview
Quantum Momentum is a sophisticated technical analysis tool designed to help traders identify relative strength between assets through advanced momentum comparison. This cyberpunk-themed indicator visualizes momentum dynamics between your current trading symbol and any comparison asset of your choice, making it ideal for pairs trading, crypto correlation analysis, and multi-asset portfolio management.
Key Features
📊 Multi-Asset Momentum Comparison
Dual Symbol Analysis: Compare momentum between your chart symbol and any other tradable asset
Real-Time Tracking: Monitor relative momentum strength as market conditions evolve
Difference Visualization: Clear histogram display showing which asset has stronger momentum
🎯 Multiple Momentum Calculation Methods
Choose from four different momentum calculation types:
ROC (Rate of Change): Traditional percentage-based momentum measurement
RSI (Relative Strength Index): Oscillator-based momentum from 0-100 range
Percent Change: Simple percentage change over the lookback period
Raw Change: Absolute price change in native currency units
📈 Advanced Trend Filtering System
Enable optional trend filters to align momentum signals with prevailing market direction:
SMA (Simple Moving Average): Classic trend identification
EMA (Exponential Moving Average): Responsive trend detection
Price Action: Identifies trends through higher highs/lows or lower highs/lows patterns
ADX (Average Directional Index): Measures trend strength with customizable threshold
🎨 Futuristic Cyberpunk Design
Neon Color Scheme: Eye-catching cyan, magenta, and matrix green color palette
Glowing Visual Effects: Enhanced visibility with luminescent plot lines
Dynamic Background Shading: Subtle trend state visualization
Real-Time Data Table: Sleek information panel displaying current momentum values and trend status
How It Works
The indicator calculates momentum for both your current chart symbol and a comparison symbol (default: BTC/USDT) using your selected method and lookback period. The difference between these momentum values reveals which asset is exhibiting stronger momentum at any given time.
Positive Difference (Green): Your chart symbol has stronger momentum than the comparison asset
Negative Difference (Pink/Red): The comparison asset has stronger momentum than your chart symbol
When the trend filter is enabled, the indicator will only display signals that align with the detected market trend, helping filter out counter-trend noise.
Settings Guide
Symbol Settings
Compare Symbol: Choose any tradable asset to compare against (e.g., major indices, cryptocurrencies, forex pairs)
Momentum Settings
Momentum Length: Lookback period for momentum calculations (default: 14 bars)
Momentum Type: Select your preferred momentum calculation method
Display Options
Toggle visibility of current symbol momentum line
Toggle visibility of comparison symbol momentum line
Toggle visibility of momentum difference histogram
Optional zero line reference
Trend Filter Settings
Use Trend Filter: Enable/disable trend-based signal filtering
Trend Method: Choose from SMA, EMA, Price Action, or ADX
Trend Length: Period for trend calculations (default: 50)
ADX Threshold: Minimum ADX value to confirm trend strength (default: 25)
Best Use Cases
✅ Pairs Trading: Identify divergences in momentum between correlated assets
✅ Crypto Market Analysis: Compare altcoin momentum against Bitcoin or Ethereum
✅ Stock Market Rotation: Track sector or index relative strength
✅ Forex Strength Analysis: Monitor currency pair momentum relationships
✅ Multi-Timeframe Confirmation: Use alongside other indicators for confluence
✅ Mean Reversion Strategies: Spot extreme momentum divergences for potential reversals
Visual Indicators
⚡ Cyan Line: Your chart symbol's momentum
⚡ Magenta Line: Comparison symbol's momentum
📊 Green/Pink Histogram: Momentum difference (positive = green, negative = pink)
▲ Green Triangle: Bullish trend detected (when filter enabled)
▼ Red Triangle: Bearish trend detected (when filter enabled)
◈ Yellow Diamond: Neutral/sideways trend (when filter enabled)
Pro Tips
💡 Look for crossovers between the momentum lines as potential trade signals
💡 Combine with volume analysis for stronger confirmation
💡 Use momentum divergence (price making new highs/lows while momentum doesn't) for reversal signals
💡 Enable trend filter during ranging markets to reduce false signals
💡 Experiment with different momentum types to find what works best for your trading style
Technical Requirements
TradingView Pine Script Version: v6
Chart Type: Works on all chart types
Indicator Placement: Separate pane (overlay=false)
Data Requirements: Needs access to comparison symbol data
Free Stock ScreenerMissing great trade opportunities is annoying, and unless you have 12 screens or only trade one market, you are missing a lot of trades. To fix that, we created this free stock screener so you get notified instantly of potential great trading conditions in real time, right on your chart.
You get notified of trading benchmarks being met by the value being displayed on the scanner as well as a color change so that it grabs your attention and makes you aware that you should take a look at the other market and look for a potential trade. It also has built in alerts so you can have an alert notification go off when any of your trading conditions are met instead of needing to watch the scanner for color changes.
The screener will change the ticker symbol background color to red green when price is above or below the previous daily range and above or below both VWAPs. This signals that the ticker is trending, which typically means it is a great time to trade that market and follow the trend.
This free stock screener allows you to scan up to 10 different markets at the same time for various different conditions so you always know what is going on with your favorite trading symbols. If you want to scan more tickers, just add the indicator to your chart again and change the table position to the other side of the screen and update the tickers on the 2nd screener, allowing you to have 20 tickers at a time.
The scanner can be fully customized by changing the markets that it screens and turning on or off as many of them as you would like. You can also turn on or off any of the different data sets so that you only get information about trading conditions that matter to you.
The screener can provide data on any type of market, such as stocks, crypto, futures, forex and more. Each ticker can be adjusted to whatever market you would like it to scan for data in the settings panel, the only limitation is that it will not provide data for the VWAP and volume trend score if the ticker you are screening does not provide volume data.
Screener Features
The scanner will provide the following types of data for each ticker that is turned on:
Volume - Provides a volume score compared to the average volume and notifies you of higher than normal volume and volume spikes on individual bars by changing colors.
Volatility - Provides a volatility score compared to the average volatility and notifies you of higher than normal volatility by changing colors.
Oscillator - Choose between the RSI or CCI. The value of that oscillator will be displayed and will notify you when values are in extreme ranges such as overbought or oversold conditions according to the threshold values you enter in the settings panel. When those thresholds have been breached, you will be notified by it changing color.
Big Candles - Compares the current candle to average previous candle sizes, and changes color to notify you of big candles including a big top wick, big bottom wick, big candle body and big candle high to low range.
Daily Level Touches & Trends - Calculates and displays various daily candle and intraday open price levels that act as support and resistance. Notifies you when price is touching any of the daily levels that are turned on. The levels you can have on are as follows: previous day high, previous day low or previous day open. It also will notify you when price is touching the current day’s open, NY 930am open, Asia 8pm open, London 2am open and NY midnight 12am open. It will also say “Above” if price is above the previous day’s high or it will say “Below” if price is below the previous day’s low. The color of the cell will also change when a level touch is happening or price is above the previous day high or below the previous day low.
VWAP - Choose from 2 different VWAP lengths, default settings are daily and weekly VWAPs. You will get notified if price touches either of the VWAPs and they will also say “Above” or “Below” if price is currently above or below each VWAP.
How To Use The Screener To Help You Trade
The main purpose of the screener is to scan other markets and notify you of potential good trading opportunities such as price bouncing off of the daily levels or VWAPs. It can also be used to know when price is trending according to the VWAPs and daily levels. Lastly, you can use it to know how the volume and volatility trends are currently which gives you more confidence in taking a trade with this data when volume and volatility are present.
Volume Score
When volume is high, this represents a good time to trade because there are many market participants and price is likely to be volatile while there is high volume which can present a lot of good trade setups for you to take.
The volume score shown on the screener measures the current volume trend compared to previous volume trends and calculates that into a score based on 100 being the same as the previous volume trend. So any value above 100 means it is high volume and any value less than 100 means it is lower volume than normal.
In the settings panel, you can adjust the volume threshold that needs to be met for a volume notification to show up. The default setting is at 120, so you will get notified when the current volume trend score is 120 or higher or you can adjust that threshold value to whatever value you prefer.
It also will notify you when there is a volume spike on the current bar. This is determined by calculating an average of the recent volume totals and then checking to see if the current bar is greater than or equal to that average multiplied by 3. So if a single bar has volume that is greater than 3 times what the average volume is, then you will get a notification that says “Spike” to make you aware of that volume spike.
The volume trend threshold, volume spike multiplier and lookback length for the average volume used in volume spike calculations can all be adjusted in the settings panel to fit your desired preferences.
Volatility Score
High volatility can mean it is a great time to trade because the market is moving quickly and providing large enough movements that you can get in and out in a short amount of time, while still accruing decent sized trade PnL.
The volatility score will calculate the current volatility for each market compared to previous conditions and then divide the current volatility by the average volatility to give you a volatility score. Anything over 100 means the market is decently volatile and you should look at that market to find potential trade setups to execute on. Anything below 100 means the market is not very volatile and it is usually best to just wait until volatility returns before you start trading again.
The screener will notify you when the volatility score is above the threshold you set. The default value is set to 90, but can be adjusted to your preference. Pay attention to any market that shows an alert and take a look at that chart because the high volatility may present a good trade setup for you in the near future.
Oscillator Score
The oscillator data can be switched between Relative Strength Index(RSI) and Commodity Channel Index(CCI).
The RSI provides a value between 0 and 100 that indicates the momentum and strength of the recent price action. Many traders use the extremes of the 0-100 range to signal overbought or oversold conditions and use that as a sign to look for price to reverse in the near future. The typical values used for this and the default settings to provide notifications are: 70 for overbought and 30 for oversold. The scanner will notify you when the RSI value is considered overbought or oversold so you know to take a look at the chart and analyze if it is ready for a trade to be taken.
The CCI provides a value that can be used to determine the trend strength of the underlying asset when the oscillator moves above 100 or below -100. These extreme values are outside of the normal accumulation range and signify that price is moving strongly in that direction so it may be a good time to take a trade in the direction of the trend. The scanner will show you the value of the CCI for each market and notify you if that value is above 100 or below -100.
Both RSI and CCI settings can be adjusted in the settings panel to your desired settings so you have the exact oscillator settings you prefer to use as well as the exact values that you want to use for being notified.
Big Candles
Big candles can mean that many traders are buying or selling at the same time and many times indicate a good signal to trade in that same direction. That is why we included this calculation in the screener, so you are always aware when a large candle prints.
It calculates the average size of the recent candles and then uses that average as the benchmark to determine if the current candle is considered big and worthy of notifying you to take a look at that chart.
You can adjust the multiplier used for the big candle threshold to whatever you desire, but the default setting is 3 which means the candle will be considered big and notify you if it is 3 times as large as an average candle.
The big candles data will track the following candle values and notify you with these labels:
High to Low candle size = HL
Candle Body from open to close candle size = OC
Top Wick size = TW
Bottom Wick size = BW
Daily Level Touches & Trend
Daily level touches are excellent levels to watch for price to bounce because they often act as support and resistance levels for intraday trading. The scanner will track each market and notify you when the current candle is touching any of the daily levels that you have turned on in the settings panel.
The main levels that are turned on by default and are useful for all markets and how they will be labeled on the scanner are as follows:
Previous Day High = High
Previous Day Low = Low
Previous Day Open = < Open
Previous Day Close = Close
Current Day Open = Open
We also included some extra levels that are useful for futures traders. They are as follows:
NY 930am Open = 930am
NY 12am Midnight Open = 12am
Asia Open at 8pm NY time = Asia
London Open at 2am NY Time = London
Watch how price reacts to these levels and then trade the bounces off of these levels if the price action confirms that it is going to respect that level.
When price is currently above the previous day high, the scanner will say “Above” and show a green color, indicating a bullish trend and that price is above the previous daily candle’s high.
When price is currently below the previous day low, the scanner will say “Below” and show a red color, indicating a bearish trend and that price is below the previous daily candle’s low.
Pay attention to when price is trending above or below the previous daily candle as those trends can provide excellent trend trading opportunities.
The daily levels that you have turned on in the settings will also show as lines on the chart and include a label next to them, identifying each level so you know what each line represents. You can turn on or off all of the lines shown on the chart in the main settings or turn them off one by one in the style panel of the settings. Labels can also be turned on or off for all of the lines in the main settings panel. You can adjust the label positioning in the Label Offset section of the settings panel.
VWAP Touches & Trend
VWAP stands for volume weighted average price and is a very popular tool that traders use to determine trend direction based on volume as well as an excellent level to trade price bounces off of.
The typical VWAP time period used is Daily, which means the volume weighted average price will reset at the beginning of a new day. We set the first VWAP to be the daily VWAP by default and the second one to be the weekly VWAP. You can adjust both of the time periods to be any of the provided time lengths that you choose.
The screener will show “Above” with a green background color when price is above the VWAP, indicating a bullish trend. It will show “Below” with a red background color when price is below the VWAP, indicating a bearish trend. When both VWAPs are showing Above or Below, you can expect price to trend in that direction, so look for pullbacks you can trade in the direction of the trend. If the VWAPs are showing different directions, then you should expect to bounce back and forth between the VWAPs, but be careful and watch out for price to break beyond either one and start a trend.
When the current candle is touching the VWAP, the scanner will change colors and say VWAP to notify you that price is touching the VWAP and you should look at that chart and analyze the market for a potential bounce off of the VWAP to trade.
Trending Market Signals
Strong trends are excellent markets to trade and can many times provide excellent trading opportunities that don’t require expert price action reading skills to be able to take winning trades from. That is why we included a signal to notify you of a strong trending market.
The strong trending market will show up as a green or red background color for the ticker name. If the color of the ticker name is green, it is notifying you that the price is above the previous daily high, above VWAP 1 and above VWAP 2 and is a good market to look for bullish trend trades. If the color of the ticker name is red, it is notifying you that the price is below the previous daily low, below VWAP 1 and below VWAP 2 and is a good market to look for bearish trend trades.
Changing The Tickers It Scans
To change the tickers that the indicator scans, scroll near the bottom of the settings panel and select the ticker symbol you want to update and then search for the exact symbol you want to use. If you want to scan less tickers, then just turn some of the tickers off that you don’t need.
Scanning More Than 10 Tickers
If you want to scan more than 10 tickers, you can add the scanner to your chart again and then just change the table position to the other side of the screen. This will allow you to scan 10 more tickers that will show up separately. Then if you want even more, just add the indicator to your chart again and update the table position until you have as many markets as you want. The table position setting can be found at the bottom of the main settings panel.
Alerts
The screener has alerts that can be used to notify you when any of the data set thresholds have been met or if price is touching one of the levels. You can set alerts for the following events:
Bullish Trend Alert - Price is above the previous daily high and above both VWAPs.
Bearish Trend Alert - Price is below the previous daily low and below both VWAPs.
High Volume Alert - Volume is higher than the threshold or a volume spike is detected.
High Volatility Alert - Volatility is higher than the threshold.
Oscillator Is Extended Alert - Oscillator value has exceeded the upper or lower threshold.
Big Candle Alert - A big candle has been detected.
Daily Level Touch Alert - One of the daily levels that is turned on is being touched.
VWAP Touch Alert - One of the 2 VWAPs are being touched.
An alert will trigger when any one of tickers on your scanner meets the alert conditions, so when you see the alert, you will need to go to your chart and look at the scanner to see which ticker it was and then navigate to that chart to look for potential trade setups.
The alerts will use the exact same settings you have configured in the settings panel to send you alert notifications. With normal settings, this could give you a lot of alerts, so if you only want alerts to fire when abnormal conditions are being met, try setting up a second screener on your chart that has very high threshold values and only has the most important level touches on. Then turn the setting "Do Not Show The Screener On The Chart" to off so the calculations will still run and fire alerts, but won't clog up your charts. This way you can only get alert notifications when major events happen but still have your normal screener settings available on your chart.
Markets This Can Be Used On
This screener uses the price action and volume data so you can use it to scan any type of market you would like as long as the ticker you are scanning has price and volume data feeds. If a market does not have volume data, then it will just show NaN in the volume row and the VWAP rows will not show anything.
50% Fib Trend Cloud + ATR BandsThis indicator plots two structural 50% fibonacci midpoints from recent confirmed 'left/right' swings that form a *cloud* of equilibrium, then adds a rolling 50% fibonacci range midpoint based on a lookback window that's wrapped in ATR bands. Importantly, it solves a specific trading problem:
Structural midpoints (macro context) are powerful but can lag when price escapes prior ranges. Enter rolling 50% fib + ATR ➡️ which restores real-time balance & tolerance (micro context). Together they show where price is balanced structurally, where it’s balanced right now, and how much volatility to tolerate before acting.
➖➖➖
🔑 Why this is different
Most tools either draw a single midpoint (ex., daily 50%) or ATR bands around a moving average. This script fuses dual swing-based 50% midpoints (structure) + a rolling 50% with ATR (flow), so you don’t lose context when price escapes prior ranges. The cloud tells you who’s in control (fast vs. slow structure). The rolling 50% + ATR tells you how far is “too far” now.
➖➖➖
🧠 What it does (at a glance)
🔸Structural Equilibrium × 2 (Fib1/Fib2)
Two independent 50% midpoints formed from swing pivots (configurable Left/Right bars + optional smoothing). Their gap is the Midpoint Cloud = structural “fair value” zone.
🔸Rolling 50% + ATR Bands
A rolling highest/lowest window computes an always-current 50% rolling midpoint plot; ±ATR × length envelopes define a soft value area and over-stretch boundaries.
🔸Actionable Visuals
Optional fill between Fib1/Fib2, labels, and candle-overlay modes to instantly read regime (above both / below both / between).
🔸Smart Defaults
Timeframe-aware presets for L/R pivots & smoothing; full manual overrides available.
➖➖➖
⚙️ Calculations (plain-English)
🔸Pivot midpoints (Fib1 & Fib2):
1) Detect a swing using `Left/Right` bars
2) Take the swing’s high/low → compute 50%
3) (Optional) Smooth the line (SMA) to stabilize on noisy TFs
4) Repeat with a different sensitivity to get two distinct midpoints
🔸Rolling midpoint:
Highest High / Lowest Low over the last *N* bars → (HH + LL) / 2
🔸ATR levels:
`Upper = Rolling50 + ATR × Mult`, `Lower = Rolling50 − ATR × Mult`
(Typical: ATR length 14–21; Multipliers 2.236 for L1, 5.382 for L2)
➖➖➖
🤖 Auto-Configured Presets (with Manual Override)
💡Goal: make the midpoints “just work” on common timeframes while still letting you dial them in.
💡How Auto Presets work
When Auto Presets = ON, the script picks sensible L/R/S (Left bars / Right bars / Smoothing) for Fib Trend 1 and Fib Trend 2 based on chart timeframe.
🔸Fib 1 (fast) emphasizes *micro-structure* for quicker bias shifts.
🔸Fib 2 (slow) emphasizes *macro-structure* for anchor/bias context.
These defaults keep Fib 1 responsive without jitter and Fib 2 stable without lag.
➡️ Turn Auto Presets = OFF to take full control with the manual inputs described below.
➖➖➖
🛠 Manual Fib Midpoint Settings (when Auto = OFF)
💡Each midpoint uses three knobs:
🔸Pivot Left (L): bars to the left that must be lower/higher to qualify a swing
🔸Pivot Right (R): bars to the right that must be lower/higher to confirm the swing
🔸Smoothing (S): SMA period applied to the raw 50% midpoint (stabilizes noise)
5-Minute optimized defaults
🔸Fib Trend 1: `L21 / R5 / S55` → responsive local structure (entries/exits, re-balancing zones)
🔸Fib Trend 2: `L55 / R13 / S89` → broader structure (trend context, anchors/stops)
Timeframe guidance
🔸1m–3m: may feel a touch laggy → consider ~`L13 / R3 / S34`
🔸15m–1h: defaults remain strong → optionally ~`L34 / R8 / S89`
🔸4h+ : increase span for stability → `L89–144 / R13–21 / S144–233`
➡️ Rule of thumb: shorter L/R = faster detection, longer S = smoother line. Tune until Fib 1 captures the “active swing” and Fib 2 captures the “dominant swing” without whipsaw.
➖➖➖
🎛 Inputs (quick reference)
🔸Fib Trend 1/2: Source (High/Low/Close), Left/Right bars, Smoothing length, Show/Hide, Cloud fill toggle
🔸Rolling 50%: Lookback length, Price basis (Wicks/Close/HLC3/OHLC4), Plot scope (Full / Last N / None)
🔸ATR Bands: ATR length, Multipliers (L1/L2), Plot scope, Line width/colors
🔸Overlay & Labels: Candle overlay mode, Label padding/size, 50% centerline toggle, Plot widths
➖➖➖
🖍️ Candle Coloring & Overlay Modes
💡Purpose: make trend instantly visible on the candles and ATR levels.
1) Color Logic (dropdown)
🔸 Fib Midpoints — Colors by position of price vs. Fib 1 & Fib 2
🔸ATR Zones — Colors by which ATR zone price is in relative to the Rolling 50%
➡️ Price Reference: Choose the input used for the decision (Close, HL2, OHLC3, OHLC4).
➡️Tip: Close is crisp; HL2/OHLC variants are smoother.
2) Overlay Style (dropdown)
🔸 None — No visual change to candles
🔸 Bar Color — Uses `barcolor()` to tint built-in candles (this takes into account your Trading View settings, for instance if you have wicks set to white, they will show up as white with this setting)
🔸 PlotCandles — Draws unified custom candles (body, wick, border) with the same color for maximum clarity
💡Practical use
🔸 Pick Fib Midpoints to read structural bias at a glance (above/below/between the cloud).
🔸 Pick ATR Zones to read value vs. stretch around the Rolling 50% (mean-reversion vs. trend extension).
➖➖➖
📘 How to use
A) Trend confirmation
- Strong bullish bias when price holds above both structural mids; strong bearish when below both.
- Use the Rolling 50% + ATR as a dynamic re-entry zone: pullbacks that respect ATR(L1) often continue the prevailing trend.
B) Transition / mean reversion
- Inside the Cloud (between Fib1 & Fib2) treat behavior as neutralization/re-balancing; range tactics tend to outperform momentum plays.
- In ranges, fades near ±ATR around the rolling 50% can mark short-term edges.
C) Breakout context
- When price leaves the Cloud, the Rolling 50% keeps you anchored so price never feels “floating.” A clean hold outside ATR(L1/L2) suggests regime strength; quick re-entries hint at traps.
➖➖➖
🖼 Chart examples
➡️ Each snapshot shows how the Cloud (structure) and the Rolling 50% + ATR (flow) work together.
1) 1-Minute Downtrend – Cloud as Dynamic Ceiling
- The Cloud slopes down; pullbacks repeatedly fail under the Cloud’s underside.
- Rolling 50% (dashed mid) + ATR(L1) act as a reversion band: rallies stall near upper ATR and rotate lower.
2) 15-Minute Persistent Drift – Structure Guides, Flow Times Entries
- Long drift lower with Cloud overhead.
- Consolidations near the rolling mid resolve in the trend direction; ATR bands frame risk on each attempt.
3) 15-Minute Uptrend (BTC) – From Cloud Escape to Value Stair-Step
- After escaping the prior Cloud, rolling 50% + ATR establish a new higher value area.
- Pullbacks into ATR(L1) produce orderly stair-steps; Cloud remains supportive on deeper dips
4) 5-Minute BTC – Pullback to Value then Rotate
- Strong leg up; retrace tags lower ATR band and rotates back toward the rolling mid.
- Labels (Fib1/Fib2) make the structural context explicit for decision-making.
➖➖➖
🧪 Starter presets
- Intraday (5–15m): Fib1 ~ L21/R5 (smooth 5), Fib2 ~ L55/R13 (smooth 9) • Rolling = 55 • ATR = 14 • L1 = 2.5x, L2 = 5.0x
- Scalping: Shorten lookbacks & smoothing; keep ATR multipliers similar, or tighten L1.
- Swing: Lengthen all lookbacks; consider ATR length 21–28.
➖➖➖
🏁Final Word
This script is not just a visual tool, it’s a complete trend and structure framework. Whether you're looking for clean trend alignment, dynamic support/resistance, or early warning signs of a reversal, this system is tuned to help you react with confidence — not hindsight.
Rembember, no single indicator should be used in isolation. For best results, combine it with price action analysis, higher-timeframe context, and complementary tools like trendlines, moving averages etc Use it as part of a well-rounded trading approach to confirm setups — not to define them alone.
---
💡Turn logic into clarity. Structure into trades. And uncertainty into confidence.
Triple Gaussian Smoothed Ribbon [BOSWaves]Triple Gaussian Smoothed Ribbon – Adaptive Gaussian Framework
Overview
The Triple Gaussian Smoothed Ribbon is a next-generation market visualization framework built on the principles of Gaussian filtering - a mathematical model from digital signal processing designed to remove noise while preserving the integrity of the underlying trend.
Unlike conventional moving averages that suffer from phase lag and overreaction to volatility spikes, Gaussian smoothing produces a symmetrical, low-lag curve that isolates meaningful directional shifts with exceptional clarity.
Developed under the Adaptive Gaussian Framework, this indicator extends the classical Gaussian model into a multi-stage smoothing and visualization system. By layering three progressive Gaussian filters and rendering their interactions as a gradient-based ribbon field, it translates market energy into a coherent, visually structured trend environment. Each ribbon layer represents a progressively smoothed component of price motion, producing a high-fidelity gradient field that evolves in sync with real-time trend strength and momentum.
The result is a uniquely fluid trend and reversal detection system - one that feels organic, adapts seamlessly across timeframes, and reveals hidden transitions in market structure long before traditional indicators confirm them.
Theoretical Foundation
The Gaussian filter, derived from the Gaussian function developed by Carl Friedrich Gauss in 1809, operates on the principle of weighted symmetry, assigning higher importance to central price data while tapering influence toward historical extremes following a bell-curve distribution. This symmetrical design minimizes phase distortion and smooths without introducing lag spikes — a stark contrast to exponential or linear filters that sacrifice temporal accuracy for responsiveness.
By cascading three Gaussian stages in sequence, the indicator creates a multi-frequency decomposition of price action:
The first stage captures immediate trend transitions.
The second absorbs mid-term volatility ripples.
The third stabilizes structural directionality.
The final composite ribbon reflects the market’s dominant frequency - a smoothed yet reactive trend spine - while an independent, heavier Gaussian smoothing serves as a reference layer to gauge whether the primary motion leads or lags relative to broader market structure.
This multi-layered Gaussian framework effectively replicates the behavior of a signal-processing filter bank: isolating meaningful cyclical movements, suppressing random noise, and revealing phase shifts with minimal delay.
How It Works
Triple Gaussian Core
Price data is passed through three successive Gaussian smoothing stages, each refining the trend further and removing higher-frequency distortions.
The result is a fluid, continuously adaptive baseline that responds naturally to directional changes without overshooting or flattening key inflection points.
Adaptive Ribbon Architecture
The indicator visualizes its internal dynamics through a five-layer gradient ribbon. Each layer represents a progressively delayed Gaussian curve, creating a color field that dynamically shifts between bullish and bearish tones.
Expanding ribbons indicate accelerating momentum and trend conviction.
Compressing ribbons reflect consolidation and volatility contraction.
The smooth color gradient provides a real-time depiction of energy buildup or dissipation within the trend, making it visually clear when the market is entering a state of expansion, transition, or exhaustion.
Momentum-Weighted Opacity
Ribbon transparency adjusts according to normalized momentum strength.
As trend force builds, colors intensify and layers become more opaque, signifying conviction.
When momentum wanes, ribbons fade - an early visual cue for potential reversals or pauses in trend continuation.
Candle Gradient Integration
Optional candle coloring ties the chart’s candles to the prevailing Gaussian gradient, allowing traders to view raw price action and smoothed wave dynamics as a unified system.
This integration produces a visually coherent chart environment that communicates directional intent instantly.
Signal Detection Logic
Directional cues emerge when the smoother, broader Gaussian curve crosses the faster-reacting Gaussian line, marking structural inflection points in the filtered trend.
Bullish shifts : short-term momentum transitions upward through the long-term baseline after a localized trough.
Bearish shifts : momentum declines through the baseline following a local peak.
To maintain integrity in choppy markets, the framework applies a trend-strength and separation filter, which blocks weak or overlapping conditions where movement lacks conviction.
Interpretation
The Triple Gaussian Smoothed Ribbon provides a layered, intuitive read on market structure:
Trend Continuation : Expanding ribbons with deep color intensity confirm directional strength.
Reversal Phases : Color gradients flip direction, indicating a phase shift or exhaustion point.
Compression Zones : Tight, pale ribbons reveal equilibrium phases often preceding breakouts.
Momentum Divergence : Fading color intensity despite continued price movement signals weakening conviction.
These transitions mirror the natural ebb and flow of market energy - captured through the Gaussian filter’s ability to represent smooth curvature without distortion.
Strategy Integration
Trend Following
Engage during strong directional expansions. When ribbons widen and color gradients intensify, the trend is accelerating with high confidence.
Reversal Identification
Monitor for full gradient inversion and fading momentum opacity. These conditions often precede transitional phases and early reversals.
Breakout Anticipation
Flat, compressed ribbons signal low volatility and energy buildup. A sudden gradient expansion with renewed opacity confirms breakout initiation.
Multi-Timeframe Alignment
Use higher timeframes to establish directional bias and lower timeframes for entry during compression-to-expansion transitions.
Technical Implementation Details
Triple Gaussian Stack : Sequential smoothing stages produce low-lag, high-purity signals.
Adaptive Ribbon Rendering : Five-layer Gaussian visualization for gradient-based trend depth.
Momentum Normalization : Opacity dynamically tied to trend strength and volatility context.
Consolidation Filter : Suppresses false signals in low-energy or range-bound conditions.
Integrated Candle Mode : Optional color synchronization with underlying gradient flow.
Alert System : Built-in notifications for bullish and bearish transitions.
This structure blends the precision of digital signal processing with the readability of visual market analysis, creating a clean but information-rich framework.
Optimal Application Parameters
Asset Recommendations
Cryptocurrency : Higher smoothing and sigma for stability under volatility.
Forex : Balanced parameters for cycle identification and reduced noise.
Equities : Moderate Gaussian length for responsive yet stable trend reads.
Indices & Futures : Longer smoothing periods for structural confirmation.
Timeframe Recommendations
Scalping (1 - 5m) : Use shorter smoothing for fast reactivity.
Intraday (15m - 1h) : Mid-length Gaussian chain for balance.
Swing (4h - 1D) : Prioritize clarity and opacity-driven trend phases.
Position (Daily - Weekly) : Longer smoothing to capture macro rhythm.
Performance Characteristics
Most Effective In :
Trending markets with recurring volatility cycles.
Transitional phases where early directional confirmation is crucial.
Less Effective In:
Ultra-low volume markets with erratic tick data.
Random, micro-chop conditions with no structural flow.
Integration Guidelines
Pair with volatility or volume expansion tools for enhanced breakout confirmation.
Use ribbon compression to anticipate volatility shifts.
Align entries with gradient expansion in the dominant color direction.
Scale position size relative to opacity strength and ribbon width.
Disclaimer
The Triple Gaussian Smoothed Ribbon – Adaptive Gaussian Framework is designed as a signal visualization and trend interpretation tool, not a standalone trading system. Its accuracy depends on appropriate parameter tuning, contextual confirmation, and disciplined risk management. It should be applied as part of a comprehensive technical or algorithmic trading strategy.






















