Timer_Renko free

by rashidsaeed8084 in category Other at 08/07/2022
Description

Timer_Renko

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;

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*/
               

        }
    }
}
Comments

krapraneath123 - July 14, 2022 @ 04:47

A excellent article or gripping tale needs the author waffle game to have a sharp sense of aesthetics and the ability to take a close look at it. Your essay really made an impression on me.

clarkleblanc3511880 - July 27, 2022 @ 12:42

I have received user favorite lolbeans is a fun battle royale game where you race with other players while avoiding obstacles. Reach the end of the course in competitive gameplay!

joeneeley0920 - August 01, 2022 @ 12:00

I'm using this Renko chart, it's amazing it made me profit spanish dictionary

nobit2021 - August 08, 2022 @ 12:05

This forum is amazing and there is a lot of useful content here crossword puzzles. Companies can use this content to further improve the quality of disposable nitrile gloves even though they have not received any complaints about them yet. However, there is still room for improvement. 

lenkalee266 - August 14, 2022 @ 18:40

Thank you for providing such useful information. I've been having trouble coming up with many questions about this topic. I'll stick with you! Nerdle game

 

junealexis001 - September 12, 2022 @ 12:06

Interesting  site i love it keep posting more!   https://fencingeugeneor.com

davidsmithhello653 - September 12, 2022 @ 17:26

Hello! I need to encourage you to focus on the way that composing an article on your own today isn't required - you simply need to look for help from essay writers from resume writers melbourne without leaving your home! Genuine scholars with more experience will improve quicker without counterfeiting

0