Probably not everything needs to be automated. JBookTrader provides the 
possibility of rolling over manually by means of an overload of 
makeFutureContract. When I start TWS and have the CL future on my 
worksheet, TWS pops up a screen when it is time to roll CL. Whenever that 
happens I will change the expiration date manually. To do this, just replace

Contract contract = ContractFactory.makeFutureContract("CL", "NYMEX");
by

Contract contract = ContractFactory.makeFutureContract("CL", "NYMEX", 
"201302");

and adjust the third parameter accordingly.

>

-- 
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/-/hGKvY3nFAmYJ.
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