How do I resize (truncate) spx so it's the same size as spx2?
CODE:
Please log in to see this code.
I tried a FOR loop, but the compiler says an indexer [...] is not allowed in a Bars object. For example ...
CODE:
Please log in to see this code.
---
Off topic comment, but when I pass spx2 into my library routine, it all works fine. However, when I pass spx into my library routine, I get "Object reference is not set to an instance of an object". I'm not sure why since both are Bars objects.
    
        
    
    
        
    
    
        Size:  
    
        Color:  
    
    
 
    
        
     
    
        
    
 
    
    
    
        In Wealth-Lab "resizing" is called synchronization. You can accomplish it as instructed in the WealthScript Programming Guide: DataSeries > Accessing Secondary Symbols > Secondary Series Synchronization.
    
    
        
    
    
        
    
    
        Size:  
    
        Color: