Building Winning Trading Systems with Tradestation
eBook - ePub

Building Winning Trading Systems with Tradestation

  1. English
  2. ePUB (mobile friendly)
  3. Available on iOS & Android
eBook - ePub

Building Winning Trading Systems with Tradestation

About this book

The updated edition of the guide to building trading systems that can keep pace with the market

The stock market is constantly evolving, and coupled with the new global economic landscape, traders need to radically rethink the way they do business at home and abroad. Enter Building Winning Trading Systems, Second Edition, the all-new incarnation of the established text on getting the most out of the trading world. With technology now a pervasive element of every aspect of trading, the issue has become how to create a new system that meets the demands of the altered financial climate, and how to make it work.

Giving voice to the question on every trader and investor's lips, the book asks, "How can we build a trading system that will be paramount for our increasingly stressed markets?" The answer? Establish mechanical trading systems that remove human emotion from the equation and form the cornerstone of a complete trading plan and with greater agility, characteristics that are more important than ever given the kinetic pace of the markets.

  • Presents an all-new strategy for trading systems that will show traders how to create systems that will work in the twenty first century
  • Expert advice from highly respected trading authority, George Pruitt
  • Includes a new website featuring updated TradeStation code and shows how to use the world's best investment software platform to develop and utilize trading systems that really work

Once again paving the way for traders who want to adapt to their environment, Building Winning Trading Systems, Second Edition combines expertise in indicator design and system building in one indispensable volume.

Trusted by 375,005 students

Access to over 1 million titles for a fair monthly price.

Study more efficiently using our study tools.

Information

Publisher
Wiley
Year
2012
Print ISBN
9781118168271
Edition
2
eBook ISBN
9781118239728
Subtopic
Finance
CHAPTER 1
Fundamentals—What Is EasyLanguage?
When you code (slang for writing your ideas into a programming language) an analysis technique, you are directing the computer to follow your instructions to the T. A computer program is nothing but a list of instructions. A computer is obedient and speedy, but it is only as smart as its programmer. In addition, the computer requires that its instructions be in an exact format. A programmer must follow certain syntax rules.
EasyLanguage is the medium used by traders to convert a trading idea into a form that a computer can understand. Fortunately for nonprogrammers, EasyLanguage is a high-level language; it looks like the written English language. It is a compiled language; programs are converted to computer code when the programmer deems it necessary. The compiler then checks for syntactical correctness and translates your source code into a program that the computer can understand. If there is a problem, the compiler alerts the programmer and sometimes offers advice on how to fix it. This is different from a translated language, which evaluates every line as it is typed.
All computer languages, including EasyLanguage, have several things in common. They all have:
  • Reserved words. Words that the computer language has set aside for a specific purpose. You can use these words only for their predefined purposes. Using these words for any other purpose may cause severe problems. (See the list of reserved words in Appendix B.)
  • Remarks. Words or statements that are completely ignored by the compiler. Remarks are placed in code to help the programmer, or other people who may reuse the code, understand what the program is designed to do. EasyLanguage also utilizes skip words. These words are included in a statement to make the programming easier to read. For example, Buy on next bar at myPrice stop is the same as Buy next bar myPrice stop. The words “on” and “at” are completely ignored. (See the list of skip words in Appendix B.)
  • Variables. User-defined words or letters that are used to store information.
  • Data types. Different types of storage; variables are defined by their data types. EasyLanguage has three basic data types: Numeric, Boolean, and String. A variable that is assigned a numeric value, or stored as a number, would be of the Numeric type. A variable that stores a true or false value would be of the Boolean type. Finally, a variable that stores a list of characters would be of the String type.
VARIABLES AND DATA TYPES
Programmers must understand how to use variables and their associated data types before they can program anything productive. Let's take a look at a snippet of code.
mySum = 4 + 5 + 6;
myAvg = MySum/3;
The variables in this code are mySum and myAvg and they are of the Numeric data type; they are storage places for numbers. EasyLanguage is liberal concerning variable names, but there are a few requirements. A variable name cannot
  • Start with a number or a period (.)
  • Be a number
  • Be more than 20 alphanumeric characters long
  • Include punctuation other than the period (.) or underscore (_)
Correct Incorrect
myAvg 1MyAvg
mySum .sum
sum val+11
val1 the//sum
the.sum my?sum
my_val 1234
Variable naming is up to the style of the individual programmer. EasyLanguage is not case sensitive (you can use uppercase or lowercase letters in the variable names). (Note: This is our preference—it may not be everybody's.) Lowercase letters are preferred for names that contain only one syllable. For variable names that have more than one syllable, we begin the name with a lowercase letter and then capitalize the beginning of each subsequent syllable.
sum, avg, total, totalSum, myAvg, avgValue, totalUpSum, totDnAvg
Still referring to the previous snippet of code, mySum is assigned the value of 15 and myAvg is assigned the value of 15/3, or 5. If a variable name is created, it must be declared ahead of time. The declaration statement defines the initial value and data type of the variable. The compiler needs to know how much space to reserve in memory for all variables. The following code is a complete EasyLanguage program. (Note: Most of the code that you will see in this book will be particular to EasyLanguage and will probably not work in any other language.)
Vars: mySum(0),myAvg(0);
mySum = High + Low + Close;
myAvg = mySum/3;
The Vars: (or Variables:) statement tells the computer what variables are being declared and initialized. We declare the variables by simply listing them in the Vars statement, and we initialize them by placing an initial value in parentheses following the variable name. In this case, mySum and myAvg are to be equal to zero. EasyLanguage is smart enough to realize that these variables should be of the Numeric data type, since we initialized them with numbers. Variable names should be self-descriptive and long enough to be meaningful. Which of the following is more self-explanatory?
mySum = High+Low+Close; or k = High + Low + Close;
myAvg = mySum/3; or j = k/3;
BuyPt = Close + myAvg; or l = Close+j;
Variables of Boolean and String types are declared in a similar fashion.
Vars: myCondition(false),myString("abcdefgh");
The variable myCondition was initialized to false. The word “false” is a reserved word that has the value of zero. This word cannot be used for any other purpose. The variable myString was initialized to “abcdefgh.” Sometimes you will need to use a variable for temporary purposes, and it is difficult to declare and initialize all of your variables ahead of time. In the case of a temporary variable (one that holds a value for a short period of time), EasyLanguage has declared and initialized several variables for your use; value0 through value99 have been predefined and initialized to zero and are ready for usage in your programs. The following is a complete EasyLanguage program:
value1 = High + Low + Close;
value2 =...

Table of contents

  1. Cover
  2. Series
  3. Title Page
  4. Copyright
  5. Dedication
  6. Foreword
  7. Preface
  8. Acknowledgments
  9. Chapter 1: Fundamentals—What Is EasyLanguage?
  10. Chapter 2: EasyLanguage Program Structure
  11. Chapter 3: Program Control Structures
  12. Chapter 4: TradeStation Analysis Techniques
  13. Chapter 5: Measuring Trading System Performance and System Optimization
  14. Chapter 6: Trading Strategies That Work (or the Big Damn Chapter on Trading Strategies)
  15. Chapter 7: Debugging and Output
  16. Chapter 8: TradeStation as a Research Tool
  17. Chapter 9: Using TradeStation's Percent Change Charts to Track Relative Performance
  18. Chapter 10: Options: Introduction and Strategies
  19. Chapter 11: Interviews with Developers
  20. Appendix A: TradeStation 2000i Source Code of Select Programs
  21. Appendix B: Reserved Words Quick Reference
  22. About the Website
  23. Index

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access Building Winning Trading Systems with Tradestation by George Pruitt,John R. Hill in PDF and/or ePUB format, as well as other popular books in Business & Finance. We have over one million books available in our catalogue for you to explore.