User wants to iterate into daily data of IBM. The user logic
requires for each day:
- the last earning value.
- the date of the next earnings.
- the corresponding 6-weeks exponential moving average of the
close.
| TimeSeries earning = ...; // Earning data TimeSeries ibm_d = ...; // Daily market data TimeSeries ibm_w = ...; // Weekly market data // Calculate the 6-weeks EMA. // ... user logic ... |
WARNING: Work in progress, solution provided is a vague proposal in no particular language and is VERY likely to change as the design/interface is defined.