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 @@
# 事件套利 / 事件发生器
## `TSEDEventGenerator`
## `tsedEventGenerator`
声明:class
@@ -8,7 +8,7 @@
<!-- tags: 事件驱动 事件研究 事件生成 -->
### `fBegT`
### `FBegT`
声明:field
@@ -18,7 +18,7 @@
类型:date
### `fEndT`
### `FEndT`
声明:field
@@ -28,7 +28,7 @@
类型:date
### `fConInfo`
### `FConInfo`
声明:field
@@ -38,7 +38,7 @@
类型:array
### `fIndexArr`
### `FIndexArr`
声明:field
@@ -48,7 +48,7 @@
类型:array
### `getSampleData(output_type)`
### `GetSampleData(output_type)`
声明:function
@@ -64,7 +64,7 @@
返回:table
### `getEventInfo()`
### `GetEventInfo()`
声明:function
@@ -76,7 +76,7 @@
返回:table
### `getStockArr(beg_t, end_t)`
### `GetStockArr(beg_t, end_t)`
声明:function
@@ -98,7 +98,7 @@
范例01:调用示例
```tsl
obj := CreateObject('TSEDEventGenerator');
obj := CreateObject('tsedEventGenerator');
obj.FEventID := "0201"; //设置事件编号
obj.FBegT := 20191124T; //设置开始日
obj.FEndT := 20221124T; //设置截止日
@@ -110,14 +110,14 @@ return obj.GetSampleData(0); //返回事件样本数据
范例02:调用示例
```tsl
obj := CreateObject('MyEDEventGenerator');
obj := CreateObject('myEDEventGenerator');
obj.FEventID := "0201"; //设置事件编号
obj.FBegT := 20191124T; //设置开始日
obj.FEndT := 20221124T ; //设置截止日
obj.FStockArr := StockArr; //设置用户自有样本池
obj.main();
return obj.GetSampleData(0); //返回事件样本数据
Type MyEDEventGenerator=class(TSEDEventGenerator)
Type myEDEventGenerator=class(tsedEventGenerator)
FStockArr; //样本池
//导入用户自有样本池
function GetStockArr(BegT,EndT);override;
@@ -130,7 +130,7 @@ End
范例03:调用示例
```tsl
obj := CreateObject('TSEDEventGenerator');
obj := CreateObject('tsedEventGenerator');
obj.FEventID := "0101"; //设置事件编号
obj.FBegT := 20191124T; //设置开始日
obj.FEndT := 20221124T; //设置截止日