AIQ is a part of Track Data Corporation (NASD symbol TRAC) www.trackdata.com


Example 3

This section is designed to give examples of an actual routine and an explanation of how of each part of the routine works.





 
 

 


 

This example will analyze the CountOf function line by line.

  1) ! You can use the CountOf function to see 
  2) ! if a rule is true over a specified period
  

  3) ! Create a rule.
  4) ERUP if [er up] >= 95.
  

  5) ! Use CountOf to count how many times the rule was true in 21 days
  6) MultipleERs if CountOf(erup,21) > 5.
  

Lines 1 thru 3 & 5 are comments. They are identified by exclamation marks at the beginning of each line. 

EDS will not process lines that start with an exclamation mark.

Line 4 is a rule. This line links a true/false value with the rule name ERUP. This line looks for tickers that have an Expert Rating of greater than or equal to 95.

Line 6 is also a rule. This line links a true/false value with the rule name MultipleERs. This line looks to see how many times the ERUP rule is true over a 21 day period. By indicating that the countof needs to be greater than 5 the rule ERUP needs to be true more than 5 times over a 21 day period.