Draw Vertical Line when criteria meant

Questions about MultiCharts and user contributed studies.
Posts: 12
Joined: 13 Apr 2007

Draw Vertical Line when criteria meant

Postby trader273 » 07 Feb 2008

I was wondering if anyone knew how to get EL to draw a line when certain criteria are met. EG, Draw horizontal line when MACD crosses above the 0 line. I didn't find too much on how to draw vertical lines so I'm kinda at a lost. Any help would be greatly appreciated!


User avatar
Posts: 7372
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 996 times
Been thanked: 2105 times

Postby TJ » 07 Feb 2008

where do you want to draw the line?

if you want to draw it in a subchart, ABC has provided the keyword here:

if you want to draw the line in price chart, you can use the key word:


This reserved word adds a trendline with the specified starting and ending points to a
price chart. It returns a numeric expression corresponding to the ID number of the
trendline added to the chart. If you want to modify the trendline in any way, it is very
important that you capture and keep the number; the ID number is the only way of
referencing a specific trendline.


Value1 = TL_New(iBarDate, iBarTime, iPrice, eBarDate, eBarTime, ePrice)

more detail in the EASYLANGUAGE REFERENCE GUIDE located here:

Return to “MultiCharts”