Having problem with SetScaleDaily();
Here are my setting:
     1.  Update data on demand in ON
     2.  Scale: 1 minute
     3.  Data Range: 500 Bars or All Data
CODE:
Please log in to see this code.
No matter what my setting is, it ONLY returns the 2 last days of daily bars.
Please help.
    
 
    
        
    
    
        
    
    
        Size:  
    
        Color:  
    
    
 
    
        
     
    
        
    
 
    
    
    
        If you load 500 bars of 1-minute data, that represents less than 2 days of data.  Why would you expect more?
If "All Data" has more than 2 days of 1-minute bars, then you'll definitely get a result more than 2.  Have you created 1-minute static DataSets?
    
    
        
    
    
        
    
    
        Size:  
    
        Color:  
    
    
 
    
        
     
    
        
    
 
    
    
    
        Cone, I got it.  Thanks for the hint.
    
    
        
    
    
        
    
    
        Size:  
    
        Color:  
    
    
 
    
        
     
    
        
    
 
    
    
    
        jkwong, be careful with using setscaledaily. WL5.0 have error. some times when you change symbol by SetContent after setscaleDaily or RestoreScale return to original symbol
    
    
        
    
    
        
    
    
        Size:  
    
        Color: