TradingView
zkdev
13 mar 2021 01:02

Bull Market Support Band (20w SMA, 21w EMA) 

Bitcoin / U.S. dollarBitstamp

Beskrivning

This moving average indicator is a bull market support band. It's significance comes from the previous bull runs where the price was bouncing off or riding from a distance the support band until the end of the market cycle. For example, during the 2017 bull run, Bitcoin had several 30-40% corrections to the support band.

The green line represents the 20 weeks simple moving average and the red line represents the 21 weeks exponential moving average. The best way to read the current value is to look at the weekly chart, but any time frame will display the same values.

Versionsinformation

Smooth lines on non-weekly timeframes.

Versionsinformation

Removed deprecated "color" attribute in "fill" function and changed "color" attribute accordingly.

Versionsinformation

Fixed a bug where changing the indicator timeframe does not change the lengths of the moving averages.

Versionsinformation

Bumped the version to v5.

Versionsinformation

Fixed a bug where there is a gap between the latest indicator data and the chart's latest data on timeframes lower than weekly.

Versionsinformation

Reverted last big fix since it is removed multi timeframe functionality.

Versionsinformation

Same as above
Kommentarer
bbrujas
Hi!

First of all thanks for sharing your scripts, I came to yours while learning about trading, quite useful!

As per comments on pine, seems that transp function is about to be deprecated?

A correction that might work could be this:

"fill(smaPlot, emaPlot, color=color.new(color.orange, 75), fillgaps=true)"

Thanks for sharing!
zkdev
@bbrujas, yes you are right! Thank you I will post an update soon.
fairtale
To explain better: the indicator only shows up to the "last" week. However, right when it is loaded it displays the current week for a brief second. It would be nice to see current week data, even if those numbers are not set in stone yet.
zkdev
@syberjj, just use the weekly timeframe for that because it's a Pine Script bug
fairtale
@legroszach, oh ok, good to know. Does it make sense to post a bug-report about this on their reddit?
zkdev
@syberjj, maybe it would be helpful for the multi-timeframes indicators like this one
vj9646468893
Very nice 👍
DavidArsenic
Brilliant!
more60498
Ok
mjkamble05
Nice
Mer