Working demo with Interactive Brokers TWSLINK2 C++ source code

Working demo with Interactive Brokers TWSLINK2 C++ source code
Redis Simulink GITHUB project with code generated C++
This is from the original GitHub project so original credit goes to this mysterious contributor. Big thanks to them for making this possible.
Karen Supertrader with Interactive Brokers Java API source code
Java Eclipse project with Interactive Brokers to Redis NOSQL with JAR
Demos of C and Java Interactive Brokers
Source files
Java: MySQLPosition.tar
Here is the MYSQL Position table CREATE statement:
CREATE TABLE IF NOT EXISTS `Positions` (
`idPositions` int(11) NOT NULL DEFAULT ‘0’,
`shortSymbol` int(11) DEFAULT NULL,
`shortEntryTS` timestamp NULL DEFAULT NULL,
` shortEntryPrice` decimal(10,4) DEFAULT NULL,
`shortStopLossPer` decimal(3,2) DEFAULT NULL,
`shortSoftTargetPerc` decimal(3,2) DEFAULT NULL,
`longSymbol` int(11) DEFAULT NULL,
`Positionscol` varchar(45) DEFAULT NULL,
`longEntryTS` timestamp NULL DEFAULT NULL,
`longEntryPrice` decimal(10,4) DEFAULT NULL,
`longStopLossPer` decimal(3,2) DEFAULT NULL,
`longSoftTargetPerc` decimal(3,2) DEFAULT NULL,
`shortExitTS` timestamp NULL DEFAULT NULL,
`shortExitPrice` decimal(10,4) DEFAULT NULL,
`longExitTS` timestamp NULL DEFAULT NULL,
`longExitPrice` decimal(10,4) DEFAULT NULL,
`shortQty` int(11) DEFAULT NULL,
`longQty` int(11) DEFAULT NULL,
`shortBeta` decimal(4,4) DEFAULT NULL,
`shortLong` decimal(4,4) DEFAULT NULL,
PRIMARY KEY (`idPositions`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
select * from Positions
Improved Karen Supertrader Strategy with Fibonacci and Bollinger with C source code
Here is the source code with the bollingFib.slx Simulink model
Refer to the lastPriceERT_ert_rtw for the generated C Source code
Download here karen
Here are the instructions to
C: http://zetcode.com/db/mysqlc/
Java: http://quantlabs.net/blog/2015/09/java-instructions-for-mysql-and-ubuntu-linux/
Netbeans project file: TestIBTWS.tar
C files: mysql-connector-java-5.1.36.tar
Code for Matlab:
>> conn = database(‘testdb’,’root’,’Hello123_’,’/home/caustic/DB_Drivers/mysql-connector-java-5.1.36-bin.jar’,’jdbc:mysql://localhost/testdb’);
query=’select * from Cars’;
x=fetch(conn,query)
Simulink code generation C with Redis demo
I will have a video to walk you through the process of how to build a Simulink code generated model with calls to Redis embedded. This also includes the gotchas on the build process with CMake, make, Netbeans, etc.
Please visit for more details
http://quantlabs.net/blog/2015/09/integrate-simulink-models-with-c-or-c/
Powered by WishList Member - Membership Software