GammaInDollars

See Also...

Related Topics

 

 

Description

This formula provides a running total of Gamma values expressed as a dollar profit.

 

While this formula is designed to return a sum of multiple values, it can also be used to convert a single value to dollars.

 

 

Formula

GammaInDollars=begin

   nTotal = 0

   thisVal = NONUM

   for i = 1 to PARAMCOUNT begin

      thisVal = TickCalc($[i], GREEK_GAMMA, $[i].qty)

      if thisVal != NONUM then begin

         thisVal = thisVal * $[i].dollars

         nTotal = nTotal + thisVal

      end

   end

   retval = Scale(nTotal, THOUSANDTHS)

end

 

 

Parameters

The number of arguments in this formula may vary.

 

The arguments are $n references, i.e.,

 

GammaInDollars($1, $2, $3, $4, $5)

 

 

Return Value

Gamma in dollars.

 

 

Examples

 

 

Comments

NA

 

©2008 Aspen Research Group, Ltd. All rights reserved. Terms of Use.