|
Description |
This formula provides a running total of Theoretical Profit in dollars. |
|
|
Formula |
TheoreticalProfitInDollars=begin nTotal = 0 thisPrice = NONUM for i = 1 to PARAMCOUNT begin if IsOption($[i]) then thisPrice = $[i].theor1 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.,
TheoreticalProfitInDollars($1, $2, $3, $4, $5) |
|
|
Return Value |
Theoretical profit in dollars. |
|
|
Examples |
|
|
|
Comments |
NA |
©2008 Aspen Research Group, Ltd. All rights reserved. Terms of Use.