Is there a way to have the strategy script play a sound when a condition is met such as the cross of +DI and -DI based on the most recent X number of bars? I have found the function
"PlaySound("myfile.wav",NULL,SND_ASYNC|SND_FILENAME);" in C++ literature but not sure how would
use in WL5.
    
    
        
    
    
        
    
    
        Size:  
    
        Color:  
    
    
 
    
        
     
    
        
    
 
    
    
    
        C++ literature, why? C++ is not applicable, as Wealth-Lab 5's editor speaks C#.
See the Wealth-Lab User Guide, 
Preferences > Sounds for a good example of what you need. 
In addition, this forum discussion: 
Audible signals from a script
     
    
        
    
    
        
    
    
        Size:  
    
        Color:  
    
    
 
    
        
     
    
        
    
 
    
    
    
        An audio file of a flushing toilet would have been perfect for alerts through most of Feb. LOL!
    
    
        
    
    
        
    
    
        Size:  
    
        Color: