| 
 
  | 
| 
 Description  | 
 This formula provides a running total of Theoretical Profit values expressed in ticks, or points, gained or lost. 
 While this formula is designed to return a sum of multiple values, it can also be used to convert a single value to ticks.  | 
| 
 
  | 
 
  | 
| 
 Formula  | 
 TheoreticalProfitInTicks=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) end end retval = Scale(nTotal, HUNDREDTHS) end  | 
| 
 
  | 
 
  | 
| 
 Parameters  | 
 The number of arguments in this formula may vary. 
 The arguments are $n references, i.e., 
 TheoreticalProfitInTicks($1, $2, $3, $4, $5)  | 
| 
 
  | 
 
  | 
| 
 Return Value  | 
 Theoretical profit in ticks.  | 
| 
 
  | 
 
  | 
| 
 Examples  | 
 
  | 
| 
 
  | 
 
  | 
| 
 Comments  | 
 NA  | 
©2008 Aspen Research Group, Ltd. All rights reserved. Terms of Use.