Tutorial - Scans - Miscellaneous

Now let's look at some other useful scan operators and commands...

The command ROU(expression, n) takes the expression and rounds it based on the number n. For instance, if you supply an n of 0.01, it will round the value (HI + LO) / 2 to the nearest 100th. Similarly, if you specified a value for n of 1, it would have rounded the result to the nearest whole number, and assigned it to V#1.

The STAT scan token is a very powerful tool. In the example above, I have defined the STAT function as the "maximum high of the last 30 periods". Therefore, the scan looks for instruments whose current price is within one point of the highest high of last 30 bars. The STAT function allows you to combine any statistical value from the list on the left below, with any data value from the list on the right. It can represent the minimum low, the average high, the standard deviation of the average price, etc....

Minimum Maximum Average Total Standard Deviation

Last Open High Low Hi + Lo / 2 Hi + Lo + Cl / 3 O + H + L + C / 4 % Change Bid Ask Volume Open Interest Hi - Lo Range Op - Cl Range Stop

The above scan would be used if you had two quotepages, called QP1 and QP2 that you would like to merge into one quotepage. The scan should be run on the ".All Symbols" quotepage and the resulting quotepage would be a merger of quotepages QP1 and QP2. The expression (QP = "QP1") returns TRUE if the instrument is a member of quotepage QP1. Similarly, if you would like to run a scan that would return all common instruments in two quotepages, you would use (QP = "QP1" AND QP = "QP2").

<<Previous<<