AddLine()
AddLine()
Definition
Adds line objects on a chart.
Lines are ONLY visible from the UI property grid when AddLine() is called from State.SetDefaults. If your indicator or strategy dynamically adds lines during State.Configure, you will NOT have an opportunity to select the line or to set the line configuration via the UI. Alternatively, you may use custom public Brush, Stroke or value properties which are accessible in the State.SetDefaults and pass those values to AddLine() during State.Configure. Calling AddLine() in this manner should be reserved for special cases. Please see the examples below.
Methods and Properties
Syntax
AddLine(Brush brush, double value, string name)
AddLine(Stroke stroke, double value, string name)
This method should ONLY be called within the OnStateChange() method during State.SetDefaults or State.Configure

