Using EasyLanguage 9.x 

by Murray Ruggiero, Arthur Putt & William Brower. Edited & Formatted by Sunny J. Harris.

QUICK LINKS: Table of Contents | Introduction | Foreword | Sample Pages  | BUY NOW

The chart on the cover of this book is a snippet of my SunnyBands indicator. Notice how price goes right to the outer bands and turns around. It's a GREAT way to sell at highs and buy at lows. Click to jump to the Order Form and more information on this indicator.

6/21/2021: I am very sad to announce that my esteemed collegue and dear friend, the famous and brilliant trader, programmer & author of "Using EasyLanguage 9.x" has died after a short battle with cancer. Please keep him and his wife Angie in your thoughts. 

Click Here to purchase the Book. Click Here to purchase the CD. Click Here for Both. Our price is lower than Amazon's.

This is ALL the code in the book.

Introduction

TradeStation is a powerful tool for collecting equity price data, charting price data, and analyzing price data in order to increase the probability of a profitable stock or commodity trade.

Other collecting and charting applications exist, however. From the first release of TradeStation, traders have had the ability to translate their trading methods into viable studies and systems that are executed by a personal computer. 

By using the the TradeStation Development Environment  (TDE ), a trader is able to develop studies, systems, and user functions specific to their own individual trading methods. EasyLanguage provides the means to back-test those custom ideas on historical data and generate realtime trading signals going forward.

EasyLanguage  is the programming engine used to develop a study or system. EasyLanguage is unique in that it is a programming language similar to Pascal but was designed specifically for traders. It is relatively easy to use because it uses English-like commands but is still quite powerful. This differentiates it from other charting applications for the personal computer.

The word “programming” may be intimidating to many. However, by following the steps and doing the examples in each chapter, you will quickly see that much more is to be gained from TradeStation other than just charting data. Those that have tried to program a study or system in EasyLanguage quickly found out that the words may be common but the rules for using the words are foreign. By concentrating on a few basic rules, many fears and complications can be avoided.

For beginner and experienced programmers alike, expect to spend many hours writing and re-writing code until you get the correct results. By correct results, meaning the study or your system does exactly as told by the program not whether the method is profitable or not profitable. Numerous hours may be spent writing code for a study or system only to find out the results are not what were expected. Will those hours be a waste of time?  No, you will have gained additional experience in programming and may well use some of that code later in some other study or system. Besides, finding out a trading strategy is unprofitable by back-testing is a lot cheaper than finding out by trading it.

The purpose of this book is to introduce you to the EasyLanguage way of programming and provide you with sufficient knowledge in the use of EasyLanguage to become confident to program your own trading methods and to utilize TradeStation to do the back-testing, optimizing and trading signal generation. It is not intended to replace the EasyLanguage Manual, which is supplied with TradeStation, containing descriptions of the built-in studies, functions and systems along with examples of their use. It is a good idea to be aware of that helpful manual and that you become familiar with the documentation that is supplied with TradeStation.

This book has been updated to include the new features of TradeStation 9. The chapters have been rewritten and modified to include comments about the new features where appropriate.

NOTE: There is a CD-Rom to accompany this book (for a small extra fee). The CD contains all the code found in this book. It's more than worth the price.

Foreword

In our community of traders, during the late 1990’s there was one book which was the best way for people who have never programmed to learn EasyLanguage and be able to put their ideas in code. In our community it was known as “The Putt Book”. 

This book was last updated in 1998 for TradeStation 2000i. Murray Ruggiero bought the rights to this book in 1996 and made it one it one of the best-selling books of its time. 

Murray, like the Putt book, has been quiet in the TradeStation community for over a decade, but now both of them are back. Murray has been busy with research and other projects, but he is now back as an EasyLanguage developer. If you don’t remember Murray, he was the premier add-on developer during the second half of the 1990’s and was even featured on the cover of Omega Magazine which was published during the late 1990’s. Now Murray has personally updated “The Putt Book” for TradeStation and is calling it “Using EasyLanguage 9.x.”

This one-of-a-kind book gives novice EasyLanguage programmers a chance at getting great. The original Putt Book was the springboard for most of us who now speak EasyLanguage proficiently. I even cite “The Putt Book” in my “TradeStation Made Easy!” book, drawing from its many examples.

As with any software manual, Chapter One of “Using EasyLanguage” contains the setup rules for EasyLanguage. Ruggiero explains comments, braces and parentheses, and the mandatory basics. It is just ten pages that we all have to understand before proceeding. 

Starting with Chapter Two, the author begins tackling tough concepts alongside the easy. For instance, I don’t know of any other books for beginners that introduce the mathematical concept of Modulo Arithmetic. Why, you might ask, do we need to know that? And the answer is: because it is a very powerful tool that is the answer to smoothing and rounding problems, and it can readily be used to avoid whipsaw issues. And I applaud this book for giving the beginner a real tool, and not just the easy basics.

That said, I must interject a caveat. Murray, and his counterpart Putt, are way smarter than we regular folks. As a consequence, they don’t realize just how slow we can be and how much information we need before we understand what they are meaning to tell us. 

Sometimes the text in this book is lacking in full explanations that we all can understand. To that I must say, “Give it time.” Read and re-read if you have to, in order to grasp the concepts. It is really, really worth it. There is a treasure trove of easy and complex concepts in “The Putt Book”, from which we all draw. In this new work by Murray Ruggiero et al, “Using EasyLanguage 9.x”, the treasure is exponential.

I thought I knew a lot of EasyLanguage, having written “the book” (“TradeStation Made Easy!”) and having studied and practiced EasyLanguage for many, many years. But, I find with “Using EasyLanguage 9.xx” I am learning more than I knew I was missing. For instance, in Chapter 7 I am learning new text commands and more about ExpertCommentary manipulation. In Chapter 9 I was pleased to get more instruction on including systems within each other and on using the Global Variable DLL.

Every chapter has something in it that is new and fresh. Every chapter is a “must read” for all traders. Yet, every chapter has something in it that you will have to think about a second time to understand. The material is intended for beginners, but is complex enough to excite veterans.

In short, this small book has more in it than most big books. “Using EasyLanguage 9.xx” is chock full of information all traders (whether novice or seasoned) need to know, or to brush up on. Again, it is brilliant. 

Thanks, Murray, for updating and revising this “can’t-live-without-it” book.

Want to take a look at it first? Download a few pages.  Click here to purchase. Our price is cheaper than Amazon. 


sign
Sunny J. Harris

Author of “TradeStation Made Easy!” “Trading 101—How to Trade Like a Pro,” “Trading 102—Getting Down to Business,” “Electronic Day Trading 101,” and “Getting Started in Trading.” Click here to tell me what to write next.

Editor of www.moneymentor.com and “Sunny Side of the Street

Table of Contents (of the book)

USING EASYLANGUAGE 9.X - Murray Ruggiero

Disclaimer
Introduction
Foreword

Table of Contents

CHAPTER 1: THE BASICS (RULES)
Definitions
Reserved Words
Data Types
Inputs and Variables
Mathematical Symbols
Order of Precedence
EasyLanguage Command Structure
Program Structure
Flow Chart The Study/System Methods
Comments
Types Of Orders
Setting Up A Price Chart
Using The Tradestation Development Environment (TDE)
Maxbarsback

CHAPTER 2: THE INDICATOR STUDY
Moving Average Indicator
Input And Variable Definition
If .... Then Begin Statement
Plot Statement..
Displaced Plotting
Overbought/Oversold Indicator
Open-Close Trend Indicator
Support And Resistance Areas
Rounding To Incremental Values

CHAPTER 3: THE PAINTBAR AND SHOWME STUDIES
Get Set Long Paintbar
Get Set Short Paintbar
Short-Term Trend Paintbars
Paintbar With Different Colors
Volatility Paintbar
Key Reversal Showme
Consecutive Closes Showme

CHAPTER 4:  A TRADING SYSTEM (THE ENTRY AND THE EXIT)
Trend Following Trading System
Trade Manager
Performance Summary And Trade-By-Trade Reports
Optimization of Inputs
Exit Signals
Stop-Loss And Profit Objective Exit Routines
Back-Testing
Trend Daily Trading System
Other Key Categories For Optimization
2% Reversal System

CHAPTER 5: ANALYSIS OF THE TRADING SYSTEM
Prevent Trades Late In The Trading Day
Exit Trade If No Market Movement
Prevent Re-Entry On Same Bar As Exit
Prevent Lunch-Time Trading
Analysis Of Daily Trading System
Curve-Fitting

CHAPTER 6: SIGNAL FLAGS AND PRINT STATEMENTS
Controlling Flags
Signal Active Beyond One Bar
Price Value Variables
Daily Trading System
Rsi And Percent R
Rsi-%R Indicator
Rsi-%R Trading System
Print Statement..
Fileappend Statement

CHAPTER 7:  STRING VARIABLES AND COMMENTARIES
String Manipulation
Commentaries
Commentary Applied To The Open - Close Indicator
Conditional Commentaries
Enabling Alerts

CHAPTER 8:  USER FUNCTIONS
Congestion
Trailing Stop
Holidays
Overbought/Oversold
Time Conversion To Am & Pm
Clear The Print Log

