天软金融分析.NET函数大全
>
金融函数
>
板块
>
基本情况
>
其它
IsValueBetweeMaxAndMin
复制链接
简述
从一张表中返回指定字段的数值在指定区间段内的个数。
定义
IsValueBetweeMaxAndMin(tb:array;FieldName:String;LowValue:real;HighValue:real):integer
参数
名称
类型
说明
Tb
array
一维数字数组
FieldName
String
字符串,字段名称
Lowvalue
real
实数,区间低值
Highvalue
real
实数,区间高值
返回
integer
整数
算法
从数据t中选出字段为FieldNamed的数据,如果该数据在LowValue到HighValue中,统计个数n加1,最后返回n。
范例
t:=select * from tradetable datekey 20180801T to 20180802T of 'sz000001' end ;
return IsValueBetweeMaxAndMin(t,'close',0,5);
//返回:54 ,即平安银行在2018年8月1号成交明细中有54条成交记录的收盘价在0-5之间。
相关
StocksJjCount
MarketList
StocksGoMarketCount
GetStocks
StocksCountByTypeId
StocksACount
GetAllBKList
StocksBCount
IndustryNames
QFIINames
IndustryNames_TS
getbkEx
GetFCompany
GICS4LevelIndustryNames
IndustryNames_GICS
TradeBkExist
IndustryNames_TS_I
CentralizationNames
IsValueBetweeMaxAndMin
QynjNames
QsNames
AssetTypeNames
BondTypeNames