[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Function



PureBytes Links

Trading Reference Links

Gary,
	That's how the code was written, not sure why. I noticed that
when I first starting playing around with it, so I increased the size of
the array when necessary. I like the idea of placing more emphasis on
recent equity changes, but damn it's slow.
Thanks,
Trey

-----Original Message-----
From: Gary Fritz [mailto:fritz@xxxxxxxx] 
Sent: Tuesday, November 16, 2004 9:03 AM
To: omega-list@xxxxxxxxxx
Subject: Re: Function


> Tradestation arrays suck wind, and I stay away
> from them with a passion. 

TS arrays are a bit piggy, but there's only one array reference 
per bar in his function.  It shouldn't be slowing him down THAT 
much.

BTW Trey, if your chart has > 5000 bars, you only store the 
equity change of the first 5000 bars in your array.  Is that your 
intent?  Or are you just assuming you'll always have less than 
5000 bars in your chart, and the "BarNumber < 5000" is just a 
check to make sure you don't blow up if you accidentally have 
more than 5000 bars?  I assume it's the latter, since as the code 
is written now, you'll get wrong answers if you have more than 
5000 bars.  You stop recording EqtyCh after 5000 bars, but you 
continue summing up SumX/Y/etc.  Maybe blowing up is safer than 
silently returning wrong answers.

Gary