BarNumber issue

Questions about MultiCharts and user contributed studies.
tradingest
Posts: 283
Joined: 05 Dec 2014
Location: Italy
Has thanked: 53 times
Been thanked: 3 times

BarNumber issue

Postby tradingest » 14 Feb 2021

Hi there,

why the BarNumber printed is different from BarNumber shown on Data Windows?

Thanks

User avatar
Smoky
Posts: 507
Joined: 03 Dec 2010
Location: Thailand
Has thanked: 97 times
Been thanked: 115 times

Re: BarNumber issue

Postby Smoky » 14 Feb 2021

hi, what bar type ?

tradingest
Posts: 283
Joined: 05 Dec 2014
Location: Italy
Has thanked: 53 times
Been thanked: 3 times

Re: BarNumber issue

Postby tradingest » 15 Feb 2021

hi, what bar type ?
M15 bar type, intraday chart

tradingest
Posts: 283
Joined: 05 Dec 2014
Location: Italy
Has thanked: 53 times
Been thanked: 3 times

Re: BarNumber issue

Postby tradingest » 17 Feb 2021

Hi there,

why I have this difference between NArNumer printed and chart like shown in the image?

Here is the code

Code: Select all

print( " Data: ", FormatDate("dd-MM-yyyy",eldatetodatetime(date)), " Time: ", FormatTime("HH:mm",eltimetodatetime(time)), " Symbol: ",symbolname, " BarNumer: ",BarNumber:1:1 );
BarNumber.jpg
(153.9 KiB) Not downloaded yet
Thanks

User avatar
Smoky
Posts: 507
Joined: 03 Dec 2010
Location: Thailand
Has thanked: 97 times
Been thanked: 115 times

Re: BarNumber issue

Postby Smoky » 18 Feb 2021

take a look about Maximum Bars Back setting

For example, if Maximum Bars Back is set to 20, the 21st bar will be assigned a number of 1. then you have an offset ....


Return to “MultiCharts”