Looked for a solution in the forum but couldn't find it.
I want to buy a stock that has dropped 10% over last 10 days and sell it next close. I've got the code to do that. However, I want to restrict it to the first time this happens and not again for next 30 days. How do I do that ?
Simply put, how do I not buy a stock if I've sold it in the last 30 days.
Thanks
Andy
    
    
        
    
    
        
    
    
        Size:  
    
        Color:  
    
    
 
    
        
     
    
        
    
 
    
    
    
    
        
    
    
        
    
    
        Size:  
    
        Color:  
    
    
 
    
        
     
    
        
    
 
    
    
    
        Thanks Eugene. My bad, I was not using the correct terms for the query.
-- Andy
    
    
        
    
    
        
    
    
        Size:  
    
        Color:  
    
    
 
    
        
     
    
        
    
 
    
    
    
        Glad to help. No problem, just wanted to highlight that finding the correct terms is not trivial in this case exactly.
    
    
        
    
    
        
    
    
        Size:  
    
        Color: