+1 888 340 6572

Miscellaneous > StockScanner

Article/Author: Emmanuel Lavelanet 1996.

Download: STOCKSCANNER.ELA

File Includes:

Indicator - StockScanner
Function - HighestUniversal

Category: Indicator > Miscellaneous

Description:

Thsi indicator is designed for scanning stock charts or any other charts for commonly requested criteria. Available criteria are: price, highest and lowest meanings of price, volume. If it meet required criteria, it marks suitable bars.

Usage:

Set required inputs and you will get the bars colored.




Inputs:

Price - the price that the user expects to go over either an average of the close or the highest price since a chosen criteria. This depends on what you type into GOESOVER.
GoesOver - determines whether you are tesing against an average price or a highest price:
Type 1 if you want to test against an average
Type 2 if you want to test against a highest price
Type - since this study uses the HighestUniversal function which uses a Type input to determine as of when to calculate the highest price, you need to input a number from 1 to 5
SDate - the date to start looking for your HighestHigh
STime - the time to start looking for your HighestHigh if intraday data is being used. If using daily data than STIME should be Zero
Length - length to be used both in the PriceAverage and VolumeAverage
MoreThan - the price than which you expect your CLOSE to be equal or higher
LessThan - the price than which you expect your CLOSE to be equal or lower
VFloor - the multiplication factor of the volume than which you you expect your volume to be equal or greater.
VCeiling - the multiplication factor of the volume than which you you expect your volume to be equal or less.

EasyLanguage Code:
INPUT:PRICE(HIGH),GOESOVER(0),TYPE(0),SDATE(0),STIME(0),LENGTH(0),MORETHAN(0),

LESSTHAN(0),VFLOOR(1.5),VCEILING(VOLUME * .5);

IF GOESOVER = 1 THEN BEGIN
IF PRICE > AVERAGE(CLOSE,LENGTH) AND
CLOSE >= MORETHAN AND CLOSE <= LESSTHAN AND
VOLUME >= AVERAGE(VOLUME,LENGTH) * VFLOOR OR VOLUME <
AVERAGE(VOLUME,LENGTH) * VCEILING THEN BEGIN
PLOT1(HIGH,"HIGH");
PLOT2(LOW,"LOW");
END;
IF CHECKALERT THEN
ALERT = TRUE;
END;

IF GOESOVER = 2 THEN BEGIN
IF PRICE > HIGHESTUNIVERSAL(TYPE,PRICE,SDATE,STIME)[1] AND
CLOSE >= MORETHAN AND CLOSE <= LESSTHAN AND
VOLUME >= AVERAGE(VOLUME,LENGTH) * VFLOOR OR VOLUME <
AVERAGE(VOLUME,LENGTH) * VCEILING THEN BEGIN
PLOT1(HIGH,"HIGH");
PLOT2(LOW,"LOW");
END;
IF CHECKALERT THEN
ALERT = TRUE;
END;