Hosted by Dailymotion. For legal issues report at the Copyright Center, report us on DMC, or use the Instant Removal tool.
Tutorial 179 | Using AppStorage in the calculation of price change since program first applied
Description
TradeStation EasyLanguage Tutorial 179 uses AppStorage to store the price of a symbol when the tutorial program is first applied (and the date when the program was applied.) According to the TradeStation help files, AppStorage is "A Dictionary of name-value pairs that will be persistent when an analysis technique is re-verified, has its inputs modified, or re-runs for another reason (such as when it is disabled by the user temporarily, and then enabled again)."
This initial value is then used to calculate the change from the most recent close. The value of the date and 'last' price when first applied are retained even when RadarScreen is refreshed (by pressing CTR-R) or when the workspace is saved, closed and later re-opened.
If the user wanted to re-store all the initial values then the program should be deleted from Radarscreen and re-applied.
For more information about AppStorage see: https://markplex.com/free-tutorials/tutorial-119-storing-chart-data-appstorage/
For an explanation of 'Load Additional Data for Accumulative Calculations' and MaxBarsBack in RadarScreen see:
https://markplex.com/free-tutorials/tutorial-25-understanding-smoothed-indicators-load-additional-bars/
The tutorial uses a TokenList to process a comma delimited string. TokenLists make it very easy to refer to individual elements of the comma delimited string.
The tutorial actually demonstrates two programs. In the first the Last keyword is used to refer to the stock price when the program is first applied to RadarScreen. In the second version, Close is used.
See: https://markplex.com/free-tutorials/tutorial-179-using-appstorage-in-the-calculation-of-price-change-since-program-first-applied/
This initial value is then used to calculate the change from the most recent close. The value of the date and 'last' price when first applied are retained even when RadarScreen is refreshed (by pressing CTR-R) or when the workspace is saved, closed and later re-opened.
If the user wanted to re-store all the initial values then the program should be deleted from Radarscreen and re-applied.
For more information about AppStorage see: https://markplex.com/free-tutorials/tutorial-119-storing-chart-data-appstorage/
For an explanation of 'Load Additional Data for Accumulative Calculations' and MaxBarsBack in RadarScreen see:
https://markplex.com/free-tutorials/tutorial-25-understanding-smoothed-indicators-load-additional-bars/
The tutorial uses a TokenList to process a comma delimited string. TokenLists make it very easy to refer to individual elements of the comma delimited string.
The tutorial actually demonstrates two programs. In the first the Last keyword is used to refer to the stock price when the program is first applied to RadarScreen. In the second version, Close is used.
See: https://markplex.com/free-tutorials/tutorial-179-using-appstorage-in-the-calculation-of-price-change-since-program-first-applied/
Keywords & Tags
More from User
06:04
Program 90 | Finding extreme oscillator 'hooks'
Markplex
07:57
Tutorial216
Markplex
09:17
Tutorial217
Markplex
08:33
Tutorial 215 | Alert when MACD crosses a line drawn on chart
Markplex
09:21
Tutorial 214 | Draw a rectangle between the high and low of the week
Markplex
09:43
Tutorial 212 | Draw a rectangle on a chart each day between the high and low of the PREVIOUS day
Markplex
Related Videos
05:02
Tutorial 173 (Markplex Supertrend) for Radarscreen | TradeStation EasyLanguage tutorials
Markplex
00:33
Tutorial 183 | Controlling background color in RadarScreen | TradeStation EasyLanguage tutorials
Markplex
00:21
[PDF] TradeStation Made Easy!: Using EasyLanguage to Build Profits with the World s Most Popular
Stejn Corsin55
00:26
PDF TradeStation Made Easy!: Using EasyLanguage to Build Profits with the World s Most Popular
Patroclus
08:07
TradeStation EasyLanguage Tutorial 195 | Storing data in multiple new CSV files created by the program
Markplex
09:04
Tutorial 186 | Inside and outside bar high and low lines | TradeStation EasyLanguage
Markplex