HELP- exploration afl for days left in N-day bar.

#1
hello all,
for the exploration of daysleft in N-day bar i tried this one-

for( i = 1; i <=9; i++ )
{
TimeFrameSet(i*indaily);
daysleft=(i-barcount%i);
Filter= 1;
AddColumn(daysleft, "DL");
TimeFrameRestore();
}

but the results were quite different from actual.
possible reason is barcount (no. of bars available) is different from the number of bars , Amibroker consider for developing N-day bar....
so now i request to all seniors and experts that what can be the right afl for this situation?
THANKS & REGARDS.
 
#2
hello all,
for the exploration of daysleft in N-day bar i tried this one-

for( i = 1; i <=9; i++ )
{
TimeFrameSet(i*indaily);
daysleft=(i-barcount%i);
Filter= 1;
AddColumn(daysleft, "DL");
TimeFrameRestore();
}

but the results were quite different from actual.
possible reason is barcount (no. of bars available) is different from the number of bars , Amibroker consider for developing N-day bar....
so now i request to all seniors and experts that what can be the right afl for this situation?
THANKS & REGARDS.
Hi sompossible,
No, if you've enough database that's meaning is 15 days or ..
and you forget to use timeframeexpand() function .. you need to change that values also. (indaily), once you're done with it, it should work.
i can feel you,you stopped asking after that.