TradingView
KINSKI
13 cze 2020 21:52

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

Bitcoin / U. S. DollarKraken

Opis

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

Informacje o Wersji

  • added Smoothed Moving Average (SMMA)
  • added Double Expotential Moving Average (DEMA)

Informacje o Wersji

  • added Variable Index Dynamic Average (VIDYA)

Informacje o Wersji

  • 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

Informacje o Wersji

  • improvement of the display of bands and up/down trends

Informacje o Wersji

  • 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.

Informacje o Wersji

  • 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

Informacje o Wersji

  • 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".

Informacje o Wersji

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.

Informacje o Wersji

  • Convert to PineScript5

Informacje o Wersji

  • Using Group for better Overview
  • add new MA Types => "TEMA" (Triple EMA), "Karobein"

Informacje o Wersji

  • Group Global Settings

Informacje o Wersji

  • 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.

Informacje o Wersji

  • removed unused plot.style_columns

Informacje o Wersji

  • 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.

Informacje o Wersji

  • Fixed Calculating of Variable Index Dynamic Average (VIDYA). Thanks at drmkshatriya for the hint!

Informacje o Wersji

  • Fixed SMMA (RMA)

Informacje o Wersji

  • fixed calculating KAMA
  • removed not working "Karobein", "RSX based Noise Remover based Noise Remover"


Thanks @fluorforest for the hint!
Komentarze
RogueWick
Outstanding! Keep up the good work!
KINSKI
@RogueWick,

Cool, thanks for that.
fluorforest
please, I'm trying to add to your Flexi Multi MA indicator new ALMA settings, but I can't do it, I wanted to integrate the basic ALMA as another set:
________________________________________

//@version=5
indicator(title = "Arnaud Legoux Moving Average", shorttitle="ALMA", overlay=true, timeframe="", timeframe_gaps=true)
source = close
windowsize = input(title="Window Size", defval=9)
offset = input.float(title="Offset", defval=0.85)
sigma = input.float(title="Sigma", defval=6)
plot(ta.alma(source, windowsize, offset, sigma))

________________________________________
I try to modified these parts of code
________________________________________

_funcALMA(_src, _period) =>
ta.alma(_src, _period, offset, sigma)

________________________________________
and below that i add new code also here:
________________________________________

_funcCalcMA(_type, _src, _timeframe, _period) =>
float ma = switch _type
"ALMA" => _funcALMA(_src, _period)
=>
float(on)
request.security(syminfo.tickerid, _timeframe, ma)

________________________________________
In the menu setting for each MA, I then added:
________________________________________

offset = input.float(defval=0.85)
sigma = input.float(defval=6)

________________________________________

I don't know where I'm doing wrong, could you please help me?
pardhugsr90256
The earlier version is good and we can choose the indicator that we require, but with this, we can't change our own. Can u please give me this option? And one good thing is each indicator we can select the thickness of the line, this is a good option.
NewInInvesting
This is an awesome script.

two suggestions if possible. please check if you can add ZLEMA (Zero Lag EMA by Ehler).
is it possible to add label next to line (<X><x>MA-<TF> (like 20 EMA-5min TF)? please.
tradepals
Please can you add the DMA to this? Many thanks in advance
BigGuavaTrading
Really love the flexibility and depth of this indicator with all the different moving averages to choose from. Well done.

Question - Would you be able to add the Jurik Moving Average (JMA) into this indicator? The actual math behind that isn't fully released, but several other traders have closely recreated it with indicators available on TV that you may be able to integrate their code in yours (with proper credit, of course).
Jay_Snowy
🔥🔥🔥
Though any chance of an "offset" option?
tradepals
Can this display the lines of multiple time frames on 1 chart?
bstyadav
Really very good features i m very thankful to you can u add in Bolllinger Band on this indicator
Więcej