[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GT] Re: Couple of questions
- To: devel
AT
geniustrader.org
- Subject: [GT] Re: Couple of questions
- From: Chia-liang Kao <clkao
AT
clkao.org>
- Date: Tue, 5 Jan 2010 15:10:35 +0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type; bh=84DO6ZOEzrfocSaRsoH+jI05rvblIHFTJBKI5nJzaaY=; b=aZHmFv3ffMuRS1JFS69+o2vw6Kji6TEAfoebq6YIrSSdYra0JnL0M2KloO0d4wGsGG XVSXTu5Aje8OO4WIlbfGaNiSQ3TPlXEpx0nRmzc/WVg8/u9HYftDRkWo6dnRTOOh5oi+ uP+DtQdQ22UOPoLXbtJ5IulxNZeMQ5GAcrxcU=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=sZTYstX7Mlg4e2RW2AHevqucJEGMzNpex9X+WfXyhjPW0kvLg34/2QdvfNsijivEx8 TFSvA/8lCV4kAI1E2gBihWpVV9I5l27of3E0b62k5wI9XyN9IRijRJyFG9guik2fpvT2 /DNzc11Bct6SX7u9DYltdMhkG3O1KeMKkAdVo=
- In-reply-to: <7cf864221001042155t1010e1f0m1dc94461cdaf433b
AT
mail.gmail.com>
- Message-id: <cdd66f111001042310s48d0df6sb00d370b92cfa38d@mail.gmail.com> (sfid-20100105_081150_313833_2E7DC08F)
- Reply-to: devel
AT
geniustrader.org
- Sender: chialiang
AT
gmail.com
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