TradingView
promuckaj
23 feb 2023 10:33

SMT Divergence [promuckaj] 

E-mini Nasdaq-100 FuturesCME

Descrizione

SMT Divergence indicator will track your main symbol on the chart against other one you set, for example you can use it on S&P 500 chart while you set there to track and compare it with Nasdaq, it will search for divergence between them, according to swing points, and print it on the chart for you.

There is option to set custom swing points period, colors, lines, debug info panel that will show you in real time values and times of last two swing highs and lows points that is formed on second symbol you want to track.

You can activate also alerts for bullish and bearish divergences separately, as you wish.

There is option to setup divergence types you want to get:

#1
100% aligned divergences only - means both swing points are aligned at the same bar and time between two assets.

#2
all divergences - means you will get also the rest potential divergences that is not 100% aligned between two assets according to swing points. This means that, while swing points is formed on main symbol, indicator will compare their bars and times to the second symbol and if it looks like divergence you will get it on the chart.



Just to clarify "divergence" between two symbols, it means that for bearish one symbol need to form higher low while the other need to form higher high, and vice versa for bullish, lower low / lower high.

Everyone enjoy !

Note di rilascio

Added option to choose last swing points type for each divergence to look, which means now you can set desired last swing highs/lows point to be considered for divergence on main symbol.
This can be very useful for those users who want to filter divergence to get only specific one.

Added options include separately settings for High and Low swing points on both type of divergences (bullish/bearish) separately:
Swing High => "none", "HH", "HL"
Swing Low => "none", "LL", "LH"

"none" - means does not matter
"HH" - consider only higher high
"HL" - consider only higher low
"LL" - consider only lower low
"LH" - consider only lower high

One example for bearish:
If indicator is set to track SP vs NQ, while SP is main symbol, if you set to get bearish divergence only if there is formed last swing higher high (HH) point for it, on this way there will be no divergence on SP vs NQ if there is formed HL point. On this way indicator will wait to get only HH on SP while on NQ must be formed HL. There is a lot possibility to do settings on your own way for this, since you can set H and L points separately for each type of divergence.

Everyone enjoy !

Note di rilascio

Very useful update !
Added option to activate use of reversed chart of second symbol, which is good to track divergences for example between DXY or any other symbol that is going to opposite direction to the main symbol. As a good example this can be very useful to track divergences between EURUSD and DXY.

Everyone enjoy !

Note di rilascio

Added option for two more symbols, so now there is option to choose 3 symbols in total to track for their divergences at once, with all the settings including reversed chart for each.
Commenti
ali32b
awesome indicator.can you fix delay of showing divergence? or make it an option?
promuckaj
@ali32b, Thank you. "Delay" is related to way how swing points is calculated(pivot period) and there is no way at this point for that, but soon I will release something really crazy - SMT Divs on HTFs, something what most of traders using out there for their anticipation for entrys on LTF, something what most of them use regarding CRT or in case of quartely theory.... Perhaps it will be invite only script.
eladlevi
Great indicator!
May I upgrade your code? I would like to add option to have the alert once div happend (and not after swing bars ahead).
Can I do it?
bigdec111
great script awesome features .TY
malkameir18
A great indicator, it is possible to add a time frame of 15 seconds to it in the update? @promuckaj
jzstur
May I obtain the source code? If not, I would like to ask for a Feature Request. I'd like the divergence logic to also consider equal highs/lows when compared to another symbol as a divergence. Much appreciated!
promuckaj
@jzstur, Hello. If I am right you want to consider as divergence also if one symbol form equal high and low while the other form different between high and low ? If so, this is OK, I can implement it as optional feature.
trvtour1
Hello sir.. I hope you are in good health. Can I get the code?
rocketrader
Great indicator. A mentioned by others, if you could have one that compares against the INVERSE of DXY that would be great, though appreciate it's a fair amount of coding work.
promuckaj
@rocketrader, Hi, I do not understand exactly on what you mean, I implement inverse option for tickers, so you can use it for DXY as well.
Altro