At the moment only the current bar can be marked, not past bars. So you'd have to set the PEEK flag and check the bar formation in the future for marking the current bar. The upcoming line function will also allow to mark past bars.