天软金融分析.NET函数大全 > 数据仓库函数 > 向导函数 > 历史遗留

AvgOfSectorExceptNoTrade    

简述
返回当前板块当前时间存在交易股票指标Exp的平均值,其中Mode决定返回的平均类型,与系统参数(板块,日期,周期,复权)相关。
定义
AvgOfSectorExceptNoTrade(Exp:Expr;Mode:Integer):real
参数
名称类型说明
ExpExpr函数表达式
ModeInteger用户自定义,平均模式
显示名 取值
总股本加权 0
流通股本加权 1
算术平均 2
返回real实数
  • 范例


    SetSysParam(pn_bk(),'安徽');

    SetSysParam(pn_date(),20180801t);

    return AvgOfSectorExceptNoTrade(@close(),0);

    //返回:9.77
相关