The strategy is used to test the interactive controller functionality in the inventor's quantitative trading platform strategy design.
function main() { var lastCmd = "" while (true) { var cmd = GetCommand() if (cmd) { Log(cmd) lastCmd = cmd } LogStatus(_D(), lastCmd) Sleep(500) } }