Open alexveden opened 7 years ago
Also maybe we could handle option expiration type like 'W' -weeklys, 'Q' - quarter, 'M' - monthly options. But it's also possible to do from the source code of the strategy, maybe this way could be more reliable.
I cannot think of any particular objection it sounds good. To confirm you are thinking of including the respective futures ticker inside the asset ticker for the option with the suffix to represent the expiration cycle?
Sent from my iPhone
On Feb 7, 2017, at 4:48 AM, alexveden notifications@github.com<mailto:notifications@github.com> wrote:
Also maybe we could handle option expiration type like 'W' -weeklys, 'Q' - quarter, 'M' - monthly options. But it's also possible to do from the source code of the strategy, maybe this way could be more reliable.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/trendmanagement/Tmqr-framework-2/issues/5#issuecomment-277989266, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ARobLHaqivWBADqcchtDcjSQ3q2jizvkks5raGgCgaJpZM4L5ajk.
To confirm you are thinking of including the respective futures ticker inside the asset ticker for the option with the suffix to represent the expiration cycle?
I thought about that, but I've decided to use information useful only internally in the backtester, but all additional data for futures and options will be inside asset index records.
Future asset index record:
Option record:
I'm working on exporting data from SQL to new Mongo asset index, so I propose to use following naming convention:
For futures: Source contract name:
F.US.CLEM83
Asset index tickerUS.F.CLM83.830520
, where:For options: Source name:
C.US.USAG118900
Asset index ticker:US.C.F-ZBH11.110121@89.0
, where:S-AAPL
), it's implied that futures and options located in same market (not exchange, let say abstract market - US). So I can access to the future by requesting US.F.ZBH11For stocks ticker name could be 'US.S.AAPL' or 'RU.S.GAZP'
For instruments naming convention I think we need to use
US.CL
,US.ES
, etc.I selected such way of name due to following reasons:
I can parse future or option ticker and get almost all data which I need for calculations, this approach reduces the workload of the DB and tend to be more human readable, because all information included to the name.
These names are only for backtesting use, all information for execution will be in the Mongo asset index, and execution software can poll everything.
What do you think?