JAM Strategy Trading - TradeStation EasyLanguage Consultant Programmer Specialist Indicators Strategies
Home Consulting Indicators Systems Purchase Purchase
Call : US : (845) 704 7179
UK : (020) 7193 6073
Free Stuff
From Custom EasyLanguage development to unique TradeStation indicators and utilities
TradeStation 9.0 just released
TradeStation developer

Some Free Stuff for TradeStation.

          • JAM HT Pack (Free Edition)

          • JAM Linear Regression Pack (Free Edition)

          • Color Palette

          • Week Function

          • Holiday/Half Day Function

          • Sending TradeStation Alerts through GMail

          • Trader Wikis

JAM HT Pack (Free Edition)

The JAM HT Pack (Free Edition) contains a Simple Moving Average (SMA) indicator that calculates and displays an SMA from a higher bar interval chart/RadarScreen on a lower bar interval chart/RadarScreen.  No multiple datastreams, no DLLs, no approximations.  The JAM HT Avg Simple indicator is a single, simple indicator that does an EXACT calculation of a higher bar interval SMA on a lower bar interval chart. 

As an example, this is a 60 tick chart of Google with the JAM HT Avg Simple Indicator applied.  The input to the indicator tells it to calculate and display a 240 tick SMA and that's what it is doing:

TradeStation EasyLanguage Free Indicators

If you compare it against TradeStation's 'Mov Avg 1 Line' (SMA) indicator on a 240 tick chart you can see that the values are the same:

TradeStation EasyLanguage Free Indicators

In the two places picked out (marked in green and cyan) the moving average values are identical.  These values are identical from the first bar to the last, on historic bars and on live bars.

The JAM HT Avg Simple indicator works for tick, minute, daily, weekly, monthly and yearly chart intervals.  (The calculation is approximate for volume charts because of the way TradeStation calculates volume bars).  It can display a minute based moving average on a tick chart, a daily moving average on a minute chart, and weekly, monthly or yearly moving averages on a daily chart.  No slow and complicated DLLs No multi-timeframe charts to mess up your chart format JAM HT Avg Simple is just a simple (but very clever) indicator.

Download JAM HT Pack (Free Edition) v3.6 (for TS 8.3 and above)

Download JAM HT Pack (Free Edition) documentation v3.5 (for TS 8.3 and above)

Note that v3 is different from v2 which was different from v1.  If you have downloaded previous versions then please read the documentation before installing v3.

If you like the JAM HT Avg Simple indicator then please have a look at the complete JAM Higher Timeframe Pack .  This pack contains a number of other higher timeframe indicators than can be used in the same way.  For programmers, functions are also available so that you can calculate the higher bar interval values from your strategies.  This allows you to work with multiple-interval tick charts in one strategy and to use IntrabarOrderGeneration (IOG) with multiple timeframes.


JAM Linear Regression Pack (Free Edition)

Color Palette

The attached ELD contains a set of named colors that can be used in your indicators and strategies. TradeStation only has eight colors, and to extend this you need to use the RGB function which can be complex. 

It is very simple to use these colors.  Wherever there is an input that requires a color, such as 'red' or 'blue'...
X11 Color names

...you use 'color.red' or 'color.blue' (the word 'color', then a period/full stop, then the name of the color)
X11 Color names

There are 140 colors, which are part of the X11 standard.  The names can be found in Wikipedia here http://en.wikipedia.org/wiki/X11_color_names.  All spaces should be removed from the color names in Wikipedia, and any names that start with 'medium' have been shortened to 'med'. e.g. the color Medium Sea Green is 'color.MedSeaGreen'.
Download Color functions (TS8.3 and above)

Week Function

TradeStation comes with a DayOfWeek function to tell you the day number (0=Sun, 1=Mon etc) and a Month function to tell you the month number (1=Jan, 2=Feb etc) but it doesn't have a Week function.  This may seem like an oversight, but there is method in their madness.  Defining what a week is and what the week number is can be incredibly complex, and many countries around the world have different standards.  But for most traders I don't think these subtle distinctions are important.  Below is a Week function that tells you the week number (1-52).  It can be used to do week-by-week analysis, or can simply be used like this...

     if Week(date) <> Week(date)[1] then ... 

This detects if the current bar is the start of a new week.  If your symbols starts on a Sunday then that is the start of the new week.  If your symbol starts on a Monday then that is the start of a new week.  If there are any holidays in-between (either on Friday or Monday etc) then that will be taken into account and a new week will still be successfully detected.

Download Week function (only for TS8 and above)

Someone else has also posted a week function on the TradeStation forums that uses the ISO standard.  However, I don't think the ISO standard is good for Traders and my version is more useful.  Here is a link to the other version.

Holiday/Half Day Function

Sending TradeStation Alerts through GMail

TradeStation does not currently allow the sending of email alerts through a GMail account. This is because TradeStation will only send emails on TCP Port 25, and does not use SSL security.  However, there is a free utility available that will setup a connection between your PC and GMail so you can use TradeStation to send emails.  This utility is called Stunnel.  This is a quick guide to sending emails from TradeStation via GMail using Stunnel.  This is reasonably technical - you will need to get your PC's local IP address, and you will need to know how to get a command prompt on your PC.

There is a discussion of Stunnel on the TradeStation Forums - https://www.tradestation.com/Discussions/Topic.aspx?Topic_ID=98576. This includes common installation problems.

1. You can download the Stunnel program here - http://mirror.bit.nl/stunnel/

You should download and install the latest executable.  In this picture it is v4.37, but new versions are released regularly so just download the latest installer (the one ending in .exe).


Download the above file and run it. It will install itself into your c:\program files\stunnel directory

2. Next, save this text file - gmailsmtp.txt - into the same directory as Stunnel i.e. c:\program files\stunnel

3. Now this is where you will need your PC's IP address.  Edit the gmailsmtp.txt file you've just downloaded and replace the IP address with your own PC's IP address.  In the file, the IP address is, so replace this.

gmailsmtp.txt file

It's very important that you leave the ':25' at the end of the IP address.

4. Next, you will need to run a command prompt and type some commands in.  Bring up a command prompt and go to the c:\program files\stunnel directory.  Type the following commands


...and then...


5. Finally, you need to setup TradeStation so that it can send emails. Again, you need to change the IP address to your PC's IP address (so change to your IP address).  Make sure you enter your Gmail email address and password into the authentication section.

TradeStation Email setup 

That's it! You should now be able to send email alerts from TradeStation, through Gmail.

Free stuff I've posted on the TradeStation Forums

I will post links as I have time.

Utility to output a complete list of your indicators and strategies (with a link to a utility that makes a text backup of them).
suri.Chartshow - this was code I posted to be able to step through a series of charts, with the list of symbols specified in a text file.  The original intention was to do calculations on each chart, but Suri used the idea slightly differently.  Some more up-to-date versions of the code are available.
Oscillators by John Ehlers - a list of indicators taken from John Ehlers' books.
Trader Wikis - I am a major contributor to TradeStation's Trader Wiki project.

Navigation Links
Our Library

Free Stuff!

TradeStation tools

Custom Programming
Coding of customized EasyLanguage indicators, functions and strategies.
Specialist Indicators
Unique indicator and utility packages.
DLL Development
Coding of C++ programs for improved integration and
Strategy Automation
Enhanced systems for more robust trading automation.
Platform Conversions
Conversion of indicators and strategies from other trading platforms to TradeStation.

Copyright © JAM Strategy Trading, 2005-2012 : All Rights Reserved

Neither TradeStation Technologies nor any of its affiliates has reviewed, certified, endorsed, approved, disapproved or recommended, and neither does or will review, certify, endorse, approve, disapprove or recommend, any trading software tool that is designed to be compatible with the TradeStation Open Platform.