Draw Vertical Line when criteria meant

Questions about MultiCharts and user contributed studies.
trader273
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
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 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:
http://forum.tssupport.com/viewtopic.php?t=4730


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

TL_NEW

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.

Syntax:

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


more detail in the EASYLANGUAGE REFERENCE GUIDE located here:
http://www.tssupport.com/support/tutorials/


Return to “MultiCharts”