Help us understand the problem. What is going on with this article?

個別銘柄の株価データ

More than 1 year has passed since last update.

トレーディングアプリとして作成し、AnalysisTechniqueのInitializedイベントに「AnalysisTechnique_Initialized」を設定して動かし

using elsystem;
using tsdata.marketdata;

vars:
    PriceSeriesProvider psp(Null),
    varIndex(0);

method void AnalysisTechnique_Initialized( elsystem.Object sender, elsystem.InitializedEventArgs args ) 
begin

    ClearPrintLog;

    psp = PriceSeriesProvider.Create();

    // 銘柄の設定
    psp.Symbol = "1321";

    // チャートの設定(足種など)
    psp.Interval.ChartType = DataChartType.Bars;
    psp.Interval.IntervalType = DataIntervalType.Daily;
    psp.Interval.IntervalSpan = 1;

    // 期間の設定
    psp.Range.Type = DataRangeType.Years;
    psp.Range.Years = 1;
    psp.Range.LastDate = Datetime.Create(2017,4,30);

    psp.LoadProvider();

    // 取得した株価データを印刷ログに出力
    varIndex = 0;
    For Value1 = 0 to psp.Count - 1 Begin
        varIndex = ( psp.Count - 1 ) - Value1;

        Print(
            psp.Symbol, "   ",
            psp.Time[varIndex].Format("%Y/%m/%d"), "    ",
            psp.Open[varIndex].ToString(), "    ",
            psp.High[varIndex].ToString(), "    ",
            psp.Low[varIndex].ToString(), " ",
            psp.Close[varIndex].ToString(), "   ",
            psp.Volume[varIndex].ToString(), "  "
        );
    End;
end;

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away