I am not sure how to answer if something is worth the effort without knowing what you'd gain by changing it or lose by leaving it the way it is.
So for now I'd say learning something new is most likely worth the effort, as it should develop your skill in EasyLanguage and might be helpful for you later.
On a separate matter it sounds like there are much simpler solutions to your problem than utilizing Global Variables. Why not just block the reload of the Excel data every time you switch the time frame?
The following user says Thank You to ABCTG for this post:
I'm sure by my question you could tell that I'm a beginner at this, and I really appreciate you taking the time to reply to my question. Conceptually I totally agree, but I don't seem to understand enough about the structure of Easy Language to do it.
-- I put the reading of Excel data in a "ONCE...begin...end" statement, thinking it would only do it once. That didn't work the way I wanted. It appears to do it "ONCE" each time it is invoked (which does make sense) but did cause it to reread the Excel data each time the time interval was changed.
"Blocking the reload" was exactly what I wanted but didn't get. My assumption was that the variable data didn't persist and needed to regenerated each time, therefore I'd have to use Global variable to keep the data once I had loaded it.
It sounds like there is another way, that would be great. Can you point me in that direction? Thanks again.
you are correct that the variables won't persist upon a symbol/time frame change and once would be re-executed with a change, too.
One idea would be to store a flag within a AppStorage dictionary as these will keep the values upon switching the time frame. So you could set the flag to true when the code is executed the first time and on every new reload check the value of the flag and block reading from Excel.