- PR -

NPlot(CandlePlot)で株価チャートの表示方法

1
投稿者投稿内容
Hirohiro
会議室デビュー日: 2006/07/23
投稿数: 4
投稿日時: 2006-07-23 06:16
Visual Basic 2005 でフリーソフトNplotのCandlePlotを使用して
株価チャートを表示できるように試みているのですがなかなかうまくいきません。

NplotのHistogramPlot(棒グラフ)で出来高を表示することはできました。
棒グラフは下記のページを参考に作成しました。

http://database-tearoom.seesaa.net/article/12916797.html

NplotのCandlePlotを使用して(日付,始値,高値,安値,終値)を表示する方法を
知っている方がいましたらアドバイス宜しくお願いします。

サンプル等ありましたら助かります。

Nplotのページを参照しましたがなかなかうまくいきません。
http://www.andrewtheken.com/nplot/NPlot.CandlePlotMembers.html

いかわ
会議室デビュー日: 2005/05/31
投稿数: 1
お住まい・勤務地: 東京都
投稿日時: 2006-07-24 16:36
Dim Tmp As New NPlot.Windows.PlotSurface2D
Tmp.Name = "PlotSurface1"
Tmp.Dock = DockStyle.Fill
Me.Controls.Add(Tmp)

Dim CandlePlot1 As New NPlot.CandlePlot
Dim highData() As Integer = {10, 20, 30, 40, 50, 60, 70, 50, 30, 16}
Dim openData() As Integer = {5, 6, 7, 8, 9, 10, 11, 12, 13, 14}
Dim closeData() As Integer = {3, 4, 5, 6, 7, 8, 9, 7, 5, 3}
Dim lowData() As Integer = {1, 2, 3, 4, 5, 6, 7, 5, 3, 1}

With CandlePlot1
.HighData = highData
.OpenData = openData
.CloseData = closeData
.LowData = lowData
.AbscissaData = New Integer() {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}
End With

Tmp.Add(CandlePlot1)

これで行くようですよ
Hirohiro
会議室デビュー日: 2006/07/23
投稿数: 4
投稿日時: 2006-07-25 11:01
連絡いただきましてありがとうございました。
無事、うまくいきました。
1

スキルアップ/キャリアアップ(JOB@IT)