CHAPTER 9:  INCLUDESYSTEM AND GLOBAL VARIABLES
Includesystem
Global Variables and The New Global Dictionary

CHAPTER 10:  MULTIPLE POSITIONS
Multiple Contracts
Short-Term Profit Objective
Position Basis Function

CHAPTER 11:  MULTI-DATA CHARTING AND SYSTEMS
Intra-Day Multi-Data System
Daily Multi-Data System


CHAPTER 12:  ARRAYS
Single-Dimensional
Multi-Dimensional
Defining, Initializing, And Assigning Arrays
Single Dimensional Arrays
Multi-Dimensional Arrays
Computer’s Memory
For And While Loop Command
Saving Specific Values
Selection Sort
Trendlines

CHAPTER 13:  TEXT FUNCTIONS
Text Message Labels
Text Message Orientation
Orders To The Printlog
Orders Displayed On The Chart
Text Message Labels As Indicator Legends

CHAPTER 14: DRAWING OBJECTS
Short-Term Trendlines
Sorting Arrays With A “Bubble Sort”

CHAPTER 15: REVERSE-PROGRAMMING
Trendline Alerts

CHAPTER 16:  OTHER FUNCTIONS, TIPS, AND TECHNIQUES
Absvalue Function
Avgprice Function
Iff Function
Elexcel.Dll - Version 1.3 - Download Using These Links
Sounds
Other

CHAPTER 17:  FEATURES OF TS 9.0+
EasyLanguage Editor Overview
Other Features.
Built-In Stops
Passing Arrays To and From Functions
Array Manipulation
Fast Calculation Functions
Swinghigh And Swinglow Functions
Activity Bars
Probability Maps
Smart Styling

INDEX

SAMPLE PAGES
UsingEasyLanguage UsingEasyLanguage

 

Click Here to Download a pdf file of a few pages.

 

   
consulting packages 

Consulting Packages

Sunny has been teaching others to trade almost as long as she has been trading. Helping struggling novices over the hurdles is a passion of hers. Sunny has won awards for her teaching and consulting, being #1 in several categories. Sunny can teach you how to use TradeStation & MultiCharts and EasyLanguage and PowerLanguage, TC2000, VantagePoint, NinjaTrader, Genesis Navigator, and MetaStock so you don't spend months struggling on your own. If you have a concept you want programmed, she can do it for you or teach you how to do it yourself. Click Here.

consulting packages 

Strategies,  Indicators & Custom Programming

We provide a wide range of software programmed by Sunny for her own trading. We are not a churn and burn shop that puts out lots of indicators for sale, just to have products to sell. 

Each of these unique products is available to help others in their quest for profits. And, they are used by Sunny in her own daily trading. The software includes indicators that make trading smooth and easy, and strategies that can even be automated to provide hands-off trading. Click here for a full list, descriptions, charts and prices.

 
consulting packages 

Consulting Packages

Sunny has been teaching others to trade almost as long as she has been trading. Helping struggling novices over the hurdles is a passion of hers. Sunny has won awards for her teaching and consulting, being #1 in several categories. Sunny can teach you how to use TradeStation & MultiCharts and EasyLanguage and PowerLanguage, TC2000, VantagePoint, NinjaTrader, Genesis Navigator, and MetaStock so you don't spend months struggling on your own. If you have a concept you want programmed, she can do it for you or teach you how to do it yourself. Click Here.

consulting packages 

Strategies,  Indicators & Custom Programming

We provide a wide range of software programmed by Sunny for her own trading. We are not a churn and burn shop that puts out lots of indicators for sale, just to have products to sell. 

Each of these unique products is available to help others in their quest for profits. And, they are used by Sunny in her own daily trading. The software includes indicators that make trading smooth and easy, and strategies that can even be automated to provide hands-off trading. Click here for a full list, descriptions, charts and prices.

Trade Along with Sunny

NOW AVAILABLE: Live Trading with Sunny EVERY MORNING.   (Trade Along with Sunny - TAWS) Want to see and hear how Sunny trades with SunnyBands?  Listen to her reasoning and watch as she places trades. Here's your chance. Subscribe Here.

PERFORMANCE 2024 to Date:


Quips & Quotes

"Hi Sunny, wanted to share with you my profits for the day and say thank you! $19,412.50." -S. S., Mission Viejo, CA

"I wanted to let you know how helpful your daily trading room sessions have been. It is refreshing to see someone trade live and answer any questions that we have. It is so much better than a service that just wants to sell you something and send you on your way. This is really speeding up my learning and I look forward to trading along with you. Thanks for all you are doing to help people learn the art of trading." - Rick N. 

"I had the fortune of meeting Sunny Harris and her excellent trade software SunnyBands. From the beginning, she gave me all her support, even though I didn't have any experience with day trade and English is not my first language she is always available for any questions. I tested SunnyBands free trial and the results were amazing $3.5K in the first week, I asked for another free trial and she was able to help me, I did it again, and after these records, I decided to buy the license for Sunny Bands. Thank Sunny for your unconditional support and your excellent software." -Juan R. 

"I have studied swing and day trading for 10 years primarily with Gann methodology but I might be able to say I have studied it all. I lead a monk's life studying 12 hrs a day. I have found SunnyBands correlate to the high work of mathematics in price and one tool I treasure now for my chart analysis and trading. The first day I loaded SunnyBands I made $275 with one contract in about a minute; I thought to myself how can this small monthly fee not pay for itself? The opportunity to trade with such an experienced trader as Sunny is a real gift; the experience you will get in a year will be priceless. Doing this each trading day with Sunny will train your subconscious mind to become a consistent winner in the market. If you are thinking with a poverty mindset you will have a long hard road; don't do that. This is really awesome to be able to trade with each day and so appreciative of you doing this. To live trade as a mentor like you do is very hard and much respect and appreciation for you doing this Sunny!" - Arthur M.

"Well, I just want to say the I LOVE them !!!! ( your bands )....I've torn apart Bollinger Bands, Keltner etc, etc... and NOTHING comes CLOSE to what YOU have created.... :-) I've talked to CMT's who've said "oh yeah.... they're just Bollies".....and I almost spit out my coffee! I've watched your videos where you are walking a new customer through their use... and I "got it all" ( understood )... the "turns" are RIGHT THERE!.... Bollies are too general....and Keltner which Rashke says she likes....are only a hair better than Bollies.... YOURS blows both of them away.....of course YOU already know that." - Marius V.

Podcasts

The Podcasts of John Bolllinger, Steve Nison, Gene Inger, Hima Reddy, Brad Matheny, William Eng, Louis Navellier, Cynthia Kase, Howard Getson, Jake Bernstein, Arch Crawford, Henry Weingarten, Robert Pardo, Sherman & Tom McClellan, Stan Ehrlich, Steven Primo, Carolyn Boroden, Markus Heitkoetter, Dan Passarelli, Ted Hearne, Larry Pesavento, Norm Winski, Greg Morris, Larry Williams, Linda Bradford Raschke, Anka Metcalf and Robert Colby are now posted. Enjoy these great interviews. And after that whom would you like to see next?

Sunny's Indicators

You've had plenty of opportunites to watch how Sunny trades. There's the Live Trading Room, lots of Appearances, YouTube videos and Live Demos. If you have not yet been introduced to SunnyBands and how Sunny uses them, sign up here to get the Replay of the event.  


WHAT ARE YOU MISSING?

Several features of Sunny Side of the Street are missing from previous issues. Natural Numbers, Scan of Stocks, DMA_H RS, PHW Scan, and more. What would you like to see me bring back? Comments.


HAPPY HALF HOUR! We will have the next HHH on Wednesday December 4th at 1:15pm PT.Sam Tennis and I will be hosting the Next Free Networking Event for all Traders new and old to join in the discussion and "get to know each other" event. It's a great place to make new friends. Sign Up Here. This Free meeting of like minds will be held once a month, on the 4th of each month. We all have a great time and share liberally on the 4th of evey month. It's a lot of fun! Don't miss it next time. Click HERE to join us. You must be registered to get the invitation and link.


Free Live Demo Replay available Here.


If you would like to continue receiving this weekly newsletter every week, please SUBSCRIBE. It helps the cause.


FREE 7-Day Trial of Sunny's Most Powerful Indicators. Click Here. You have 7 (calendar) days to use it' full functionality and learn! I can only take 20 trials per month and all start on a Monday. Get your request in early.


EasyLanguage Forum Want to learn EasyLanguage (EZL) the EASY way? Here is the REPLAY (with video and slides). 5 1-hr lessons will take you through all the steps with Sunny Harris and Sam Tennis.


FREE 7-day Trial of Sunny's most Powerful trading indicators. Not sure about buying them? Take the trial. Most make enough during the Free Trial to cover the investment. 


The Definitive Guide to TradeStation's EasyLanguage & OOEL Programming--Vol I: Programming Guide and Vol II: Reference Guide NOW AVAILABLE on Amazon.com.
Go to www.easylanguageooel.com, register as a Free Member and I'll send your FREE indicators wi th your proof of purchase