Is there an easy way to use the rolling window of an indicator while in a subroutine called by the OnData()? Do we pass the tradebars data to the subroutine?

 

Thanks,