StocksMaxRateUp
简述
板块区间最大涨幅,板块组合最高市值/EndT前板块组合市值-1
StocksMaxRateUp(StockArr:Array;BegT:TDateTime;EndT:TDateTime;RightType:Int;SType:Int):Float
| 名称 | 类型 | 说明 |
|---|
| StockArr | Array | 一组股票 |
| BegT | TDateTime | 开始日期 |
| EndT | TDateTime | 截止日期 |
| RightType | Int | 加权方式,具体取值如下:
|
| Stype | Int | 默认为0 |
| 返回 | Float | 实数 |
//返回沪深300区间总股本加权最大涨幅
stks:= getbkbydate('SH000300',inttodate(20101231));
BegT:= inttodate(20110101);
EndT:= inttodate(20110630);
return StocksMaxRateUp(stks,BegT,EndT,0,0);
//结果是:9.31