Trading Evolution

Markets are never wrong - opinions often are

Trader Workstation talks

Every trader gets bored during trading day so I decided to spice up my life and created a little app that plays random audio clips from famous movies based on your trading. The app connects to Interactive Brokers TWS and if you open position might say "And don't screw it up, sport" (Wall Street / 1987) or it might say "Now I wanna dance, I wanna win. I want that trophy" (Pulp Fiction). If position is closed with loss it might say "I told you not to go there! I told you not to go there!" (Anger Management / 2003). For profit "Ah, Buddy, Buddy, I hate to tell you this, but you are a genius!" (Wall Street / 1987). Which movie quotes would you play and when?

Download: IbTalk.zip

 
If you want to add your quotes and know a little bit of XML then open IbTalks.exe.config with any XML or text editor and add your own mp3 links. 
Here is an example:
  <!-- Close Position With Profit -->
  <ClosePositionWithProfitSounds>
    <Sound FileName="Sounds/Pulp Fiction/What-happened-here-was-a-miracle-and-I-want-you-to-fucking-acknowledge-it-!.mp3" />
    <Sound FileName="Sounds/Wall Street/Ah-Buddy-Buddy-I-hate-to-tell-you-this-but-you-are-a-genius!.mp3" />
    <Sound FileName="Sounds/Zombieland/All-I-could-think-of-was-What-are-the-odds.mp3" />
  </ClosePositionWithProfitSounds>
  
  <!-- Close Position With Loss -->
  <ClosePositionWithLossSounds>
    <Sound FileName="Sounds/Anger Management/I-told-you-not-to-go-there!-I-told-you-not-to-go-there!.mp3" />
    <Sound FileName="Sounds/Pulp Fiction/Everybody-be-cool-!-This-is-a-robbery.mp3" />
    <Sound FileName="Sounds/Pulp Fiction/lm-through-never-again-too-dangerous.mp3" />
    <Sound FileName="Sounds/Pulp Fiction/Oh-fuck-me-Fuck-me-!.mp3" />
    <Sound FileName="Sounds/Trading Places/Business-is-business-Ill-go-for-a-walk.mp3" />
    <Sound FileName="Sounds/Wall Street/Almost.mp3" />
  </ClosePositionWithLossSounds>
 

Command line tool for Interactive Brokers

Many times in the past I came across people who needed quick and simple way to send orders to Interactive Brokers. I decided to share command line tool that I use to send orders to TWS and IB Gateway from command line. It can be used in automated trading systems or scripts.

Download:  IbCmdDemo.zip

Few simple examples: 

Buy 100 shares of Facebook at Market

IbCmd.exe /s:FB /pe:Nasdaq

Buy 250 shares of Google at $752.5

IbCmd.exe /s:GOOG /pe:Nasdaq /q:250 /p:752.5

Sell 1 ES (E-Mini S&P 500) at Market

IbCmd.exe /s:ES /e:Globex /t:Future /a:Sell

Full list of parameters for IbCmd 

/ServerIp:<string> IP address of copumter that hosts TWS or TWS Gateway. Default value:'127.0.0.1' (short form /srv)

/ServerPort:<int> Port number. Default value:'7496' (short form /port)

/ClientId:<int> API client id. Default value:'10' (short form /cid)

/Action:{Buy|Sell} Buy or sell. Default value:'Buy' (short form /a)

/Symbol:<string> Symbol of the underlying asset. (short form /s)

/SecurityType:{Stock|Future} Security type. (short form /t)

/Exchange:<string> The order destination, such as SMART. Default value:'SMART' (short form /e)

/PrimaryExchange:<string> To clarify any ambiguity for Smart-routed contracts, include the primary exchange, along with the Smart designation. (short form /pe)

/Quantity:<int> The order quantity. Default is 100 for stocks and 1 for futures. Default value:'0' (short form /q)

/OrderType:{Market|Limit} The order type. Default value:'Market' (short form /ot)

/Price:<decimal>  The price for limit orders. (short form /p)