Category Trend  Published on 22/04/2022

Time_Open_RENKO

Description

As we all know, Renko is a type of chart used in the financial market to indicate price variations disregarding TIME and trading volume, however there is an OPENING TIME for each RENKO BOX, in relation to the previous BOX, it has a time variation of opening, between one and the other, which may vary in thousands of seconds, or even seconds, minutes, hours, depending on the size of the RENKO used,

so this indicator shows the OPENING TIME difference in relation to the previous BOX, where it paints the box when the CURRENT BOX has the LOWER time in relation to the previous BOX.

 Default is receiving the value of minutes, being able to change in the code, to other times like seconds, hours, etc. 


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 Timer_Renko : Indicator
    {

        
        [Output("Smaller", PlotType = PlotType.Histogram, Thickness = 2, LineColor="aqua")]
        public IndicatorDataSeries Result { get; set; }
        [Output("Bigger", PlotType = PlotType.Histogram, Thickness = 2, LineColor="blue")]
        public IndicatorDataSeries Resulta { get; set; }

        public override void Calculate(int index)
        {
    
    var n = index;
               var CurrentTimeBar = Bars.OpenTimes[n].ToLocalTime();
               var PreviousTimeBar = Bars.OpenTimes[n-1].ToLocalTime();
               
               var CurrentTimeBar1 = Bars.OpenTimes[n-1].ToLocalTime();
               var PreviousTimeBar1 = Bars.OpenTimes[n-2].ToLocalTime();
               
               var  Time = (CurrentTimeBar - PreviousTimeBar);
               var Time2 = (CurrentTimeBar1 - PreviousTimeBar1);
               float x = float.Parse(Time.Minutes.ToString());             
               float z = float.Parse(Time2.Minutes.ToString()); 
       
                if (x < z)
             Result[n] =  x ;
                else
            Resulta[n] = x;                
                          
             if  (x < z && Bars.HighPrices[index] == Bars.ClosePrices[index])   Chart.SetBarColor(index, "Green");
                         
             if  (x < z &&  Bars.LowPrices[index] == Bars.ClosePrices[index])   Chart.SetBarColor(index, "red");
             
            /*Days	            Obtêm o número total de dias representado pela instância
            Hours	            Obtêm o número total de horas representado pela instância.
            Milliseconds	    Obtêm o número total de milliseconds representado pela instância.
            Minutes	            Obtêm o número total de minutos representado pela instância.
            Seconds       	    Obtêm o número total de segundos representado pela instância.
            Ticks	            Obtêm o valor da instância expressa em ticks.
            TotalDays	        Obtêm o valor da instância expressa em dias totais e fracionários.
            TotalHours	        Obtêm o valor da instância expressa em horas totais e fracionárias.
            TotalMilliseconds	Obtêm o valor da instância expressa em milisegundos totais e não inteiros.
            TotalMinutes	    Obtêm o valor da instância expressa em miniutos totais e não inteiros.
            TotalSeconds	    Obtêm o valor da instância expressa em segundos totais e não inteiros*/
               

        }
    }
}


FE
fernando.f.oficial

Joined on 01.05.2020 Blocked

  • Distribution: Free
  • Language: C#
  • Trading platform: cTrader Automate
  • File name: Timer_Renko.algo
  • Rating: 5
  • Installs: 1514
  • Modified: 22/04/2022 00:53
Comments
Log in to add a comment.
JE
jessicakiely60 · 1 year ago

 “Affiliate marketing is not a ‘push-button’ solution. It takes focus and commitment, and a certain choreography to make it happen the way you want it to.”
Delhi Affiliate Marketing

VA
vandanarajputseo · 1 year ago

yguhyj

RA
rahulnoidaseo · 1 year ago

sddv

RA
rahulnoidaseo · 1 year ago

sdcsa

ME
meenaachawla · 1 year ago

Escorts ensure that you have the best involvement in them and harbour no uncertainties while investing quality energy with you. Gurgaon Call Girls Photos In the event that you are making a fast excursion , you ought to reach out to these escorts to invest some energy alone.

DI
dikshaajain2+1 · 1 year ago

Most Escorts in are accomplished masseuses who have experience in different massage therapy. The massages performed by the call girls include body to body massage, Nuru massage, Tantra massage and prostate massage. The escort girls are able to perform erotic massage at the comfort of your hotel. Arjan Garh Call Girls | Call Girls in Cyber City DLF City Call Girl | Call Girl in Faridabad | Golf Course Road Call Girls Service

AN
ankitaaoberoi+1 · 1 year ago

This large number of ladies are for all intents and purposes something very similar for your necessities for the clarification they aren't excited about an opinion. It's their craving to stay at this point and value charm. Without a doubt, even a Call Girls Goa young women will not need a devotion or be expecting monogamy.

SH
shrutiarora340 · 1 year ago

You can be rough and romantic at the same time as the girls know how to play your game and will adapt without any problems. Escort in Udaipur We can always help with suggestions and the best combinations to make the whole night or more extended time even more entertaining in a very private manner.

CH
chandniiguptaa · 1 year ago

Expecting that you're trying to find anyone to cut back your squashed, searching for a partner to visit exchange dinner, or searching for a collaborator to show up at a party or disco, then, our provocative call young Call Girls Gurgaon are confounding liability in each piece. Our reasoning affiliations place each piece of our clients; ensure that no appreciation is show from our choice. Here, pack is the for certain annihilated from guarantee that you genuinely need to commit quality time nearby your #1 call young woman.

SI
siyakoli02 · 1 year ago

You can always move out of your boring life by exploring and hiring our escort service. Our agency is here for you to accompany you as you’re selecting your preferred Escort girls. Escorts in Arpora Escorts in North Goa Escorts in Vagator Escorts in Old Goa Escorts in Pernem

SW
swarnayadv · 1 year ago

Our girls have high energy and endurance ability. Female escorts in Delhican sustain your real love for a more considerable time. Escorts in Delhi Delhi Escorts Service Delhi Call Girls Call Girls in Delhi Delhi Escorts

AD
adityakumar4442267 · 2 years ago

I frequently visit this website to gather knowledge on many topics, including this blog. As a developer working with a website that provides university assignment help, I received a lot of assistance from this website.

IT
itsalbertjames · 2 years ago

You can ask us for help any time you want, as our support is available 24/7 at online dissertation help service. Experience the best academic help partner at a very affordable price rate by hiring us.

IT
itsalbertjames · 2 years ago

You can ask us for help any time you want, as our support is available 24/7 at online dissertation help service. Experience the best academic help partner at a very affordable price rate by hiring us.

MZ
mztd006 · 2 years ago

19 post and 19 spam :-\

@fernando.f.oficial how can we use this indicator?

 

mw430331's avatar
mw430331 · 2 years ago

Looking for Phd Thesis Writers in the UK for all your thesis assignments turnout to The Dissertation Help for all thesis services at an affordable price without any plagiarism.

VA
valsoansalosn · 2 years ago

A new breed of day traders kicked the 2021 financial market in review with a novel speculative mania. Fueled by a desire to upend the status quo and also turn a profit, amateur investors used social media to drive up shares of companies that hedge fund professionals were shorting.

MH
mhussey441 · 2 years ago

I usually visit this website to take information on different things like this blog, working with a university assignment help website as a developer I got lots of help from this website.