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.
-
12:02
Actual Justice Warrior
1 day agoChicago Mayor Says ONLY Black Businesses Get Licensed
13.6K25 -
4:21
SethDrums
4 days ago50 Cent - In Da Club if it was 1950s
12.2K3 -
1:48:49
Badlands Media
15 hours agoDevolution Power Hour Ep. 416: The Rug Pull Cycle, False Signals & Narrative Discipline
370K44 -
1:06:11
Inverted World Live
15 hours agoA Ghost Ship in Washington, A Fire in Roswell | Ep. 155
83.3K15 -
3:06:55
TimcastIRL
11 hours agoDan Bongino To RESIGN, Trump Addresses The Nation
376K558 -
2:14:08
Barry Cunningham
10 hours agoLIVE BREAKING NEWS: President Trump Addresses The Nation! And More News!
72.6K31 -
5:15:27
ThatStarWarsGirl
12 hours agoTSWG LIVE: Discussing STAR WARS News with Special Guest Star Wars Theory!
52.1K5 -
2:42:40
Laura Loomer
10 hours agoEP162: LIVE: President Trump Addresses The Nation
71.2K33 -
1:32:05
Adam Does Movies
15 hours ago $12.45 earnedRob Reiner Films + Movie News + AMA - Live!
46.9K2 -
47:57
Professor Nez
14 hours ago🚨LIVE NOW: President Trump Addresses the Nation from the Oval Office
50.1K42