Close
Skip to content

Tutorial 119 | Storing chart data using AppStorage

How to use TradeStation EasyLanguage AppStorage

Sometimes you may wish a chart to retain information from when you last used it. AppStorage enables you to store information with the chart that is retained even though the chart is refreshed, turned off and on again or if the workspace is closed and reopened.

Tutorial 119 shows how to create a simple TradeStation indicator that uses a form to input some text information which is stored using AppStorage. The user could enter information (perhaps something about future trading intentions or some insight about the symbol). This data is stored with the chart and can be read when the chart is subsequently accessed. In addition to storing text, the same principle could be applied to the positioning of a drawing object, i.e. the last position where it was manually moved by a user could be stored in AppStorage and then retrieved the next time the chart or workspace was opened.

In the tutorial, information entered using the form is stored in AppStorage and printed in the print log. When the program is initialized it is again printed to the log and displayed to the form. I have created a video below which describes how to create the program in some detail. If you would like to save yourself some typing the tutorial program is also available for download.

The form after the program is first applied to the chart
Some demonstration data is typed into the form
After the submit button is pressed, the symbol name and date time are added to the text and the information is stored in AppStorage and appears on the print log.
The print log

In order to simplify the tutorial, the program does not have any user inputs.

[download_box]The UNPROTECTED TradeStation indicator (_Tutorial 119) containing tutorial program (i.e. the TradeStation EasyLanguage is fully functional and you can see the source code) is available for IMMEDIATE download for $19.95- by clicking the ‘add to cart’ button. After download the programs can be opened, you will be able to see the program code and modify it if you wish.

After purchase you will be redirected to a download page, so don’t close the browser.[/download_box]

Programming lessons

The downloadable version of tutorial 119 is commented within the program and demonstrate various useful programming techniques and constructs, including:

  • How to create a simple form
  • How to access text entered in the form
  • Using a form button click event
  • Storing data in and retrieving data from AppStorage

Video explanation of tutorial 119

Program download

[download_box]The UNPROTECTED TradeStation indicator (_Tutorial 119) containing tutorial program (i.e. the TradeStation EasyLanguage is fully functional and you can see the source code) is available for IMMEDIATE download for $19.95- by clicking the ‘add to cart’ button. After download the programs can be opened, you will be able to see the program code and modify it if you wish.

After purchase you will be redirected to a download page, so don’t close the browser.[/download_box]

Note that the program name begins with an underscore.

THESE INDICATORS, SHOW ME STUDIES, STRATEGIES AND OTHER PROGRAMS HAVE BEEN INCLUDED SOLELY FOR EDUCATIONAL PURPOSES.

TO THE BEST OF MARKPLEX CORPORATION’S KNOWLEDGE, ALL OF THE INFORMATION ON THIS PAGE IS CORRECT, AND IT IS PROVIDED IN THE HOPE THAT IT WILL BE USEFUL. HOWEVER, MARKPLEX CORPORATION ASSUMES NO LIABILITY FOR ANY DAMAGES, DIRECT OR OTHERWISE, RESULTING FROM THE USE OF THIS INFORMATION AND/OR PROGRAM(S) DESCRIBED, AND NO WARRANTY IS MADE REGARDING ITS ACCURACY OR COMPLETENESS. USE OF THIS INFORMATION AND/OR PROGRAMS DESCRIBED IS AT YOUR OWN RISK.

ANY EASYLANGUAGE OR POWERLANGUAGE TRADING STRATEGIES, SIGNALS, STUDIES, INDICATORS, SHOWME STUDIES, PAINTBAR STUDIES, PROBABILITYMAP STUDIES, ACTIVITYBAR STUDIES, FUNCTIONS (AND PARTS THEREOF) AND ASSOCIATED TECHNIQUES REFERRED TO, INCLUDED IN OR ATTACHED TO THIS TUTORIAL OR PROGRAM DESCRIPTION ARE EXAMPLES ONLY, AND HAVE BEEN INCLUDED SOLELY FOR EDUCATIONAL PURPOSES. MARKPLEX CORPORATION. DOES NOT RECOMMEND THAT YOU USE ANY SUCH TRADING STRATEGIES, SIGNALS, STUDIES, INDICATORS, SHOWME STUDIES, PAINTBAR STUDIES, PROBABILITYMAP STUDIES, ACTIVITYBAR STUDIES, FUNCTIONS (OR ANY PARTS THEREOF) OR TECHNIQUES. THE USE OF ANY SUCH TRADING STRATEGIES, SIGNALS, STUDIES, INDICATORS, SHOWME STUDIES, PAINTBAR STUDIES, PROBABILITYMAP STUDIES, ACTIVITYBAR STUDIES, FUNCTIONS AND TECHNIQUES DOES NOT GUARANTEE THAT YOU WILL MAKE PROFITS, INCREASE PROFITS, OR MINIMIZE LOSSES.