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.
Índice de direção de movimento médio (ADX)
RDX ScoreModified TradingView script for @bankniftydoctor's RDX strategy. Original script idea credits to @TheProfessorDev
- I have modified the code to reflect core RDX strategy score, instead of the simplified one
- Every bar (including ones in RSI 45-55) will display its RDX score.
p.s .For the uninitiated, these number generated by this script are used for the RDX strategy devised by @bankniftydoctor. There's an anchored note at the upper right corner, which briefly summarises the RDX score & the positions to be taken accordingly.
OBV - ADX and DI+/-This is the ADX and DI+/- indicator applied to OBV!
This really clearly shows up and down, but using VOLUME! Don't ignore it, there is too much information captured in the OBV.
If you just love the ADX/DI format, it is included in a checkbox.
Want some excellent background highlighting, turn in on in a checkbox.
Shout out to some inspirations
csw-dmi
unRekt-KISS-Addie
[WJ] - ADX v2 [DMI, Alerts, Histogram, Customizable]A handy all-in-one package for DMI and ADX
Color-coordinated line for DMI with an EMA and histogram to gauge momentum, mark potential reversals, and quickly gather all the information you need to make your decisions.
Quick take-aways:
- Color of the ADX line indicates the current trend
- An ADX below the EMA indicates a potentially falling/reversing trend
- Customizable line w/ alerts for ADX crossovers
- Histogram to help catch potential reversals faster, and to gauge the momentum
Please let me know what you think, and in any features you think would increase the effectiveness of this amazing tool.
ADX | DMI Trend StrategyThis strategy takes the ADX Indicator I wrote and applies it to a strategy for back testing purposes.
I've also applied a date filter so you can back test specific date ranges and a moving average filter so you can choose whether to filter your longs/shorts based on a moving average.
MTF ADX & DI - Monitoring PanelMonitoring panel showing the ADX (Average Directional Index) & DMI (Directional Movement Index) as color code for 6 different timeframes.
This gives a very easy overview on the current state of the market and if it is trending.
- ADX basically describes the strength of a Trend
- DMI give indication on the direction of the trend, usually shown as +DI and -DI
Meanings of the Colors:
ADX is below Low Threshold (no trend) : Black
ADX is above Low Threshold and DI is positive (weak bullish trend) : Light Green
ADX is above High Threshold and DI is positive (strong bullish trend) : Dark Green
ADX is above Low Threshold and DI is negative (weak bearish trend) : Light Red
ADX is above High Threshold and DI is negative (strong bearish trend) : Dark Red
- Low Threshold (default = 20) and High Threshold (default = 50) can be changed in the settings
- Timeframes can be changed, but the description labels are currently hardcoded - if you want to change it, just copy the script and change them
- Currently there are two additional timeframes commented in the code - if you want to use them, just copy the script and uncomment them
Have fun and as always I am open for constructive feedback.
Cheers!
ADX TriggerThis script fires off a buy alert when the ADX is rising and above a user-defined value (default 25). It fires off a sell signal when ADX starts sloping downward. The lookback period to determine if it is sloping up/down (in bars) is also configurable by the user. The plot highlights green when there is a "go" signal. Thanks to @9e52f12edd034d28bdd5544e7ff92e for the idea.
DMA: ADX L30A modified version of the ADX indicator
Indicator average directional movement ( ADX ) helps traders determine the strength of the trend, not its actual direction. It can be used to determine whether changes in the market or starts a new trend. It refers to the average directional movement Index (DMI), and, in fact, included DMI ADX line . The oscillator ranges from 0 to 100, where high values noted a strong trend and low readings indicate a weak trend. It is often combined with directional indicators. The indicator was developed by Welles Wilder, who has created several leading trading indicators.
Disconnected the lines DI and set the horizontal level 30
-----
Модифицированная версия индикатора ADX .
Индикатор среднего направленного движения ( ADX ) помогает трейдерам определить силу тренда, а не его фактическое направление. Его можно использовать, чтобы выяснить, меняется ли рынок, или начинается новый тренд. Он относится к Индексу направленного движения (DMI) и, фактически, в DMI включена линия ADX . Осциллятор колеблется от 0 до 100, где высокие показания отмечают сильный тренд, а низкие показания указывают на слабый тренд. Он часто комбинируется с направленными индикаторами. Индикатор был разработан Уэллсом Уайлдером, который создал несколько ведущих торговых индикаторов.
Отключены линии DI и установлен горизонтальный уровень на значении 30
ADX and DI For Cryptocustomized version to add my favourite settings for crypto
Best time frame is daily followed by 4H
ADX Near 20 or less means trend is choppy and weak
ADX Cross over 30 means trend is starting to gain momentum
ADX Near 75 means momentum is near maximum, trend needs to rest for a while ( The area between 70~90 )
ADX + Keylevel + RSIThis script is a combination of the Average Directional Movement Index (ADX) help to determine the trend strength with a key level and Relative Strength Index is an oscillator that measures the speed and change of price movements.
ADX + KeylevelThe Average Directional Movement Index (ADX) help to determine the trend strength with a key level.
unRekt - KISS AddieKISS Addie is the ADX and DI+- indicator and is part of the 'keeping it simple' series. ADX is your Average Directional Index and DI is you Directional Movement Indicator.
ADX - Will show the strength of the trend regardless of direction.
00 - 10 : No trend
10 - 20 : Transitioning trend
20 - 40 : Trending
40 - 99 : Exhausted (Can also be considered a stronger trend the higher it goes, but look to exit position once it begins to downward slope and pay attention to DI spread)
DI - Will show the direction of movement. This indicator includes two views of the DI. the DI+ and DI- crossover and a histogram of the spread between the two.
Bullish : Green crosses over red.
Bearish : Red crosses over green.
Ichimoku with ADXMy first attempt at coding a strategy in pine script.
The strategy tests for a confluence of bull / bear signals and executes a trade when these are met.
It uses the ADX as a screen against fake breakouts.
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).
Directional Movement Index TrendThis DMI I modified to see the trend more clearly, and the ADX line changes according to the trend force, which is perfectly configurable, the configuration I left my default configuration, in case you want to modify it because you see the trend in different values, feel free, and basically the columns are the average of DI and also indicate the trend more clearly.
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Esse DMI eu modifiquei para ver a tendência com maior clareza, e a linha do ADX ela muda de acordo com a força de tendência, a qual é perfeitamente configurável, a configuração eu deixei a minha configuração padrão, caso você queira modificar porque você vê a tendência em valores diferentes, sinta-se livre, e basicamente as colunas são a média de DI e indicam também com mais clareza a tendência.
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.
[PX] ADX BoxesHello guys,
today I would like to share an indicator that I had in my mind for quite some time. I call it ADX Boxes.
How does it work?
What the indicator does is very simple. Whenever the ADX falls below a certain threshold (which can be managed in the user input settings) a box will appear. The box will continue to grow as long as the ADX stays below the threshold. Once the ADX goes back above the threshold, the box will stop growing and will set its right border.
There are two modes, which can be used to determine the upper and lower border of the box. The first one is called "Extremes", which plots the borders the highest high and lowest low for the range below the threshold. The second one is called "Avg. High/Low", which plots the borders at the average high and average low within the range.
Furthermore, the indicator contains an option to show the average value of the detected range below the ADX threshold.
Just like all my other indicator scripts, this one comes with different styling options for boxes in progress, settled boxes and the average value.
Hopefully, some of you find it useful.
Make sure you leave a follow and a like :)
Happy trading!!
RedK_Directional Index / K xDMIHere's a modern take on the famous DMI/ADX. i first wrote this on another platform few years ago, so i'm happy to be able to share it on TradingView
quick refresher: what does DMI/ADX tell us:
------------------------------------------------------
in simple terms, at the core of this indicator, there are 3 main calculations / lines: the Plus Directional Index ( +DI ) which represents how much the bulls are able to push the high of a bar compared to previous one, the Minus Directional Index ( -DI ), showing how much the bears are able to push the low of a bar from previous one, then the Average Directional index ( ADX ) line, which creates an oscillator of the +DI and -DI to represent the strength of a trend -- usually the lines will be colored accordingly (bulls = green, bears = red, and any different color for the ADX )
Similar to my version of the RSI , we take a classic concept, then use the computing and visualization "super powers" available to us today, to extend and improve on what those masters created in the past. I guess they sort of expected us to do exactly that :)
this "extended" version of DMI/ADX provides couple of highly needed features (in my opinion) -- let's explore:
trying as much as possible to avoid jargon - pls forgive me if i failed in some places.
-------------------------------------------------------------------------------------------------
1 - the big change: the ability to visualize the ADX in a way that makes some more sense.
- the original calculation restricted the ADX to oscillate below zero - i'm sure they had a good reason to build it that way in the past - but to me, it becomes super hard to interpret what the ADX line means, especially when a negative trend (the bears) take over. by removing that restriction and allowing the ADX to oscillate up or down (and we're free to do that, so the indicator shows *us* what *we need* to see), we end up with an improved representation of the trend and the trend strength.
- also the original calculation applies a moving average (default 14 bars) of a moving average (another 14 of the Directional Indexes, which represent the strength of bulls vs bears) to calculate the ADX - that makes the ADX very "removed" from the base price values - i change that, and just smooth the initial +Di / -Di then calculate the ADX from there. again, this shows me the outcome of the (relatively) immediate moves.
2 - i use weighted average WMA () in all my averaging calculations .. i believe this type of average is the best to express the importance of recent days / bars vs the ones further in the past, compared to other averaging techniques
3 - ability to make the DMI volume-weighted .. but contrary to my RSI , this is not set by default.
4 - couple of options to view the unrestricted ADX (as an area or as histogram/columns .. which i call Vertical Bars) for improved visualization
other stuff:
5 - a "step" option for the ADX .. you can set the step option to an increment of, say 5 or 10. this is in case you prefer to see the trend more in "quality" terms - so the equivalent of weak, medium, strong, v. strong...etc -- since in reality, a number like 47.7683 doesn't really mean anything specific
6 - optional "strong trend" adjustable level
Settings & usage suggestion:
-----------------------------------
i prefer to use the defaults (length = 7, smoothing = 3, ..etc) -- i believe these are more suitable to the much faster trading that we have now. you can review the comparison chart and see if this works for you, and adjust as you need.
from a "signal" standpoint, you can use the xDMI as you use the classic DMI/ADX, bulls (or bears) are in control when the corresponding DI line crosses the other going up, *AND* moving above the "strong trend" level that you can set as an extra filter (usually a value between 20 to 30), while ADX will show the quality/strength of the trend.
i suggest you also utilize this indicator with other trend / momentum confirmation methods, and additional analysis and not in isolation - as well as inspecting the prevailing / longer time frame to ensure you're acting in the direction of the broader move / trend.
the above chart includes a side-by-side comparison between our new xDMI with the classic DMI/ADX using the same settings - then we add at the bottom panel also the xDMI, but with my default (faster) settings and showing other visualization options that can be utilized - the Moving Averages on the top / price panel is just to help put the price movement into perspective in terms of trend and trend strength.
The code is open and commented - please feel free to use, share, comment & provide feedback. if you're a DMI fan, and you find this useful in your trading, i would be more than happy to hear about it
Good luck!
Ultimate Momentum IndicatorThis is an indicator I've been playing with for a while, based on my previous MACD w/ RSI Warning indicator. This one takes it a step further, including information from MACD, RSI, ADX, and Parabolic SAR. These four indicators are represented in this indicator as follows:
MACD: The histogram itself is a normal MACD histogram. Nothing strange about it, and you can adjust the settings for it just as you would a normal MACD.
RSI: Any time the RSI is outside of normal ranges (which can be adjusted in the settings), the bar on the histogram will turn amber to warn you. The actual RSI value is also shown in a label to the left side of the indicator.
ADX: Crosses are drawn along the 0 line to indicate ADX. Blue means the ADX is below the trending level (adjustable in the settings), and orange means it is above that level. Darker colors indicate the ADX has gone up since the previous bar, while lighter colors indicate it has gone down. The actual ADX value is also shown in the label to the left side of the indicator.
Parabolic SAR: At the outside point of each bar in the histogram, a colored dot is drawn. If the dot is green, the Parabolic SAR (settings adjustable) is currently below the closing price. If the dot is red, the SAR is above the closing price.
I must stress that this indicator is not a replacement for any one of the indicators it includes, as it's really only pulling small bits of information from each. The point of this indicator is to give a cohesive picture of momentum at a quick glance. I encourage you to continue to use the normal versions of whichever of the basic indicators you already use, especially if those indicators are a key part of your strategy. This indicator is designed purely as a way to get a bird's eye view of the momentum.
Pretty much every normally adjustable value can be adjusted in the settings for each of the base indicators. You can also set:
The RSI warning levels (30 and 70 by default)
The ADX Crossover, i.e. the point at which you consider the ADX value to indicate a strong trend (25 by default)
The offset for the label which shows the actual RSI & ADX values (109 by default, which happens to line up with my chart layout--yours will almost certainly need to be different to look clean)
All of the colors, naturally
As always, I am open to suggestions on how I might make the indicator look cleaner, or even other indicators I might try to include in the data this indicator produces. My choice of indicators to base this one from is entirely based on the ones I use and know, but I'm sure there are other great indicators that may improve this combination indicator even more!
Stochastic Pop and Drop by Jake Bernstein v1 [Bitduke]I found a simple strategy by Jake Bernstein, modified it a little and created a strategy with Risk Management System (SL+TP); After that I test it on the different cryptocurrency pairs.
About the Indicator
Basically it's the strategy of 2 indicators: Stochastic Oscillator to define the bias and Average Directional Index to confirm it.
One again, It uses Stochastic Oscillator to define the trading bias. In particular, the trading bias was deemed bullish when the weekly 14-period Stochastic Oscillator was above some default value (in him paper - 50) and rising and vice versa.
Once the trading bias is established, Steckler used the Average Directional Index (ADX) to define a slowdown in the trend. ADX measures the strength of the trend and a move below 20 signals a weak trend.
Modifications
I didn't implement Average Directional Index (ADX) and test just different sources for data, oscillator periods and different levels in relation to the crypto market.
So, it shows good results with two tight thresholds at 55 and 45 level.
The bar chart below the defining the bullish and bearish periods (green and red) and gives a signal to enter the trade (purple bars).
Backtesting
Backtested on XBTUSD , BTCPERP (FTX) pairs. You may notice it shows good results on 3h timeframe.
Relatively low drawdown
~ 10% (from 2019 to date) FTX
~ 22% (4 years from 2016) Bitmex
I backtested on the different altcoin pairs as well, but the results were just not good.
Relatively good results were shown by some index pairs from the FTX exchange ( FTX:SHITPERP ), but I think there is a few data for backtesting to be asure in them.
Bitmex 3h (2017 - 2020) :
i.imgur.com
FTX 3h (2019 - 2020):
i.imgur.com
Possible Improvements
- Regarding trading algorithm it would be good to check with strategy with ADX somehow. Maybe for the better entries
- As for Risk Management system, it can be improved by adding trailing stop to the strategy.
Link: school.stockcharts.com
[PX] ADX and DI v4Hey guys,
I recently used the "ADX and DI" indicator in a variety of my own scripts. Because I keep on developing version 4 scripts and the "ADX and DI" indicator is developed in one of the previous PineScript versions, I had to update the old script every time I wanted to use it. I decided to publish the updated version and also changed a few things:
- ADX color is now orange
- Instead of plotting the DI+ and DI- lines, it's filling the space between the two (can be changed in the "style"-section)
Maybe some of you find it useful. If so, leave a like or follow :)
Happy trading,
paaax
P.S: The original indicator was developed by the user @MasaNakamura. Thanks for your great work!