TradingView
jasonnyberg
28 lug 2021 18:15

PercentChannel 

Advanced Micro Devices, Inc.NASDAQ

Descrizione

Similar to my "DollarChannel" script, this keeps track of lows and highs, but snaps a line whenever A) the high exceeds low+(low*ratio), or B) low falls under high-(high*ratio).

This results in a channel that tracks percent-changes rather than absolute dollar-value changes.

Note di rilascio

Added alerts when channel thresholds are crossed.

Note di rilascio

Update to v5
Add rising/falling alerts (can enable them independently)
Fix signed-ness bug (now works with tickers like "0-VIX" (i.e. inverted)

Note di rilascio

update chart to include bars for 0-VIX
Commenti
hell-LUCIFER
Can you put in the alerts? Thank you.
jasonnyberg
@hell-LUCIFER, sure, that would be easy enough to add. When I get some spare time I'll throw it in there.
jasonnyberg
@hell-LUCIFER, Done... Now it will call alert(...) if the upper or lower channel limit has been broken when a bar closes. Use the "Alert" button at the top of a chart to configure how the alerts are presented. Enjoy!
Altro