✨ feat(tsl-api-reference): add class and framework API lookup
This commit is contained in:
-5
@@ -22,11 +22,8 @@
|
||||
|
||||
```tsl
|
||||
t := array(('日期':20180801T, '涨幅%':1.42051971),
|
||||
|
||||
('日期':20180802T, '涨幅%':1.18018526),
|
||||
|
||||
('日期':20180803T, '涨幅%':0.9023545));
|
||||
|
||||
return pf_ReturnToCumulativeReturn(t, '涨幅%', 1);
|
||||
// 输出:3.54
|
||||
```
|
||||
@@ -54,9 +51,7 @@ return pf_ReturnToCumulativeReturn(t, '涨幅%', 1);
|
||||
|
||||
```tsl
|
||||
SetSysParam(pn_stock(), 'sz000001');
|
||||
|
||||
SetSysParam(PN_Date(), 20180801T);
|
||||
|
||||
return RiskFreeRateofReturnDayly(3, cy_day(), '单利', 250);
|
||||
// 输出:0.01
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user