天软金融分析.NET函数大全 > 金融函数 > 金融工程 > Dev

TradingStrategyByBk2    

简述
板块等比策略验证
定义
TradingStrategyByBk2(BkNames:Array;BegT:TDateTime;EndT:TDateTime;IndexId:String;BuyCond:String;TopN:Integer;HoldingN:Integer);TableArray
参数
名称类型说明
BkNamesArray字符串,以分号分割,板块列表
BegTTDateTime日期型时间,板块策略验证开始时间
EndTTDateTime日期型时间,板块策略验证截止时间
IndexIdString字符串,指数代码
BuyCondString表达式,板块买入条件
TopNInteger实数,取板块个数
HoldingNInteger整数,持有天数(交易日)
返回TableArray板块等比策略验证
  • 范例

      return TradingStrategyByBk2(

    "上证180",

    inttodate(20120725),

    inttodate(20121017),

    "SH000001",
    "BK_UpPercent3()+Ref(BK_UpPercent3(),1)+Ref(BK_UpPercent3(),2)",

    3,20);

    //结果:
相关