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!
Draw Vertical Line when criteria meant
- TJ
- Posts: 7740
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2221 times
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/
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/