RD_Submit_BAAvgPriceDev
简述
加权委托价偏离度(%)
RD_Submit_BAAvgPriceDev(BSType:UserDefine;N:Integer;option:UserDefine):Real
名称 | 类型 | 说明 |
---|
BSType | UserDefine | 用户自定义,买卖类型,取值如下:
|
N | Integer | 整数,前N档位。-1:表全部;1~5:前N档 |
option | UserDefine | 用户自定义,加权方式,默认为0,取值如下:
取值 |
说明 |
0 |
等权 |
1 |
衰减加权之低档位权重高 |
2 |
衰减加权之高档位权重高 |
3 |
委托量加权 |
|
返回 | Real | Real,加权委托价偏离度(%) |
sp_s(pn_stock(),"SZ000001");
sp_s(pn_date(),20231030.110000t);
sp_s(pn_cycle(),cy_detail());
BSType := 0;
N := 5;
option := 0;
return RD_Submit_BAAvgPriceDev(BSType,N,option);
// 0.289296046287357