Files
playbook/skills/tsl-api-reference/references/codegen/dotnet/datawarehouse/wizard-legacy.md
T

1.2 KiB

数据仓库 / 向导函数 / 历史遗留

avgOfSectorExceptNoTrade(exp, mode)

声明:function

返回当前板块当前时间存在交易股票指标Exp的平均值,其中Mode决定返回的平均类型,与系统参数(板块,日期,周期,复权)相关

参数 类型 说明
exp expr 函数表达式
mode int 用户自定义,平均模式

返回:float

示例

范例01:调用函数

SetSysParam(pn_bk(), '安徽');
SetSysParam(pn_date(), 20180801t);
return AvgOfSectorExceptNoTrade(@close(), 0);

sumOfSectorExceptNoTrade(exp)

声明:function

返回当前板块当前时间存在交易股票指标Exp的和,与系统参数(板块,日期,周期,复权)相关

参数 类型 说明
exp expr 函数表达式

返回:float

示例

范例01:调用函数

SetSysParam(pn_bk(), '安徽');
SetSysParam(pn_date(), 20180801t);
return SumOfSectorExceptNoTrade(@close());