4 ms·
I write automated trading algos for my own trading, and invariably put in a "command line interface" so I can control variables during trading without having to
by msravi 6y ago
I write automated trading algos for my own trading, and invariably put in a "command line interface" so I can control variables during trading without having to restart. I don't know if this is the normal thing to do, but I just read the variables from a mysql table at some logical point in the program loop, where changing it is "safe". The CLI is then simply about connecting to the DB and changing those variables using standard SQL statements... I guess the "right" way would be to build a proper (G)UI to handle this, but hey, it works.
- sk0g 6y agoIf you're using PostgreSQL, pgAdmin might be all the GUI you need, or whatever your database's equivalent program is.
- tyingq 6y agoIn the Java world, it's very common to use JMX for that, and there are several JMX clients to read/set variables, watch logs, etc.
- neverartful 6y agoI too thought of JMX when reading through comments. I've always thought that JMX was underrated.