Category Volatility  Published on 10/12/2023

Renko Time (Real Impulse)

Description

Renko Time (Real Impulse) aims to define the speed of creating a Renko, Candle ticks, or Range.

Objectives:

  • Determine the real impulse of the market.
  • Identify if the market is starting to create a resistance zone.
  • → All you find and you wanna share with us in comment  =)

Time/Pips = $/Hours…  =)

Have fun, and for any collaboration, contact me !!!

On telegram : https://t.me/nimi012 (direct messaging)


using System;
using cAlgo.API;
using cAlgo.API.Internals;
using cAlgo.API.Indicators;
using cAlgo.Indicators;

namespace cAlgo
{
    [Indicator(IsOverlay = false, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
    public class RenkoDelta : Indicator

    {
        [Parameter("Min", DefaultValue = 1, Group = "Seconde Time")]
        public double Min { get; set; }
        [Parameter("Max", DefaultValue = 2, Group = "Seconde Time")]
        public double Max { get; set; }

        [Output("Result1", PlotType = PlotType.Histogram)]
        public IndicatorDataSeries Result1 { get; set; }
        [Output("Result11", LineColor = "Lime", PlotType = PlotType.Histogram, Thickness = 5)]
        public IndicatorDataSeries Result11 { get; set; }
        [Output("Result2", LineColor = "Lime", PlotType = PlotType.Points, Thickness = 5)]
        public IndicatorDataSeries Result2 { get; set; }
        [Output("Result3", LineColor = "Red", PlotType = PlotType.Points, Thickness = 5)]
        public IndicatorDataSeries Result3 { get; set; }

        private IndicatorDataSeries Result;
        protected override void Initialize()
        {
            Result = CreateDataSeries();
        }

        public override void Calculate(int index)
        {
            TimeSpan t = Bars.OpenTimes[index] - Bars.OpenTimes[index - 1];
            if (t.TotalMinutes > 2880)
                Result[index] = t.TotalMinutes - 2880;
            else
                Result[index] = t.TotalMinutes;

            Result1[index] = Bars.ClosePrices.Last(0) > Bars.OpenPrices.Last(0) ? Result[index] : double.NaN;
            Result11[index] = Bars.ClosePrices.Last(0) < Bars.OpenPrices.Last(0) ? Result[index] : double.NaN;

            Result2[index] = Result[index] > Min && Result[index] < Max && Bars.OpenPrices.Last(0) < Bars.ClosePrices.Last(0) ? -2 : double.NaN;
            Result3[index] = Result[index] > Min && Result[index] < Max && Bars.OpenPrices.Last(0) > Bars.ClosePrices.Last(0) ? -2 : double.NaN;

        }
    }
}

YE
YesOrNot

Joined on 10.10.2022 Blocked

  • Distribution: Free
  • Language: C#
  • Trading platform: cTrader Automate
  • File name: Renko Time.algo
  • Rating: 0
  • Installs: 333
Comments
Log in to add a comment.
No comments found.