1. Are 'ES', 'EUR', 'NQ', QQQ, etc are the name of instrument and the 
> classes named StrategyES.java,  StrategyEUR.java, StrategyNQ, StrategyQQQ  
> are the strategy classes for each instrument respectively?
>
>
There is number of sample strategies included with JBT, and all of them use 
the ES as the trading instrument. Conceptually, it made sense to encapsulate 
the ES-specific setup ina separate class, so this is what StrategyES.java is 
about. When you extend StrategyES.java, you are implementing your own 
strategy that trades the ES. The same goes for the other symbols.

 

> 2. Are LongDefender1.java, LongDefender2.java, Simple.java,etc are the 
> Strategy classes which uses the above classes for Trading to TWS? 
>
>
Yes, they are all sample strategies. Note that every strategy in JBT can run 
in 4 different modes: trading, forward-testing, backtesting, and 
optimization. No code modifications are required for this.

 

> 3. I downloaded the TWS Java API and configured it in Netbeans. It gave me 
> a huge UI with number of buttons on the right side and 3 console bar on the 
> left.  Now, please suggest me how can I embed my Strategy Panel inside this 
> TWS Java API such that I can see strategy panel directly inside the TWS API 
> and not open JBT and TWS java api separately. 
>
>
TWS is the software developed by Interactive Brokers, and I have no control 
over it. JBT simply connects to an open port in TWS and that's how auto 
trading becomes possible. The information flow can be represented as this 
(very simplified): JBT->IB API->TWS->Exchange. There is no way to embed your 
own panels inside TWS. However, Interactive Brokers also publishes another 
piece of software, known as IBGateway. It's a much simpler version of TWS, 
and JBT works with it the same way it works with TWS. You can live trade or 
forward test your strategies in JBT with either TWS or IBGateway. This forum 
specifically is for JBT discussion. There are many other resources for TWS 
discussions. TWS itself has a lengthy user manual.




 

-- 
You received this message because you are subscribed to the Google Groups 
"JBookTrader" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/jbooktrader/-/4MowA62sMmMJ.
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.

Reply via email to