Why there is mismatch between explorer value and the original chart value

Hi..Please find the below code.

_SECTION_BEGIN("Title");
Filter = 1;
AddColumn(BarCount, "BarCount");
_SECTION_END();	

When i run the above code in "Explorer" i am able to see the barcount as 22. But when i see the chart actual bars are more than 22. I did not do any kind of zoom in or zoom out.

->How explorer counting the bars?
-> Why there is mismatch between actual bars in the chart and the barcount in explorer window?

Please find the attachments.Amibroker_chart Explorer_barcount

http://www.amibroker.com/kb/2008/07/03/quickafl/

1 Like

Interval setting in chart and explorer are independently set!
(You may sync chart & analysis interval from within analysis though)

If you have higher BarCount in chart than in explorer (or in analysis in general) then you have to set to same interval in analysis window by going to Backtest settings - General - Periodicity (if for example as in your case you want to analyze in same interval as the one of chart window).

Do you want to bet that you have set different interval in analysis? Let me guess... it is Daily....

Check yourself...

_SECTION_BEGIN("Title");
Filter = 1;
AddTextColumn( Interval(2), "Interval", 1 );
AddColumn(BarCount, "BarCount");
_SECTION_END();	

If it is not 5-minute as in your chart then read 2nd paragraph again....

3 Likes