MultiCharts Easter Sale has jumped in! Up to 50% off Explore offers
+1 888 340 6572 GET STARTED

Miscellaneous > Custom 3 Line

Article/Author: Omega Research Inc., 1997

Download: CUSTOM3.ELA

Category: Indicator > Miscellaneous

Description:

The Custom 3 Lines indicator calculates and plots the values of the numeric expressions specified by the inputs Input1, Input2 and Input3. 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, Input2 and Input3 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.




Inputs:

Input1 - Value (any numeric expression) to be plotted
Input2 - Value (any numeric expression) to be plotted
Input3 - 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), INPUT3(CLOSE), ALRTCOND(FALSE);


PLOT1(INPUT1, "CUSTOM1");
PLOT2(INPUT2, "CUSTOM2");
PLOT3(INPUT3, "CUSTOM3");

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