Support Board
Date/Time: Sun, 24 Nov 2024 06:53:16 +0000
Post From: Drawing line at all time high - performance issue
[2013-04-07 11:10:31] |
T44 - Posts: 363 |
Thank you. I have added the return and am no longer receiving the CPU exception. My study now works but is very slow on the chartbook I am running with several dozens of charts. If you have time, I would appreciate any further suggestions on how I could improve the performance. My feeling is that the 12 levels I calculate based on the 4320 bar historical daily chart need only be calculated once at the time of opening the chartbook, stored either in memory or a flat file, and directly referenced by all the intraday charts I load. This would seem to be the most efficient way. However, I do not know how to achieve this - specifically how to make a section of code in a study run only once, and how to store these level values and reference them from another study. Persistent variables appear to have their own instance per study. I had thought of using your excellent feature of "copy chart drawings from chart #" to copy the lines, but lines drawn by study do not appear to be considered "drawings". Knowing what I am trying to achieve, any suggestions would be most welcome. Thanks again for your prompt replies and assistance. |