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


Example 1

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





 
 

 


 

The first example is a very simple routine that will be analyzed line by line.

 

  1) !Double bottom strategy

  2) ! A basic double bottom strategy. Looks for today's low price and
  3) ! compares this to the lowest low price between 8 and 70 days
  4) ! ago. If the two lows are very close to each other in price
  5) ! (between 99.5 and 99.9%) the stock had a double bottom.

  6) ! Vary the periods back to check the low, or vary the percentage
  7) ! between the two lows to suit your needs. You may use close 
  8) ! instead of low.


  9) Currentlow is [low].
10) Previouslow is Loval([low],70,8).
11) Low if Currentlow/ Previouslow > 0.995 and Currentlow /Previouslow < 0.999.

Lines 1 thru 8 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 9 is a UDF. This line links the value of today's low with the udf name Currentlow.

Line 10 is also a UDF. This line links the lowest value of the low over a 70 day period beginning

8 days ago with the udf name Previouslow.

 

Line 11 is a rule. The rule low looks for two conditions to be met before it returns a true result. The first condition is that the value of currentlow divided by previouslow must be greater than 0.995. The "and" in line 11 identifies that both conditions must be met for the rule to be true. The second condition is that the value of currentlow divided by previouslow must be less than 0.999. When the rule low is scanned only tickers that have met both conditions are returned.