📝 docs(tsl): complete and lint codegen reference
This commit is contained in:
@@ -4,12 +4,12 @@
|
||||
|
||||
用于生成图形组合,可以指定任意多个单个图形作为参数生成一个图形组合,在其后面还可以指定图形组合的共有属性。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `graph1` | tgraph | TGraph 图形1 |
|
||||
| `graph_n` | tgraph | TGraph 图形N |
|
||||
| `prop_m` | string | string 可选参数,TGraphGroup属性名称 |
|
||||
| `value_m` | | any 可选参数,TGraphGroup属性值 |
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------- | ------ | ------------------------------------ |
|
||||
| `graph1` | tgraph | TGraph 图形1 |
|
||||
| `graph_n` | tgraph | TGraph 图形N |
|
||||
| `prop_m` | string | string 可选参数,TGraphGroup属性名称 |
|
||||
| `value_m` | | any 可选参数,TGraphGroup属性值 |
|
||||
|
||||
返回:tgraphgroup
|
||||
|
||||
@@ -34,12 +34,12 @@ gfMinValue():设定最小值。一般的,图形会用查找视图内最小
|
||||
|
||||
返回根据指定的类型、名称、数据以及属性数组生成的图形。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `_type` | integer | |
|
||||
| `name` | string | |
|
||||
| `data` | array | |
|
||||
| `prop` | array | |
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ------- | ------- | ---- |
|
||||
| `_type` | integer | |
|
||||
| `name` | string | |
|
||||
| `data` | array | |
|
||||
| `prop` | array | |
|
||||
|
||||
返回:tgraph
|
||||
|
||||
@@ -349,18 +349,18 @@ K线类型
|
||||
|
||||
用于生成单个图形。单个图形的含义是一条折线、K线或成交量柱壮图。函数的具体的功能是:用指定的数据Data生成一个类型为Type的图形,并且用后面指定的属性参数PropN和PropNValue为图形指定修饰属性。注意,如果横坐标要显示出数据,需要把横坐标设置列名为'time'
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `_type` | integer | |
|
||||
| `graph_name` | string | |
|
||||
| `data` | tablearray | |
|
||||
| `prop1` | string | |
|
||||
| `prop1_value` | any | |
|
||||
| `prop2` | string | |
|
||||
| `prop2_value` | any | |
|
||||
| `...` | | |
|
||||
| `prop_n` | string | |
|
||||
| `prop_n_value` | any | |
|
||||
| 参数 | 类型 | 说明 |
|
||||
| -------------- | ---------- | ---- |
|
||||
| `_type` | integer | |
|
||||
| `graph_name` | string | |
|
||||
| `data` | tablearray | |
|
||||
| `prop1` | string | |
|
||||
| `prop1_value` | any | |
|
||||
| `prop2` | string | |
|
||||
| `prop2_value` | any | |
|
||||
| `...` | | |
|
||||
| `prop_n` | string | |
|
||||
| `prop_n_value` | any | |
|
||||
|
||||
返回:tgraph
|
||||
|
||||
@@ -416,13 +416,13 @@ return graphGroup(g1, g2, g3);
|
||||
// function:__main__:line 8:instruction:usercall: function execute error
|
||||
```
|
||||
|
||||
## `gfBiasEval(l1)`
|
||||
## `gfBias_Eval(l1)`
|
||||
|
||||
乘离率绘图教学函数。返回指定股票在截止日N(默认180)个序列的L1乘离率图形,与系统参数(股票,周期,时间,复权相关)
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `l1` | any | 整数 |
|
||||
| ---- | ---- | ---- |
|
||||
| `l1` | any | 整数 |
|
||||
|
||||
返回:any
|
||||
|
||||
@@ -430,8 +430,8 @@ return graphGroup(g1, g2, g3);
|
||||
|
||||
将运行结果为图像的多个参数图像叠加,返回叠加后的图形组合。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---- | ----- | ---------------------------------- |
|
||||
| `g1` | graph | 图形1,一般是由graph函数返回的图形 |
|
||||
| `g2` | graph | 图形2,一般是由graph函数返回的图形 |
|
||||
| `g3` | graph | 图形3,一般是由graph函数返回的图形 |
|
||||
@@ -473,8 +473,8 @@ return mergeGraph(g1, g2, g3, g4);
|
||||
|
||||
依据Index值,获得颜色数组内的指定颜色整数代号。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ------- | ------- | ---------------- |
|
||||
| `index` | integer | 整数,颜色索引号 |
|
||||
|
||||
返回:integer
|
||||
|
||||
Reference in New Issue
Block a user