+1 888 340 6572

Miscellaneous > Custom 2 Line

Article/Author: Omega Research Inc., 1997

Download: CUSTOM2.ELA

Category: Indicator > Miscellaneous

Description:

The Custom 2 Lines indicator calculates and plots the values of the numeric expressions specified by the inputs Input1 and Input2. This is designed to allow you to plot any values, that is, the result of any calculations you choose, simply by editing the inputs in the Format Indicator dialog.

Usage:

To get you started, the default settings for Input1 and Input2 are the close. You may substitute any expressions that result in a number, e.g. "range" or "close – close of 3 bars ago". You may also use functions in the expressions. Additionally, this indicator will generate an alert as specified by the input AlrtCond. This input must be an expression that is either true or false, e.g. "range > range of 1 bar ago". The default plot settings are to plot the values in the same subgraph as the price chart. This may also be modified in the Format Indicator dialog box.




Inputs:

Input1 - Value (any numeric expression) to be plotted
Input2 - Value (any numeric expression) to be plotted
AlrtCond - True/False expression used to define the indicator’s alert criteria

EasyLanguage Code:
INPUTS: INPUT1(CLOSE), INPUT2(CLOSE), ALRTCOND(FALSE); 


PLOT1(INPUT1, "CUSTOM1");
PLOT2(INPUT2, "CUSTOM2");

IF ALRTCOND THEN
ALERT("CUSTOM 2 LINE ALERT");