The EasyLanguage ABC's: Next Steps in Mastering TradeStation Programming On Thursday, December 12th we held another webinar with futures.io, the largest Futures trading community. The webinar was recorded and a link to the recording and webinar thread on futures.io is below. The webinar deals with "The EasyLanguage ABC's:" and takes the "Next Steps in Mastering TradeStation Programming". We will build on what we learned in the first webinar and add new concepts. Some bullet points are: Control Flow: Loops Order actions & order types Strategy position & performance Backtesting accuracy & assumptions Understanding "Max Bars Back" The webinar deals with legacy EasyLanguage and most of it will be applicable to PowerLanguage for Multicharts, too. Feel free to contact us with any questions or post them in the webinar thread on futures.io.
The EasyLanguage ABC's: First Steps in Mastering TradeStation Programming On Tuesday, May 23rd @ 4:30PM Eastern US we held a webinar with futures.io, the largest Futures trading community. The webinar was recorded and a link to the recording and webinar thread on futures.io is below. The webinar deals with "The EasyLanguage ABC's:" and explains the "First Steps in Mastering TradeStation Programming". It covers a lot of helpful information that can really simplify your programming life. Some bullet points are: What is EasyLanguage and where can I use it? The EasyLanguage ABC - a foundation of the basics Good coding habits Working with the Tradestation Development Environment Tips and Tricks for finding code errors Make sure to check the webinar thread on futures.io, where you can find the links for the useful resources, codes and some of the slides that I used during the webinar. You can also ask questions there.
Value areas from a function - Lesson 07 Display value areas from a multiple output function In the last lesson you learned how to create, call and operate functions. Let's put this knowledge to use today by taking a look at how to use the function that is part of our free Value Area toolset. If you don't have a copy installed already, I would suggest to do that now. We need the function that provides the value areas in this lesson. What are Value Areas? Value Areas give you the areas where a defined amount of volume was traded or where price stayed in for a certain amount of time. A volume value area is the area where a certain percentage of the daily volume was traded in. While TPO (short for Time Price Opportunity) value areas are the areas where price spent a defined amount of time. You would usually look for areas with a width of about 70% of the total volume or total time (roughly one standard deviation). In case you want to learn more about value areas, this link is a good start. A brief function description In the last session we learned that there is no need to know how a function works internally. As long as you know how to call it, you can use it. We will make use of this, while we learn how to work with the "ABC_ValueAreas" function. This is a multiple output function and therefore it can return more than one value. As you learned in lesson six, this is done via reference inputs. We also learned that a function should have a return value, even [...]
Working with Multicharts and Tradestation - Lesson 06: Functions Learn how to create and use functions in Multicharts and Tradestation Let’s take a look at what functions are and how they are used. We can use this as foundation for another lesson when we take a look at how to operate the function that comes with our free Value Area Indicator. In previous lessons we have looked at Moving Averages in various forms. The studies we wrote had all calculations within the main code block. This is fine to demonstrate things or when you only work with a few lines of code. However handling ten different moving averages within your code would require you to add the same code ten times. This would make your code much harder to read and the code maintenance would become harder, too. Think about a logic error you want to fix or a change in the average formula that you want to make. A mistake in the average logic is likely included in all ten code blocks. The change to the formula would have to be made at ten locations within the code. What are functions? Functions can be of help here. As the developer you can keep your code at one location, within a function. You can use this function now to provide the results of the computation to any other code. In case of a logic error in the code this can be a huge help. The error has to be corrected at one place only. At the same time this correction will effect all other codes that call your function. It doesn't even have to be as serious as an error. [...]
Learning EasyLanguage & PowerLanguage - Lesson 05: Text and Trendlines Tracking daily extremes with an indicator The goal for this lesson is to do some more programming and create a study that tracks the daily extremes of a symbol. If you haven't read the previous lessons, I suggest you start at the beginning with lesson 01, as this lesson will use basics covered in earlier sessions. As I wrote the goal is a study that is able to track the daily extremes and to display them on the chart. We want to be able to see the current extremes for the day and also show yesterday's extremes on today's data. Let's take a moment to consider what we need for this study and how we want to handle the objectives best: we need to be able to find the highest high and lowest low for each day the study should use trendlines to display yesterday's extremes we want to be able to change the appearance on the chart via inputs the study should display text on the chart that labels the lines This already gives you an idea about what we have to look at today. Besides being a useful study or framework for future modifications, drawing text and trendlines and updating them will be the focal point of this study. Multicharts and Tradestation provide functions that return the daily high and low, but for various reasons this is not what we want to use here. Instead we'll create two tracking variables that store the current highest high and lowest low. On a new day these variables need to be reset and their value will be stored in a second set of variables. [...]