+1 888 340 6572

Miscellaneous > PcntChange Pic2Pic

Article/Author: Omega Research Inc., 1996

Download: PCNTCNG_PIC2PIC.ELA

File Includes:

Indicator - PcntChange Pic2Pic
Function - PcntChangeFrmPic2Pic

Category: Indicator > Miscellaneous

Description:

Plots the Percent Change between two User Specified Dates (and times if one is using Intra-Day Data).

Usage:

Set starting date and time and ending date and indicator will plot required information. Date format: YYYMMDD




Inputs:

StrtDate - Starting Date
StrtTime - Starting Time
EndDate - Ending Date
Price - Price type to use
NOTE: There is no EndTime Input for this Study.

EasyLanguage Code:
INPUTS:  STRTDATE(0), STRTTIME(0), ENDDATE(0), PRICE(HIGH);


IF DATE = STRTDATE AND (TIME = STRTTIME OR (STRTTIME = 0 AND DATE > DATE[1])) THEN
PLOT1(PCNTCHANGEFRMPIC2PIC(STRTDATE, STRTTIME, ENDDATE, PRICE), "BEGIN");


IF (DATE = STRTDATE AND (TIME >= STRTTIME OR STRTTIME = 0)) OR (DATE > STRTDATE AND
DATE < ENDDATE) THEN
PLOT2(PCNTCHANGEFRMPIC2PIC(STRTDATE, STRTTIME, ENDDATE, PRICE),"PCNTCHNG");


IF DATE = ENDDATE AND DATE > DATE[1] THEN BEGIN
PLOT2(PCNTCHANGEFRMPIC2PIC(STRTDATE, STRTTIME, ENDDATE, PRICE),"PCNTCHNG");
PLOT3(PCNTCHANGEFRMPIC2PIC(STRTDATE, STRTTIME, ENDDATE, PRICE), "END");
END;