M D --
In the phrase "for (i=startbar; iendbar can be arrays. I believe that, so far, both of them are arrays.
You might want to redefine startbar and endbar to be something like this:
startbar =
LastValue((Lookbackperiodindays*6.5*units)+nbarssinceopen(intradaytimeframe));
endbar = LastValue
Thanks for the reply. I will post my problem directly. I am trying to find
the highest 5-min volume bar
for the last n days excluding today. To that end, I wrote this code:
---
//
Hi,
Many topic about that. I kept these lines in my AB bible.
Best regards
Barcount vs BarIndex()
BarCount is a numeric variable that holds just one number (the count of
elements in array).
On the other hand BarIndex() is a function that returns ARRAY
representing consecutive index of each
Hi,
my understanding is this:
barcount counts all the bars in the chart (not just visible);
so, i have written
printf("bars in the chart:"+barcount);
it's giving different number of bars when zoomed in and zoomed out.
Does barcount look at visible bars only?
Regards,
M D KUMAR