Total Number for Bars in the Chart

Hello,

I am trying to assign a Bar number (incremental) to each of the bars in my 1 minute- chart to uniquely identify the bar with the bar number assigned. however I noticed the Bar number in-between becomes 0 and starts again from in between. Would like to get help from experts to fix the below code to show incremental bar number till last bar

Barnumber[0] = 1;
for(i=1;i<BarCount-1;i++)
{
Barnumber[i] = 1+i;
}


Plot(Barnumber,"Barnumber",colorGreen,styleLine);

Barnumber

@George-The-Trader,

Only users with "Verified Badge" are allowed to post on this forum.

Search "Verified Badge" for more information on how to get verified.

You were first advised of this almost 2 years ago!

1 Like

I am using a Trial version, does that mean no help?

So why did you post in this section rather than the correct 'Pre-sale / Trial' section! Which by the way is for users who have being using the trial version for less than 1 month.

The trial version is for 1 month, not ten years!

Perhaps consider doing the right thing?

5 Likes

User without license for > 1 year.