« Return to Thread: Adding new functions to blackcalculator
On Thu, Nov 13, 2008 at 12:42 PM, Dima <dimathematician@...> wrote:
> Ok, good. [...] So, how to proceed?
It would be better if you work on the current trunk version, so
familiarize yourself with svn and check out the trunk snapshot. See
http://quantlib.org/svn.shtml
Also please read the "Developer introduction" at
http://quantlib.org/newdeveloper.shtml
I am the class main developer, but a) I'm not that proud of its design
> Will I work with someone of the core
> developers of the class closely?
b) it's not that complex c) Luigi is THE man
Just post on the dev list and somebody will step up and help you.
Please take a look at the blackformula file, where you can find
> Since I wasn't sure
> what to do with the blackcalculator class.
(hopefully) efficient formula for price and implied vol. You might
probably consider to implement strikeForDelta as function instead of
BlackCalculator class method.
BlackCalculator is just an aggregation of less used formulae with some
common calculation factorized at construction time.
See also BlackScholesCalculator. ImpliedVol and StrikeForDelta might
be wrapped as BlackCalculator methods if needed
check for the payoff and throw, or if you go for the function approach
> It seems,
> like Asset or Nothing and Cash or Nothing options
> are dealed with in the same class. But that is something
> that would be difficult to incorporate for functions such
> as strikeForDelta, since it basically applies to vanilla
> option deltas only.
use the appropriate vanilla payoff signature
It would be appreciated; take a look at Sabr and/or Abcd interpolation
> I can do Vanna-Volga and Malz, if needed.
Feel fre to ask here on the public mailing list any further questions
> Also, I'd need some guidance how
> to start with the contribution...
ciao -- Nando
> 2008/11/13 Ferdinando Ametrano <nando@...>
>>
>> Hi Dimitri
>>
>> > I'm new to this list. I'm thinking about adding new functions
>> > to the blackcalculator, which are in particular needed in the
>> > FX area. In particular, I'd like to add:
>> >
>> > - premium adjusted black scholes deltas (spot and forward)
>> > - functions, which return the strike for a given black scholes delta or
>> > ATM
>> > quotation
>>
>> this would be very much appreciated! I've been thinking about tackling
>> the last issue it's long time now, but never had the occasion.
>> BTW I've noticed that an algorithm is provided in the last version of
>> Haug Fomulas book, anyway i don't know if it is the most efficient
>> algorithm available
>>
>> As for premium adjusted black scholes deltas I'm not familiar with FX,
>> but just go ahead and document the features.
>>
>> And while there, anyone willing to provide Vanna-Volga interpolation?
>>
>> ciao -- Nando
>
>
« Return to Thread: Adding new functions to blackcalculator
| Free embeddable forum powered by Nabble | Forum Help |