+1 888 340 6572

Miscellaneous > CombineDays

Article/Author: Omega Research Inc., 1995

Download: combine.ela

File Includes: Indicator - CombineDays

Category: Indicator > Miscellaneous

Description:

Combine a number of days to produce a OHLC bar chart of those days, i.e. two day OHLC bar chart.

Usage:

Just set the number of bars and the indicator will plot the OHLC bars depending on that number.




Inputs:

NumDays - required period

EasyLanguage Code:
INPUTS: NUMDAYS(2);


IF FRACPORTION(CURRENTBAR / NUMDAYS) = 0 THEN BEGIN
PLOT1(OPEN[NUMDAYS -1],"OPEN");
PLOT2(HIGHEST(HIGH,NUMDAYS),"HIGH");
PLOT3(LOWEST(LOW,NUMDAYS),"LOW");
PLOT4(CLOSE,"CLOSE");
END;