Currently working on updating an indicator that interacts with wide range bars in various manners. One of them is the ability to alert the user when this happens. Currently sound alerts and alerts added to Alerts log is implemented. Since feature request SFT-4164 is not added yet, the functionality for Share Service alerts have to be added manually from the ninja script.
Pretty much all of the functions are coded in. The user is able to select a share service, add a custom message, and customize the 'send to' parameter for the email option. I have three questions.
1) How would the code distinguish between an email share service vs a text message?
At the moment the user has to toggle a bool to signal that its a text message. The code uses this PropertyEditor("NinjaTrader.Gui.Tools.AlertsShareS erviceEditor") to select the correct service. But this is simply a string value and not a specific object type. This is problem as it has to distinguish between the two as the Share() method takes additional arguments for the email. Thus the required explicit distinction between them.
2) I noticed there's a SendMail() method that works the same. Any reason to use one over the other? I presume the other one is the legacy method. SendMail() is clearer to use. I use the Share() for now.
3) What PropertyEditor denotes the drop down menu for the alert message text?
If we go to the alert page (right click the chart then Alerts...) then message text, there's a input field with a drop down with the available properties to include with @. Eventually I would like the user to have more control on what information they can send in the alert.
Best regards,
Unsuitable
Ocean Trading Indicators.

Comment