Premium Only Content
Tutorial 179 | Using AppStorage in the calculation of price change since program first applied
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.
-
16:16
Robbi On The Record
12 days ago $13.14 earnedThe Dark History of Halloween | What You Should Know
48.4K40 -
58:18
Flyover Conservatives
23 hours agoThe Truth About Halloween that You DIDN’T Know - Holiday Special - Historian Bill Federer | FOC SPECIAL Show
20.5K1 -
3:10:46
Ellie_roe
4 hours agoEllie and Errys Halloween Spooktacular || Random Horror Games
5.01K -
50:27
Sarah Westall
5 hours agoBig Banks Caught Rigging Market, IMF tells World to “Buckle Up” w/ Andy Schectman
17.7K3 -
13:54
Degenerate Jay
12 hours ago5 Best Superhero Movies To Watch On Halloween
5.94K2 -
59:03
NAG Podcast
5 hours agoSarah Fields: BOLDTALK W/Angela Belcamino
8.78K4 -
1:21:41
Glenn Greenwald
8 hours agoGlenn Takes Your Questions: On the Argentina Bailout, Money in Politics, and More | SYSTEM UPDATE #541
69.6K38 -
3:10:08
Barry Cunningham
5 hours agoPRESIDENT TRUMP TO USE NUCLEAR OPTION? FOOD STAMPS END! | SHUTDOWN DAY 31
39.3K29 -
1:06:56
BonginoReport
13 hours agoThe Battle Between Good & Evil w/ Demonologist Rick Hansen - Hayley Caronia (Ep.168)
94.1K32 -
1:12:57
Kim Iversen
7 hours agoBill Gates Suddenly Says “Don’t Worry About Climate Change”?
85.3K60