Offset by bars is easy, but when I try to offset by time, I get wildly inaccurate results. Using symbol TMW and a scale of 1 minute. See code below
CODE:
Please log in to see this code.
 
     
    
        
    
    
        
    
    
        Size:  
    
        Color:  
    
    
 
    
        
     
    
        
    
 
    
    
    
        What about short days?  Holidays?  Zero-volume (missing) bars?
Your solution doesn't account for any of this since you assume a constant number of bars for each day. 
    
    
        
    
    
        
    
    
        Size:  
    
        Color:  
    
    
 
    
        
     
    
        
    
 
    
    
    
        I want it exactly 5 days prior. But in case data is not available, I want to use the data from the previous bar nearest the 5 day offset time instant.
Is there a WLP function that can help do this?  
    
    
        
    
    
        
    
    
        Size:  
    
        Color:  
    
    
 
    
        
     
    
        
    
 
    
    
    
        There's no way that you can shift an intraday series and guarantee that it line up properly with a subsequent day.  
What do you need to do exactly?  
    
    
        
    
    
        
    
    
        Size:  
    
        Color: