Building Winning Trading Systems with Tradestation
eBook - ePub

Building Winning Trading Systems with Tradestation

George Pruitt, John R. Hill

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

Building Winning Trading Systems with Tradestation

George Pruitt, John R. Hill

Book details
Book preview
Table of contents
Citations

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.

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
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 1000+ topics, we’ve got you covered! Learn more here.
Do you support text-to-speech?
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 here.
Is Building Winning Trading Systems with Tradestation an online PDF/ePUB?
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 Negocios y empresa & Finanzas. We have over one million books available in our catalogue for you to explore.

Information

Publisher
Wiley
Year
2012
ISBN
9781118239728
Edition
2
Subtopic
Finanzas
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