T3 Striped [Loxx]Theory:
Although T3 is widely used, some of the details on how it is calculated are less known. T3 has, internally, 6 "levels" or "steps" that it uses for its calculation.
This version:
Instead of showing the final T3 value, this indicator shows those intermediate steps. This shows the "building steps" of T3 and can be used for trend assessment as well as for possible support / resistance values.
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
Alerts
Signals
Bar coloring
Loxx's Expanded Source Types
Bands and Channels
Pivot Parallel Channel by [livetrend]This script draws parallel channels using pivot points for trend analysis.
Script draws maximum 4 parallel channels if suitable up or down trend already exists on the chart according to chosen Pivot Length and Multiplier.
You can change Multiplier to draw Higher Time Frame Channels.
Good luck!
EMA Bollinger Bands with customized std dev and moving averageTo use EMA with band you need to set input parameter named as "TypeOfMa" to 1.
If you set TypeOfMa = 1 then it will use EMA average for Bollinger bands.
If you set TypeOfMa = 0 then it will use MA average for Bollinger bands.
PBSimple moving average based percentage band. Think it as a reaction zone. Not useful when market is trending.
TriexDev - Liquidation Rekt LevelsTriexDev - Liquidation Rekt Levels TradingView Indicator
A basic indicator which lets you see where positions will be liquidated. Each line is based on default leverage levels typically used for trading. (3x,5x,10x,25x,50x)
Have a subtle 'label prompt' on the 3x - because I had noticed some people didn't understand what labels were in other indicators.
In the settings:
- There is an offset to adjust the levels horizontally, this is to help make it easier to track if the chart has hit liquidation positions.
- You can change colours/opacity of the lines.
- You can hide the 'Labels', and/or 'label prompt'
- In the 'Style' tab you can hide individual levels.
Inspired/initially based off 'Mex Rekt Level'
I often have this added to my charts, and toggle visibility when I want to check the liq levels.
GitHub Repo for tidier/more detailed documentation as it is updated.
Impatient TS VWAP BandsImpatient VWAP bands are based of Traderskew's VWAP bands but are for more impatient traders.
Wicking or crossing down through the upper band indicates a good short trade entry for range-bound trading periods while wicking or crossing up through the lower band indicates a good long entry in range-bound conditions.
By default, impatience is disabled. If it is turned on, adjusting impatience determines how quickly the bands approach price: higher impatience approaches price faster. Rebound indicates how far from price the bands bounce after hitting price.
LM:AllInEverything one needs to trade (According to me):
-Moving averages
-Futures
-Volume
-Pivots
-RSI
Will add more items as and when I feel I need to add. Would love to add US futures, alas its paid.
KT HMAOverview :
This indicator is an experiment to combine one of the volatility concepts (ATR), weighted MA and price movements to help visualize current market condition.
Red Band : ATR volatility bands with 2nd and 3rd standard deviation.
Yellow Band : Moving Average band
HMA : Green/Red >> Shows current trend. Using HMA to emphasize on recent price points rather than older one.
-----------------
Disclaimer
My Scripts/Indicators/Ideas/Systems including above ones are only for educational purposes. The information contained in the Scripts/Indicators/Ideas does not constitute financial advice or a solicitation to buy or sell any securities of any type. All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Do not trade with capital that you can not afford to lose. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
VWAP BANDS [qrsq]Description
This indicator is used to find support and resistance utilizing both buying and selling volume. It can be used on lower and higher time frames to understand where price is likely to reject or bounce.
How it works
Instead of calculating the VWAP using the total volume, this script estimates the buying/selling volume and respectively calculates their individual VWAP's. The standard deviations of these are then calculated to create the set of two bands. The top bands being the VWAP from buying volume and bottom bands are from selling volume, with the option to use a double band on either pair.
How to use it
I like to use the bands for LTF scalping as well as HTF swings, I also like to use it alongside my SMA VWAP BANDS.
For scalping:
I tend to use either the 5m or 15m TF
I then set the indicator's TF to 1m
I will take a scalp based on the bands confluence with other PA methods, if price is being either supported or rejected.
For swings:
I tend to use a variety of TFs, including: 30m, 1H, 4H, D
I then set the indicator's TF to "Chart"
I will take a swing based on the bands confluence with other PA methods, if price is being either supported or rejected.
I also tend to use them on perpetual contracts as the volume seems to be more consistent and hence results in more accurate support and resistance.
GBK EMA#GELANDANGAN BAWAH KHEMAH
*By ShakirJohari
- 3 ema -
EMA 9 - PUTIH
EMA 50 - MERAH
EMA 200 - BIRU
EMA scalping - PapamallisEma of highs and low and macd.
Can be used as
*macd filter
*breakout
*range market filter
Multiple Daily SMA EMA on Intra 1min 5min 15min ChartsThis script is helping you auto plot daily SMA EMA and extensions when you are looking at intraday charts. The script is customizable where user can select which ever levels they are interested in viewing. These daily lines act as support and resistance levels for intraday
The green line represent 20 EMA Daily
The yellow line represent 50 SMA Daily
The olive line represent 200 SMA Daily
The red line is upper Bollinger Band Daily
The black line is lower Bollinger Band Daily
To help you understand which lines are what I would recommend you add this indicator and select "D" timeframe and then see which lines you would like to view for your 1min chart or 5 min chart you can customize from the setting options which plot color you would like to view.
3EMATiranga3 EMAs 48 High, 48 Low and 10 Close
Trade can be taken when purple line crosses the high (green)
PrasiGanFanFibntroduction
This is a combination of Fibonacci and Gann fan /retracements.
The script can automatically draw as many:
Fibonacci Retracements
Fibonacci Fan
Gann Retracements
Gann Fan
as the user requires on the chart. Each level set or fan consists of 7 lines based on the most important ratios of Fibonacci/ Gann .
Basics
What are Fibonacci retracements?
Fibonacci retracement levels are horizontal lines that indicate where support and resistance are likely to occur. They stem from Fibonacci’s sequence. Each level is associated with a percentage which is how much of a prior move the price has retraced. The Fibonacci retracement levels are 23.6%, 38.2%, 61.8%, and 78.6%. While not officially a Fibonacci ratio, 50% is also used. The indicator is useful because it can be drawn between any two significant price points, such as a high and a low. The indicator will then create the levels between those two points.
What are Gann retracements?
A developer of technical analysis and trading was W.D. Gann . Gann theory expects a normal retracement of 50 percent. This means that under normal selling pressure, the stock price will decline half the amount of its most recent rise, and vice versa. It also suggests that retracements occur at the halfway point of a move, such as 25 percent (half of 50 percent), 12.5 percent (half of 25 percent), and so on.
What is Fibonacci fan?
Fibonacci fan is a set of sequential trend lines drawn from a trough or peak through a set of points dictated by Fibonacci retracements. The first step to create it is to draw a trend line covering the local lowest and highest prices of a security. To reach retracement levels, the trader divides the difference in price at the low and high end by ratios determined by the Fibonacci series. The lines formed by connecting the starting point for the base trend line and each retracement level create the Fibonacci fan.
What is Gann fan?
A Gann fan consists of a series of lines called Gann angles. These angles are superimposed over a price chart to show potential support and resistance levels. The resulting image is supposed to help technical analysts predict price changes. Gann believed the 45-degree angle to be most important, but the Gann fan also draws angles at degrees like 75, 63.75, 26.25 and 15. The Gann fan originates at a low or high point. The resulting lines show areas of potential future support and resistance . The 45-degree line is known as the 1:1 line because the price will rise or fall at a 45-degree angle when the price moves up/down one unit for each unit of time. All other lines in the Gann fan are drawn above and below the 1:1 line. The other angles are associated with 2:1, 3:1, 4:1, 8:1 and 1:8, 1:4, 1:3, and 1:2 time-to-price moves.
Challenges
The most of the time I dedicated to writing this script has been spent on handling these problems:
1. Finding Local Highest/Lowest Prices
In order to draw Fibonacci and Gann fan /retracements, it's necessary to find local highest and lowest price points (Extrema) on the chart. As this could be so challenging, most traders and coders draw the lines covering the low and high prices over a given period of time or a limited number of bars back instead. I already wrote an indicator using this approach (Auto Fibonacci Combo).
In this new script I tried to find the exact highest and lowest prices based on this idea that: if a high point is formed lower than previous high which was after a lowest point, then that previous one was the local highest point, and vice versa if a low point is formed higher than previous low which was after a highest point, then that previous one was the local lowest point. So logically an extremum price on the chart won't be found until the next high/low point is formed.
2. Finding Proper Chart Scale for Gann Fan
Based on the theory, Gann angles are sensitive to the chart price scale and in order to have the right angles, the chart must be made with the proper scale. J.A. Hyerczyk in his book "Pattern, Price & Time - Using Gann Theory in Technical Analysis" suggests that the easiest way to determine the scale of a market is by taking the difference between top-to-top and bottom-to-bottom and dividing it by the time it took the market to move from top to top and bottom to bottom.
Thus on a properly constructed chart, the basic equation for calculating Gann angles is: Price * Time.
3. Drawing Fans and Relocating Fan Labels at Each New Bar in Pine (A Programming-Related Subject)
To do this, I used linear equations and line slopes. Of course it was so complicated and exhausting, but finally I overcame that thanks to my genius cousin.
Settings and Usage
By default, the script shows detected extremum points plus 1 Fibonacci fan, 1 Gann fan , 1 set of Fibonacci retracements and no Gann retracements on the chart. All of these could be changed in the indicator settings beside the color and transparency of each line.
Feel free to use this and send me your thoughts!
BBSS - Bollinger Bands Scalping SignalsModified Bollinger Bands Indicator
Added:
- color change divergence (green) and narrowing (red) of the upper and lower bands
- color change of the moving average - upward trend (green) and downward trend (red)
- the appearance of a potential signal for long and short positions when the candle closes behind the upper or lower bands.
How to use the indicator:
Long conditions:
- the price breaks through the upper band
- Bollinger bands are expanding and should be green
- the mid-line is green
- the trigger candle should be green
Short conditions:
- the price breaks through the lower band
- Bollinger bands are expanding and should be red
- the mid-line is red
- the trigger candle should be red
DB KCBB%D WavesDB KCBB%D Waves
What does the indicator do?
The indicator plots the percent difference between the low and high prices against a combined Kelpler Channel Bollinger Bands for the current timeframe. The low percent difference and the high percent difference each have their own waves plotted. A mirror mode default allows both waves to be visualized in a mirrored plot that clearly shows when outer bands are present and when they swap. Each percent difference band is displayed with a 1 bar lookback to visualize local tops/bottoms.
The overall trend is displayed using two sets of green/red colors on the percent difference waves so that each wave is recognizable, but the overall price trend is visible. A fast 3 SMA is taken of each percent difference wave to obtain the overall trend and then averaged together. The trend is then calculated based on direction from the previous bar period.
How should this indicator be used?
By default, the indicator will display in a mirror mode which will display both the low and high percent change waves mirrored to allow for the most pattern recognition possible. You will notice the percent difference waves swap from inner to outer, showing the overall market direction for that timeframe. When each percent difference wave interacts with the zero line, it indicates either buys or sells opportunities depending on which band is on the inside. When the inner wave crosses zero, special attention should be paid to the outer wave to know if it's a significant move. Likewise, when the outer wave peaks, it can indicate buy or sell opportunities depending on which wave is on the outside.
A zero line and other lines are displayed from the highest of the high percent difference wave over a long period of time. The lines can measure movement and possible oversold/overbought locations or large volatility. You can also use the lines for crossing points for either wave as alerts to know when to buy or sell zones are happening.
When individual percent difference waves are designed to be reviewed without mirroring, the mirror checkbox can be unchecked in the settings. Doing so will display both the high and low percent difference waves separately. Using this display, you can more cleanly review how each wave interacts with various line levels.
For those who desire to only have half of the mirror or one set of waves inverted against each other, check the "mirrored" and the "mirrored flipped" checkboxes in the settings. Doing so will display the top half of the mirror indicator, which is the low percent difference wave with the high percent difference wave inverted.
The indicator will also change the background color of its own pane to indicate possible buy/sell periods (work in progress).
Does the indicator include any alerts?
Yes, they are a work in progress but starting out with this release, we have:
NOTE: This is an initial release version of this indicator. Please do not use these alerts with bots yet, as they will repaint in real-time.
NOTE: A later release may happen that will delay firing the events until 1/2 of the current bar time has passed.
NOTE: As with any indicator watch your upper timeframe waves first before zooming into lower.
DB KCBB%D Buy Zone Alert
DB KCBB%D MEDIUM Buy Alert
DB KCBB%D STRONG Buy Alert
DB KCBB%D Sell Alert
DB KCBB%D STRONG Sell Alert
DB KCBB%D Trend Up Alert
DB KCBB%D Trend Down Alert
Use at your own risk and do your own diligence.
Enjoy!
PUBG//Pluto star appears on a chart when price goes in the in the extreme price range territory, i.e. beyond 2 standard deviation from the mean (or mid Bollinger Band).
//What makes a Pluto Star appear on a chart:
//1. Check if the candle 's' high and low, both are completely outside of the Bollinger Bands (close, 20, 2) - Lets call it Pluto Star Candle
//2. Pluto Star Candle must not be a result of sudden price movement. Hence the previous candle must give a BB Blast.
// In other words, the candle must have it's either open or close outside of Bollinger Bands, to confirm a BB Blast before the Pluto Star
//3. Candle, following the Pluto Star must not break the high (in case of upper BB i.e. short call) or low (in case of lower BB, i.e. long call), to confirm the reversal to the mean
// This implies that Pluto Star appears on chart, above/below the next candle of actual Pluto Star Candle
iBox, Initial Balance | IB High, Low, Midpoint | OpeningThis Indicator will print basically 4 lines.
You have to understand the importance of the "Initial Balance" the first trading hour of Cash session is very important in trading stocks and indizes.
So you will get 4 lines:
Opening
Initial Balance High
Initial Balance Low
Initial Balance Midpoint/Halfback
Most indicators for Range Box, Opening Trade, Opening Range, Initial Balance, iBOX and "Ultimate Lines" will only use the timezone of the exchange or your own timezone. I'm living in europe and we have this daylight saving time change in Summer/Winter - which will cause problems with most of the existing indicators or at least will push you to change the times regularly.
Another important point: I really like to switch the indizes when trading on my mobile. So what will happen when you set up opening range for DAX at 09:00 and then switch to S&P500? All indicators I tried failed here - they will just draw a wrong line for SPX, NDX, DJI, FTSE, ASX etc. I fixed that and hard coded stock exchanges and ticker symbols into 3 main groups Initial Balance EU/US/Asia
For example we take DAX - XETRA DAX is opening at 09:00 MEZ (Europe/Berlin)
The Initial Balance is set during the H1 Candle from 09:00 - 09:59
Please be aware, that some cash indizes only deliver data to TradingView after the "opening auction" - so for Xetra DAX you have to book live data and often you will only see data at 09:02/09:03 after the opening auction.
So you will get different opening lines compared from cash to future or your CFD provider. Future and CFD should fit for 99%
The Opening Line will be drawn at exactly 09:00
IB High on the highest price during the H1 candle
IB Low on the lowest price during the H1 candle
IB Halfback is simple: (IB High + IB Low) / 2
The lines will be drawn from cash start until next day and will end 2 minutes before the next cash session will start again. Please make your own experience! Activate the indicator for a CFD or Future switch to M15 and watch the wicks around the 4 lines. Even in the night or the next morning before the next Initial Balance will be set.
For me the lines are valid for around 24 hours and often longer. That's why it's good to have the old lines on the chart too.
To-do:
Yesterday high / low / close / halfback (also for last week and month)
Labels for the lines - sometimes only the colors will confuse you - a simple label should be a benefit (IB_h, IB_l, IB_1/2, 1D_o)
Range Lines for Asia Range and Premarket Range - additionaly a parameter to disable premarket lines when premarket is trading in asia range.
Add Alert condition to get alerts after IB is set
If you have and thoughts, ideas or improvements, please send me an message or leave an comment!
Like i said, the stock exchanges and ticker symbols are hard coded and can be extended for all relevant assets.
Have fun and i really hope this indicator will help improving your trading experience!
Pivot-Based Channels & Bands [Misu]█ This Indicator is based on Pivot detection to show bands and channels.
The pivot price is similar to a resistance or support level. If the pivot level is breached, the price should continue in that direction. Or the price could reverse at or near this level.
█ Usages:
Use channels as a support & resistance zone.
Use bands as a support & resistance zone. It is also very powerfull to use it as a breakout.
Use mid bands & mid channels as a trend direction or trade filter as a more usual moving average.
█ Parameters:
Show Pivot Bands: show bands.
Show Pivot Mid Band: show mid bands.
Show Pivot Channels: show channels.
Show Pivot Mid Channel: show mid channels.
Deviation: deviation used to calculate pivot points.
Depth: depth used to calculate pivot points.
Growth Stock Arbitrage Indicator [@PierceARK]This indicator takes advantage of the fact that when the 10 and 5 year Treasury Constant Maturity Minus Federal Funds rates (T10YFF/T5YFF) go down sharply, investors tend to rotate into stocks. This arbitrage works great for growth stocks, since growth stocks are higher beta by virtue of their lower market cap and more speculative nature in general. This script identifies the moving-average convergence/divergence of the average of the 10y and 5y treasury rates and then finds the variance of that macd line. By averaging that variance with the macdline's inverse, an analog output of treasury -> stock rotation can be identified. The upper and lower thresholds bring buy and sell windows into focus.
Donchian Channels OscillatorIf we take the difference between Donchian Channels upper and lower, we can get a lot of information on the trend. I made it into a percentage and used a color system to make it easy to look at.
> green color = bullish trend
> red color = bearish trend
> white color = consolidation OR trend is about to change (low percentage)
The percentage value tells us about the strength of the trend. The highest, the strongest the trend is.