Update DataSet via script?
Author: topbooks
Creation Date: 3/15/2019 2:36 PM
profile picture

topbooks

#1
If I have that, then I can set all other scripts with no "Update on Demand", which will running faster.
Thanks as always.
profile picture

Eugene

#2
It's possible per se but I don't understand what problem you're trying to resolve with programmatic updates. Please rephrase and provide more detail about your problem.
profile picture

topbooks

#3
I have 10 Wealth-lab scripts run last hour of the day, but the "Strategy Monitor" will let it sort of run every hour during the market open time. Which will update the dataset every hour, I says it is "sort of", because it will only do data update, but not run my code if it is not last hour.

I have 10 program, and dataset has 100 stocks, so it each update data every hour.
If only the script of "Update it only" run first to update the dataset, all my 10 program do not update data (by setting no "Update on demand", that will make it much faster.

Please let me know if I did not explain things clear.

Thank you as always for your help.

William
profile picture

Eugene

#4
On demand data update has effect on static and Streaming charts. The Strategy Monitor has its own logic for data update. Can't see a connection of your 10 strategies running in the SM to the "on demand update" preference.

Provided that you have backfilled the DataSet before, updating 60-min data for just 100 stocks the strategies are applied to should not have noticeable effect on the execution time. Which takes place just once at EOD. Assuming the strategy is coded efficiently and your connection is broadband, of course.

What exactly makes you think they are not running fast enough, requiring some sort of hack??
profile picture

topbooks

#5
Thank you so much for your help.
What you said maybe make sense, let me working on it.
Thanks again.
William
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).