Hi Eugene, again I need your support. I would like to create a Dataseries indicator which sums up the down and up days within a certain period.
I wrote the following method to do so:
CODE:
Please log in to see this code.
Unfortunaltely, there is a runtime error. I thought I protected the loop from getting smaller zero. But it's not like that. Do you know where the error is?
Thank you very much.
Best
Niels
    
 
    
        
    
    
        
    
    
        Size:  
    
        Color:  
    
    
 
    
        
     
    
        
    
 
    
    
    
    
        
    
    
        
    
    
        Size:  
    
        Color:  
    
    
 
    
        
     
    
        
    
 
    
    
    
        you are right! :-) Thanks for the links. Haven't seen the indicators.
Best
Niels
    
    
        
    
    
        
    
    
        Size:  
    
        Color:  
    
    
 
    
        
     
    
        
    
 
    
    
    
        Any time :)
    
    
        
    
    
        
    
    
        Size:  
    
        Color: