The fnDeleteTrendLine function is used to programatically delete a trend line from a price chart.


After the fnDeleteTrendLine function has been added to a Drawing, it is configured by clicking the (+) button along the bottom of the Element.


The Function Configuration window allows you to select values for each parameter.



Parameter Name

Data type

Description

name

string

The name of the trend line.  All trend lines are identified by name.  The name should be unique. The pull-down menu provides sample names, but the text can be overwritten to any allowable name.  The name must be surrounded by double quotes, for example "myName". Avoid using blank spaces in the name: It may cause unpredictable behaviour.


Note: Any and all trend lines that match the name are deleted from the price chart.  This includes trend lines created both manually and programatically.