Click here to Skip to main content
15,905,419 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Computer Science 101 question Pin
cstrader23220-Aug-08 7:52
cstrader23220-Aug-08 7:52 
GeneralRe: Computer Science 101 question Pin
Dave Kreskowiak20-Aug-08 13:41
mveDave Kreskowiak20-Aug-08 13:41 
GeneralRe: Computer Science 101 question Pin
cstrader23220-Aug-08 16:31
cstrader23220-Aug-08 16:31 
GeneralRe: Computer Science 101 question Pin
Dave Kreskowiak21-Aug-08 1:28
mveDave Kreskowiak21-Aug-08 1:28 
GeneralRe: Computer Science 101 question Pin
cstrader23221-Aug-08 1:36
cstrader23221-Aug-08 1:36 
GeneralRe: Computer Science 101 question Pin
Dave Kreskowiak21-Aug-08 12:13
mveDave Kreskowiak21-Aug-08 12:13 
AnswerRe: Computer Science 101 question Pin
Paul Conrad20-Aug-08 14:13
professionalPaul Conrad20-Aug-08 14:13 
GeneralRe: Computer Science 101 question Pin
cstrader23220-Aug-08 16:12
cstrader23220-Aug-08 16:12 
Well, in essenca I have an array with many millions of rows in it. These rows represent the daily closing (and other) prices for say 10,000 different stocks over say 20 years (20 years * 250 trading days/year). So there could be say 50,000,000 rows in the array.

Then I want to calculate, for instance, what would happen if I bought a stock when it fell below a moving average price and sold it when it went over that price. So I need to create the moving average for each stock and do some calculations.

But then, I need to do those calculations again, with a small change in the moving average (to see if that helps or hurts my profits), and then do this, again with a small change, many, many times.

The ONLY way to succeed is to hold the entire array in memory -- otherwise rereading the data from the disk on each new caculation makes everything way too slow.
GeneralRe: Computer Science 101 question Pin
Mycroft Holmes20-Aug-08 19:25
professionalMycroft Holmes20-Aug-08 19:25 
QuestionCopy a Row from one DataGridView to another Pin
Princy_Jones19-Aug-08 22:11
Princy_Jones19-Aug-08 22:11 
QuestionWMI Connection Error Pin
nitin_ion19-Aug-08 21:34
nitin_ion19-Aug-08 21:34 
Questionisnull(value,default value) as <column name=""> not working for adapter.update()</column> Pin
honeyashu19-Aug-08 20:49
honeyashu19-Aug-08 20:49 
AnswerRe: isnull(value,default value) as not working for adapter.update() Pin
Mycroft Holmes19-Aug-08 21:27
professionalMycroft Holmes19-Aug-08 21:27 
GeneralRe: isnull(value,default value) as not working for adapter.update() Pin
honeyashu19-Aug-08 23:08
honeyashu19-Aug-08 23:08 
GeneralRe: isnull(value,default value) as not working for adapter.update() Pin
Mycroft Holmes19-Aug-08 23:15
professionalMycroft Holmes19-Aug-08 23:15 
GeneralRe: isnull(value,default value) as not working for adapter.update() Pin
honeyashu19-Aug-08 23:31
honeyashu19-Aug-08 23:31 
GeneralRe: isnull(value,default value) as not working for adapter.update() Pin
Jon_Boy20-Aug-08 2:07
Jon_Boy20-Aug-08 2:07 
GeneralRe: isnull(value,default value) as not working for adapter.update() Pin
Mycroft Holmes20-Aug-08 2:10
professionalMycroft Holmes20-Aug-08 2:10 
GeneralRe: isnull(value,default value) as not working for adapter.update() Pin
Jon_Boy20-Aug-08 2:28
Jon_Boy20-Aug-08 2:28 
QuestionAccess Database Pin
Rhoden19-Aug-08 17:07
Rhoden19-Aug-08 17:07 
AnswerRe: Access Database Pin
Paul Conrad19-Aug-08 19:54
professionalPaul Conrad19-Aug-08 19:54 
AnswerRe: Access Database Pin
Mycroft Holmes19-Aug-08 21:30
professionalMycroft Holmes19-Aug-08 21:30 
AnswerRe: Access Database Pin
Chris Quinn27-Aug-08 3:16
Chris Quinn27-Aug-08 3:16 
QuestionSyntax error converting the varchar value to a column of data type int Pin
mistyfy19-Aug-08 14:39
mistyfy19-Aug-08 14:39 
AnswerRe: Syntax error converting the varchar value to a column of data type int Pin
Paul Conrad19-Aug-08 14:42
professionalPaul Conrad19-Aug-08 14:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.