Files
strategies/测试默认参数组功能.md
T

60 lines
1.1 KiB
Markdown
Raw Normal View History

2018-12-08 12:40:55 +08:00
2023-07-14 18:39:48 +08:00
> Name
2018-12-08 12:40:55 +08:00
2021-08-05 16:35:33 +08:00
测试默认参数组功能
2018-12-08 12:40:55 +08:00
2023-07-14 18:39:48 +08:00
> Author
2018-12-08 12:40:55 +08:00
小小梦
2023-07-14 18:39:48 +08:00
> Strategy Description
2017-06-24 15:03:06 +08:00
### 如何使用代码精确调整“回测系统默认设置”
> 在策略的参数测试,不同时间段回测,多个标的物回测等,回测策略时由于参数需要反复调整,而且不能记录,下次回测时又要重新设置。平台为了方便参数调整,新增加功能 -- 使用代码精确调整“回测系统默认设置”。
2023-07-14 18:39:48 +08:00
> Strategy Arguments
2017-06-24 15:03:06 +08:00
2018-12-08 12:40:55 +08:00
2023-07-14 18:39:48 +08:00
|Argument|Default|Description|
2018-12-08 12:40:55 +08:00
|----|----|----|
|number|9999|数字类型|
|bool|true|布尔类型|
|string|Hello World!|字符串类型|
|comboBox|0|下拉框: combo1|combo2|combo3|
2023-07-14 18:39:48 +08:00
> Source (javascript)
2018-12-08 12:40:55 +08:00
``` javascript
2017-06-24 15:03:06 +08:00
/*backtest
start: 2017-03-01
end: 2017-03-02
period: 15
mode: 1
*/
2017-11-30 19:47:11 +08:00
/*defaults
2017-06-24 15:03:06 +08:00
number : 0
bool: false
string: Hello BotVS!
comboBox : 2
*/
function main(){
while(true){
LogStatus("测试默认参数!");
2017-11-30 19:47:11 +08:00
Sleep(1000);
2017-06-24 15:03:06 +08:00
}
}
2018-12-08 12:40:55 +08:00
```
2023-07-14 18:39:48 +08:00
> Detail
2018-12-08 12:40:55 +08:00
https://www.fmz.com/strategy/40155
2023-07-14 18:39:48 +08:00
> Last Modified
2018-12-08 12:40:55 +08:00
2021-08-05 16:35:33 +08:00
2021-07-02 16:33:15