Ichimoku Trend Channel

by afhacker in category Trend at 26/08/2016

It takes the Ichimoku Tenkan Sen and Kijun Sen lines and make a trend channel like using two moving average, The purpose of this indicator is to find pull backs when market is strongly trending and if you combine it with candle stick patterns you will come up with a great trend trading system.


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.Internals;
using cAlgo.API.Indicators;
using cAlgo.Indicators;
using System.Collections.Generic;
using System.Linq;


Version 1.0
Developed by afhacker (Ahmad Noman Musleh)
Email : afhackermubasher@gmail.com


namespace cAlgo
    [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
    public class IchimokuTrendChannel : Indicator
        [Parameter("Fast Line Periods", DefaultValue = 9)]
        public int fastLinePeriods { get; set; }

        [Parameter("Slow Line Periods", DefaultValue = 26)]
        public int slowLinePeriods { get; set; }

        [Output("Fast Line", Color = Colors.Blue, PlotType = PlotType.Line, Thickness = 1)]
        public IndicatorDataSeries FastLine { get; set; }

        [Output("Slow Line", Color = Colors.Magenta, PlotType = PlotType.Line, Thickness = 1)]
        public IndicatorDataSeries SlowLine { get; set; }

        private IchimokuKinkoHyo ichimoku;

        protected override void Initialize()
            ichimoku = Indicators.IchimokuKinkoHyo(fastLinePeriods, slowLinePeriods, 52);

        public override void Calculate(int index)
            FastLine[index] = ichimoku.TenkanSen[index];
            SlowLine[index] = ichimoku.KijunSen[index];