Hello everyone ,
These functions built a few years ago, can improve them?
These functions calculate the option prices.
They call and put options , computers all options in range,
I work with Excel 2010.
Functions are red font.
Thank you ! G.xlsm
Hello everyone ,
These functions built a few years ago, can improve them?
These functions calculate the option prices.
They call and put options , computers all options in range,
I work with Excel 2010.
Functions are red font.
Thank you ! G.xlsm
A little shorter, but not much in it. Uses x as the OptQnt index rather than using a separate counter that needs to be incremented.
![]()
Please Login or Register to view this content.
Regards, TMS
Trevor Shuttleworth - Retired Excel/VBA Consultant
I dream of a better world where chickens can cross the road without having their motives questioned
'Being unapologetic means never having to say you're sorry' John Cooper Clarke
Hi TMS ,
Thanks for your help !
If I give up on multifly , and enclose it in a cell on a sheet, is that it is better in terms of speed?
Better to use 2.71828182845904 instead of the function EXP ?
Regards,
David
I'm not sure what that sentence means. multifly is the 5th parameter passed to each UDF and, in each case, it has a fixed value of 100.
Not sure what you mean about putting it in a cell.
No idea if it will improve performance. If it's a fixed value of 100, I don't see why it needs to be double but, if all the parameters are doubles it's probably better to be consistent so that there are no conversions.
Regards, TMS
You're welcome. Thanks for the rep.
If you are satisfied with the solution(s) provided, please mark your thread as Solved.
New quick method:
Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.
Or you can use this way:
How to mark a thread Solved
Go to the first post
Click edit
Click Go Advanced
Just below the word Title you will see a dropdown with the word No prefix.
Change to Solved
Click Save
You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks