The factory method which you are using is only suitable for futures
contracts which expire on the March-June-September-December cycle. These
would be YM, ES, and NQ. For all other contracts, you should specify the
expiration explicitly:

Contract contract = ContractFactory.makeStockContract("HO", "NYMEX",
"200911");

On Thu, Sep 24, 2009 at 2:40 PM, Te Amigo <[email protected]> wrote:

>
> I am just starting to look at JBookTrader. I set up a simple strategy
> for HO (heating oil on NyMex), following the code in StrategyES.java
> and Simple.java. Mainly at this point I just want to gather some data
> via Forward Test. For some reason, the "MostLiquidContract" returned
> via the call ContractFactory.makeFutureContract("HO", "NYMEX") seems
> to be the Dec09 contract rather than the Nov09, which actually has the
> most volume at this point in time.
> Are there any resources, other than the source code, that would be
> helpful to understand JBookTrader's architecture, and specifially, the
> development of Indicators and Strategies? Any help is greatly
> appreciated, thank you.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to