Squeeze Index [LuxAlgo]The Squeeze Index aims to measure the action of price being squeezed, and is expressed as a percentage, with higher values suggesting prices are subject to a higher degree of compression.
Settings
Convergence Factor: Convergence factor of exponential envelopes.
Length: Period of the indicator.
Src: Source input of the indicator.
Usage
Prices being squeezed refer to the action of price being compressed within a tightening area. Prices in a tight area logically indicate a period of stationarity, price breaking out of this area will generally indicate the trader whether to buy or sell depending on the breakout direction.
The convergence factor and length settings both play an important role in the returned indicator values. A convergence factor greater than the period value will detect more squeezed prices area, while a period greater than the convergence will return fewer detected squeezed areas.
We recommend using a convergence factor equal to the period setting or a convergence factor twice as high.
The above chart makes use of a convergence factor of 100 and a period of 10.
Due to the calculation method, it is possible to see retracements being interpreted as price squeezing. This effect can be emphasized with higher convergence factor values.
Details
In order to measure the effect of price being squeezed in a tighter area we refer to damping, where the oscillations amplitude of a system decrease over time. If the envelopes of a damped system can be estimated, then getting the difference between the upper and lower extremity of these envelopes would return a decreasing series of values.
This approach is used here. First the difference between the exponential envelopes extremities is obtained, the logarithm of this difference if obtained due to the extremities converging exponentially toward their input.
We then use the correlation oscillator to get a scaled measurement.
Squeeze
Multi-timeframe Squeeze Mom + ADX and DIsMulti-timeframe Squeeze and ADX
This indicator is designed to be able to get used in combination with others that can lead to a potential help for trading.
The indicator uses colors such us light green, dark green, light red and dark red. Light green and light red to indicate the second half and strongest movement of an upwards and downwards movement, respectively. The same for the first half of an upwards or downwards movement, dark red for the possible start of the upwards movement and dark green ad possible start of the downwards movement.
The indicator is multi-timeframe because the trader can configure within the menu a background timeframe, which plots a squeeze momentum for a different timeframe than the one selected for the main graph. It plots the background timeframe with an area style, while the main squeeze is plotted with a column style. This helps the traders to analyze whether entering a position countering a higher timeframe upwards or downwards squeeze momentum.
It also shows the divergences that occur between the price and the squeeze momentum that can add strength to a potential movement upwards or downwards.
The ADX, DI+ and DI- lines are also added to determine the potential strength of the movement in the monitor (squeeze momentum). If the DI+ is over the DI-, then the strength is likely higher upwards and the opposite for the downwards strength.
Fundamentals
Squeeze momentum: It shows the periods when volatility increases or decreases, in other words, when the market goes from the trend into flat movement and vice versa.
ADX (Average Directional Index): The ADX helps the indicator to estimate the strength of the movement, always considering the DI+ and DI- to not go against the trend strength.
Positive (DI+) and Negative DI (DI-): Both DI+ and DI- measure up and down price movement, in some cases crossovers of these lines can be used as trade signals.
Divergences: Divergence occur when the price of an asset is moving in the opposite direction of a technical indicator, such as an oscillator (squeeze momentum). Divergence warns that the current price trend may be weakening, and in some cases may lead to the price changing direction.
Panel
This panel allows the trader to have a summary of the values of the direction and strength of the movement. It has the following characteristics:
It is placed on the right middle side of the chart indicator by the default.
Its colors changes according to the indicator’s values.
The summary box shows the projection for the main squeeze plot and also for the background squeeze plot. If only one is needed, it can be changed on the menu of the indicator.
Summary
From all previously mentioned, it can be stated that the indicator allows users to:
Detect the direction of trends
Detect price and squeeze divergences
Get a table summarizing important values of the indicator to determine the strength of a trend.
MACD frontSide backSide + TTM Squeeze by bangkokskaterDark Mode is enabled by default for black theme
disable Dark Mode for white theme
MACD frontSide backSide
===================
an elegant, much better way to use MACD
for trend following momentum ( aka momo) style
MACD with default settings of 12/26 smoothing of 9
✔️ but without histogram
✔️ only has MACD and signal "lines"
green = frontSide momentum impulse
take longs only
red = backSide momentum impulse
take shorts only
black area = exit (once green or red is no longer showing)
or keep holding till next bigger TP
PS: credits to Warrior Trading Ross Cameron for this idea
youtu.be
TTM Squeeze
===================
white dots = incoming pump / dump (monitor for entry)
PS: credits to John Carter's TTM Squeeze & Greeny for PineScript adaptation
Squeeze Momentum Strategy [LazyBear] Buy Sell TP SL Alerts-Modified version of Squeeze Momentum Indicator by @LazyBear.
-Converted to version 5,
-Taken inspiration from @KivancOzbilgic for its buy sell calculations,
-Used @Bunghole strategy template with Take Profit, Stop Loss and Enable/Disable Toggles
-Added Custom Date Backtesting Module
------------------------------------------------------------------------------------------------------------------------
All credit goes to above
Problem with original version:
The original Squeeze Momentum Strategy did not have buy sell signals and there was alot of confusion as to when to enter and exit.
There was no proper strategy that would allow backtesting on which further analysis could be carried out.
There are 3 aspects this strategy:
1 ) Strategy Logic (easily toggleable from the dropdown menu from strategy settings)
- LazyBear (I have made this simple by using Kivanc technique of Momentums Moving Average Crossover, BUY when MA cross above signal line, SELL when crossdown signal line)
- Zero Crossover Line (BUY signal when crossover zero line, and SELL crossdown zero line)
2) Long Short TP and SL
- In strategies there is usually only 1 SL and 1 TP, and it is assumed that if a 2% SL giving a good profit %, then it would be best for both long and short. However this is not the case for many. Many markets/pairs, go down with much more speed then they go up with. Hence once we have a profitable backtesting setting, then we should start optimizing Long and Short SL's seperately. Once that is done, we should start optimizing for Long and Short TP's separately, starting with Longs first in both cases.
3) Enable and Disable Toggles of Long and Short Trades
- Many markets dont allow short trades, or are not suitable for short trades. In this case it would be much more feasible to disable "Short" Trading and see results of Long Only as a built in graphic view of backtestor provides a more easy to understand data feed as compared to the performance summary in which you have to review long and short profitability separately.
4) Custom Data Backtesting
- One of most crucial aspects while optimizing for backtesting is to check a strategies performance on uptrends, downtrend and sideways markets seperately as to understand the weak points of strategy.
- Once you enable custom date backtesting, you will see lines on the chart which can be dragged left right based on where you want to start and end the backtesting from and to.
Note:
- Not a financial advise
- Open to feedback, questions, improvements, errors etc.
- More info on how the squeeze momentum works visit LazyBear indicator link:
Happy Trading!
Cheers
M Tahreem Alam @mtahreemalam
Variety-Filtered, Squeeze Moving Averages [Loxx]Variety-Filtered, Squeeze Moving Averages is a chop zone indicator that identifies when price is below a specific volatility threshold calculated as the difference between a fast and slow moving average and filtered using ATR- or Pips-based threshold. This indicator can be use as both an entry and exit indicator. It identifies both chop zones and breakouts/breakdowns
How to use
When the candles turn white and the threshold bands appear on the chart, this is indicative of low volatility
When price exits the threshold bands, price will usually explode up or down giving a long or short signal. This acts as a sort of squeeze momentum.
Included:
Bar coloring
Signals
Alerts, 4 types of alerts: Squeeze started, Squeeze ended, long, and short
Loxx's Expanded Source Types
35+ Loxx's Moving Averages
Rails [s3]Centered around a Variable Moving Average. The Variable Moving Average (VMA) is a study that uses an Exponential Moving Average being able to automatically adjust its smoothing factor according to the market volatility. In addition to the VMA, the indicator displays breakouts in volume and when the Bollinger Bands are in a squeeze.
Dots = Microtrend
Triangles = Breakouts in Volume
X = Crossover of Moving Averages
Shaded "Cloud" = Bollinger Bands Squeeze
Alerts can be set for Bearish and Bullish strength (Volume Breakouts), Crossovers, and when Squeezes have started and ended.
Squeeze OBVThe concept comes from "TTM Squeeze", this indicator visualizes the squeeze on the price movement.
Yellow band overlay on the candles shows that entered a squeeze on with low volatility, market preparing itself for an large move (up or down).
Dots of OBV change every bar, green means potential up, red is the opposite.
Prepare a breakout order with the direction of OBV.
If potential up, the strategy is a breakout order above the squeezed Bollinger Band and the stop loss is below the Bollinger Band.
It's a pity that it cannot write breakout order strategy in Tradingview.
My experience that use CVD instead of OBV will have better performance, but it needs the historical evolution of the order book.
----
概念來自於 "TTM Squeeze",將擠壓的過程視覺化在價格走勢上。
k線上的黃色帶覆蓋表明進入了低波動性的擠壓,市場為大幅波動(向上或向下)做準備。
OBV 的點每根bar都會變化,綠色表示可能向上,紅色則相反。
搭配 OBV 可以判斷走勢,使用突破單策略能夠有效獲利,
假設可能向上,突破單在擠壓布林帶上方,止損在布林帶下方。
可惜 Tradingview 無法寫突破單策略回測。
經驗上搭配 CVD 更有效,需要交易所訂單簿的歷史紀錄,故 Tradingview 也無法製作 CVD。
Bollinger Bands SqueezeBollinger Bands set to only display when a squeeze is taking place. Squeeze will be highlighted.
SKS_SQZPRO//@originalauthor Makit0
//
//script based in:
// original John Carter's ideas (SQUEEZE & SQUEEZE PRO) www.simplertrading.com
// LazyBear's script (Squeeze Momentum Indicator)
//
// USE IT IN CONJUNCTION WITH THE SQUEEZE PRO ARROWS INDICATOR
//
// This system is based in the volatility reversion to the mean: volatility contraction leads to volatility expansion and the other way on
// The dot signal is a warning of volatility compression, more often than not this leads to a expansion of volatility and a move in the action price usually bigger than the expected move
// Be aware of the trend direction, use the momentum histogram to see the slope direction
//
// There are 3 levels of compression:
// Level 1: ORANGE, the lesser compresion level
// Level 2: RED, the normal level marked by the original squeeze indicator
// Level 3: YELLOW, the max compression level
// The more the compression the bigger the after move
//
// The GREEN dots signal the volatility expansion out of the squeeze ranges
MODIFIED HEAVILY!! MOM_LINE, MOMBars
(JS) Checklist SignalsWhat if I told you that you could use over 10 indicators at once without having a single one of them on you chart? Enter the Checklist Signals. This is probably the most complex yet simple indicator I've ever done.
What you get is 6 rows (if you want them all) of labels that hover at the top of your screen with a ton of extremely useful information. I will go down the list of options in the indicator settings and explain how it all works.
So the label placement is based on ATR. You choose your X Axis and Y Axis starting point then adjust the lookback period. Default lookback is 600 bars. What that means is, the indicator finds the highest high in the last 600 bars, then begins to place the labels above that zone based on the ATR of the chart. Different timeframes require very different combinations so it's all customizable. Sometimes if labels overlap you need to adjust the X Axis starting point, or the spread on either axis.
The next set of options allows you to decide what you'd prefer to be set on or off. Let's start with ATR and VWAP. I have added bands for both of these. When price is below the mean (which is the 21 ema by default), then the labels show you the next 5 standard deviations of ATR going down. When under one of these levels the label turns red. The opposite is true when above the mean and in those instances the labels will be green. It is the same with the VWAP, though instead of using the mean we use the daily VWAP as the starting point. If you choose to have levels switched on then you can see the actual values of each standard deviation level. Down lower in the options you can change the resolution and source used for VWAP.
The next option is "Trending". This creates a moving average using the length of the Trending Lookback Period (default is 5) and then tells you using arrows in the label which direction the trend of the indicator is going.
The next area let's you specify the information you receive in the Squeeze labels. By default all options are one - and this tells you if there's a Squeeze, what type of Squeeze there is, and how many bars the Squeeze has been building up or since it fired. These labels are color coded to correspond with the Squeeze type as well.
Then we get to another one of my indicators, the Ballista. One of the main signals is the "Inverted Squeeze" where the short term momentum inverts against the long term momentum. Here I have the distance between the two oscillators in the first label, and then the second label tells you if there's an Inverted Squeeze signal, if there's potential entry, confirmed entry, or how many bars its been since the last entry signal.
The next feature is off by default, but it will add arrows to your chart based on a simple lower highs and higher lows signals. Turning arrows on will place them right on your chart above or below each bar.
The rest of it is customizable settings of all the other indicators that are shown. Now looking at the labels themselves, starting in the top left corner:
First Row-
ADX + DMI: These labels show the ADX, DI+, & DI- values in each label. Whenever the DI+ or DI- is above the other then their respective label will light up. Also, when the ADX is above 20 (confirming the trend) it lights up in the same color as well.
Squeeze: I described how this worked above, the labels tell you if there's a Squeeze, how long there's been one, and how long since it fired, all while also changing to color of the associated Squeeze type.
Second Row -
Stacked EMAs: The top label looks at the EMA values using the numbers of the Fibonacci sequence. It looks at the EMA 8, 21, 34, 55, 89, & 233 and tells you if they're all stacked in the same direction (Stacked Bear meaning they're all crossed down in order, Stacked Bull meaning they're all crossed up in order). If the EMAs are all stacked but 1 or 2 it will say Stacked -1 or Stacked -2. When they're all over the place it will say they aren't stacked at all.
BB%: This tells you the value of the Bollinger Band %. If this is negative then you know that price is currently below the lower Bollinger Band, and if it is above 100% it is above the upper Bollinger Band.
RSI: This tells you the value of the RSI and the label changes colors based on the value.
Stoch: This tells you the Stochastic value and changes colors based on the value, same as the RSI.
Third Row -
The Mean: This tells you the numerical value of whatever you have the mean set as (21 ema by default). The label changes colors based on price being above or below the mean.
One ATR: This was something I added for those looking to plan their trades out. This tells you the value of one ATR so you can have a better idea of how to plan your trades based on this distance.
VIX: This tells you the current value of the VIX, and color changes based on being green or red on the day.
Ballista: I explained this above, it tells you the distance between the two oscillators and changes colors based on the trend being above or below 0. When there's an Inverted Squeeze this label is gray.
Inverted Squeeze: This label tells you if there's an inverted squeeze as well as if it is showing an entry or how many bars since the last entry signal. This label turns fuchsia on a bear signal and lime on a bull signal.
Fourth Row -
ATR Bands: As I explained above, this plots each standard deviation using ATR and changes colors based on price's relationship to each one.
Fifth Row -
VWAP: The three labels here show the daily, weekly, and monthly VWAP values, and color changes based on price's relationship to each one.
Sixth Row -
VWAP Bands: These are the standard deviation levels of the VWAP resolution of your choosing (as explained above), and just as the others, colors change based on price's relationship to each one.
I thought this was a really cool indicator that could be used for people like me who like knowing the right information, but HATE having their charts clustered with a ton of stuff. Hope you all like it, enjoy!
Squeeze Momentum 3# Squeeze Momentum 3
First of All, I would like to give my gratitude to for the initital script's idea.
This is my own version of SQZMOM. I had revised all equations and parameters according to Investopedia.
Still, no matter how much we stick to the indicator, the indicator can not see the future.
Trading results vary from time to time. In my opinion, SQZMOM is great for speculating under 4H timeframe.
Remarks;
- implement horizontal shift
- revised all equations. Unfortunately, there is no magic params.
- Be careful with your money management
- Good Luck
Stacked EMAsStacked Daily & Weekly EMAs + Labels
Pretty much self-explanatory indicator that shows the current momentum based on the key exponential moving averages.
Three stages of the EMAs:
1. Stacked Positively (Bullish) - EMAs are stacked on top of each other which represents a healthy bullish uptrend (green Label).
2. Stacked Negatively (Bearish) - EMAs are stacked below each other meaning the trend is bearish (red label).
3. Stacked Neutral (Neutral) - EMAs are crossing each other without any clear direction = chop (yellow label).
Hope it helps.
LNL Squeeze ArrowsIf you struggle with the entries, low % win rate or trading the squeeze setup overall, this indicator is for you!
If you look closely at your losing trades, chances are the losers have one thing in common = inverse momentum. I created this tool after I found out that Stacked EMAs and picture perfect trend is not the only thing you need for a squeeze setup. Squeeze arrows pinpoint the exact moment where the squeeze momentum change happens (momentum change is absolutely crucial for the squeeze setup). These arrows will help you stay out of "everything was aligned but still failed" type of setups.
Squeeze Arrows:
1. Momentum Arrows (cyan blue/red) - Showing the best possible moment for an entry during the squeeze (after you see one, you can expect the squeeze to fire soon).
2. Slingshot Arrows (yellow) - Even though you can trade off of them, these arrows work mostly as a confirmation & caution tool. If an inverse slingshot arrow is plotted during a squeeze that means caution = you should wait because momentum is not on your side thus there there is a quite high probability that the squeeze can fire the other direction.
Squeeze Dots Trigger:
Represents the number of red dots (squeeze) after which the arrows should plot. Default = 5 (only after 5 red dots, arrows will appear), some traders like to set it on 3 or even 1.
Tips & Tricks:
1.Breakout or Bailout Mentality
- The big advantage of the arrows is the fact that they either work straight away or they don't. This is where you can apply the breakout or bailout mentality and really focus exclusively on the breakout part of the whole squeeze move. You can minimize the risk by putting mental stops just a few points below the last low of the candle where the arrows appeared. That way you can be stopped out even during the squeeze = won't hurt as much as when the squeeze fire the opposite direction. Reward may be the same but the risk is lower.
2. Yellow Flags
- Use the slingshot arrows as a caution tool. Even if all your squeeze criteria are met. Yellow inverse arrow = caution (wait for the true momentum change). Once the slingshot arrow appears in the conext of the trend, you are good to go.
3. Last Arrow Rule
- Sometimes you will see a lot of arrows during the longer squeezes. This is where the last arrow rule come in handy. The last arrow you see on chart can be canceled anytime by a new one. The last arrow is the valid one!
Hope you can squeeze from these squeeze arrows as much as there is to squeeze so you can finally trade the squeeze with ease.
Hope it helps.
LNL Fractal EnergyMarkets knows only two movements. Expansion and Consolidation. The price is either moving or it is consolidating. Fractal Energy will show you which move is about to happen. The funny thing is.. Fractal Energy will NOT tell you the direction of the potential move nor the time when the move will happen. It only shows whether the energy is accumulating or exhausting and which one of these moves are about to happen.
Fractal Energy Zones:
1. Gray = Neutral Energy, price will spend most of the time between the 0.60 and 0.30 ranges, if the FE is hanging around midline chop can be expected.
2. Pink = Energy Building (low compression), pink can produce solid moves but can turn in to a red or dark red which are way more powerful.
3. Red = Energy Building (yet to be released), once the FE colors red there is a high probability for a bigger than expected move.
4. Dark Red = Energy Building (high compression), dark red is rare and can be seen usually around earnings reports (explosive move can be expected).
5. Yellow = Energy Released = Exhaustion, everything ends at some point, yellow color represents the exhaustion of the move (the car ran out of gas).
6. Orange = Extreme Exhaustion, high probability for a sideways action or a reversal.
Tips & Tricks:
1. Importance of the Midline:
- Midline can be used as a target for the compressions. Once the FE reach the midpoint, the move is usually considered to be over.
2. Huge Gaps on earnings DO NOT COUNT:
- If the price heavily gaps up or gaps down, FE usually drops too steep with the gap thus signals after such moves can be ignored.
3. Fractal Energy Length & Time Frames:
- For the daily & weekly time frame length of 13 works nicely. But for the lower TF length 13 starts to lag behind the price a little. I would suggest using Length 15 for 30min to 4 hour and Length 17 - 20 for below 30min time frames.
4. Exhaustions:
- Exhaustions can be played too. Once the FE drops below 0.30 the price usually stays within the weekly expected move (great for iron condors), or non directional option strategies.. yellow/orange = price either reverse or stays at same levels for a few candles..
5. Combination of direction based studies with the magnitude based studies:
- Use the FE as a confirmation of your analysis from other (direction-based) trend or momentum indicators. Once you analyze your direction you can use Fractal Energy (magnitute-based) indicator to analyse whether there is a chance for a big move or not.
Hope it helps.
Multi Entry Signal Strategy by TradeSmartThis strategy is intended to test different entry signals. You can use 13 different entry signals in the strategy.
Available signals with all their settings:
Heikin Ashi
RSI + EMA
Wavetrend
MACD
Stochastic RSI
Squeeze Momentum
Kairi Relative Index
SSL
Supertrend
Parabolic SAR
Chandelier Exit
Directional Movement Index
Quantitative Qualitative Estimation
For exact rules of entries please relate to the tooltips of each entry signal. All the signals can be used together or separately in the strategy.
Additional settings that can be used:
Trend Filter (limit long or short entries based on a moving average of your choice)
Exit Strategy settings (ATR is used to determine stop loss and take profit levels)
Trailing Loss Setups (you can use 3 different types of trailing losses)
Setups (you can set Long and Short entries as well as the order size based on either Capital % or Risk %)
Date Range (you can limit trades to specific date ranges)
Trading Time (you can limit on which days to trade)
Squeeze M + ADX + TTM (Trading Latino & John Carter) by [Rolgui]About this indicator:
This indicator aims to combine two good performing strategies, which can be used separately or together, mainly for investment positions, although it can also be used for intraday trading.
Strategy 1) Squeeze Oscillator and Average Directional Index:
This strategy is taught by Jaime Aibsai, which determines market entries based on reading the direction of the price movement (Directionality of the Oscillator) along with the strength of the Oscillator (Slope of the ADX).
Both tools are configured according to Jaime Abisai's strategy, by default (note that point 23 of the ADX is represented by point 0 on the panel, to make reading easier, its interpretation is not affected). Anyway you can adjust the input data according to your interest.
*You can see this setting in the first panel.
Strategy 2) Squeeze Momentum and Trade The Market Waves:
This strategy can be consulted either in John F. Carter's books or on his website.
This market reading is based on Price Volatility (Bollinger Bands and Keltner Channels interaction) and its Trend (Exponential Moving Averages), showing entries at times when price volatility is low and taking filtering active trend using T.T.M. Waves.
To configure the indicator in the same way that Carter does, it would be enough to turn off the ADX, turn on the Squeeze Momentum signals along with the T.T.M. Waves, and importantly, change the Linear Momentum value to 12 (this configuration can be found in his book).
*You can see this setting in the second panel.
Why this indicator?
I've added and removed the above flags as I needed to query them (which became tedious for me). The main objective of having merged them into one is to make their reading more agile and comfortable and thus improve the decision-making capacity of the trader who wishes to use them.
Credits and Acknowledgments:
I would like to give credits to other authors, for the sections of code that I have used to make this technical indicator. Thanks to @LazyBear, @matetaronna, @jombie and @joren for contributing to the community and keeping their code open. It is priceless!
Feel free to combine and practice your trading with both strategies, personally, they improved my profitability and this is why I recommend researching more about them. I've been using it for crypto investing, let me know if it's worth for you on stock market!
If you have any questions or suggestions you can leave it in the comments!
Greetings!
StapleIndicatorsLibrary "StapleIndicators"
This Library provides some common indicators commonly referenced from other studies in Pine Script
squeeze(bbSrc, bbPeriod, bbDev, kcSrc, kcPeriod, kcATR, signalPeriod) Volatility Squeeze
Parameters:
bbSrc : (Optional) Bollinger Bands Source. By default close
bbPeriod : (Optional) Bollinger Bands Period. By default 20
bbDev : (Optional) Bollinger Bands Standard Deviation. By default 2.0
kcSrc : (Optional) Keltner Channel Source. By default close
kcPeriod : (Optional) Keltner Channel Period. By default 20
kcATR : (Optional) Keltner Channel ATR Multiplier. By default 1.5
signalPeriod : (Optional) Keltner Channel ATR Multiplier. By default 1.5
Returns:
adx(diPeriod, adxPeriod, signalPeriod, adxTier1, adxTier2, adxTier3) ADX: Average Directional Index
Parameters:
diPeriod : (Optional) Directional Indicator Period. By default 14
adxPeriod : (Optional) ADX Smoothing. By default 14
signalPeriod : (Optional) Signal Period. By default 13
adxTier1 : (Optional) ADX Tier #1 Level. By default 20
adxTier2 : (Optional) ADX Tier #2 Level. By default 15
adxTier3 : (Optional) ADX Tier #3 Level. By default 10
Returns:
smaPreset(srcMa) Delivers a set of frequently used Simple Moving Averages
Parameters:
srcMa : (Optional) MA Source. By default 'close'
Returns:
emaPreset(srcMa) Delivers a set of frequently used Exponential Moving Averages
Parameters:
srcMa : (Optional) MA Source. By default 'close'
Returns:
maSelect(ma, srcMa) Filters and outputs the selected MA
Parameters:
ma : (Optional) MA text. By default 'Ema-21'
srcMa : (Optional) MA Source. By default 'close'
Returns: maSelected
periodAdapt(modeAdaptative, src, maxLen, minLen) Adaptative Period
Parameters:
modeAdaptative : (Optional) Adaptative Mode. By default 'Average'
src : (Optional) Source. By default 'close'
maxLen : (Optional) Max Period. By default '60'
minLen : (Optional) Min Period. By default '4'
Returns: periodAdaptative
azlema(modeAdaptative, srcMa) Azlema: Adaptative Zero-Lag Ema
Parameters:
modeAdaptative : (Optional) Adaptative Mode. By default 'Average'
srcMa : (Optional) MA Source. By default 'close'
Returns: azlema
ssma(lsmaVar, srcMa, periodMa) SSMA: Smooth Simple MA
Parameters:
lsmaVar : Linear Regression Curve.
srcMa : (Optional) MA Source. By default 'close'
periodMa : (Optional) MA Period. By default '13'
Returns: ssma
jvf(srcMa, periodMa) Jurik Volatility Factor
Parameters:
srcMa : (Optional) MA Source. By default 'close'
periodMa : (Optional) MA Period. By default '7'
Returns:
jBands(srcMa, periodMa) Jurik Bands
Parameters:
srcMa : (Optional) MA Source. By default 'close'
periodMa : (Optional) MA Period. By default '7'
Returns:
jma(srcMa, periodMa, phase) Jurik MA (JMA)
Parameters:
srcMa : (Optional) MA Source. By default 'close'
periodMa : (Optional) MA Period. By default '7'
phase : (Optional) Phase. By default '50'
Returns: jma
maCustom(ma, srcMa, periodMa, lrOffset, almaOffset, almaSigma, jmaPhase, azlemaMode) Creates a custom Moving Average
Parameters:
ma : (Optional) MA text. By default 'Ema'
srcMa : (Optional) MA Source. By default 'close'
periodMa : (Optional) MA Period. By default '13'
lrOffset : (Optional) Linear Regression Offset. By default '0'
almaOffset : (Optional) Alma Offset. By default '0.85'
almaSigma : (Optional) Alma Sigma. By default '6'
jmaPhase : (Optional) JMA Phase. By default '50'
azlemaMode : (Optional) Azlema Adaptative Mode. By default 'Average'
Returns: maTF
AR Peti Kemas Candle Cross EMA8 EMA13 EMA21 EMA55 EMA90 EMA200This is implementation of Peti Kemas. Slighly modified for the selection of EMA period, but user can change the period.
The strategy is if the current candle close is below EMA90 and EMA200, the buy signal is generated when the close crosses up EMA13.
When the close above EMA90 and ENA200, then the buy signal is generated when the close crosses up EMA8
[CBB] Volatility Squeeze ToyThe main concept and features of this script are adapted from Mark Whistler's book "Volatility Illuminated". I have deviated from the use cases and strategies presented in the book, but the 3 Bollinger Bands use his optimized settings as the default length and standard deviation multiplier. Further insights into Mark's concepts and volatility research were gained by reading and watching some of TV user DadShark's materials (www.tradingview.com).
This script has been through many refinements and feature cycles, and I've added unrelated complimentary features not present in the book. The indicator is better studied than described, and unless you have read the book, any short summary of the material will just make you squint and think about the wrong things.
Here is a limited outline of features and concepts:
1. 3 Bollinger Bands of different length and/or deviation multiplier. Perhaps think of them as representing the various time frames that compression and expansion cycles and events manifest in, and also the expression of range, speed and price distribution within those time frames. You can gain insight into the magnitude of events based on how the three bands interact and stay contained, or not. If volatility is significant enough, all "time frames" represented by the bands will eventually record the event and subsequent price action, but the early signals will come from the spasms of the shortest, most volatile band. Many times the short band will contract again before, or just as it reaches a longer band, but in extreme cases, volatility will explode and all bands at all time frames will erupt in succession. In these cases you will see additional color representing shorter bands (lower time frame volatility in concept) traveling outside of longer bands. It is worth taking a look at the price levels and candles where these volatility bands cross each other.
2. In addition to the mean of the bands, there are a variety of other moving averages available to gauge trend, range, and areas of interest. This is accomplished with variable VWAP, ATR, smoothing, and a special derived loosely from the difference between them.
3. The bands are also used to derive conditions under which volatility is considered compressed, or in "squeeze" . Under these conditions the candles will turn yellow. Depending on your chart settings and indicator settings, these zones can be completely useless or drag on through fairly significant price action. Or, the can give you fantastic levels to watch for breakouts. The point is that volatility is compressed during these conditions, and you should expect the inevitable once this condition ends. Sometimes you can find yourself in a nice fat trend straight away, other times you may blow an account because you gorged your position based on arbitrary bar color. It's not like that. Pay attention to the highest and lowest bars of these squeeze ranges, and carefully observe future price action when it returns to these squeeze ranges. This info is more and more valuable at higher time frames.
The 3 bands, a smoothed long trend VWAP, and the squeeze condition colored bars are all active by default. All features can be shown or hidden on the control panel.
There are some deep market insights to mine if you live with this one for a while. As with any indicator, blunt "buy/sell here" approaches will lead to loss and frustration. however , if you pay attention to squeeze range, band/moving average confluence, high volume and/or large range candles their open/close behavior around these areas and squeeze ranges, you will start to catch the beginning of some powerful momentum moves.
Enjoy!
Trading Made Easy Pressure OscillatorAs always, this is not financial advice and use at your own risk. Trading is risky and can cost you significant sums of money if you are not careful. Make sure you always have a proper entry and exit plan that includes defining your risk before you enter a trade.
Those who have looked at my other indicators know that I am a big fan of Dr. Alexander Elder and John Carter. This is relevant to my trading style and to this indicator in general. While I understand it goes against TradingView rules generally to display other indicators while describing a new one, I need the Bollinger Bands, Bollinger Bands Width, and a secondary directional indicator to explain the full power of this indicator. In short, if this is strongly against the rules, I will edit the post as needed.
Those of you who are aware of John Carter are going to know this already, but for those who don’t, an explanation is necessary. John Carter is a relatively famous retail-turned-institutional (sort of) trader. He is the founder of TradetheMarkets, that later turned into SimplerTrading. Him and his company have a series of YouTube videos, he has made appearances on the MoneyShow, TastyTrade, and has authored a couple of books about trading. However, he is probably most famous for his “Squeeze” indicator that was originally launched on Thinkorswim and through his website but has now been incorporated into several trading platforms and even has a few open-source versions available here. In short, the Squeeze indicator looks to identify periods of consolidation and marry that with a momentum oscillator so you can position yourself in a quiet period before a large move. This in my opinion, is one of the best indicators an option trader can have, since options are priced both on time and volatility. To do this, the Squeeze identifies when the Bollinger Bands, a measure of price standard deviation, have contracted inside the Keltner Channels (a measure of the average range of a stock). This highlights something known as “the Squeeze”, when the 2x standard deviations (95% of all likely price movement using data from the past 20 periods) is less than the 1.5x average true range (ATR) of the stock over the same number of periods. These periods are when a stock is resting and in a period of consolidation and is generally followed by another large move once it has rested long enough. The momentum oscillator is used to determine the direction of this next move.
While I think this is one of the best indicators ever made, it is not without its pitfalls. I find that the “Squeeze” periods sometimes take too long to setup (something that was addressed by John and released in a new indicator, the Squeeze Pro, but even that is still slowish) and that the momentum oscillator was also a bit slow. They used a linear regression formula to track momentum, which can lag considerably at times. Collectively, this meant that getting into moves a few candles late was not uncommon or someone solely trading squeeze setups could have missed very good trade opportunities.
To improve on this, I present, the Trading Made Easy Pressure Oscillator. This more accurately identifies when volatility is reducing and the trading range is likely to contract, increasing the “pressure” on the price. This is often marked several candles before a “Squeeze” has started. To identify these ranges, I applied a 21-period exponential moving average to the Bollinger Bands Width indicator (BBW). As mentioned above, the Bollinger Bands measure the 2x standard deviation of price, typically based on a 20-period SMA. When the BBs expand, it marks periods of high volatility, when they contract, conversely, periods of low volatility. Therefore, applying an EMA to the BBW indicator allows us to confidently mark when volatility has slowed down earlier than traditional methods. The second improvement I made was using the Absolute Price oscillator instead of a linear regression-style oscillator. The APO is very similar to a MACD, it measures the difference between two exponential moving averages, here the 8 and 21 (Fibonacci EMAs). However, I find the APO to be smoother than the MACD, yet more reactive than the linear regression-style oscillators to get you into moves earlier.
Uses:
1) Buying before a bigger than expected move. This is especially relevant for options traders since theta decay will often eat away much of our profits while we wait for a large enough price move to offset the time decay. Here, we buy a call option/shares when the momentum oscillator matches the longer-term trend (i.e. the APO crosses over the zero line when price is above the 200-day EMA, and vice versa for puts/shorting the stock). This coincides with Dr. Elder’s Triple Screen Trading System, that we are aligning ourselves with the path of least resistance. We want to do this when price is currently in an increasing pressure situation (i.e. volatility is contracting) to make sure we are buying an option when premium and Implied Volatility is low so we can get a better price and have a better risk to reward ratio. Low volatility is denoted by a purple dot, high volatility a blue dot along the midline of the indicator. A scalper or short-term swing trader may look to exit when the blue dots turn purple signalling a likely end to a move. A longer-term trend trader can look to other exit scenarios, such as a cross of the oscillator below the zero line, signalling to go short, or using a moving average as a trailing stop.
2) Sell premium after a larger than expected move has finished. After a larger than expected move has completed (a series of blue dots is followed by a purple dot), use this time to sell theta-driven options strategies such as straddles, strangles, iron condors, calendar spreads, or iron butterflies, anything that benefits from contracting volatility and stagnating prices. This is useful here since reducing volatility typically means a contraction of prices and the reduced likelihood of a move outside of the normal range.
3) Divergences. This indicator is sensitive enough to highlight divergences. I personally don’t use it as such as I prefer to trend trade vs. reversion trade. Use at your own risk, but they are there.
In summary, this indicator improves upon the famous Squeeze indicator by increasing the speed at which periods of consolidation are marked and trend identification. I hope you enjoy it.
Leonidas Squeeze Momentum SystemThis indicator is based on LazyBear SQ Momentum Indicator and SQ Plus Indicator.
This indicator is using ADX and Squeeze Momentum Indicator.
When you see the ADX above 0 line and the slop is positive that means the trend is strong
When the ADX is below 0 line and the trend is weak you will see the slop negative and the color gray
When we see the SQ changing the color from Red to Yellow that means the sell pressure is decreasing this could be a potential buy signal
When we see the color changing from blue to dark blue that means the buy pressure is decreasing this could be a a potential sell signal
Bull/Bear divergences supported
Added SQ signal
this signal is an exponential moving average following the SQ main signal useful for filtering fake signals.
This indicator is very powerful but offers many fake signals it is recommended using this indicator with other indicators to confirm the entries
MTF Radar_vtMTF Radar is like your car dashboard for trading. It is your X-ray machine and, in one glance, you know what price is doing in all major time frames, from 5m to 1Q, without having to flip through multiple charts. Simple and visual!
The Sqz column indicates whether a stock is in consolidation(i.e. in squeeze) or in expansion (fired). Color denotes different compression levels: tight - black, medium - red, low - orange, green - fired.
T1 and T2 are two different trend systems:
T1 - green = bullish trend, red = bearish trend, gray = side ways, yellow - trend change
T2 - green = bullish trend, red = bearish trend, gray = side ways
T1 is a more sensitive system compared to T2.
Momo column shows squeeze momentum bars with matching color.
P+: momentum is positive and increasing. Light blue.
P-: momentum is positive and decreasing. Dark blue.
N+: momentum is negative and increasing. Yellow.
N-: momentum is negative and decreasing. Dark blue.
MTF Radar_vt is a light version of the full indicator and covers:
- most futures market
- 30 stocks in Dow Index
- Index and sector ETFs : SPY, QQQ, DIA, IWM, XLE, XLF, XLU, GDX, XLK, XLV, XLY, XLB, ITB, XRT, SMH, IBB, KRE, XLC, GDXJ, KBE
- Some key stocks: AAPL, AMZN, FB, GOOGL, TSLA, NVDA, NFLX
- Forex pairs: DXY,AUDCAD,AUDJPY,AUDNZD,AUDUSD,EURCAD,EURGBP,EURJPY,EURUSD,GBPJPY,GBPUSD,NZDUSD,USDCAD,USDJPY
Full version works on all stocks and assets. If you like this indicator and require the full version, please contact the author.
Credits:
-> John Carter - creator of TTM Squeeze and TTM Squeeze Pro
-> Lazybear's interpretation of the TTM Squeeze: Squeeze Momentum Indicator
ADX Change
––––History & Credit
The idea of ADX change came from a trading book I read by Charles Le Beau and David Lucas (Computer Analysis of the Futures Market).
–––––What it does
The script calculates the Average Directional Index (ADX) and the period to period change. The script calculated 4 conditions:
– ADX accelerating to the upside (color cyan):
ADX>20
DMI+>DMI-
This period's absolute ADX number is HIGHER than pervious' period ADX number
- ADX momentum slowing to the upside (color blue):
ADX>20
DMI+>DMI-
This period's absolute ADX number is LOWER than pervious' period ADX number
- ADX momentum accelerating to the downside (color yellow):
ADX>20
DMI->DMI+
This period's absolute ADX number is HIGHER than pervious' period ADX number
- ADX momentum slowing to the downside (color yellow):
ADX>20
DMI->DMI+
This period's absolute ADX number is LOWER than pervious' period ADX number
–––––How to use it
I combine the ADX Change as a secondary indicator, that confirms my positions. I combine it with other momentum indicators like the TTM Squeeze.
If I am in position and the ADX Change is cyan, I would hold on the position until I see some shift in momentum or ADX change. This helps me hold on to my winners.
For the more advanced traders, it could be used to indicate shifts in momentum and buy points.