Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Couple of Realcode and Blocks questions Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
brio
Posted : Tuesday, April 1, 2008 2:34:47 PM
Gold Customer Gold Customer

Joined: 10/19/2004
Posts: 56

Is there a way to save a repository of Realcode code without putting
  them on a chart.  For example I would like to create a set of
  conditions for candlestick formations, but I don't want to put them on a chart.

Is there a way to suspend calcuation of a Realcode condition that I
  have on the chart.  I don't want to remove it, I just want it to not
  calculate for a while.
 
How can I speed up my filtering and sorting?  My cpu and memory are
  not being used that much but filtering is very slow.
  I notice the "Force Memory Reduction" option in the downloader.
  Is there another one to Force Memory Increase?

Blocks on "Data Status" up on top says my daily is "Not connected" although RT is getting updated.
  Is that right?

Thanks for any help you can provide.

StockGuy
Posted : Wednesday, April 2, 2008 12:32:42 PM

Administration

Joined: 9/30/2004
Posts: 9,187
1. Not currently vasm.  But this is coming.  

2. Click once on the condition and set the update frequency to 1 Hour.  Currently, that's the maximum.  When the ability to save conditions gets added (part of item 1 above), you can just remove it from the chart and re-add it later.

3. I'd need more info on what, exactly, you are sorting and fitering by, what list, etc.

4. It shouldn't say 'Not Connected' if it is indeed connected.  Don't know about that one.
brio
Posted : Wednesday, April 2, 2008 1:42:36 PM
Gold Customer Gold Customer

Joined: 10/19/2004
Posts: 56

Thanks for responding.
With respect to point 3:

The Realcode condition I'm using is
'# Stoc21 = indicator.Stochastics.4
'# Stoc5 = indicator.Stochastics.5

If Stoc21.value <= 30 And Stoc5.value >= 70 Then pass

Stoc 21 refers to a 21 period stochastics and Stoc5 refers to a 5 period stochastics.
On a 15 min timeframe on the S&P 500 component list it took 8 mins and 28 seconds.
I did a second trial and on that run it took about 8' 10", about the same.
This is the only filter on the watchlist and there are no sorts.  
On Vista's Task Manager, it says BlocksHost is using about 35% of CPU and ~530 Meg of memory.

Any hints or recos on how to speed this up would be greatly appreciated.
I see great potential uses for Blocks once I get over some of these issues.

StockGuy
Posted : Thursday, April 3, 2008 6:11:51 PM

Administration

Joined: 9/30/2004
Posts: 9,187
Took about 1 minute to filter the SP-500 list using the same RealCode condition.  I'm running a 2.66 GHz Core Duo with 4GB RAM, Vista Ultimate.
testOP2
Posted : Thursday, April 3, 2008 9:19:43 PM

Administration

Joined: 10/7/2004
Posts: 378
Filtering on time frames less than a minute are going to be more related to your hard drive speed than anything. Do you perhaps have the minute data on an external drive? This would really make it slow. You can also change the limit for the number of bars below daily and that may help also.

Ole
brio
Posted : Friday, April 4, 2008 1:11:52 AM
Gold Customer Gold Customer

Joined: 10/19/2004
Posts: 56
Thanks for the reply guys.  Nice to hear that it's taking much less time for you. 
It implies there is some hope for me to get this working in real time.

Just FYI, I'm running the scans on a new Toshiba laptop I bought last week.
Belarc tells me I'm running a 1.67 GHz Core2Duo with 2 Gig or RAM.  
I don't have an external drive, but I presume the hard disk speed is a bit slower because it's a laptop drive.  

testOP2, thanks.  I'll try limiting the Update Frequencies to see if that speeds things up.


StockGuy
Posted : Friday, April 4, 2008 9:38:27 AM

Administration

Joined: 9/30/2004
Posts: 9,187
Click Settings | Data Manager and lower the intraday bar limit as testOP2 suggested.  See if that helps.
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.