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

סקריפט קוד פתוח

ברוח TradingView אמיתית, מחבר הסקריפט הזה פרסם אותו בקוד פתוח, כך שסוחרים יוכלו להבין ולאמת אותו. כל הכבוד למחבר! אתה יכול להשתמש בו בחינם, אבל השימוש החוזר בקוד זה בפרסום כפוף לכללי הבית. אתה יכול להכניס אותו למועדפים כדי להשתמש בו בגרף.

רוצה להשתמש בסקריפ זה בגרף?


Jayy

כתב ויתור