Jason Posted August 30, 2018 Report Share Posted August 30, 2018 (edited) I know that if I apply a paintbar to a chart as an indicator that I can customize it's notifications to play a sound. But how do I establish in the paintbar code that it should play a sound and produce a popup when used as a scan on a watchlist of symbols? I can't seem to find any way to do this. I also need to customize how long the message set as the scan result is displayed. Thanks. Edited August 30, 2018 by Jason Quote Link to comment Share on other sites More sharing options...
Jerry Medved Posted August 30, 2018 Report Share Posted August 30, 2018 You would want to do an Alert for that. In the scan definition, make sure you set the ScanAlert. In Simple mode, it is a checkbox. If using Advanced Mode, you can trigger the alert by adding the following command when you set the result: TriggerAlert("Your Alert Name"); Then, when you select the scan on the portfolio, you can click on the Edit Params button and you will see options for the alert you defined. You can enable it and then do the usual alert notifications - sounds, etc. Quote Link to comment Share on other sites More sharing options...
Jason Posted August 30, 2018 Author Report Share Posted August 30, 2018 Ahh, thank you! I glossed over that icon since it was greyed out in the watchlist window. Never thought it was active and could be modified since I hadn't added parameters to the code. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.