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*/
}
}
}
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
yguhyj
sddv
sdcsa
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.
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
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.
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.
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.
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
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
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.
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.
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.
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.
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.
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.
“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