| 
 
  | 
| 
 Description  | 
 This formula asks whether an instrument is an option. If the instrument is an option, the formula returns TRUE.  | 
| 
 
  | 
 
  | 
| 
 Formula  | 
 IsOption(instrument)=begin bOption = FALSE if instrument.type >= 128 then bOption = TRUE bOption end  | 
| 
 
  | 
 
  | 
| 
 Parameters  | 
 instrument The instrument argument specifies which instrument to evaluate.  | 
| 
 
  | 
 
  | 
| 
 Return Value  | 
 TRUE or FALSE  | 
| 
 
  | 
 
  | 
| 
 Examples  | 
 ProfitInTicks=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) end end retval = Scale(nTotal, HUNDREDTHS) end  | 
| 
 
  | 
 
  | 
| 
 Comments  | 
 
  | 
©2008 Aspen Research Group, Ltd. All rights reserved. Terms of Use.