Commit Graph

7 Commits

Author SHA1 Message Date
Stefano Raggi f7e06510d4 Fix missing front month contract in energy futures backtesting
Energy futures (CL, HO, RB, NG) expire in the month before the contract month.

To handle these properly, the following changes have been implemented:
- the AlgoSeekFuturesReader has been updated to create the future symbol with the correct expiry date
- the zip entry names in futures data files now contain the full expiry date (in addition to the contract month)
- the sample data files have been updated to use the new zip entry names
- new unit tests have been added and existing ones updated
2019-04-29 09:40:59 +02:00
Martin Molinero e34084f5b9 Improving documentation for Future Ticker generator and parser 2018-09-13 16:03:22 -03:00
Martin Molinero c24a12f6b9 Futures ticker will now support daily and weekly expirations 2018-09-11 17:46:28 -03:00
Michael Handschuh 25fd441fc1 Add GenerateOSI ticker overload and Parse method
Useful when writing regression tests to be able to use the OSI ticker
to define an expected option contract.
2018-05-30 15:54:06 -04:00
Stefano Raggi a533a019cb Fix symbol mapping with futures expiring before contract month
Some Futures (CL, HO, RB, NG) expire during the month before the contract month. Incorrect symbol mapping was causing two issues:
- IB requests were returning an "Ambiguous contract" error
- The ticker generated by SymbolRepresentation was referring to the previous contract month
2017-11-02 17:48:44 +01:00
Anshul 41345fad51 Fixes Six warnings with code CS1570 2017-06-12 17:36:34 +05:30
quant1729 145ba7bd83 Updated code as per PR 2017-01-02 19:47:23 +01:00