PROTECTED SOURCE SCRIPT
Atualizado

Statistical pivot wave - Average periods and drawdowns

13 548
Statistical pivot wave - Average cycle periods and drawdowns (and assuming there is a trend)

How does these cycle periods and drawdowns come from?
Collecting the data from the last 70 pivot waves. Pivot waves are defined by once a new pivot low is recognized.

Explanation of variables:
Period(i) : Timespan from one pivot low to its previous pivot low.
Drawdown(i) : Max drawdown (from 22 bars lookback high + trend adjustment)
Trend(up / down): Historical linear regression

Median cycle: Median value of Period(i), based on i=1 to i=70 pivot waves data.
Median drawdown: Median value of Drawdown(i), from the trend projected high, based on i=1 to i=70 pivot waves data.
Notas de Lançamento
A new input variable updated.
Now the users could specify the total number of the most recent observed pivot waves period, in the input panel.

Indicator where observations = 10:
snapshot

Indicator where observations = 70:
snapshot
Notas de Lançamento
Not the indicator allows change of colors.

Aviso legal

As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.