> Contract contract = ContractFactory.makeFutureContract("CL", "NYMEX");
> by
>
> Contract contract = ContractFactory.makeFutureContract("CL", "NYMEX",
> "201302");
>
>
>
It is indeed possible to specify the contract expiration directly. What
Marcus is attempting to accomplish is to model the CL contract after the ES
contract, so that the expiration never needs to be specified. Instead, it's
calculated at run time based on the current date and the contract rollover
rules, specifically the contract volume rollover rules.

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