+1 888 340 6572

Miscellaneous > HighCloseLines

Article/Author:

Download: HIGHCLOSELINES.ELA

File Includes:

Indicator - ELD HighCloseLines

Category: Indicator > Miscellaneous

Description:

A very simple indicator for those who like to see horizontal lines on a chart showing the current day high, current day low, and previous day close. Lines are plotted only during the current trading day, so as not to disturb viewing previous days chart data.

Usage:

Plots 3 lines for the current day in an intraday chart. The close line is a flat line starting at the previous day's close. The high and low lines step up or down as new highs or lows for the day are established.

Lines are plotted only during the current trading day, so as not to disturb viewing previous days chart data.




Inputs:

High_Color - Color of high line
Low_Color - Color of low line
Close_Color - Color of close line

EasyLanguage Code:

inputs: High_Color( Green ), Low_Color( Red ), Close_Color( Yellow ) ;
variables: CloseValue( 0 ), DayHigh( 0 ), DayLow( 999999 ) ;

{ Setup }
if Time = Sess1EndTime then
begin
CloseValue = Closed( 0 ) ;
DayLow = 999999 ;
DayHigh = 0 ;
end ;

{ Calculation & Plot }
if Time >= Sess1StartTime and
Time <= Sess1EndTime then begin
if High > DayHigh then
DayHigh = High ;
if Low < DayLow then
DayLow = Low ;
Plot1( CloseValue, "CloseValue", Close_Color ) ;
Plot2( DayHigh, "DayHigh", High_Color ) ;
Plot3( DayLow, "DayLow", Low_Color ) ;
end ;