It's not something that I can easily control by putting limits directly on the max values entered for the parameters. The user can easily combine multiple parameters in the hope of seeing 'everything' and cause the machine to grind to a halt for 5 minutes.
I have put a piece of code around the OnBarUpdate() and the Plot() functions to shut the indicator processing off if the number of milliseconds exceeds a chosen number. I am currently using 50ms for both functions.
But is 50ms desirable? Especially if a user is combining this indy with another CPU-intensive indy, or has a slow machine.
Apart from the temporary total lock-up of NT7 while it processes, what I want to avoid is the chart becoming slow to re-draw when switching to the chart window. Is this purely down to the time taken by the Plot function, or are there other areas of an indicator to watch?
Thanks to anyone for any input.
Comment