知识库 > 金融建模 > 公用函数 > 扩展函数 > .Net扩展函数 > 板块 > 行情指标 > 区间行情

StocksUpDownMorethanCount    

简述
板块区间上涨下跌家数
定义

StocksUpDownMorethanCount(StockArr:Array,BegT:TDateTime,EndT:TDateTime,Value:Int,IsDown:Int):Int
参数

StockArr:一组股票
BegT:开始日期
EndT:截止日期
Value:股票上涨/下跌基准(涨幅)
IsDown:上涨/下跌,具体取值如下:
涨跌取值
下跌0
上涨1



返回:整数
  • 参考
    Bk_PercentMorethanValue

    范例:

    范例1:

     //返回沪深300区间涨幅大于等于10的家数
      stks:= getbkbydate('SH000300',inttodate(20101231));
      BegT:= inttodate(20110101);
      EndT:= inttodate(20110630);
      return StocksUpDownMorethanCount(stks,BegT,EndT,10,1);
      //返回结果:50

    范例2:

     //返回沪深300区间涨幅小于等于10的家数
      stks:= getbkbydate('SH000300',inttodate(20101231));
      BegT:= inttodate(20110101);
      EndT:= inttodate(20110630);
      return StocksUpDownMorethanCount(stks,BegT,EndT,10,0);
      //返回结果:248

相关