Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

mainoptionstrategy.cpp File Reference

#include "../PartA/BlackScholes/OptionStrategy.h"
#include "../PartA/BlackScholes/BlackScholes.h"
#include <iostream>

Go to the source code of this file.

Functions

bool mainoption (void)
 test the BS option pricing functionality

bool mainoptionstrategy (void)
 test the option strategy functionality


Function Documentation

bool mainoption void   ) 
 

test the BS option pricing functionality

Returns:
true if pass, otherwise fail

Definition at line 5 of file mainoptionstrategy.cpp.

References Call, BlackScholes::getDelta(), BlackScholes::getGamma(), BlackScholes::getPrice(), BlackScholes::getRho(), BlackScholes::getTheta(), BlackScholes::getVega(), BlackScholes::getVolatility(), and LongNatural.

Referenced by maintests().

bool mainoptionstrategy void   ) 
 

test the option strategy functionality

Returns:
true if pass, otherwise fail

Definition at line 26 of file mainoptionstrategy.cpp.

References OptionStrategy::addLongButterflySpread(), OptionStrategy::getGlobalDelta(), and OptionStrategy::returnPrice().

Referenced by maintests().


Note: Generated nightly - reload for latest version
Generated on Thu Dec 22 23:12:37 2005 for terreneuve by doxygen 1.3.6