> > a) How do you trade an instrument around the clock without making any > manual adjustments to the code? I would like to be able to put a position > and then use a trailing stop loss to re-adjust my position. I know JBT makes > provisions for lost trades when TWS is not connected. How do you modify the > program to run continuously without missing any trades (on a dedicated > server perhaps?) > > ? It can run continuously, but stops trading outside of standard stock exchange hours. If you want to modify that, the code is there. Backtesting will be difficult if the bid-ask-spread gets bigger, because the back-test-data is written as the midpoint, and the profit calculator assumes constant spread. Lots of other little things to worry about, like running a server. JBT is purpose-designed to trade position on the orders of minutes-hours, but not as long as days. If you want to trade outside of standard hours - that is a new challenge. If you want to trade positions for longer than a day, you need a different tool (which could be made using JBT as a good example of how to deal with data and exchanges).
> b) does a single JBT session allows for using multiple instruments to be > traded with the same underlying strategy? if my strategy requires to trade > spot Euro with two nearest month futures contract, is that possible > You will need to make another copy of the class. I do copy-paste-rename when I want to do this. If you know java you can come up with something pretty easily. > > c) what if the strategy requires to address two different accounts? let's > say I have some trades to be placed on a primary account and some offsetting > trades on a hedge-account, is that something do-able with JBT > Uhh... outside the scope of JBT. Each strategy is single instrument, single account. (why would you hedge in another account? that will cause your account balances to flux wildly rather than in small amounts) If you want to modify this, feel free - but it's a lot of work. > > d) latency and delay. assuming you wanted to implement a strategy that aims > for speed of execution, how close can you get to a real-time performance > with IB's platform. From what I have been told and observed, the market > snapshot operates at an interval of 1 second aggregating smaller data > intervals. what can be realistically done to improve on this performance in > terms of hardware or software. > > JBT is designed to record somewhat of a "minimal amount of data" - which very much helps with optimization. If you record data faster, your ram requirements and processing time start growing. It also becomes hard to tell what price your trade will actually take place at, so you can't figure out if you are actually profitable or not Quite honestly I don't think JBT is the tool you would want to use for sub-second trading, and if you have the money to get into that field (equipment, upkeep, etc) you should probably start elsewhere or higher a professional coder and trader, who could use JBT as some example code to get started with. > Thanks, > > > -- > You received this message because you are subscribed to the Google Groups > "JBookTrader" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<jbooktrader%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/jbooktrader?hl=en. > -- You received this message because you are subscribed to the Google Groups "JBookTrader" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jbooktrader?hl=en.
