Category Oscilators  Published on 05/04/2023

Ehlers Inverse Fisher on top

Description

The Ehlers Inverse Fisher Transform. Apply on top of any oscillator.

Amp: the amplifier. Use a big number to get binary signal.

The example of applying Inverse Fisher on Cyber Cycle. It helps to spot the turning point easily. 


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using cAlgo.API;
using cAlgo.API.Collections;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;
using LittleTrader;
using LittleTrader.Ehlers;
using LittleTrader.Extensions;

namespace cAlgo
{
    [Indicator(AccessRights = AccessRights.None, IsOverlay = true)]
    public class LT_Ind_EhlersInverseFisher : Indicator
    {
        [Parameter("CustomSource")]
        public DataSeries CustomSource { get; set; }

        [Parameter(DefaultValue = 3.0)]
        public double Amp { get; set; }

        [Output("IFish", LineColor = "Purple")]
        public IndicatorDataSeries IFish { get; set; }
        [Output("Trigger", LineColor = "Yellow", LineStyle = LineStyle.LinesDots)]
        public IndicatorDataSeries Trigger { get; set; }

        EhlersInverseFisherFilter _ifish;
        protected override void Initialize()
        {
            var u = new IndUtils() { Bars = Bars, SourceType = SourceTypes.Custom, CustomSource = CustomSource };
            _ifish = new EhlersInverseFisherFilter(u.GetSource(), IFish, Amp);

        }

        public override void Calculate(int index)
        {
            _ifish.Calculate(index);
            Trigger[index] = .9 * IFish.ValueOrDefault(index - 1);
        }
    }


}

dhnhuy's avatar
dhnhuy

Joined on 03.04.2023

  • Distribution: Free
  • Language: C#
  • Trading platform: cTrader Automate
  • File name: LT_Ind_EhlersInverseFisher.algo
  • Rating: 0
  • Installs: 713
  • Modified: 05/04/2023 07:33
Comments
Log in to add a comment.
No comments found.