TradingView
rareHeron59465
10 déc. 2021 01:00

JC MAs: SMA, WMA, EMA, DEMA, TEMA, ALMA, Hull, Kaufman, Fractal 

Ethereum / U.S. dollarBitstamp

Description

The best collection of moving averages anywhere. I know, because I searched, couldn't find the right collection, and so wrote it myself!

-------------------------------------------------------------------------------
Notable features that either aren't found anywhere else...or at least in one place:
-------------------------------------------------------------------------------

• The "Triple Exponential Moving Average", is actually that mathematically - rather than "three seperate EMA graphs", as is commonly found on Trading View.

• Includes exotic moving averages: Hull Moving Average (HMA), Kaufman's Adaptive Moving Average (KAMA), and Fractal Apaptive Moving Average (FrAMA).

• Each moving average has its own user-definable averaging length in DAYS, rather than an abstract "length". This is respected even for different graphing resolutions, and different chart views - even for the more exotic MAs.

• Days can be fractional.

• A master time resolution ("Timeframe") is also user-definable. And unlike most other moving average charts, this won't affect the internal "length" variable (specified days are still respected), it only changes the graphing resolution. You can also specify to use chart's resolution - which, as you know, is not very useful for moving averages - yet so many moving average scripts on Trading View don't let you specify otherwise.

• If every CPU cycle counts, you can set "days" to 0 to prevent a particular unneeded moving average from being calculated at all.

• Includes a custom moving average that is unique, if you're looking for a tiny edge in TA to beat everyone else looking at the same stuff: a customizable weighted blend of SMA, TEMA, HMA, KAMA, and FrMA. (Note: The weights for these blends don't have to add up to 100, they will self-level no matter what they add up to.)

• By default, the averages are color-coded according to rainbow order of light spectrum frequency, relative to approximate responsiveness to current price: Red (SMA) is the laziest, violet (FrAMA) is the most hyper, and green is in the middle.

-------------------------------------------------------------------------------
Contains the following moving averages, in order of responsiveness:
-------------------------------------------------------------------------------

• Simple Moving Average (SMA)
• Arnaud Legoux Moving Average (ALMA)
• Exponential Moving Average (EMA)
• Weighted Moving Average (WMA)
• Blend average of SMA and TEMA (JCBMA)
• Double Exponential Moving Average (DEMA)
• Triple Exponential Moving Average (TEMA)
• Hull Moving Average (HMA)
• Kaufman's Adaptive Moving Average (KAMA)
• Fractal Apaptive Moving Average (FrAMA)

Note: There are a few extreme edge cases where the graphs won't render, which are obvious. (Because they won't render.) In which case, all you need to do is choose a more sane master resolution ("Timeframe") relative to the timeframe of the chart. This is more about the limits of Trading View, than specific script bugs.

-------------------------------------------------------------------------------
Includes reworked code snippets
-------------------------------------------------------------------------------

• "Kaufman Moving Average Adaptive (KAMA)" by HPotter
tradingview.com/script/RsdQHpdq-Kaufman-Moving-Average-Adaptive-KAMA/

• "FRAMA (Ehlers true modified calculation)" by nemozny
tradingview.com/script/oV2PnTXz-FRAMA-Ehlers-true-modified-calculation/
• Which in turn was based on "Fractal Adaptive Moving Average (real one)" by Shizaru
tradingview.com/script/w8lzN4nT-Fractal-Adaptive-Moving-Average-real-one/
Commentaires
KryptoViking77
Thank you for making this. I use the Hull 99, Alma 144, Ema 200. My absolute favorite combo of moving averages. Look for shorts and longs after the Hull 99 crosses the Alma 144.
pauvro
I'm a little confused. First off, I love the concept, but let's say I'm just loading the indicator, default settings, and I go in I want to have all of the moving averages displayed on my 5m chart but based on their 10m calculations, I can just go in and change the resolution to 10m? What's confusing me is that you said they are based on "DAYS" not "Length"...so which is it? Length, meaning that many candles on the selected chart resolution or based on that many days? IS days in this indicator just synonymous with length? So if I choose 10m as my timeframe I should see the 10m moving averages displayed on my chart, not one based on multiple days, correct? Thanks
rareHeron59465
@pauvro, The "days" settings define the timespan (in...days) over which the MAs are calculated, not the resolution of the plots. This is an important distinction. Generally, you don't want the calculation of the timespan to vary dynamically as you zoom in and out on the time scale. Zooming on X and Y lets you see more precision, rather than alter the data. If you want different data, change the settings. At least, that's the concept going on here.

Furthermore, almost all common MAs in investing are measured in fixed number of days (regardless of chart resolution), not number of candles. But that won't stop you from inputting fractional days, which can in fact be useful too. If you want MAs based on number of candles...these aren't the droids you're looking for.
WiseWay
Best
narinderkmp19
hello bro if you make it some acording me i give a stage 95 percent target
rareHeron59465
@narinderkmp19, I recognize those words as English - my native tongue - but I have no idea what that word-salad combination of them means.
Plus