PureBytes Links
Trading Reference Links
|
> 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
|