This is a generalized EMA, which allows you to use it with fractional periods. The minimum period required is 1.0.
This generalization is possible, as the integer period of an EMA is an artificial construct, which was adapted following the work of Jack K. Hutson, who compared simple and exponential moving averages. The generalized formula for an EMA is
EMA[0] = (1 - k) * EMA[1] + k * Price[0] , where 0 < k <= 1
The period n translates into k = 2/(n+1), so that n >= 1 is required not to violate the allowed range for k. Fractional values for n are possible.
The chart shows a fast EMA with a period of 12.7 and a slow EMA with a period of 38.3. The indicator which can be downloaded here, does not shade the region, a dual MA indicator will be released later.
This indicator is an adaptation of the Three Bars Inside Bar concept discussed in a related article in March 2011 issue of Technical Analysis of Stocks and Commodities. I have very little experience with NinjaScript and just experimented with programing this indicator. I am sure someone can check it out for potential improvements.
The indicator draws buy and sell arrows on any price chart (time and tick bars) with high, low, and close data. The three Bars Inside Bar is an old concept and trading method used by many well known old timer traders.
February 15th, 2011
Size: 5.23 KB
Downloaded: 416 times
834
fluxsmith
Exported using NT Version 7.0.1000.3
Besides the average there are other statistical measures to describe the behavior of a sample of n values. One of these measures the median, which is the numeric value separating the higher half of the sample from the lower half of the sample. In case that the number n of the values of the sample is even, the median is defined as the mean of the two middle values.
The median is statistically more robust than any average, as it does not take into account outliers or black swans. A moving average can be replaced with the moving median for many purposes.
This indicator calculates the moving median by writing the last n values to an array, sorting the array and selecting the middle value - or in case that n is even, the two middle values of the sample.
The NinjaScript method GetMedian() is not used, because it is flawed.
I just stood on his shoulders and converted it to my style. This version uses much less memory, is simpler for me to follow, and has a startup phase where it has a pretty good estimate instead of no value set.
It can be constructed from my generic MA adaptor (jhlMA) with only a period specified, providing a default phase value of 0.
February 12th, 2011
Size: 15.66 KB
Downloaded: 335 times
827
fluxsmith
Exported using NT Version 7.0.1000.2
These are the 2 pole and 3 pole Super Smoother Filters, which were described by John F. Ehlers in his book "Cybernetic Analysis for Stocks and Futures". Ported from Easy Language to NinjaTrader.
The chart shows that the 2 pole super smoother filter (yellow) gives a better approximation for price while the 3 pole filter (spring green) offers superior smoothing.
January 18th, 2017 04:22 PM ronturner I think that this is also called the caos awesome oscillator. Some use this to identify wave 3 (strongest, ie highest o
r lowest crest) to identify wave 3. The next crest would show divergence (weaker) for wave 5 or the end of that impulse
ive wave.
January 27th, 2016 04:01 PM Trailer Guy Wow, this really works well on my 20,000 tick es chart. I don't understand the point of the color changes but that is O
K. If you want to see how someone uses this for counting go to studyofcyclesblogspot and see how the "Elliot Trader" co
unts. I just like the way it says "this move is over".
September 4th, 2013 01:47 AM poodman looks like the Awesome Oscillator, maybe it will be easier to install and use
July 15th, 2013 03:32 PM teamtc247 Awesome indicator for convergence/divergence.
December 4th, 2012 04:10 PM dilbert618 Thanks peakskill