Interactive BrokersのAPIを用いて
マーケットデータを取得することが出来ました。
さらにヒストリカルデータを取得し、
それからチャート描画に入りたいと思います。
手元に勢力指数(Force Index)やエルダー線(Elder-Ray)を
描画できるツールがありませんので、まずは
これらを実装したいですね。^^
« Interactive Brokersへの送金方法 | Main | Interactive Brokers 証券の研究 »
TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a0120a6857a68970b0120a6857aa6970b
Listed below are links to weblogs that reference Interactive BrokersのAPIを用いてマーケットデータ取得:
This is only a preview. Your comment has not yet been posted.
As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.
Having trouble reading this image? View an alternate.
こんにちは。
アレキサンダー・エルダーの著書は一番始めに読んだ本なので、思い入れがあります。
Force Indexに関しては、出来高を取り入れているので、使い方が難しいですね。。。
出来高自体が、ある単独のMarketMakerの思惑により増加する事もあるので、統計的に判断するのが難しいのかな・・・と。
■勢力指数 =(今日の終値-昨日の終値)×今日の出来高
===============================
Var: FrcIndex(0);
FrcIndex = (Close - Close[1]) * Volume;
Plot1(FrcIndex, "Force Index", Yellow);
===============================
■エルダー線(Elder-Ray)
ブルパワー=高値-EMA
ベアパワー=安値-EMA
===============================
Input: Length(10);
Var: EMA(0), Factor(0);
Factor = 2 / (Length + 1);
if Currentbar == Length then
EMA = Average(Close, Length);
else if Currentbar > Length then
EMA = EMA[1] + Factor * (Close[0] - EMA[1]);
BullPwr = High - EMA;
BearPwr = Low - EMA;
Plot1(BullPwr, "Bull Power", red);
Plot2(BearPwr, "Bear Power", yellow);
PlotBaseLine(0, "基準線", White);
===============================
EMAの関数がはじめから登録されていれば、もっと簡単にかけそうですね。
ツールは証券会社提供のものを利用するんですか?それとも自作???
Posted by: サルサで猿さ | 09/19/2007 at 10:25
いつもお世話になっております。
おっしゃるとおり出来高を含んでしまうと
そういうことがあるのかもしれませんね。
他の人があまり利用しない指標ということで
関心があったのですが・・・
こちらに記入いただいた言語は
EasyLanguageでしょうか?
私は証券会社から提供のAPIでデータを取得し、
Javaで加工しようと考えています。^^
Posted by: Tasya | 09/20/2007 at 06:58