From Triage Documentation
Triage Ping will send ping “heartbeat” signals to Triage ping servers. If there is a period of lost contact with your Triage Ping indicator, then an alert is sent to your voice phone, SMS, email, fax or RSS feed. Even if your data, network or internet fails!
With the Triage Ping indicator, you can set the frequency of pings and the timeout to trigger an alert. You can apply the Triage Ping indicator to any number of charts, and give each indicator instance a unique name for the Triage Ping Servers to watch.
- Please make sure you are in TradeWatch “test” mode (which can be set with the TradeWatch program tray-icon on your Windows taskbar).
- Insert $Triage_Ping into any chart you want to know is receiving data and running EasyLanguage code. If you want to know if your entire platform is running, then you can add the $Triage_Ping indicator to a 1 tick == CPU diagnostic symbol.
- Set the input parameters to your desired settings. Remember to use a unique ping name for each instance of a ping you want to track.
- Wait for your $Triage_Ping to report a loss of contact. You can simply disconnect from the TradeStation data servers to create this stoppage of data coming in.
- You should receive a message from TradeWatch reporting a ping failure.
- If you remove the $Triage_Ping indicator from the chart, you will also remove it from tracking at the Triage Ping servers.
- If you would like to remove all active pings from the Triage Ping servers, you can run $Triage_ClearAllPing and this will clear ALL pings. You would have to reload your chart or re-add the $Triage_Ping indicator again to set a new ping.
ttPing_Name: What unique name do you want to call this Ping so that the Triage Ping Servers can recognize what chart is sending out a heartbeat ping signal. If you use the "*" character then a simple name is created for you in this format: <Symbol Name> added at <Date and Time You Added $Triage_Ping> If you use the same ping name more than once, then each instance of the $Triage_Ping indicator with the same name will send a signal to the Triage Ping servers. We do not recommend you do this.
ttInterval_Seconds: How often to send a "heartbeat" ping signal to the Triage Ping Servers? We recommend you don't set this to less than 20 seconds to prevent getting too many false positives. This is especially true on data that may not come in as quickly or is known to have intermittent delays. Also, setting the ping checking interval at a reasonable value will conserve your bandwidth and prevent overloading your allocated ping buffer at the Triage Ping servers. For most traders, 30 seconds is more than adequate.
ttTimeOut_Seconds: How many seconds to wait before missing a ping interval for sending an alert to you about a ping failure? As an example, if you set the timeout to be 60 seconds, then when it doesn't report within 60 seconds of the last ping signal received, you will get an alert notifying you that the Triage Ping servers have lost contact. Your timeout value should never be less than your ttInterval_Seconds value or you will always get a timeout alert.
ttRetry: How many times to timeout and send an alert message before giving up? So that you don't get continuous failure messages after your first timeout, we will retry monitoring your ping signal "ttRetry" times before giving up notifying you and have you correct the problems at your trading platform preventing the $Triage_Ping indicator from running. Setting this to -1 means to keep retrying and sending notifications to you.
ttSession: When should the ping service go live? For example, you can create a session string in this format: "T=[<Time Range>];DoW=[<Days of Week>];M=[<Days of Month>]" Where Day of Week: 1=Sun .. 7=Sat separated Where Days of Month: any days of the month [1..31] If this is left blank, then ping service is on all the time. For 9:30AM to 12PM and 1PM to 4PM, Monday through Friday: "T=[09:30:00-12:00:00,13:00:00-16:00:00];DoW=[2,3,4,5,6]"
ttMsg_Text: What is the message text you want to include in the ping notification message?
ttMsg_Type: Choose the message type you are sending: "printlog" = message is sent to TS print log "phone" = voice message to phone "sms" = text message to mobile phone "fax" = text page to fax machine "email" = message to email "yahoo" = message to Yahoo IM "msn" = message to MSN IM "aim" = message to AIM (AOL) IM "icq" = message to ICQ IM "gtalk" = message to Google Talk IM "rss" = message to RSS Feed "twitter" = message to Twitter account "facebook" = message to Facebook account Please see Triage Messaging User’s Guide for more information about this parameter and how to use it.
ttMsg_Dest: Send messages to one or more destination addresses or numbers. Please see Triage Messaging User’s Guide for more information about this parameter and how to use it.
Messaging Service Example Destination Mobile Phone or Device via Short Message (SMS) 14155551111 Text-to-Voice Phone Message to any Telephone or Cell Phone +14155552222 Text Fax to any Facsimile Device +1-415-555-3333 E-mail Relay bypassing tradition SMTP and Mail Clients firstname.lastname@example.org Yahoo Instant Messenger yahoousername AOL ("AIM") Instant Messenger AOLusername Microsoft MSN or Live Instant Messenger email@example.com Google Talk Instant Messenger firstname.lastname@example.org ICQ Instant Messenger 570102039432 Twitter™ Account Twitter Alias Facebook™ Account Facebook Alias