Triage Margin Watch

From Triage Documentation

Jump to: navigation, search

Contents

Introduction

The Triage Margin Watch indicator will allow you to check if you are close to getting a margin call. A voice phone, SMS, email, fax, instant messenger, RSS, Twitter or Facebook alert is sent whenever you run over your margin limits.

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_MarginWatch into any chart where you have your own strategy running that you would like information reported to you via TradeWatch.
  2. Set the input parameters to your desired settings. You can use the defaults to see it in action.
  3. Wait for your $Triage_MarginWatch report to trigger.
  4. Check your message log under the view log menu in the tray-icon.
  5. If the alerts are being sent to you as you expect, then set TradeWatch to "live" mode and position mismatch alerts will be sent to you at any time and wherever you go.

Input Parameters

TriageMarginWatchTSParameters.png
ttAccount: Name of account to watch; only one account can be selected. Be sure to enter it exactly as you see it in your Trade Manager window.
ttTime_Begin: Time to begin checking margin. 

If you leave this blank then the default value is "00:00:00" at the beginning of the 24-hour day.

For example, "09:30:00" means 9:30AM in the morning.
ttTime_End: Time to end checking margin. If you leave this blank then the default value is "24:00:00" at the end of the 24-hour day.

For example, "16:00:00" means 4:00PM in the afternoon.
ttDaysOfWeek: Which day of week to check?
					
"1,2" means Monday and Tuesday
"*"   means all of days of the week
""    leaving this blank means only today
ttCheck_Interval: How often to check margin?
				
1s = 1 second, 1m = 1 minute, 1h = 1 hour

For example, "20m20s" means to check every 20 minutes and 20 seconds.
ttInitial_Margin: Check initial margin? True or False.
ttMaint_Margin: Check maintenance margin? True or False.
ttShow_Info: Show information on chart? True or False.
ttThreshold: What dollar or percentage threshold before a margin call is reached to trigger message?
 
"10%" means within 10% of margin call
"$20000" means within $20000 of margin call
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 me@email.com
Yahoo Instant Messenger yahoousername
AOL ("AIM") Instant Messenger AOLusername
Microsoft MSN or Live Instant Messenger msnname@hotmail.com
Google Talk Instant Messenger googlename@gmail.com
ICQ Instant Messenger 570102039432
Twitter™ Account Twitter Alias*
Facebook™ Account Facebook Alias*

Troubleshooting

If you get a "Waiting for account…" message in your chart for the $Triage_MarginWatch indicator, then you must check to see if you are online and connected to the TradeStation trade server. You cannot retrieve account information without being connected.

You can find your trade server status at the lower right hand corner of your TradeStation application. If the trading status is red, then you are not connected.

Personal tools
Navigation