Hull MA free

by qualitiedx2 in category Trend at 17/02/2012
Description

The Hull Moving Average (HMA), developed by Alan Hull, is an extremely fast and smooth moving average. In fact, the HMA almost eliminates lag altogether and manages to improve smoothing at the same time.

Hull moving average

24371 downloads
How to install
Notification Publishing copyrighted material is strictly prohibited. If you believe there is copyrighted material in this section you may use the Copyright Infringement Notification form to submit a claim.
Formula / Source Code
Language: C#
Trading Platform: cAlgocTrader
using System;
using cAlgo.API;
using cAlgo.API.Indicators;

namespace cAlgo.Indicators
{
    [Indicator(IsOverlay = true, AccessRights = AccessRights.None)]
    public class HMA : Indicator
    {
        [Output("HMA", Color = Colors.Orange)]
        public IndicatorDataSeries hma { get; set; }

        [Parameter(DefaultValue = 21)]
        public int Period { get; set; }

        private IndicatorDataSeries diff;
        private WeightedMovingAverage wma1;
        private WeightedMovingAverage wma2;
        private WeightedMovingAverage wma3;

        protected override void Initialize()
        {
            diff = CreateDataSeries();
            wma1 = Indicators.WeightedMovingAverage(MarketSeries.Close, (int)Period / 2);
            wma2 = Indicators.WeightedMovingAverage(MarketSeries.Close, Period);
            wma3 = Indicators.WeightedMovingAverage(diff, (int)Math.Sqrt(Period));
        }

        public override void Calculate(int index)
        {
            double var1 = 2 * wma1.Result[index];
            double var2 = wma2.Result[index];

            diff[index] = var1 - var2;

            hma[index] = wma3.Result[index];
        }
    }
}
Comments

rorione - August 14, 2019 @ 15:03

Any chance this can be done with green up and red down, or blue up and orange down?

mohsabry.ms - December 19, 2021 @ 13:58

THANX ALOT

andrewoliver102002 - January 13, 2022 @ 17:42

Assignment help pro has qualified British assignment writers on staff. When you use our custom assignment writing services, you will be working with Ph.D. academic professionals.

shemikasoraya9081 - April 29, 2022 @ 05:33

Resistance and support levels indicate where a major price movement is expected.

 

Concrete Driveways

hankfreid - May 09, 2022 @ 09:46

Solution2Pass offers you one-stop answer for all your Selling Aruba Products and Solutions test stresses. Don't bother packing extended notes or purchase costly instructional exercises. Solution2Pass' naturally planned HPE Sales Certified - Aruba Products and Solutions HP HPE2-W07 Exam Questions PDF give you the most straightforward method for acquiring your objective HPE Sales Certified - Aruba Products and Solutions affirmation with the top score!

teresaantoninagh91 - August 18, 2022 @ 07:41

Our experienced technicians know how to get it done in a timely manner without sacrificing quality. - Garage Service

johndavidd8888 - November 17, 2022 @ 09:42

The Hull Moving Average (HMA) is a simple moving average of the price of an equity security. It is constructed by taking the closing price of nyt mini crossword an equity security, and adding it to the opening price. The result is a weighted average of the closing price over a period of time. The HMA is calculated using simple arithmetic, and is similar to the SMA, except that it is calculated over a longer period of time.

5