When running weekly exploration using "From-to" as range on the Analysis window, the dates that fall on Fridays will return results. Dates that are non-Fridays will not return results. However, if I use "N recent bars" as range, even the dates that fall on non-Fridays will return results for weekly exploration. Is this expected behaviour or maybe something is wrong with my AFL script?
Is it possible to get weekly exploration to return results even when the dates fall on non-Fridays using "From-to" range?
Last week if not having reached Friday yet or historical data missing Fridays (because of Holidays) will output non Friday. Your from-to range (apparently) did not include last week of array.
N-recent bars includes last week bar. That is the reason.
Include last week's last date into your from-to range and you will get non Friday output too (if last week is not ending on Friday (yet) or if Friday is Holiday).
Seems like what I want to achieve with weekly exploration using single-day "From-to" range is not possible because of the fundamental difference in the nature of "From-to" and "N recent bars" range. "From-to" range analysis are always done using daily bars. "N recent bars" is more flexible. Can be weekly bar, daily bar, monthly bar depending on the settings.