该策略用于测试发明者量化交易平台策略设计中界面参数功能。
/*backtest start: 2023-06-21 00:00:00 end: 2024-06-26 00:00:00 period: 1d basePeriod: 1h exchanges: [{"eid":"Futures_OKX","currency":"BTC_USD"}] */ function main() { Log("---------------------------开始测试数字类型参数---------------------------") Log("变量pNum1:", pNum1, ", 变量值类型:", typeof(pNum1)) Log("变量pNum2:", pNum2, ", 变量值类型:", typeof(pNum2)) Log("变量pNum3:", pNum3, ", 变量值类型:", typeof(pNum3)) Log("变量pNum4:", pNum4, ", 变量值类型:", typeof(pNum4)) Log("---------------------------开始测试布尔类型参数---------------------------") Log("变量pBool1:", pBool1, ", 变量值类型:", typeof(pBool1)) Log("变量pBool2:", pBool2, ", 变量值类型:", typeof(pBool2)) Log("---------------------------开始测试字符串类型参数---------------------------") Log("变量pStr1:", pStr1, ", 变量值类型:", typeof(pStr1)) Log("变量pStr2:", pStr2, ", 变量值类型:", typeof(pStr2)) Log("变量pStr3:", pStr3, ", 变量值类型:", typeof(pStr3)) Log("变量pStr4:", pStr4, ", 变量值类型:", typeof(pStr4)) Log("---------------------------开始测试下拉框类型参数---------------------------") Log("变量pCombox1:", pCombox1, ", 变量值类型:", typeof(pCombox1)) Log("变量pCombox2:", pCombox2, ", 变量值类型:", typeof(pCombox2)) Log("变量pCombox3:", pCombox3, ", 变量值类型:", typeof(pCombox3)) Log("---------------------------开始测试加密串类型参数---------------------------") Log("变量pSecretStr1:", pSecretStr1, ", 变量值类型:", typeof(pSecretStr1)) }