0bps

Strategy vault / Other

Test Strategy Interactive Control

This strategy is used to test the interactive control functions in the Inventor Quantitative Trading Platform strategy design.

JavaScriptOther
Author
发明者量化-小小梦
Complexity
Intermediate · 12 lines
Parameters
12

This strategy is used to test the interactive control functions in the Inventor Quantitative Trading Platform strategy design.

Parameters

NameDefaultWhat it controls
cmdNum1Note of interactive control cmdNum1(?Numeric Type) Description of interactive control cmdNum1
cmdNum2Notes for interactive control cmdNum2Description for interactive control cmdNum2
cmdNum3Notes for interactive control cmdNum3Description for interactive control cmdNum3
cmdBool1Notes on the interaction control cmdBool1(? Boolean type) Description of the interactive control cmdBool1
cmdStr1Notes on the cmdStr1 interaction control(?string type) Description of the cmdStr1 interaction control
cmdStr2Note for interactive control cmdStr2Description of interactive control cmdStr2
cmdStr3Note for interactive control cmdStr3Description of interactive control cmdStr3
cmdStr4Note for interactive control cmdStr4Description of interactive control cmdStr4
cmdCombox1Note of interactive control cmdCombox1(? dropdown type) description of interactive control cmdCombox1.
cmdCombox2Remarks on interactive control cmdCombox2Description of interactive control cmdCombox2
cmdCombox3Remarks on interactive control cmdCombox3Description of interactive control cmdCombox3
cmdBtnNotes on the cmdBtn interaction control(? Button type) Description of the cmdBtn interactive control

Source JavaScript

function main() {
    var lastCmd = ""
    while (true) {
        var cmd = GetCommand()
        if (cmd) {
            Log(cmd)
            lastCmd = cmd
        }
        LogStatus(_D(), lastCmd)
        Sleep(500)
    }
}

Published by 发明者量化-小小梦 on the FMZ strategy square · last modified 2024-06-27. Collected in the Quant Trading Vault. Unvalidated research: re-test with your own data and costs before trusting it.

Build this with AgenKit

A spec is not a trading system. Paste this into your coding agent and AgenKit runs a specialist team — architecture, test-first build, risk gates, review — with paper trading on by default.

in Claude Code, Cursor, Codex & 4 more
/agenkit build a production-grade trading bot with a backtest engine, risk controls and paper trading by default from strategies/Test-Strategy-Interactive-Control.md
  1. npx agenkit install engineering-kit in your project
  2. Paste the command into your agent and approve each phase
  3. Get tests, backtest, risk controls and a paper-trading switch

Understand it first

Before you run this, read the lesson behind the idea and how to backtest it honestly. Specs like this one are the survivors of an unknown number of trials; deflate their results accordingly.

Related specs

esc

Try , , or .

↑↓ move↵ open