check out package com.jbooktrader.platform.trader in jbt. that should point you in the right direction.
also, since it sounds like you're interested in making changes to the jbt framework, and since jbt is fairly small, i'd recommend reading through it to get a feel for what it's doing On Wed, Apr 23, 2014 at 10:21 AM, Chris <[email protected]> wrote: > I have not used Java in about 8 years. I have never used Eclipse. No > biggie though. I am an experienced C++ programmer and Java isn't that much > different. I can figure it out. > > I checked out those links, but that is not what I was looking for. That > is my fault, as I realize now I did not really frame my question properly. > > What I meant was I'm looking for a list of functions/commands that would > be used to receive information from and send information to the Interactive > Brokers' TWS system. For example, JBookTrader has to have some sort of way > to get the data from interactive brokers (what functions do this?). Then > JBookTrader has to send commands to Interactive Brokers to actually make > the trades (what functions do this?). Is there a list of functions that do > this? if so, where? > > Let me give another example. Interactive Brokers' website explains how to > execute trades in terms of "click this" then "enter XYZ number" then > "click that" then click on "T" to execute the trade. Since JBookTrader > is able to autonomously execute trades there has to be some way (I'm > assuming functions in Java) that simulate the user's click this, etc. What > are those functions? Where can I find them? > > Another thing I want to know is where is the list of functions that > implement different types of trades. For example: Interactive Brokers has > a list of different types of orders. Found here: > https://www.interactivebrokers.com/en/index.php?f=4985 > > Where is the list of functions in JBookTrader that will implement these > types of orders/trades? > > I'll give one more example. If I want to execute a stop-limit order (see > here: > https://www.interactivebrokers.com/en/?f=%2Fen%2Ftrading%2Forders%2FstopLimit.php) > I > need to know where to find the functions that will do this. Interactive > Brokers provides what needs to be done in the GUI. E.g. 1. Click the bid > price to execute a sell order. 2. select STP LMT from the type field. > 3. Enter the limit price in the Lmt Price field. 4. Enter the stop > trigger price in the stop price field. 5. Click T to transmit the > order. So, they've provided me with some of the information I need, but > what I don't know (and what I don't know where to find) is the list of > functions in JBookTrader that I will use to simulate this and actually > cause Interactive Brokers to execute a trade for me. > > I apologize if I'm not being clear. And thanks in advance for all your > help. > > Chris. > > > > On Wednesday, April 23, 2014 8:25:56 AM UTC-5, 4myle wrote: > >> check these out: >> >> http://programmers.stackexchange.com/questions/9761/how-to-visualize-code >> http://rayfd.me/2007/05/20/10-eclipse-navigation-shortcuts- >> every-java-programmer-should-know/ >> >> have you not used java/eclipse much? what is your usual dev stack like? >> >> >> >> On Wed, Apr 23, 2014 at 9:04 AM, Chris <[email protected]> wrote: >> >>> I now have a slightly different question. I was able to get Eclipse >>> installed and JBookTrader up and running. I also spent some time looking >>> at the java scripts that come with JBookTrader. Great programming there by >>> the way. Anyway, my question is: Is there a function list somewhere in >>> your program so that I can find things? Or do I need to just scan the code >>> and intuitively figure it out? >>> >>> Thanks, >>> >>> Chris >>> >>> >>> >>> On Tuesday, April 22, 2014 3:18:31 PM UTC-5, Chris wrote: >>> >>>> Nevermind. I figured it out. >>>> >>>> On Tuesday, April 22, 2014 2:44:12 PM UTC-5, Chris wrote: >>>>> >>>>> Well, it looks like I got a little further. I am now getting a >>>>> message that says: "Exactly one argument must be passed, specifying >>>>> JBookTrader home directory." I don't know what to do now. >>>>> >>>>> Thanks for your help. >>>>> >>>>> Chris >>>>> >>>>> On Tuesday, April 22, 2014 1:56:10 PM UTC-5, Chris wrote: >>>>> >>>>>> Windows 7. I have Eclipse 4.3.2. The installation instructions are >>>>>> for Eclipse 3.3.0. My interface does not look the same and I have no >>>>>> idea >>>>>> what to do now. >>>>>> >>>>>> On Tuesday, April 22, 2014 1:49:41 PM UTC-5, 4myle wrote: >>>>>>> >>>>>>> what kind of computer do you have... >>>>>>> >>>>>>> >>>>>>> On Tue, Apr 22, 2014 at 2:47 PM, Chris <[email protected]> wrote: >>>>>>> >>>>>>>> I have a 6th question. I have downloaded eclipse. However, your >>>>>>>> install instructions are from 2008 and are outdated. I'm stuck and not >>>>>>>> knowing what to do next to get Eclipse working with JBookTrader. >>>>>>>> >>>>>>>> Chris >>>>>>>> >>>>>>>> >>>>>>>> On Tuesday, April 22, 2014 9:51:19 AM UTC-5, Eugene Kononov wrote: >>>>>>>> >>>>>>>>> >>>>>>>>>> I have a 5th question. Does JBookTrader have the ability to >>>>>>>>>> perform trailing stops in order to protect profit and limit losses? >>>>>>>>>> >>>>>>>>>> >>>>>>>>> There is no such feature in JBT "out of the box". However, it >>>>>>>>> should not be difficult to code that in the strategy itself. >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> -- >>>>>>>> You received this message because you are subscribed to the Google >>>>>>>> Groups "JBookTrader" group. >>>>>>>> To unsubscribe from this group and stop receiving emails from it, >>>>>>>> send an email to [email protected]. >>>>>>>> To post to this group, send email to [email protected]. >>>>>>>> Visit this group at http://groups.google.com/group/jbooktrader. >>>>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>>>> >>>>>>> >>>>>>> -- >>> You received this message because you are subscribed to the Google >>> Groups "JBookTrader" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To post to this group, send email to [email protected]. >>> Visit this group at http://groups.google.com/group/jbooktrader. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- > You received this message because you are subscribed to the Google Groups > "JBookTrader" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/jbooktrader. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "JBookTrader" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/jbooktrader. For more options, visit https://groups.google.com/d/optout.
