TradingView
fikira
7 de Jan de 2020 19:11

[fikira] MACD & RSI+Stoch + Divergences 

Bitcoin / TetherUSBinance

Descrição

This is a new version of my "Divergences"

Compared to my "Divergences (Pivots)", this is calculated totally different

There are 3 options:
- MACD
- RSI
- Stoch RSI


Since this script is very heavy in calculation it is limited in time (= inspired from a script of "Che_Trader")
Also it uses "max_bars_back" (=1000)

For MACD and Stoch RSI there is a "custom Divergences Period", which compares more then 7 Pivot Points,
the higher the number, the less reliable, it is not necessary to use this, but it is there,
also you can change the "leftbars" and "rightbars", again, it is not necessary to change, but you can...

Linewidth and style of the Divergences lines can be changed

Thank you!

Notas de Lançamento

The lines tend to make the script very heavy

I've added the option "Just show Arrows (No Lines)"
It is now set default as true, so standard NO LINES are shown


This makes it a bit lighter, you can make the lines visible by enabling the
"Just show Arrows (No Lines)" button, just wait a bit until it deploys.

When the message "Calculation timed out.Remove the indicator and reapply it to the chart" is visible,
try to refresh or pick another TimeFrame (and return to the previous TF), normally it will work then.

Since it still is a heavy script, in the near future I will add 3 separate "RSI", "Stoch RSI" and "MACD"
scripts with Divergences to see if it is lighter and faster in use,

Thank you very much!

Notas de Lançamento

Updated small changes

Notas de Lançamento

Added more options, also loads quicker and more efficient,
possibly could still be a bit slower than the separate MACD, RSI, RSI + Stoch + DIV scripts,
it is what you prefer,

Thank you very much!

Notas de Lançamento

Added alerts

Notas de Lançamento

Completely revised script

Notas de Lançamento

🔸 Settings



The old RSI / Stoch & MACD divergence scripts are deprecated.
Comentários
CaxhPrince
fikira
@CaxhPrince, Thanks! Appreciate it!
srdi
Hi Fikira,
It is showing an error "Study Error" Calculation takes too long to execute (>20000 ms).
To rectify this error is there any solution otherwise all working fine. Thank you
fikira
@srdi, Done, complete revised script, much faster and more accurate, cheers!
Woundedangel
Can we have Alerts be added in this scripts?

And offcourse Amazing and accurate.
fikira
@Woundedangel, Thanks!

The divergence alerts are already added ;)
hajq904
@fikira, right but how to set this on TV ? I mean, I've been trying to consider giving an alert when signal (divergence) is shown within a channel (defined up/down price) but it is not working. thanks for supporting
paresh4174
Dear Sir,
indicator not work 5minute 15 minute ya daily onlly work weekly time frame ,please guide me , some error
nice indicator , i lke this,

regards
Nagast
Is it possible to update it to pine v5? thx!
fikira
@Nagast, It is open source, you can make a copy and convert to v5, cheers
Mais