Posted by
Peter Caspers-4 on
Apr 13, 2015; 1:20pm
URL: http://quantlib.414.s1.nabble.com/Asset-swap-spread-calculation-tp16457p16472.html
yes, but here you are shifting the date backwards again (fixingDays is
2 ?), don't you ?
Maybe you can just output the different dates to be sure, that
trade date = global eval date = yts reference date = 07-04-0215
settlement date = trade date + 2bd
?
You could also do the setting "includeReferenceDateCashFlows = true"
to include the missing flow in the NPV, but I guess it's better if you
go through the dates first.
On 13 April 2015 at 15:13, MDecau <
[hidden email]> wrote:
> Yes, that's true, I'm not using the right variable names in Program.cs and in
> MarketData.cs (for the pSettlementDate parameter). It should be TradeDate
> instead of SettlementDate at several places.
>
> I think that I do Settings::instance().evaluationDate() = settlementDate in
> MarketData.cs through :
> todaysDate = calendar.advance(settlementDate, -fixingDays, TimeUnit.Days);
> Settings.setEvaluationDate(todaysDate);
>
>
>
> --
> View this message in context:
http://quantlib.10058.n7.nabble.com/Asset-swap-spread-calculation-tp16457p16471.html> Sent from the quantlib-users mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
> Develop your own process in accordance with the BPMN 2 standard
> Learn Process modeling best practices with Bonita BPM through live exercises
>
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
> source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
> _______________________________________________
> QuantLib-users mailing list
>
[hidden email]
>
https://lists.sourceforge.net/lists/listinfo/quantlib-users------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users