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

[GT] Re: Couple of questions



Hi Sumit,

2010/1/5 Sumit Sanghai <sumit.sanghai
AT
gmail.com>:
> Hello guys,
> I am trying out GT, and had a few questions.
> i) I am developing a strategy which apart from the standard volume, and
> prices requires some other data which I have in my DB.
> I want these to be loaded into the Prices object, and then used elsewhere.
> Do I need to make modifications just to Prices.pm to
> get the data loaded. Or are there other classes which inherently assume that
> Prices can only contain open, high etc?

the I::Prices indicator allows you to reference prices from another
symbol.  For example, I wrote p/c ratio values into all of OHLC in a
db called FOO-PCR, and use {I:Prices CLOSE FOO-PCR} to refer to it.

> ii) One of the strategies I am testing, requires simultaneous access to
> quotes from multiple stocks and indices.
> Any clue where all do I have to make the changes to get such a strategy
> working.
> It seems that most of the objects make the assumption that they are only
> dealing with a single stock.
> Is there a simple hack which can help me out?
> Regards,
> Sumit.

This should be the same as above, however i think I::Prices only
supports different symbols in same timeframe ( and possibly requires
the data index to be same)

Cheers,
CLK