Yearly Archives: 2016

Calling Value Areas from a Function in Multicharts- Lesson 07

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 [...]

By |2017-09-05T10:10:44+00:00December 16th, 2016|Categories: EasyLanguage Tutorial, PowerLanguage Tutorial|5 Comments

Functions in Multicharts and Tradestation: Lesson 06

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. [...]

Go to Top