amaggiulli / QLNet

QLNet C# Library
https://amaggiulli.github.io/QLNet/
BSD 3-Clause "New" or "Revised" License
381 stars 175 forks source link

CashFlow / IRR and YTM #61

Closed underwater closed 8 years ago

underwater commented 8 years ago

Just starting with this library, and wondering if someone can help with this use case question

I need to calculate the internal rate of return (IRR) , both for the reporting period (Period IRR) as well as the Annualized IRR for a portfolio. I have already prepared as SimpleCashFlows the

Can I simply use CashFlows.yield(), i.e. the same method I would typically used for calculating YTM on a bond ? If yes, what option should I use for compounding / frequency ?

igitur commented 8 years ago

@underwater This is probably not what you want to hear, but only @amaggiulli and I work on this project. I'm not sure about @amaggiulli , but I can't help you with the answer. I just don't know the entire library well enough. What I suggest is that you ask it on the QuantLib (the C++ version) mailing list. Once you get an answer there and QLNet and QuantLib give different values, let me know, and I'll ensure that QLNet is fixed to be aligned with QuantLib. Hope that is OK?