Вы находитесь на странице: 1из 2

Vertical Line TSF

using elsystem ;

using elsystem.drawing ;

using elsystem.drawingobjects ;

inputs:

MinutesAhead( 5 ),

VLColor( White ),

Transparency( 50 ) ; ;

method void DrawVLine()

variables: VerticalLine VLine, DTPoint DTP, DateTime DT, int TransparencyValue ;

begin

TransparencyValue = Round( 0.01 * ( 100 - transparency ) * 255, 0 ) astype int;

DT = BarDateTime ;

DT.AddMinutes( MinutesAhead ) ;

DTP = DTPoint.Create( DT, Close ) ;

VLine = VerticalLine.Create( DTP ) ;

VLine.Color = Color.FromArgb( TransparencyValue, GetRValue( VLColor ), GetGValue( VLColor ),


GetBValue( VLColor ));

VLine.Style = StyleType.Dashed ;

VLine.Lock = true ;

DrawingObjects.Add( VLine ) ;

end ;

if Mod( Time, MinutesAhead ) = 0 then

DrawVLine() ;

Вам также может понравиться