EduardoMattje

Every single moving average (ALMA, EMA, HMA, KAMA, RMA, SMA...)

EduardoMattje מעודכן   
So you may be looking at the graph and thinking "this is a mess", and I agree.

The purpose of this script is to plot in the same graph every single type of moving average that I could think of, so you can find the ones that are better for your timeframe and for your asset. Once you add it, disable those types that doesn't seem to serve your purpose, until you can select one you like.

The average types are: ALMA, EMA, HMA, KAMA, RMA, SMA, SWMA, VIDYA, VWAP, VWMA, and WMA. Each one is ploted two times (except SWMA and VWAP), one with a short period, and another with a long, both of which you can configure.
הערות שחרור:
Added an option to view where crossovers and crossunders happened. You need to select which MA type you want.
הערות שחרור:
Fixed typo.
הערות שחרור:
Yet another typo.
הערות שחרור:
Ok this the last one I swear
הערות שחרור:
Included FRAMA and made VIDYA actually working.
הערות שחרור:
I made the adaptive MAs better at the beginning by using the start price instead of 0. You can also see how many crossovers and crossunders happened, and noew you can easily disable short and long MAs. I also generated new colors so now it looks even more like a unicorn's puke.
הערות שחרור:
Included DEMA and LSMA. Also added an option to offset every average.
הערות שחרור:
I made use of the new inline and group features on the input functions, so now they should be clearer and better organized.
הערות שחרור:
I made some changes to the code to make it more readable.
הערות שחרור:
Oops, wrong graph.
סקריפט קוד פתוח

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

כתב ויתור

המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.

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