该策略用于测试优宽量化交易平台策略设计中交互控件功能。
function main() { var lastCmd = "" while (true) { var cmd = GetCommand() if (cmd) { Log(cmd) lastCmd = cmd } LogStatus(_D(), lastCmd) Sleep(500) } }template: strategy.tpl:40:21: executing "strategy.tpl" at <.api.GetStrategyListByName>: wrong number of args for GetStrategyListByName: want 7 got 6