OPEN-SOURCE SCRIPT

Trender & mov avg Jayy update

The Trender and moving average for a version of trend analysis. This is an update of a previously published script. A recent Pine script update makes this update necessary.
This is my interpretation of Bloomberg's Trender.
The script is derived from this document:
forexfactory.com/attachment.php?attachmentid=704677&d=1306114269

I have no idea what settings are best. I like the ones I have used because I see some harmony with the
20ema but that could be said for a variety of settings. The chief variable for adjustment is "sensitivity" which is really just the number of standard deviations away from the midpoint calculation. The Trender is plotted as crosses.
Also the moving average will be green if its own 8 period moving average is below the
moving average or red if it is above. In other words a Green moving average suggests an uptrend and a red moving average a down trend as far as moving averages are concerned. In formatting you can have an ema or sma at the click of a button. also at the bottom you will have an option to display moving averages as emas in intraday and smas if the period is daily or higher. In this option you will also see the 50 moving average ( ema if intraday and sma if daily or more.) Most people will opt for consistency and simply use either an ema or sma . In this case leave the
"Show EMAs intraday and smas interday" unchecked.
Jayy
trend

Script de código aberto

No verdadeiro espírito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam compreendê-lo e analisá-lo. Parabéns ao autor! Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações é regida pelas Regras da Casa. Você pode favoritá-lo para usá-lo em um gráfico.

Quer usar esse script no gráfico?


Jayy

Aviso legal