OPEN-SOURCE SCRIPT

KINSKI Flexible Multi MA (EMA, SMA, RMA, WMA, VWMA, KAMA, HMA)

מעודכן
This Multi Moving Average (MA) indicator is more flexible than any other indicator of this type offered so far. You can define up to 10 different Moving Average (MA) lines based on different calculation variants.

The following MA types can be configured.
- EMA: Exponentially Moving Average
- SMA: Small Moving Average
- RMA: Rolling Moving Average
- WMA: Weighted Moving Average
- VWMA: Volume Weighted Moving Average
- KAMA: Kaufman's Adaptive Moving Average
- HMA: Hull Moving Average

Which settings can be made?
- Selection for calculation formula ("Calculation Source"). The default value is "close".
- for each MA line the "Length" and the "Type" can be defined
- furthermore you can make layout adjustments via the "Style" menu
הערות שחרור
  • added Smoothed Moving Average (SMMA)
  • added Double Expotential Moving Average (DEMA)
הערות שחרור
  • added Variable Index Dynamic Average (VIDYA)
הערות שחרור
  • added Coefficient of Variation Weighted Moving Average (COVWMA)
  • added Exponential Hull Moving Average (EHMA)
  • added new option "Up/Down Movements: On/Off" which shows the up and down movements of the lines
  • added new option "Bands: On/Off" which visualizes the lines as connected bands
הערות שחרור
  • improvement of the display of bands and up/down trends
הערות שחרור
  • Advanced options moved to the bottom
  • Display of the bands optimized. If this option is activated, bands and lines are displayed with uniform colors for better differentiation.
הערות שחרור
  • PineScript 4 compatibility increased. Deprecated attribute "transp" replaced by function color.new()
  • Update function "funcSMMA()": extract the call of the the function 'sma' from the ternary operator
הערות שחרור
  • Enables the often requested option that user-defined colors can be defined
  • Removed the rarely used options "Up/Down Movements: On/Off", "Up/Down Movements: Rising Length", "Bands: On/Off", "Bands: Transparency".
הערות שחרור
New feature "Templates" implemented. Under the settings (at the very bottom) of the indicator you can now choose between the following templates.
  • "DISABLED": no template, your user defined settings will be taken over
  • "EMA 20-50-100-200"
  • "EMA Fibonacci 21-55-89-144-233"
  • "EMA 20-50-100-200 / SMA 100-200"
  • "EMA Golden/Death Cross 50-200"
  • "SMA Golden/Death Cross 50-200"
  • "SMA 5-10-20-50-200"
  • HMA Cross 21-34


Feel free to write me if you have ideas for more templates.
הערות שחרור
  • Convert to PineScript5
הערות שחרור
  • Using Group for better Overview
  • add new MA Types => "TEMA" (Triple EMA), "Karobein"
הערות שחרור
  • Group Global Settings
הערות שחרור
  • for each MA type you can now separately set a time frame and select different design options.
  • following MA types can now be set: 'COVWMA', 'DEMA', 'EMA', 'EHMA', 'FRAMA', 'HMA', 'KAMA', 'Karobein', 'RMA', 'RSX based Noise Remover', 'SMA', 'SMMA', 'TEMA', 'VIDYA', 'VWMA', 'WMA'


Important note:
In some cases, the new version of the indicator is displayed only by removing and adding it back to the chart.
הערות שחרור
  • removed unused plot.style_columns
הערות שחרור
  • For each moving average, a separate calculation source ('close' by default) can now be defined


Important note:
In some cases, the new version of the indicator is displayed only by removing and adding it back to the chart.
הערות שחרור
  • Fixed Calculating of Variable Index Dynamic Average (VIDYA). Thanks at drmkshatriya for the hint!
הערות שחרור
  • Fixed SMMA (RMA)
הערות שחרור
  • fixed calculating KAMA
  • removed not working "Karobein", "RSX based Noise Remover based Noise Remover"


Thanks fluorforest for the hint!
covwmaExponential Moving Average (EMA)HMAKaufman's Adaptive Moving Average (KAMA)karobeinMoving Averagesrmasma

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

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

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

כתב ויתור