RD_Submit_BASlope
简述
斜率
RD_Submit_BASlope(BSType:UserDefine;N:Integer;lvtype:UserDefine;voltype:UserDefine):Real
名称 | 类型 | 说明 |
---|
BStype | UserDefine | 用户自定义,买卖类型,默认为0,取值如下:
|
N | Integer | 整数,前N档位。-1:表全部;1~5:前N档 |
lvtype | UserDefine | 用户自定义,挡位类型,默认为0,取值如下:
取值 |
说明 |
0 |
挡位 |
1 |
委托价偏离度,算法是|(委托价/成交价-1)|*100 |
|
voltype | UserDefine | 用户自定义,委托量类型,默认为0,取值如下:
取值 |
说明 |
0 |
委托量 |
1 |
委托量占比 |
2 |
委托量换手率 |
|
返回 | Real | Real,斜率 |
sp_s(pn_stock(),"SZ000001");
sp_s(pn_date(),20231030.110000t);
sp_s(pn_cycle(),cy_detail());
BSType := 0;
N := 5;
lvtype := 0;
voltype := 0;
return RD_Submit_BASlope(BSType,N,lvtype,voltype); // 1395010