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.
-
24:47
PARAGRAPHIC
1 day ago $0.05 earned1/3 Acre Self-Sustaining Organic Farm | PARAGRAPHIC
13.9K8 -
6:21
JoBlo Originals
20 hours agoKingdom Of The Planet Of The Apes REVIEW!
17.2K8 -
19:21
Landed Fishing
20 hours ago $0.03 earnedBridge Fishing with Crab for Monster Fish Saltwater Fishing for BIG Black Drum in Tampa Florida
26.2K4 -
2:19
DEADBUGsays
17 hours agoThe AIRBNB Killer | DEADBUG'S 2 Minute Murder
25.6K6 -
6:28
America Uncovered
15 hours ago $0.04 earnedDEI Has Come for Farmers
30.7K29 -
4:38
Chrissy Clark
14 hours ago $0.07 earnedMiss Israel Had KNIFE Pulled On Her In NYC
33.5K41 -
Akademiks
7 hours agoOffset vs Big Zoo and Goons. Nicki vs Cardi? Young Thug Dad Stamps Gunna! YK Osiris Lined YB?
64.2K12 -
16:43
intheblues
14 hours agoCrazy Tube Circuits White Whale V2 Reverb & Tremolo Pedal Review
29K3 -
2:31:13
Praxis Homesteading and Survival Skills
1 day agoAlien Invasion: A Prepper's Experience
34.5K9 -
0:49
Bear Creek Arsenal
16 hours ago $0.03 earnedThese Calibers are Better Than 5.56 NATO??
25.2K3