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

Re: multiple strategies?



PureBytes Links

Trading Reference Links

That's mostly correct. I believe you are referring to the
"IncludeSystem"
function of TS. The best way I've found to use it is to create a system
file
ahead of the other system files you want to package together. The code
in
the first system file would look something like this...

IncludeSystem:"Mysys1";
IncludeSystem:"Mysys2";
IncludeSystem:"Mysys3";
etc.

The system files would be executed in the order you place them in the
list
and all on the same bar.
All the systems are aware of the values in the market-tracking functions

such as "OpenPositionProfit", "MarketPosition" etc.. However these
functions
are always one bar late as they do not register until TS has completely
passed
thru the entire code and then made available on the next bar.
All other values and varibles in individual system files are not
global(able to be
read by othe system files). To accomplish this, you need a third party
Global
Variables dll module. Hashnums and Global Variables Pro are commercially

available and work quite well. I believe there is a free one offered by
a member
of the list called PushPop and I believe it is available at the
traders2traders
website. I have not paid much attention to news of PushPop.
If you decide to use a Global Varibles dll, make certain you install the
correct
version for your version of TS. TS4 requires a 16bit version and TS5 a
32bit.

Mike Eggleston wrote:

> I know there is a way to merge multiple strategies into one 'thing',
> but even when that's done the individual strategies are still unable
> to share values, etc., right?
>
> Mike