Seven anchors
Session, Week, Month, Quarter and Year restart at the first bar of each period. Rolling bars keeps a moving window of the last N bars. Anchored bar starts at one bar you pick.
Note You pick the anchor bar by counting bars back from the latest bar; re-enter the number after reopening a chart.