DrawingHorizontalLine (TimePrice point, int windowIndex)
constructor
Constructor for a horizontal line tool
Syntax
public DrawingHorizontalLine (TimePrice point,int windowIndex)
Parameters
point — TimePrice
windowIndex — int
Discussion
Join PTMC community to post your comments
-
Burhay Vlad 25.09.2017- using PTLRuntime.NETScript.Charts.Drawings;
- Drawing TPline;
- TPline = new DrawingHorizontalLine(new TimePrice(barData.Time(), "YOUR DOUBLE")) { LineColor = Color.CornflowerBlue };
- CurrentChart.Drawings.Add(TPline);
after script work
clear drawings with Complete
- CurrentChart.Drawings.RemoveAll(DrawingRemoveContext.ByScript);
more refs is here