PureBytes Links
Trading Reference Links
|
Thanks Bill, that helps a lot. Your knowledge of the inner workings of TS
is several levels above mine. Have you written about this trick you mention
in #3 below (of using a function and an Include System) in your Tradestation
newsletter "TS Express"? I don't remember seeing it.
Jim
P.S.
To all: Good newsletter for active TS users. No affiliation.. blah,blah
-----Original Message-----
From: William Brower <1000mileman@xxxxxxxxxxxxxx>
To: Jim McConnon <Jmcconno>; omega-list@xxxxxxxxxx <omega-list@xxxxxxxxxx>
Date: Wednesday, September 16, 1998 3:16 PM
Subject: Re: EXE Code Too Large
>There are a few tricks you can use that may help.
>
>1) Avoid division whenever possible. If you have several occurrences where
>you divide by "X", you would be better off creating a new variable Y=1 / X
>and then multiplying by "Y" instead. This will avoid having to check for
>division by 0 which consumes EXE code.
>
>2) Avoid references to prior values whenever possible. Everytime you refer
>to a prior value TS needs to check for a MaxBarsBack violation. You can
>create mini stacks or use arrays to store prior values and rever to them
>instead of referring to the prior values.
>
>3) The biggest and most drastic action, without using GV's is to use a
>heretofor undisclosed trick of feeding a large function in as an input and
>then passing the input to an IncludeSystem which can then perform futher
>analysis. The Calling system can be right near the 64K barrier and so can
>the IncludeSystem. This way you can build systems much larger than 64K.
>
>
>At 12:13 AM 9/16/98 -0400, you wrote:
>>I have run up against the size limitation for systems in TS 4 build 21
>>(64k?).
>>
>>I have tried to slim down the code as much as possible. I put some print
>>functions into an Include System. I put some calculations into a
function,
>>but that seems like it uses up just as much space.
>>
>>Any thoughts? Use a DLL like Hashnums to pass values? I'm sure others run
up
>>against this and TS 5 is not here.
>>
>>Jim
>
>
>Best Regards,
>William Brower
>Publisher of TS Express
>The Journal for Informed Users of TradeStation
>Free Sample Available (Send Mail Address)
>Email: 1000mileman@xxxxxxxxxxxxxx
>Web: http://www.insideedgesystems.com
>Tel: 203-454-2754 Fax: 203-221-9195
>
|