TradingView
leojez
16 de Fev de 2022 17:32

Standard Deviation Channel 

Dow Jones Industrial Average IndexDJ

Descrição

The standard deviation channel allows you to visually see the trend in the market using a linear regression calculation. This script has two lower and two upper bounds, with different deviations. Each of these boundaries has an alert when it has been breached.
Comentários
paillacharan
Exactly what i needed ..Thanks. Bigger the timeframe the more relevant SD becomes right, as it has more sample data ? so is it good measure for accumulation on dips unless something fundamentally changes ?
leojez
@paillacharan, exactly!
atlsales
All, new to the lingo with indicators. I’m looking at the Inputs, Length default is 128.

What does that equal 128 hours, or something else?
leojez
@atlsales, This depends on the time frame you have the chart set at. If it is a 1 minute chart, it will equal 128 minutes. If it is hourly, then 128 hours. If daily, then 128 days. Etc, etc.
atlsales
@leojez, Got it. So if 15 mins 15 x 128
leojez
@atlsales, yep.
TRinvestment
Hello,
Thanks for the great script really appriciate it.

I'm having a problem with the alert function, it seems like it never gets triggered, is it a bug?
Joseph_Ducreux
is there a way to look back at historical data by applying it to a different window of time rather than the most recent 120 day period?
dharmatech
Amazing indicator. Thank you leojez. 👍

I've forked it with a few changes:

Added a 3rd line.
Refactored the code.
Simplified some of the code.
Runs almost twice as fast.

It's now 132 lines.

You're welcome to it:

tradingview.com/script/HIeP7NCq-dharmatech-Standard-Deviation-Channel/
fmb613
One of the best scripts I use. Thank you!
You indicated that you picked 128 because of 6 months period. What if I'm using a minute frame? Do I still use 128 or should I change it?
Mais