Triage Screen Shot

From Triage Documentation

Jump to: navigation, search

Contents

Introduction

The Triage Screen Shot indicator will take a screen capture of your trading platform. You can set the time interval and a condition that will trigger a screen shot. You can specify a destination and your SMTP email server to send emails with an image attachment. The Screen Shot indicator will also store all your captured images in the folder:

C:\Users\<your username>\AppData\Roaming\Triage\Triage Messaging\img 

You can review these screen captures as if they are a journal of your trading throughout the day.

Quick Start

  1. Please make sure you are in TradeWatch “test” mode (which can be set with the TradeWatch program tray-icon on your Windows taskbar).
Install7.png
  1. Insert $Triage_ScreenShot into any chart with live data. We recommend using one of the diagnostic symbols: == BYT, == CPA, == CPU, == QUO, == TIK [remember the space and set the interval to 1 tick bar]
  2. Set the input parameters to your desired settings. You can use the defaults to see it in action.
  3. Wait for your $Triage_ScreenShot to make a screen capture and send you an email.

Warning

Screen captures take up disk space. The file sizes are usually around 50kb to 200kb depending on your monitor resolution and your picture quality. You should ensure that you have enough disk space on your computer. You may want to periodically empty the image capture folder if you do not wish to keep the screen captured images.

Input Parameters

TriageScreenShotTSParameters.png
ttYourCond: You can specify a condition which will trigger a screen capture of your trading platform. For example, you could enter something like:

High >= Highest (High,50)

If you do not want to use a condition, then just set this to the default value of TRUE. The condition will always be true and send a screen capture to your email on every ttSendInterval.
ttSendInterval: This is the minimum time interval in seconds to send a screen capture if your ttYourCond input evaluates to "TRUE". For example, setting it to 60 means 60 seconds or every one minute.
ttMsgToAddress: This is the destination email address you are sending the screen capture.
ttMsgFromAddress: This is your own from email address.
ttMsgSubject: What is the subject of the screen capture email?
ttMsgTxt: What text will be included in the body of the screen capture email?
ttMsgSetSendUsing: What SMTP send using parameter to use? If you do not know how to set this SMTP CDO parameter, then leave it as 2.
ttMsgSetServer: Enter the SMTP email server address given to you by your ISP or email service provider.
ttMsgSetPort: What port does your SMTP email server require? You can get this from your ISP or email service provider.
ttPicQuality: What type of picture quality do you want for your screen captures. 80 means 80%. Pick a number between 10 to 100.

Extra Email Feature

Included in Triage Screen Shot is an internal SMTP email function that you may find useful since TradeStation does not provide a way to send emails to a non-standard SMTP port 25.

To use this function in your own EasyLanguage code, call $Triage_SendSMTP:

Var: Returncode (0);
Returncode = $Triage_SendSMTP (MsgToAddress,MsgFromAddress,MsgSubject, MsgTxt, MsgSetSendUsing, MsgSetServer, MsgSetPort, MsgFilePath);

All parameters are the same as $Triage_ScreenShot except an additional parameter MsgFilePath.

MsgFilePath = the file path and filename of a file you would like to attach.

Troubleshooting

It is important to know that sometimes your SMTP email server may not respond to the Triage Screen Shot indicator for whatever reasons. Although your screen capture has already been taken and stored in a folder on your desktop, the SMTP email server could reject your email message and attachment.

Since Triage Screen Shot is not an e-mail program, it does not receive rejected emails. Thus, without being able to receive reply emails from your SMTP email server, the Screen Shot indicator cannot retry a mail send.

Personal tools
Navigation