Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Optimizing Speed of program Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
aluisa
Posted : Wednesday, May 26, 2010 5:03:58 PM
Registered User
Joined: 1/7/2010
Posts: 70
Was there ever a thread on speed optimization for running SF5;  i.e.  general tips on what not to do or what you should do regarding number of charts, number of indicators, how often they refresh, do watchlists tax resources if they are not currently the open list., etc.
Kuf
Posted : Friday, May 28, 2010 10:02:44 AM


Administration

Joined: 9/18/2004
Posts: 3,522
One of the biggest optimizations you can do is not use cumulative indicators (like exponential average). You can also cut down on the number of bars you use for all your calculations by going to Settings - Data Bank and setting the daily bars to less than 2000 and the minute bars to less than 500.    Setting any of your calculation intervals to higher values will cause everything to calculate less often (or manual so you choose when to re-calculate it).   Filtering your WatchLists down to tradeable stocks and using these shorter lists in your calculations will also greatly speed up your processing time.

Watchlists do not tax resources if they are not open. 

Ken Gilb (Kuf)
Chief Software Engineer - Worden Brothers Inc.
Try/Catch - My RealCode Blog
thevinman
Posted : Monday, May 31, 2010 4:05:52 AM
Registered User
Joined: 2/22/2010
Posts: 187
If you tab the watch lists together are they all active and filtering or only the top one?The maximum amount of watch lists I can open is 3, before the real time data feed starts to slow down. CPU can not handle more.Kind regards, thevinman
Kuf
Posted : Monday, May 31, 2010 3:22:43 PM


Administration

Joined: 9/18/2004
Posts: 3,522
What are you doing in the WatchLists?

Ken Gilb (Kuf)
Chief Software Engineer - Worden Brothers Inc.
Try/Catch - My RealCode Blog
thevinman
Posted : Monday, May 31, 2010 8:01:43 PM
Registered User
Joined: 2/22/2010
Posts: 187
Hi Kuf,I use them for filtering watch lists with around 300 symbols each. I have around 6 conditions that I use in each watch list. I have 4 watch lists that filter every minute on gap break out and break downs. But with more watch lists the CPU gets to 100% and it slows down the real time data feed. If I tab them, is the top one only active or are they all still active? I ask this because I have another 4 watch lists that I want to use. cheers thevinman
Kuf
Posted : Monday, May 31, 2010 11:39:11 PM


Administration

Joined: 9/18/2004
Posts: 3,522
If you're filtering your lists, why not put the conditons into a filter and set it to run manual mode. Then you can choose when to re-filter.

Ken Gilb (Kuf)
Chief Software Engineer - Worden Brothers Inc.
Try/Catch - My RealCode Blog
thevinman
Posted : Tuesday, June 1, 2010 3:19:13 AM
Registered User
Joined: 2/22/2010
Posts: 187
Hi Kuf,The whole point for me is that it does this automatically. If I tab them is the top one only active or are they all still active? An other thing is is that the watch lists have several bugs that I have mentioned in many of my posts and that support is aware of. Particularly, when I delete or add a symbol to my personal watch list the other watch lists start to sort and filter again automatically. Even though I put them all on manual the watch lists still start to filter again. This is why I cannot place 8 watch lists, because when I remove a symbol they all start to filter and the system gets locked up. I am hoping by tabbing them only the top one is active, so that i only have the watch lists open that I need at that particular time.Cheers the vinman
Kuf
Posted : Wednesday, June 2, 2010 9:25:59 AM


Administration

Joined: 9/18/2004
Posts: 3,522
QUOTE (thevinman)
Hi Kuf,The whole point for me is that it does this automatically. If I tab them is the top one only active or are they all still active? An other thing is is that the watch lists have several bugs that I have mentioned in many of my posts and that support is aware of. Particularly, when I delete or add a symbol to my personal watch list the other watch lists start to sort and filter again automatically. Even though I put them all on manual the watch lists still start to filter again. This is why I cannot place 8 watch lists, because when I remove a symbol they all start to filter and the system gets locked up. I am hoping by tabbing them only the top one is active, so that i only have the watch lists open that I need at that particular time.Cheers the vinman


Tabbed watchlists still run their sorts.  As for your adding/removing symbols causing a re-sort, I have not been able to duplicate this but I beleive support is working with you to get all your details so we can reproduce this in house.

Ken Gilb (Kuf)
Chief Software Engineer - Worden Brothers Inc.
Try/Catch - My RealCode Blog
jas0501
Posted : Wednesday, June 2, 2010 1:03:23 PM
Registered User
Joined: 12/31/2005
Posts: 2,499

If any of the filters are using market indicators then changing the membership of the market indicator's watchlist would cause a recalculation. This could explain the re-sort.

 

Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.