| 
 
  | 
| 
 Description  | 
 This formula provides a running total of Profit in dollars.  | 
| 
 
  | 
 
  | 
| 
 Formula  | 
 ProfitInDollars=begin nTotal = 0 thisPrice = NONUM for i = 1 to PARAMCOUNT begin if IsOption($[i]) then thisPrice = $[i].oprice else thisPrice = $[i].uprice if thisPrice != NONUM AND $[i].qty != NONUM AND $[i].price != NONUM then begin nTotal = nTotal + Profit(thisPrice, $[i].price, $[i].qty) * $[i].dollars end end retval = Scale(nTotal, HUNDREDTHS) end  | 
| 
 
  | 
 
  | 
| 
 Parameters  | 
 The number of arguments in this formula may vary. 
 The arguments are $n references, i.e., 
 ProfitInDollars($1, $2, $3, $4, $5)  | 
| 
 
  | 
 
  | 
| 
 Return Value  | 
 Profit in dollars  | 
| 
 
  | 
 
  | 
| 
 Examples  | 
 
  | 
| 
 
  | 
 
  | 
| 
 Comments  | 
 NA  | 
©2008 Aspen Research Group, Ltd. All rights reserved. Terms of Use.