ka66

ka66: Alpha-Configurable EMA

ka66 מעודכן   
Allows directly modifying the Alpha/Smoothing Factor parameter of an EMA. This can allow for very close fits to price movement, instead of the more standard coarse-grained approach of adjusting smoothing via the look-back period.

Furthermore, we allow smoothing this EMA further by passing the original EMA through the EMA function again, and the output of this, yet again, to as many smoothing iterations are desired. For efficiency and practicality, limited to 10 iterations. This is inspired by indicators such as the DEMA.

Finally, we allow producing bands, with a configurable multiplier, around the final EMA. Useful for dynamic S/R levels, e.g. to use as trailing stop zones.
הערות שחרור:
Bug fix: was always smoothing at least once, even though iterations was set to zero. Now using much more explicit code.
הערות שחרור:
Okay, this time for sure, fixed incorrect smoothing count!
הערות שחרור:
Better step input in UI (smaller increments). And move over calculation logic to reusable library.
סקריפט קוד פתוח

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

כתב ויתור

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

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