# Renko Time

793

Hi all, I would like to create an histogram indicator to track the time for every Renko brick.

I wrote this but I seem it doesn't work well, could you help me? Thank you!

```int start()
{
int limit;
int counted_bars=IndicatorCounted();

//---- last counted bar will be recounted

if(counted_bars>0) counted_bars--;
limit=Bars-counted_bars;

//---- calcolo entry_long
for(int i=1; i<limit; i++)
Histogram[i] = Time[i] - Time[i+1] ;

Histogram[0] = TimeCurrent() - Time[0] ;
return(0);
//---- done

}```
1673

I think  this indi does just that
Files:
793

Thank you very much!

Could you explain the Threshold ?

18701

1. Alberto Tortella: but I seem it doesn't work well,

"Work well" or "Doesn't work" is meaningless - just like saying the car doesn't work. Doesn't start, won't go in gear, no electrical, missing the key, flat tires - meaningless. There are no mind readers here and our crystal balls are cracked.

2. Alberto Tortella: Could you explain the Threshold ?
It draws a histogram if that bar's duration is at least that many minutes.
793

William Roeder:
1. "Work well" or "Doesn't work" is meaningless - just like saying the car doesn't work. Doesn't start, won't go in gear, no electrical, missing the key, flat tires - meaningless. There are no mind readers here and our crystal balls are cracked.

2. It draws a histogram if that bar's duration is at least that many minutes.
```1. I don't understand why you waste time with these rude answers. If you don't want to look at the code, it's enough that you don't answer, don't you think?

```

2. No, Threshold is to avoid to obtain too big histogram. The bars are drawn anyway.

1673

Alberto Tortella:

Thank you very much!

Could you explain the Threshold ?

I am no coder, but threshold seems to be the maximum value in minutes that a renko bar can have in the histogram even if that renko bar lasts longer than the specified threshold. So if threshold is 1000, then renko bars that lasts longer than 1000 min will have value of 1000 in the histogram.

18701

Alberto Tortella:
```1. I don't understand why you waste time with these rude
answers. If you don't want to look at the code, it's enough that you