feat(tsl-api-reference): add class and framework API lookup

This commit is contained in:
csh
2026-08-20 13:49:55 +08:00
parent 7233646398
commit 651c1f68d2
637 changed files with 25498 additions and 36673 deletions
@@ -1,6 +1,6 @@
# 量化策略 / 轮动
## `TSRotationStrategy`
## `tsRotationStrategy`
声明:class
@@ -8,7 +8,7 @@
<!-- tags: 资产轮动 择时 轮动策略 -->
### `fRotateSampleData`
### `FRotateSampleData`
声明:field
@@ -18,7 +18,7 @@
类型:array
### `fBegT`
### `FBegT`
声明:field
@@ -28,7 +28,7 @@
类型:date_time
### `fEndT`
### `FEndT`
声明:field
@@ -38,7 +38,7 @@
类型:date_time
### `fRotateSampleDataExp`
### `FRotateSampleDataExp`
声明:field
@@ -48,7 +48,7 @@
类型:string
### `fRotateCycle`
### `FRotateCycle`
声明:field
@@ -58,7 +58,7 @@
类型:string
### `fConStr`
### `FConStr`
声明:field
@@ -68,7 +68,7 @@
类型:string
### `fStockArr`
### `FStockArr`
声明:field
@@ -78,7 +78,7 @@
类型:array
### `fRotateDateType`
### `FRotateDateType`
声明:field
@@ -88,7 +88,7 @@
类型:integer
### `fMaxHoldNum`
### `FMaxHoldNum`
声明:field
@@ -98,7 +98,7 @@
类型:integer
### `fIfTiming`
### `FIfTiming`
声明:field
@@ -108,7 +108,7 @@
类型:bool
### `fIfTiming2`
### `FIfTiming2`
声明:field
@@ -118,7 +118,7 @@
类型:bool
### `fBuyCond`
### `FBuyCond`
声明:field
@@ -128,7 +128,7 @@
类型:string
### `fSellCond`
### `FSellCond`
声明:field
@@ -138,7 +138,7 @@
类型:string
### `getInitSampleArrByEndt(endt)`
### `GetInitSampleArrByEndt(endt)`
声明:function
@@ -152,7 +152,7 @@
| ------ | -------- | ---------------------------- |
| `endt` | datetime | 计算或查询使用的日期时间边界 |
### `getRotateSampleArrByEndt(stock_arr, endt)`
### `GetRotateSampleArrByEndt(stock_arr, endt)`
声明:function
@@ -167,7 +167,7 @@
| `stock_arr` | array | 一维数组,当前设置的轮动样本空间 `fStockArr` |
| `endt` | datetime | 计算或查询使用的日期时间边界 |
### `getBuySampleData(rotate_data, vendt)`
### `GetBuySampleData(rotate_data, vendt)`
声明:function
@@ -182,7 +182,7 @@
| `rotate_data` | array | 二维数组,当期最新轮动样本池;已排除当期已持有证券 |
| `vendt` | datetime | 当期择时判断日期 |
### `getSellSampleData(hold_data, vendt)`
### `GetSellSampleData(hold_data, vendt)`
声明:function
@@ -197,7 +197,7 @@
| `hold_data` | array | 二维数组,当期最新持仓池;已排除不在本期轮动池及已触发止盈止损的证券 |
| `vendt` | datetime | 当期择时判断日期 |
### `getRotateSampleData()`
### `GetRotateSampleData()`
声明:function
@@ -207,7 +207,7 @@
可见性:`public`
### `getRotateSampleData(vbegt, vendt)`
### `GetRotateSampleData(vbegt, vendt)`
声明:function
@@ -229,7 +229,7 @@
```tsl
BegT := minvalue(RotateSampleData[:,"截止日"]);
EndT := maxvalue(RotateSampleData[:,"截止日"]);
obj := new TSRotationStrategy();
obj := new tsRotationStrategy();
//轮动设置
obj.FRotateSampleData := RotateSampleData;
@@ -252,7 +252,7 @@ BegT := minvalue(RotateSampleData[:,"截止日"]);
```tsl
BegT := minvalue(RotateSampleData[:,"截止日"]);
EndT := maxvalue(RotateSampleData[:,"截止日"]);
obj := new TSRotationStrategy();
obj := new tsRotationStrategy();
//轮动设置
obj.FRotateSampleData := RotateSampleData;