Thank you for the answer
The print of bulletin[i].Date its a DateTime object.
Now I found the solution, correct is to implement:
if (!bulletin.Date.Date.Equals(Time[0].Date)) continue;
When I load 10 or more days of history indicator is not responding for a long time, cause, I think, is every bar update. (reading the information from files, filtering levels, drawing levels).
Could you please look at the script and write some performance improvements to optimize the calculation time?
If you have time , tell me, I attach script file and samples.
I would very appreciate your effort.
In my case, its enough to read all information from files only once and enough only process one bar every day to filter and draw objects.
Comment