Skip to content

Instantly share code, notes, and snippets.

@sen-saven
sen-saven / IBAPI.py
Last active August 24, 2017 14:29
Interactive Brokers API webinar
from ibapi.client import EClient
from ibapi.wrapper import EWrapper
from ibapi.common import *
from ibapi.contract import *
class TestApp(EClient, EWrapper):
def __init__(self):
EClient.__init__(self, self)
def error(self, reqId:TickerId, errorCode:int, errorString:str):
@sen-saven
sen-saven / geneticAlgorithms
Last active August 29, 2015 14:26 — forked from thertrader/geneticAlgorithms
Using Genetic Algorithms in Quantitative Trading
############################################################
## Using Genetic Algorithms in Quantitative Trading
##
## thertrader@gmail.com - Mar 2014
############################################################
library(PerformanceAnalytics)
library(rgenoud)
library(quantmod)
library(TTR)