LB Squeeze Momentum DivergencesThis study tries to highlight LazyBear Squeeze Momentum divergences
as they are defined by
TradingLatino TradingView user
Squeeze momentum green peaks are connected by a line
Associated prices to these green peaks are also connected
If both lines have a different slope orientation
then there is a divergence.
It only shows two last divergence lines and angles.
The original chart screenshot shows some divergence lines
on the top or main chart
these were drawn manually
because you cannot write to two different charts
from the same pine script study (Well, not in August 2020 anyways)
It's aimed at BTCUSDT pair and 4h timeframe.
HOW IT WORKS
Simple geometric mathematics are used
to calculate the two lines degrees
Then both degrees are compared
to show if both lines agree ( // or \\ )
or if they disagree ( /\ or \/ )
SETTINGS
(SQZDiver) Show degrees : Show degrees of each Squeeze Momentum Divergence
lines to the x-axis.
(SQZDiver) Show desviation labels : Whether to show
or not desviation labels for the Squeeze Momentum Divergences.
(SQZDiver) Show desviation lines : Whether to show
or not desviation lines for the Squeeze Momentum Divergences.
(ADX) Smoothing
(ADX) DI Length
(ADX) key level
(ADX) Print : Whether to show
or not scaled ADX line
(SQZMOM) BB Length
(SQZMOM) BB MultFactor
(SQZMOM) KC Length
(SQZMOM) KC MultFactor
(SQZMOM) Use TrueRange (KC)
(SQZMOM) Print : Whether to show
or not Squeeze Momentum indicator.
WARNING
Some securities and timeframes might output degrees
too next to zero.
The code might need to be tweaked to meet your needs.
USAGE
One strategy is to sell when you are in a long entry
when you find out that the price slope is upwards ( / )
while the lb smilb slope is downwards: ( \ )
E.g. You will see:
/
\
on the indicator.
Why?
Because it might signal you that the price is
going to correct downwards soon.
FEEDBACK 1
Please let me know if there is any
other strategy based on the red side of
LB Squeeze Momentum
so that I might add support for it in the future.
FEEDBACK 2
Calculating degrees in a chart
with a different x-axis scale
is a nightmare
that's why I did not a range settings
so that values next to zero are
converted into zero
and thus showing an horizontal line.
Feedback is welcome on this matter.
EXTRA 1
If you turn off showing the divergence lines
and if you turn off showing the divergence labels
you almost get what TradingLatino user uses
as its default momentum indicator.
EXTRA 2
Optionally this indicator can show you
a rescaled ADX (it only works properly on 2020 Bitcoin charts)
ABOUT COLOURS
TradingLatino user has both dark green and light green
inverted compared to this LB SQZMOM chart.
CREDITS
I have reused and adapted some code from
'Squeeze Momentum Indicator' study
which it's from TradingView LazyBear user.
I have reused and adapted some code from
'Directional Movement Index + ADX & Keylevel Support' study
which it's from TradingView console user.
โมเมนตัม อินดิเคเตอร์ (MOM)
Momentum adjusted Moving Average by DGTA brand new Moving Average , calculated using Momentum, Acceleration and Probability (Psychological Effect).
Momentum adjusted Moving Average(MaMA) is an indicator that measures Price Action by taking into consideration not only Price movements but also its Momentum, Acceleration and Probability. MaMA, provides faster responses comparing to the regular Moving Average
Here is the math of the MaMA idea
Momentum measures change in price over a specified time period
momentum = source – source(length)
where,
source, indicates current bar’s price value
source(length), indicates historical price value of length bars earlier
Lets play with this formula and rewrite it by moving source(length) to other side of the equation
source = source(length) + momentum
to avoid confusion let’s call the source that we aim to predict as adjustedSource
adjustedSource = source(length) + momentum
looks nice the next value of source simply can be calculated by summing of historical value of the source value and value of the momentum. I wish it was so easy, the formula holds true only when the momentum is conserved/constant/steady but momentum move up or down with the price fluctuations (accelerating or decelerating)
Let’s add acceleration effects on our formula, where acceleration is change in momentum for a given length. Then the formula will become as (skipped proof part of acceleration effects, you may google for further details)
adjustedSource = source(length) + momentum + 1/2 * acceleration
here again the formula holds true when the acceleration is constant and once again it is not the case for trading, acceleration also changes with the price fluctuations
Then, how we can benefit from all of this, it has value yet requires additional approaches for better outcome
Let’s simulate behaviour with some predictive approach such as using probability (also known as psychological effect ), where probability is a measure for calculating the chances or the possibilities of the occurrence of a random event. As stated earlier above momentum and acceleration are changing with the price fluctuations, by using the probability approach we can add a predictive skill to determine the likelihood of momentum and acceleration changes (remember it is a predictive approach). With this approach, our equations can be expresses as follows
adjustedSource = source(length) + momentum * probability
adjustedSource = source(length) + ( momentum + 1/2 * acceleration ) * probability , with acceleration effect
Finally, we plot MaMA with the new predicted source adjustedSource, applying acceleration effect is made settable by the used from the dialog box, default value is true.
What to look for:
• Trend Identification
• Support and Resistance
• Price Crossovers
Recommended settings are applied as default settings, if you wish to change the length of the MaMA then you should also adjust length of Momentum (and/or Probability). For example for faster moving average such as 21 period it would be suggested to set momentum length to 13
Alternative usage , set moving average length to 1 and keep rest lengths with default values, it will produce a predictive price line based on momentum and probability. Experience acceleration factor by enabling and disabling it
Conclusion
MaMA provide an added level of confidence to a trading strategy and yet it is important to always be aware that it implements a predictive approach in a chaotic market use with caution just like with any indicator
Trading success is all about following your trading strategy and the indicators should fit within your trading strategy, and not to be traded upon solely
Disclaimer : The script is for informational and educational purposes only. Use of the script does not constitutes professional and/or financial advice. You alone the sole responsibility of evaluating the script output and risks associated with the use of the script. In exchange for using the script, you agree not to hold dgtrd TradingView user liable for any possible claim for damages arising from any decision you make based on use of the script
Spread for VSAЭтот индикатор сравнивает спрэд (расстояние от закрытия предыдущего бара до закрытия текущего бара или индикатор Momentum = 1) на периоде для сравнения.
На графике за 100 % принимается среднее значение спрэда за период для сравнения - красная линия. (по умолчанию период сравнения равен 3 - то есть три последних бара)
Размер бара на графике равен текущему спрэду по отношению к 100 %.
Если бар меньше 100 % то он ниже среднего, и наоборот если больше 100% то он больше среднего.
Если бар красный - спрэд отрицательный (текущее закрытие меньше предыдущего закрытия)
Если бар зелёный - спрэд положительный (текущее закрытие больше предыдущего закрытия)
Если бар меньше 75% то он будет окрашен в тусклый цвет (этот процент можно менять в настройках)
Если в настройках период спрэда указать больше 1, например 2, то спрэд будет равен закрытие мину закрытие через 1 бар назад. (это для экспериментов).
Примечание:
по умолчанию период для сравнения равен 3, но также интересен график и при значениях 15 и больше. Экспериментируйте.
По вопросам и предложениям пишите в комментариях.
Automatic translation google translate.
This indicator compares the spread (the distance from the closing of the previous bar to the closing of the current bar or the Momentum indicator = 1) on the period for comparison.
On the chart, the average spread value for the period for comparison is the red line, taken as 100%. (by default, the comparison period is 3 - that is, the last three bars)
The size of the bar on the chart is equal to the current spread with respect to 100%.
If the bar is less than 100%, then it is below average, and vice versa, if more than 100%, then it is more than average.
If the bar is red, the spread is negative (the current close is less than the previous close)
If the bar is green, the spread is positive (the current close is greater than the previous close)
If the bar is less than 75%, then it will be painted in a dull color (this percentage can be changed in the settings)
If in the settings the period of the spread is specified more than 1, for example 2, then the spread will be equal to closing mine closing after 1 bar back. (this is for experimentation).
Note:
the default period for comparison is 3, but the chart is also interesting for values of 15 or more. Experiment.
For questions and suggestions, write in the comments.
13612WThis script is a 13612W momentum filter used in the Vigilant Asset Allocation (VAA) and Defensive Asset Allocation (DAA) created by Wouter J. Keller and Jan Willem Keuning.
This asset allocation strategy was uploaded to SSRN in 2017 and 2018.
13612W Calculation Method
(Profitability in Last 1 months * 12 +
Profitability in Last 3 months * 4 +
Profitability in Last 6 months * 2 +
Profitability in Last 12 months)/4
Let me briefly explain one of the VAAs, VAA-G4.
The VAA-G4 has an annualized return of 17.7%, a Sharpe ratio of 1.07% and Max Drawdown of 16.1%.
(It's too long and complicated to describe all VAA, DAA strategies. Above all, the translator performance is not good.)
VAA Global 4 Universe: SPY, EFA, EEM, AGG
Cash Universe: SHY , IEF, LQD
If 13612W of VAA Global 4 Universe is negative at least one
>> 100% of assets hold one of the highest 13612W of Cash Universe
If all 13612W of VAA Global 4 Universe are positive
>> 100% of assets hold one of the highest 13612W of VAA Global 4 Universe
Rebalancing is done every month according to this method.
Momentum Acceleration by DGTItalian physicist Galileo Galilei is usually credited with being the first to measure speed by considering the distance covered and the time it takes. Galileo defined speed as the distance covered during a period of time. In equation form, that is v = Δd / Δt where v is speed, Δd is change in distance, and Δt is change in time. The Greek symbol for delta, a triangle (Δ), means change.
Is the speed getting faster or slower?
Acceleration will be the answer, acceleration is defined as the rate of change of speed over a set period of time, meaning something is getting faster or slower. Mathematically expressed, acceleration denoted as a is a = Δv / Δt , where Δv is the change in speed and Δt is the change in time.
How to apply in trading
Lets think about Momentum, Rate of Return, Rate of Change all are calculated in almost same approach with Speed
Momentum measures change in price over a specified time period,
Rate of Change measures percent change in price over a specified time period,
Rate of Return measures the net gain or loss over a specified time period,
And Speed measures change in distance over a specified time period
So we may state that measuring the change in distance is also measuring the change in price over a specified time period which is length, hence
speed can be calculated as (source – source )/length and acceleration becomes (speed – speed )/length
In this study acceleration is used as signal line and result plotted as arrows demonstrating bull or bear direction where direction changes can be considered as trading setups
Just a little fun, since we deal with speed the short name of the study is named after famous cartoon character Speedy Gonzales
Trading success is all about following your trading strategy and the indicators should fit within your trading strategy, and not to be traded upon solely
Disclaimer: The script is for informational and educational purposes only. Use of the script does not constitutes professional and/or financial advice. You alone the sole responsibility of evaluating the script output and risks associated with the use of the script. In exchange for using the script, you agree not to hold dgtrd TradingView user liable for any possible claim for damages arising from any decision you make based on use of the script
Great Stochastic RSIThis is the Great stochastic rsi that color the candles on green when the K% is above the the D% and red when the K% is below the D%.
Stochastic rsi is a momentum indicator and it should be used to indicate the direction of the market.
It can be used as confirmation of a buy signal when the market is showing higher high and higher lows and after a red colored candle there is a green candle.
As well it can be used as confirmation of a sell signal when the market is showing lower high and lower lows and after a green colored candle there is a red candle.
or it can be used as exit indicator when on uptrend after the green candles there is a red candle or on the downtrend after red candles there is a green candle.
Rate of Return (RoR) by DGTA rate of return (RoR) is the net gain or loss of an investment over a specified time period, expressed as a percentage of the investment’s initial cost
Ehlers Restoring Pull Indicator [CC]The Restoring Pull Indicator was created by John Ehlers (Stocks & Commodities V.11:10 (395-400)) and this was one of his earliest indicators that functions as a momentum indicator . Buy when the indicator line is green and sell when it is red.
Let me know if you would like to see me publish more scripts or if you want something custom done!
Note: I'm republishing this because the original script couldn't be found in searches so this will fix that.
Volume Weighted MomentumThis momentum indicator uses the vwap.
U can see trend momentum and change and squeeze of momentum which can indicate that a bigger move is in preperation.
(NKC) MTF Squeeze Pro MultiTimeframe Squeeze Momentum Pro
Dots indicate squeeze
Fills indicate momentum
CM_Williams_Vix_Fix_V3_Ultimate_Filtered_Alerts_With_ThresholdModified from the original Vix Fix V3 to include thresholds of the bar values.
Squeeze Momentum Indicator [LazyBear] vHMAThis is a remake of the famous LazyBear Indicator, the Squeeze Momentum Indicator.
All i did was take out the SMA's and replace them with HMA's. HMA is a more responsive moving average.
Hull Moving Average.
This is a derivative of John Carter's "TTM Squeeze" volatility indicator, as discussed in his book "Mastering the Trade" (chapter 11).
Black crosses on the midline show that the market just entered a squeeze ( Bollinger Bands are with in Keltner Channel). This signifies low volatility , market preparing itself for an explosive move (up or down). Gray crosses signify "Squeeze release".
Mr.Carter suggests waiting till the first gray after a black cross, and taking a position in the direction of the momentum (for ex., if momentum value is above zero, go long). Exit the position when the momentum changes (increase or decrease --- signified by a color change). My (limited) experience with this shows, an additional indicator like ADX / WaveTrend, is needed to not miss good entry points. Also, Mr.Carter uses simple momentum indicator , while I have used a different method (linreg based) to plot the histogram.
More info:
- Book: Mastering The Trade by John F Carter
Here is the original version:
M-OscillatorM-Oscillator developed By Mohamed Fawzy, MFTA, CFTe
as Written in IFTA Journal 2018 Edition
more info : ifta.org
Interpretation
• M-Oscillator is a bounded oscillator that moves between (-14) and (+14),
• Movement above 10 is considered overbought, and movement below -10 is oversold.
Overbought/Oversold rule:
• Buy when the M-Oscillator violates the (-10) level to the downside and crosses back to the upside.
• Sell when the M-Oscillator crosses above the (+10) level and crosses back to the downside.
Crossover on Extreme Levels
• Sell signals are triggered when the M-Oscillator crosses its signal line above (13), which indicates an extreme market condition
• Buy signals are triggered when the M-Oscillator crosses its signal line below (- 13)
Trend Direction Force IndexThis is my own version of the famous Trend Direction Force Index and I modified the original to make my version react quickly to any trend. I have color coded the indicator to make it extremely easy to read so if it is green then buy and red then sell.
This was a custom request so if you would like more then just send me a message!
Double Smoothed MomentaDouble Smoothed Momenta was created by William Blau (Stocks & Commodities V. 9:5 (202-205)). His original indicator didn't use a signal period so I added one to notify you when to buy or sell. Buy when the indicator goes over the signal line and sell when it is falls below the signal line.
Let me know what other indicators you would like me to write scripts for!
New Momentum IndicatorThe Momentum Indicator was created by Darryl W Maddox (Stocks & Commodities V. 9:4 (158-159)) and it is one of the simplest and most powerful indicators out there. Buy when the indicator goes over 0 and sell when it falls below 0
Let me know what other indicators you would like to see me write a script for!
Stochastic RibbonA series of highs and lows of different lengths to create a ribbon-like indicator to emulate the stochastic oscillator's top (100), middle (50) and bottom (0). Traders can determine the strength of the support and resistance by the number of converging lines, choose price points and visualise momentum waves.
Inputs:
Theme: multiple colours/themes (theme 2)
Length: high/low length (14)
Start: plot number to start ribbon on (1)
PlotNumber: number of plots to show; maximum 10 per top, middle, bottom (10)
Example:
Length: 14
Start: 5
PlotNumber: 10
Estrategia de Monitor - RSI/EMAThis indicator, competes the signals of two of the most important and reliable indicators for monitoring price trends, the Squeeze Monitor and the RSI.
For a better visualization of the relationship of the indicators with the price, the Squeeze Monitor is presented in colored bars that represent the trend of the indicator. The RSI is combined with the EMA of the RSI that supports its directionality.
As additional support for decision making, the ADX is also plotted, as an element to project the force of the next movement.
The indicator settings are presented in the configuration of the indicator. The following parameters can be adjusted there:
** Monitor Parameters **
Monitor Length Squeeze -> "Long. Monitor"
** ADX parameters **
ADX Longitug -> "Long. ADX"
ADX Smoother -> "Suavizador ADX"
ADX Variation Factor -> "Factor Var. ADX"
This parameter defines the minimum variation for the
ADX address highlighting
** RSI parameters **
RSI Length -> "Long. RSI"
RSI Smoothing -> "Suavizador RSI"
RSI EMA Length -> "Long. EMA del RSI"
Finally, the Script consolidates the information, based on the trends of the indicators, and changes the color of the candle body. The color code considers Green for the uptrend, Red for the Downtrend and Yellow in transition processes (not operable).
Wolfs ADX + DII have created an alternative visualisation of the ADX + DI indicator created by MasaNakamura, credits to them for providing the source code! :-)
The histogram represents the distance between the DI+ and the DI-. The crossing of the histogram is equal to the crossing of the DI lines.
The ADX line is coloured based on the threshold.
This creates a clean representation of the ADX + DI.
Higher Highs & Lower Lows Stochastics - Vitali ApirineThis is my modified "Higher Highs & Lower Lows Stochastics" employing PSv4.0, originally formulated by Vitali Apirine for TASC - February 2016 Traders Tips. Reading through a TASC magazine of mine, behold, I found a little known indicator that I can't find anywhere on all of Tradingview. That was a tragedy I felt I had to resolve... This indicator is best described as a dual momentum indicator, being helpful with anticipating reversals, spotting emerging trends, and defining correction periods. I felt it worthy of justice to unveil this for all TV members to utilize and also learn from. It's uniqueness is beyond past due for the honor it deserves on Tradingview.
As always, I have included advanced Pine programming techniques that conform to proper "Pine Etiquette". For those of you who are newcomers to Pine Script, this code release may also help you comprehend the "Power of Pine" by employing advanced programming techniques while exhibiting code utilization in a most effective manner. This script's uniqueness displays that we can now override built-in Pine functions. Firstly, you may have noticed that I replaced ema(), sma(), highest(), and lowest(). If you weren't aware of this Pine capability, well, here is a prime example... Now you know! Just heed caution when doing so to ensure your replacement algorithms are 100% sound. Lastly, I also added an additional "Median" line where the companion stochastics seemingly appear to gravitate within a central zone.
NOTICE: You may have observed, there is highest(), lowest(), ema(), and sma() custom functions overwriting Pine built-ins, some of which are audaciously used in ternary. "IF" you are planning to use Pine Script v4.0 functions in ternary, be forewarned, they WILL NOT operate as expected in most scenarios. The reason why I legitimately used them here in ternary is because they are ONLY manually controlled by an input(). If these were dynamically controlled with bar-to-bar dynamic conditional logic, you would most certainly run into serious unexpected programming issues, potentially resulting in hours of frustrations and guaranteed loss of hair. That's my lesson for this release, so never ever forget this when utilizing the full potential of the "Power of Pine". For more information concerning these potential dilemmas, please consult "Execution of Pine functions and historical context inside function blocks" in the "Pine Script v4 User Manual".
Features List Includes:
Dark Background - Easily disabled in indicator Settings->Style for "Light" charts or with Pine commenting
AND much, much more... You have the source!
The comments section below is solely just for commenting and other remarks, ideas, compliments, etc... regarding only this indicator, not others. When available time provides itself, I will consider your inquiries, thoughts, and concepts presented below in the comments section, should you have any questions or comments regarding this indicator. When my indicators achieve more prevalent use by TV members, I may implement more ideas when they present themselves as worthy additions. As always, "Like" it if you simply just like it with a proper thumbs up, and also return to my scripts list occasionally for additional postings. Have a profitable future everyone!
TICK IndicatorThis indicator is meant for primarily day trading. This indicator displays TICK in an easy to follow format and becomes more visible when there is a strong move in either direction
Point and Figure (PnF) MomentumThis is live and non-repainting Point and Figure Chart Momentum tool. The script has it’s own P&F engine and not using integrated function of Trading View.
Point and Figure method is over 150 years old. It consist of columns that represent filtered price movements. Time is not a factor on P&F chart but as you can see with this script P&F chart created on time chart.
P&F chart provide several advantages, some of them are filtering insignificant price movements and noise, focusing on important price movements and making support/resistance levels much easier to identify.
Momentum indicator measures the rate of change or speed of price movement. It compares the current price with the previous price from a number of periods ago. By analysing the rate of change , possible to gauge the strength or “momentum”. By using this script we get Point and Figure chart momentum.
If you are new to Point & Figure Chart then you better get some information about it before using this tool. There are very good web sites and books. Please PM me if you need help about resources.
Options in the Script
Box size is one of the most important part of Point and Figure Charting. Chart price movement sensitivity is determined by the Point and Figure scale. Large box sizes see little movement across a specific price region, small box sizes see greater price movement on P&F chart. There are four different box scaling with this tool: Traditional, Percentage, Dynamic (ATR), or User-Defined
4 different methods for Box size can be used in this tool.
User Defined: The box size is set by user. A larger box size will result in more filtered price movements and fewer reversals. A smaller box size will result in less filtered price movements and more reversals.
ATR: Box size is dynamically calculated by using ATR, default period is 20.
Percentage: uses box sizes that are a fixed percentage of the stock's price. If percentage is 1 and stock’s price is $100 then box size will be $1
Traditional: uses a predefined table of price ranges to determine what the box size should be.
Price Range Box Size
Under 0.25 0.0625
0.25 to 1.00 0.125
1.00 to 5.00 0.25
5.00 to 20.00 0.50
20.00 to 100 1.0
100 to 200 2.0
200 to 500 4.0
500 to 1000 5.0
1000 to 25000 50.0
25000 and up 500.0
Default value is “ATR”, you may use one of these scaling method that suits your trading strategy.
If ATR or Percentage is chosen then there is rounding algorithm according to mintick value of the security. For example if mintick value is 0.001 and box size (ATR/Percentage) is 0.00124 then box size becomes 0.001.
And also while using dynamic box size (ATR or Percentage), box size changes only when closing price changed.
Reversal : It is the number of boxes required to change from a column of Xs to a column of Os or from a column of Os to a column of Xs. Default value is 3 (most used). For example if you choose reversal = 2 then you get the chart similar to Renko chart.
Source: Closing price or High-Low prices can be chosen as data source for P&F charting.
There is 2 options for P&F Momentum
Length: Length for the P&F Momentum, default value is 10
Display as: there are two options and can display as “Histogram” or “Line”
Growing or Waning Patterns [Alerts]Example how to color patterns of 3 bodies growing or waning by percentage with or without trend. Also included option for alert triggers. The yellow triangles on the chart denote where the alert triggers will fire.
• Choose Pattern Of Filter: shows bodies growing or waning or both.
• Sample Lengths Of AvgBar: number of recent bars to use for average size.
• BigBar Is Min% Of AvgBar: the minimum percent of average the big bar must be.
• MedBar Is Max% Of BigBar: the maximum percent of big bar the medium bar can be.
• SmlBar Is Max% Of MedBar: the maximum percent of medium bar the small bar can be.
• Repeat Pattern If n Bars: the number of bars to ignore repeat patterns, 1 allows all.
• Trending: on requires the growing or waning patterns to also be trending.
• GrayBars: colors non pattern bodies gray.
NOTICE: This is an example script and not meant to be used as an actual strategy. By using this script or any portion thereof, you acknowledge that you have read and understood that this is for research purposes only and I am not responsible for any financial losses you may incur by using this script!