天软金融分析.NET函数大全 > 数据仓库函数 > 成交明细数据函数

TDByIndex    

简述
第N个交易明细
定义
TDByIndex(ID:Integer;N:Integer):Any;
参数
名称类型说明
IDInteger整数,提取数据标识
含义 ID
时间 0
价格 1
成交金额 2
成交量 3
量比 9
买1 11
买2 12
买3 13
买4 14
买5 15
卖1 21
卖2 22
卖3 23
卖4 24
卖5 25
买1量 31
买2量 32
买3量 33
买4量 34
买5量 35
卖1量 41
卖2量 42
卖3量 43
卖4量 44
卖5量 45
NInteger整数,交易点位置,0表示第一个交易点,-1表示最后一个交易点。
返回Any任意类型,对应指标的值。
  • 范例


    //返回万科A在20110909日第100条交易记录的时间、价格、成交金额和成交量。
    setsysparam(pn_stock(),'SZ000002');
      setsysparam(pn_date(),inttodate(20110909));
      tds := array(
            datetimetostr(tdbyindex(0,100)),//日期时间
            tdbyindex(1,100),//价格
            tdbyindex(2,100),//成交金额
            tdbyindex(3,100) //成交量
         );
      return tds;
      


    返回结果如下图:
相关