- UID
- 2
- 积分
- 2892947
- 威望
- 1396505 布
- 龙e币
- 1496442 刀
- 在线时间
- 13326 小时
- 注册时间
- 2009-12-3
- 最后登录
- 2024-12-26
|
【KurtosisOpt】
- inputs:
- PriceValue( numericseries ),
- Len( numericsimple ),
- Mean( numericsimple ),
- SDev( numericsimple ) ;
- variables:
- var0( 0 ),
- var1( 0 ),
- var2( 0 ) ;
- KurtosisOpt = 0 ;
- condition1 = Len > 3 and SDev > 0 ;
- if condition1 then
- begin
- var1 = 0 ;
- for Value1 = 0 to Len - 1
- begin
- var1 = var1 + Power( ( PriceValue[Value1] - Mean ) / SDev, 4 ) ;
- end ;
- var0 = Len * ( Len + 1 ) / ( ( Len - 1 ) * ( Len - 2 ) *
- ( Len - 3 ) ) ;
- var2 = 3 * Square( Len - 1 ) / ( ( Len - 2 ) * ( Len - 3 ) ) ;
- KurtosisOpt = var0 * var1 - var2 ;
- end ;
复制代码 |
论坛官方微信、群(期货热点、量化探讨、开户与绑定实盘)
|