Two 34HMA Cross free

by o6h58zs in category Trend at 28/08/2022

Note: if you are the owner of the original indicator and would like me to remove this port, please feel free to message me and I will be happy to do so.

Another port of an existing indicator - this one is by PP Signal. All credit goes to the owner. The original indicator I ported can be found here

I have only included the calculations of the two 34-period Hull Moving Averages along with a basic trend cloud. I cannot be bothered to add on the buy and sell signal labels, but if anybody would like to, please feel free to build upon this script.

This technical works very well in trending markets, but not so well in ranging and consolidating markets (as expected with one based on the Hull Moving Average).


EURUSD, H1 - good example of a trending market here, the indicator works reasonably well.


GBPCHF, M15 - a ranging market. You can see that, due to the reliance upon candle closes for calculations, the indicator is very unresponsive to this type of market. Be very cautious when using this indicator.


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
    [Cloud("HMA", "Offset HMA", FirstColor = "Green", Opacity = 0.8, SecondColor = "Red")]

    [Indicator(IsOverlay = true, AccessRights = AccessRights.None)]
    public class Two34HMACross : Indicator
        private WeightedMovingAverage _wma;
        private WeightedMovingAverage _wma2;
        private WeightedMovingAverage _wma3;
        private WeightedMovingAverage _wma4;
        private IndicatorDataSeries _iSeries;
        private IndicatorDataSeries _oSeries;

        public DataSeries Source { get; set; }

        [Parameter(DefaultValue = 20, MinValue = 1)]
        public int Period { get; set; }

        [Output("HMA", Color = Colors.Green)]
        public IndicatorDataSeries HMAResult { get; set; }
        [Output("Offset HMA", Color = Colors.Red)]
        public IndicatorDataSeries OffsetResult { get; set; }

        protected override void Initialize()
            _iSeries = CreateDataSeries();
            _oSeries = CreateDataSeries();
            _wma = Indicators.WeightedMovingAverage(Source, Period / 2);
            _wma2 = Indicators.WeightedMovingAverage(Source, Period);
            _wma3 = Indicators.WeightedMovingAverage(_iSeries, (int) Math.Sqrt(Period));
            _wma4 = Indicators.WeightedMovingAverage(_oSeries, (int) Math.Sqrt(Period));
        public override void Calculate(int index)
            double price = Source[index];

            if (index < Period)
                HMAResult[index] = price;

            _iSeries[index] = 2 * _wma.Result[index] - _wma2.Result[index];
            if (index != 0)
                _oSeries[index] = _iSeries[index - 1];
                _oSeries[index] = _iSeries[index];
            HMAResult[index] = _wma3.Result[index];
            OffsetResult[index] = _wma4.Result[index];


joyeuxnye - August 30, 2022 @ 11:50

The information you have posted is very useful. cuphead

dinasem882 - August 30, 2022 @ 14:21

This post is fantastic, Great to visit here, Excellent work this is. Nice article, thanks for sharing this information. Good to know that this topic is being covered also in this web site. open seo stats extension

liomrgn - August 31, 2022 @ 16:45

Only the two 34-period Hull Moving Average computations and a simple trend cloud have been included. I can't be bothered to add the labels for the buy and sell signals, but if anyone is interested, feel free to get in touch with web design slash to expand upon script.

taylormckee3223612 - September 08, 2022 @ 06:42

traditional arcade a new version of snake io is released for playing special online live events. In this well-liked mobile version of the cherished arcade game, slither to the top of the leaderboard!

junealexis001 - September 12, 2022 @ 12:01

Great site i love it keep posting more!