TradingView
jaggedsoft
Jul 6, 2019 3:26 PM

Weekly Open 

Bitcoin / United States DollarCoinbase

Description

Here we draw each weekly open using the new lines feature of Pine Script v4, inspired by Ultra Kzilla's Weekly Open strategy.

Release Notes

Added minPrice option.
Right click the Indicator title and uncheck "Show Indicator Arguments"
Comments
SpaceCoinMonkey
great idea but didn't really work. getting messed up charts
jaggedsoft
@SpaceCoinMonkey, thanks friend. It's meant for 1d charts more than anything
jaggedsoft
and 3 day charts
SpaceCoinMonkey
@jaggedsoft, On a chart with little history it works, even though the chart can't be auto scaled properly, tradingview.com/x/fsiZhns5/.
Truly awesome


On longer history charts levels are limited to 80 days back, changing the default 64 week period doesn't seem to do what you'd expect. Maybe I'm misunderstanding.


I've been looking for this like a madman , bless you
jaggedsoft
@SpaceCoinMonkey, Awesome brother thank you. For ALTPERP I see it's creating a weekly open at 0.00. Maybe because the market opened recently. We will need to add some error handling for situations like that, then it should be good to go.
jaggedsoft
@SpaceCoinMonkey Updated. I added a minPrice option, so if you want to set the minimum bar price to $1 or any other arbitrary number you can do so. I have also disabled the highest high and lowest low by default as it seems to be buggy.
jaggedsoft
52 weeks = 1 year
More