DrawingObjects
AddChartAndrewsPitchfork()
Description
This drawing object draws an Andrew’s Pitchfork.
Information concerning its usage: - vtad.de - hvolumen-analyse.de - Godmode-Trader.de
Usage
Return Value
A drawing object of the type IAndrewsPitchfork (interface)
Parameter
name
A clearly identifiable name for the drawing object
autoScale
Adjusts the scale of the y-axis so that drawing objects can be viewed in their entirety
start1BarsBack
Number of bars ago for start point 1 (x-axis)
start1Time
Date/time for start point 1 (x-axis)
start1Y
y-value for start point 1
start2BarsBack
Number of bars ago for start point 2 (x-axis)
start2Time
Date/time for start point 2 (x-axis)
start2Y
y-value for start point 2
start3BarsBack
Number of bars ago for start point 3 (x-axis)
start3Time
Date/time for start point 3 (x-axis)
start3Y
y-value for start point 3
color
Color of the object
dashStyle
LevelLine styles:
DashStyle.Dash
DashStyle.DashDot
DashStyle.DashDotDot
DashStyle.Dot
DashStyle.Solid
You may have to integrate: using System.Drawing.Drawing2D;
width
LevelLine strength in points
Example
AddChartArc()
Description
AddChartArc() draws a circular arc.
Usage
Return Value
A drawing object of the type IArc (interface)
Parameter
name
A clearly identifiable name for the drawing object
IsAutoScale
Adjusts the scale of the y-axis so that drawing objects can be viewed in their entirety
startX, startY
Beginning of the arch line
middleX, middleY
Top arc coordinate
endX, endY
end of the arch line
barsBackEnd
Number of bars ago for the end point
endTime
Date/time for the end point
endY
y-value for the end point
color
Color of the drawing object
dashStyle
LevelLine style:
DashStyle.Dash
DashStyle.DashDot
DashStyle.DashDotDot
DashStyle.Dot
DashStyle.Solid
You may have to integrate: using System.Drawing.Drawing2D;
width
LevelLine strength in points
Example
AddChartArrowDown()
Description
AddChartArrowDown() draws an arrow pointing downwards:
See AddChartArrowUp(), AddChartArrowDown(), AddChartDiamond(), AddChartDot(), AddChartSquare(), AddChartTriangleUp(), AddChartTriangleDown().
Usage
Return Value
A drawing object of the type IArrowDown (interface)
Parameter
name
A clearly identifiable name for the drawing object
autoScale
Adjusts the scale of the y-axis so that drawing objects can be viewed in their entirety
barsAgo
Sets the preceding bar on which the arrow should be drawn (0 = current bar)
time
Date/time of the bar on which the arrow should be drawn
y
y-value for the arrow
color
Color of the drawing object
Example
AddChartArrowLine()
Description
AddChartArrowLine() draws an arrow:
Usage
Return Value
A drawing object of the type IArrowLine (interface)
Parameter
name
A clearly identifiable name for the drawing object
autoScale
Adjusts the scale of the y-axis so that drawing objects can be viewed in their entirety
barsBackStart
Sets the preceding bar at which the arrow should start (0 = current bar)
startTime
Date/time of the bar at which the arrow should start
startY
y-value for the starting point of the arrow
barsBackEnd
Sets the preceding bar at which the arrow should end (0 = current bar)
endTime
Date/time at which the arrow should end
endY
y-value at which the arrow should end
color
Color of the drawing object
dashStyle
LevelLine style:
DashStyle.Dash
DashStyle.DashDot
DashStyle.DashDotDot
DashStyle.Dot
DashStyle.Solid
You may have to integrate: using System.Drawing.Drawing2D;
width
LevelLine strength in points
Example
AddChartArrowUp()
Description
AddChartArowUp() draws an arrow pointing upwards:
See AddChartArrowUp(), AddChartArrowDown(), AddChartDiamond(), AddChartDot(), AddChartSquare(), AddChartTriangleUp(), AddChartTriangleDown().
Usage
Return Value
A drawing object of the type IArrowUp (interface)
Parameter
name
A clearly identifiable name for the drawing object
autoScale
Adjusts the scale of the y-axis so that drawing objects can be viewed in their entirety
barsAgo
Sets the preceding bar on which the arrow should be drawn (0 = current bar)
time
Date/time at which the arrow should be drawn
y
y-value for the arrow
color
Color of the drawing object
Example
AddChartDiamond()
Description
AddChartDiamond() draws a diamond:
See AddChartArrowUp(), AddChartArrowDown(), AddChartDiamond(), AddChartDot(), AddChartSquare(), AddChartTriangleUp(), AddChartTriangleDown().
Usage
Return Value
A drawing object of the type IDiamond (interface)
Parameter
name
A clearly identifiable name for the drawing object
autoScale
Adjusts the scale of the y-axis so that drawing objects can be viewed in their entirety
barsAgo
Defines the preceding bar on which the diamond should be drawn
time
Date/time of the bar on which the diamond should be drawn
y
y-value on which the diamond should be drawn
color
Color of the drawing object
Example
AddChartDot()
Description
AddChartDot() draws a dot:
See AddChartArrowUp(), AddChartArrowDown(), AddChartDiamond(), AddChartDot(), AddChartSquare(), AddChartTriangleUp(), AddChartTriangleDown().
Usage
Return Value
A drawing object of the type IDot (interface)
Parameter
name
A clearly identifiable name for the drawing object
autoScale
Adjusts the scale of the y-axis so that drawing objects can be viewed in their entirety
barsAgo
Defines the preceding bar on which the dot should be drawn (0 = current bar)
time
The date/time at which the dot should be drawn
y
y-value at which the dot should be drawn
color
Color of the drawing object
Example
AddChartEllipse()
Description
AddChartEllipse() draws an ellipse.
Usage
Return Value
A drawing object of the type IEllipse (interface)
Parameter
name
A clearly identifiable name for the drawing object
autoScale
Adjusts the scale of the y-axis so that drawing objects can be viewed in their entirety
barsBackStart
Sets the preceding bar at which the ellipse should start
startTime
Date/time at which the ellipse should start
startY
y-value for the start of the ellipse
barsBackEnd
Sets the preceding bar at which the ellipse should end (0 = current bar)
endTime
Date/time at which the ellipse should end
endY
y-value for the end of the ellipse
color
Border color of the drawing object
areaColor
Fill color of the drawing object
areaOpacity
Transparency of the fill color value between 0 and 255 (0 = completely transparent , 255 = completely opaque)
Example
AddChartExtendedLine()
Description
AddChartExtendedLine() draws a line with an infinite end point.
See AddChartLine(), AddChartHorizontalLine(), AddChartVerticalLine(), AddChartRay().
Usage
Return Value
A drawing object of the type IExtendedLine (interface)
Parameter
name
A clearly identifiable name for the drawing object
autoScale
Adjusts the scale of the y-axis so that drawing objects can be viewed in their entirety
barsBackStart
Number of bars ago for the start point
startTime
Date/time for the start point
startY
y-value for the start point
barsBackEnd
Number of bars ago for the second point (a true end point does not exist; the line extends to infinity)
endTime
Date/time for the end point
endY
y-value for the end point
color
Color of the drawing object
dashStyle
LevelLine styl :
DashStyle.Dash
DashStyle.DashDot
DashStyle.DashDotDot
DashStyle.Dot
DashStyle.Solid
You may have to integrate: using System.Drawing.Drawing2D;
width
LevelLine strength in points
Example
AddChartFibonacciCircle()
Description
AddChartFibonacciCircle() draws a Fibonacci circle.
Usage
Return Value
A drawing object of the type IFibonacciCircle (interface)
Parameter
name
A clearly identifiable name for the drawing object
autoScale
Adjusts the scale of the y-axis so that drawing objects can be viewed in their entirety
barsBackStart
Defines the starting point in terms of bars ago
startTime
Date/time of the bar for the starting point
startY
y-value for the start of the Fibonacci circle
barsBackEnd
Defines the end point in terms of bars ago
endTime
Date/time for the end of the Fibonacci circle
endY
y-value for the end point of the Fibonacci circle
Example
AddChartFibonacciExtensions()
Description
AddChartFibonacciExtensions() draws Fibonacci extensions.
Usage
Return Value
A drawing object of the type IFibonacciExtensions (interface)
Parameter
name
A clearly identifiable name for the drawing object
autoScale
Adjusts the scale of the y-axis so that drawing objects can be viewed in their entirety
start1BarsAgo
Number of bars ago for start point 1
start1Time
Date/time for start point 1
start1Y
y-value for start point 1
start2BarsAgo
Number of bars ago for start point 2
start2Time
Date/time for start point 2
start2Y
y-value for the start point 2
start3BarsAgo
Number of bars ago for start point 3
start3Time
Date/time for start point 3
start3Y
y-value for start point 3
Example
AddChartFibonacciProjections()
Description
Draw Fibonacci Projections () sketches Fibonacci Projections.
Usage
Return Value
A drawing object of the type IFibonacciProjections (Interface)
Parameter
name
A clearly identifiable name for the drawing object
autoScale
Adjusts the scale of the y-axis so that drawing objects can be viewed in their entirety
start1Time
Date/time for start point 1
start1Y
y-value for start point 1
start2Time
Date/time for start point 2
start2Y
y-value for the start point 2
start3Time
Date/time for start point 3
start3Y
y-value for start point 3
Example
AddChartFibonacciRetracements()
Description
AddChartFibonacciRetracements() draws Fibonacci retracements.
Usage
Return Value
A drawing object of the type IFibonacciRetracements (interface)
Parameter
name
A clearly identifiable name for the drawing object
autoScale
Adjusts the scale of the y-axis so that drawing objects can be viewed in their entirety
barsBackStart
Defines how many bars ago the starting point of the Fibonacci retracement is located
startTime
Date/time of the bar at which the Fibonacci retracement should begin
startY
y-value at which the Fibonacci retracement will begin
barsBackEnd
Defines how many bars ago the end point of the Fibonacci retracement is located
endTime
Date/time at which the Fibonacci retracement should end
endY
y-value at which the Fibonacci retracement should end
Example
AddChartFibonacciTimeExtensions()
Description
AddChartFibonacciTimeExtensions() draws Fibonacci time extensions.
Usage
Return Value
A drawing object of the type IFibonacciTimeExtensions (interface)
Parameter
name
A clearly identifiable name for the drawing object
barsBackStart
Defines how many bars ago the extensions should start
startTime
Date/time at which the extensions should start
startY
y-value at which the extensions should start
barsBackEnd
Defines how many bars ago the extensions should end
endTime
Date/time at which the extensions should end
endY
y-value at which the extensions should end
Example
AddChartGannFan()
Description
AddChartGannFan() draws a Gann fan.
Usage
Return Value
A drawing object of the type IGannFan (interface)
Parameter
name
A clearly identifiable name for the drawing object
autoScale
Adjusts the scale of the y-axis so that drawing objects can be viewed in their entirety
barsAgo
Sets the preceding bar on which the Gann fan should be drawn
time
Date/time at which the Gann fan should start
y
y-value for the Gann fan
Example
AddChartHorizontalLine()
Description
AddChartHorizontalLine() draws a horizontal line in the chart.
See AddChartLine(), AddChartVerticalLine(), AddChartVerticalLine(), AddChartRay().
Usage
Return Value
A drawing object of the type IHorizontalLine (interface)
Parameter
name
A clearly identifiable name for the drawing object
autoScale
Adjusts the scale of the y-axis so that drawing objects can be viewed in their entirety
y
Any double value of your choice
color
LevelLine color
dashStyle
LevelLine style:
DashStyle.Dash
DashStyle.DashDot
DashStyle.DashDotDot
DashStyle.Dot
DashStyle.Solid
You may have to integrate: using System.Drawing.Drawing2D;
width
LevelLine strength
Example
AddChartLine()
Description
AddChartLine() draws a (trend) line.
See AddChartLine(), AddChartVerticalLine(), AddChartVerticalLine(), AddChartExtendedLine(), AddChartRay().
Usage
Return Value
A drawing object of the type ITrendLine (interface).
Parameter
name
A clearly identifiable name for the drawing object
autoScale
Adjusts the scale of the y-axis so that drawing objects can be viewed in their entirety
barsBackStart
Number of bars ago for the starting point
startTime
Date/time for the starting point
startY
y-value for the starting point
barsBackEnd
Number of bars ago for the end point
endTime
Date/time for the end point
endY
y-value for the end point
color
Color of the drawing object
dashStyle
LevelLine style:
DashStyle.Dash
DashStyle.DashDot
DashStyle.DashDotDot
DashStyle.Dot
DashStyle.Solid
You may have to integrate: using System.Drawing.Drawing2D;
width
LevelLine strength in points
Example
AddChartRay()
Description
AddChartRay() draws a (trend) line and extends it to infinity.
See AddChartLine(), AddChartHorizontalLine(), AddChartVerticalLine(), AddChartExtendedLine(), AddChartRay().
Usage
Return Value
A drawing object of the type IRay (interface)
Parameter
name
A clearly identifiable name for the drawing object
autoScale
Adjusts the scale of the y-axis so that drawing objects can be viewed in their entirety
start1BarsAgo
Number of bars ago for start point 1
start1Time
Date/time for anstartchor point 1
start1Y
y-value for start point 1
start2BarsAgo
Number of bars ago for start point 2
start2Time
Date/time for start point 2
start2Y
y-value for start point 2
color
Color of the drawing object
dashStyle
LevelLine style
DashStyle.Dash
DashStyle.DashDot
DashStyle.DashDotDot
DashStyle.Dot
DashStyle.Solid
You may have to integrate: using System.Drawing.Drawing2D;
width
LevelLine strength
Example
AddChartRectangle()
Description
AddChartRectangle() draws a rectangle.
Usage
Return Value
A drawing object of the type IRectangle (interface)
Parameter
name
A clearly identifiable name for the drawing object
autoScale
Adjusts the scale of the y-axis so that drawing objects can be viewed in their entirety
barsBackStart
Sets the preceding bar at which the one corner of the rectangle should be located (0 = current bar)
startTime
Date/time at which the start of the one rectangle corner should be located
startY
y-value at which the one corner of the rectangle should be located
barsBackEnd
Sets the preceding bar at which the second corner of the rectangle should be located (0 = current bar)
endTime
Date/time of the second rectangle corner
endY
y-value of the second rectangle corner
color
Color of the drawing object
areaColor
Fill color of the drawing object
areaOpacity
Transparency of the fill color. Value between 0 and 255 (0 = completely transparent, 255 = completely opaque)
Example
AddChartRegion()
Description
AddChartRegion() fills a specific area on a chart.
Usage
Return Value
A drawing object of the type IRegion (interface)
Parameter
name
A clearly identifiable name for the drawing object
barsBackStart
Sets the preceding bar at which the drawing should begin (0 = current bar)
startTime
Start time for the drawing
barsBackEnd
Sets the preceding bar at which the drawing should end (0 = current bar)
endTime
End time for the drawing
series1, series2
Every data series, for example an indicator, close, high, low and so on. The respective value of the data series for the current bar is used as a y-value.
y
Any double value
outlineColor
Color for the border
areaColor
Fill color for the area
areaOpacity
Transparency of the fill color. Value between 0 and 255 (0 = completely transparent, 255 = completely opaque)
Example
AddChartRegressionChannel()
Description
AddChartRegressionChannel() draws a regression channel.
Usage
Return Value
A drawing object of the type IRegressionChannel (interface)
Parameter
name
A clearly identifiable name for the drawing object
autoScale
Adjusts the scale of the y-axis so that drawing objects can be viewed in their entirety
barsBackStart
Sets the preceding bar at which the regression channel should start (0 = current bar)
startTime
Start time for the regression channel
barsBackEnd
Sets the preceding bar at which the regression channel should end (0 = current bar)
endTime
End time for the regression channel
color
Color of the drawing object
upperDashStyle, middleDashStyle, lowerDashStyle
LevelLine style:
DashStyle.Dash
DashStyle.DashDot
DashStyle.DashDotDot
DashStyle.Dot
DashStyle.Solid
You may have to integrate: using System.Drawing.Drawing2D;
upperColor, middleColor, lowerColor
LevelLine color
upperWidth, middleWidth, lowerWidth
LevelLine strength
Example
AddChartSquare()
Description
AddChartSquare() draws a square:
See AddChartArrowUp(), AddChartArrowDown(), AddChartDiamond(), AddChartDot(), AddChartSquare(), AddChartTriangleUp(), AddChartTriangleDown().
Usage
Return Value
A drawing object of the type ISquare (interface)
Parameter
name
A clearly identifiable name for the drawing object
autoScale
Adjusts the scale of the y-axis so that drawing objects can be viewed in their entirety
barsAgo
Sets the preceding bar at which the square should be drawn (0 = current bar)
Time
Date/time of the bar at which the square should be drawn
Y
y-value for the square
color
Color of the drawing object
Example
AddChartText()
Description
AddChartText() writes whatever text you want onto the chart using price and datetime coordinates.
Usage
Important note: When using signatures that contain horizontal alignment and vertical alignment, you need to add the following lines:
Return Value
A drawing object of the type IText (interface)
Parameter
name
A clearly identifiable name for the drawing object
autoScale
Adjusts the scale of the y-axis so that drawing objects can be viewed in their entirety
Text
Text to be displayed (may contain escape sequences)
barsAgo
Sets how many bars ago the text should be displayed
Time
Date/time of the bar at which the text should begin
Y
y-value at which the text should be written
yPixelOffset
Vertical offset of the text; positive numbers move it up, and negative numbers move it down
textColor
Text color
Font
Font
Alignment
Possible values are: StringAlignment.Center, StringAlignment.Far, StringAlignment.Near
HAlign
Possible values are: HorizontalAlign.Left, HorizontalAlign.Center, HorizontalAlign.Right
VAlign
Possible values are: VerticalAlign.Top, VerticalAlign.Center, VerticalAlign.Bottom
outlineColor
Border color around the text (for no border, select Color.Empty)
areaColor
Fill color for the text box
areaOpacity
Transparency of the fill color. Value between 0 and 255 (0 = completely transparent, 255 = completely opaque)
Example
This leads to the following result:
AddChartTextFixed()
Description
AddChartTextFixed() writes text into one of 5 predetermined locations on the chart.
See AddChartText().
Usage
Return Value
A drawing object of the type ITextFixed (interface)
Parameter
name
A clearly identifiable name for the drawing object
text
The text to be displayed
TextPosition
TextPosition.BottomLeft, TextPosition.BottomRight, TextPosition.Center, TextPosition.TopLeft, TextPosition.TopRight
textColor
Text color
font
Font
outlineColor
Color for the border around the text. For no border color, use Color.Empty
areaColor
Fill color of the text box. For no fill color, use Color.Empty
areaOpacity
Transparency of the fill color. Value between 0 and 255 (0 = completely transparent, 255 = completely opaque)
Example
AddChartTrendChannel()
Description
AddChartTrendChannel() draws a trend channel.
Usage
Return Value
A drawing object of the type ITrendChannel (interface)
Parameter
name
A clearly identifiable name for the drawing object
autoScale
Adjusts the scale of the y-axis so that drawing objects can be viewed in their entirety
start1BarsAgo
Number of bars ago for start point 1 (x-axis)
start1Time
Date/time for start point 1 (x-axis)
start1Y
y-value for start point 1
start2BarsAgo
Number of bars ago for start point 2 (x-axis)
start2Time
Date/time for start point 2 (x-axis)
start2Y
y-value for start point 2
start3BarsAgo
Number of bars ago for start point 3 (x-axis)
start3Time
Date/time for start point 3 (x-axis)
start3Y
y-value for start point 3
Example
AddChartTriangle()
Description
AddChartTriangle() draws a triangle.
Usage
Return Value
A drawing object of the type ITriangle (interface)
Parameter
name
A clearly identifiable name for the drawing object
autoScale
Adjusts the scale of the y-axis so that drawing objects can be viewed in their entirety
start1BarsAgo
Number of bars ago for start point 1 (x-axis)
start1Time
Date/time for start point 1 (x-axis)
start1Y
y-value for start point 1
start2BarsAgo
Number of bars ago for start point 2 (x-axis)
start2Time
Date/time for start point 2 (x-axis)
start2Y
y-value for start point 2
start3BarsAgo
Number of bars ago for start point 3 (x-axis)
start3Time
Date/time for start point 3 (x-axis)
start3Y
y-value for start point 3
color
Color of the drawing object
areaColor
Fill color of the drawing object
areaOpacity
Transparency of the fill color. Value between 0 and 255 (0 = completely transparent, 255 = completely opaque)
Example
AddChartTriangleDown()
Description
AddChartTriangleDown() draws a small downwards-pointing triangle:
See AddChartArrowUp(), AddChartArrowDown(), AddChartDiamond(), AddChartDot(), AddChartSquare(), AddChartTriangleUp(), AddChartTriangleUp().
Usage
Return Value
A drawing object of the type ITriangleDown (interface)
Parameter
name
A clearly identifiable name for the drawing object
autoScale
Adjusts the scale of the y-axis so that drawing objects can be viewed in their entirety
barsAgo
Sets how many bars ago the triangle should be drawn
time
Date/time for the bar at which the triangle should be drawn
Y
y-value at which the triangle should be drawn
color
Color of the drawing object
Example
AddChartTriangleUp()
Description
AddChartTriangleUp() draws a small upwards-pointing triangle:
See AddChartArrowUp(), AddChartArrowDown(), AddChartDiamond(), AddChartDot(), AddChartSquare(), AddChartTriangleUp(), AddChartTriangleDown().
Usage
Return Value
A drawing object of the type ITriangleUp (interface)
Parameter
name
A clearly identifiable name for the drawing object
autoScale
Adjusts the scale of the y-axis so that drawing objects can be viewed in their entirety
barsAgo
Sets how many bars ago the triangle should be drawn
time
Date/time for the bar at which the triangle should be drawn
y
y-value at which the triangle should be drawn
color
Color of the drawing object
Example
AddChartVerticalLine()
Description
AddChartVerticalLine() draws a vertical line in the chart.
See AddChartLine(), AddChartHorizontalLine(), AddChartExtendedLine(), AddChartRay().
Usage
Return Value
A drawing object of the type IVerticalLine (interface)
Parameter
name
A clearly identifiable name for the drawing object
barsAgo
Sets how many bars ago the vertical line should be drawn (0 = current bar)
time
Date/time of the bar at which the vertical line should be drawn
color
LevelLine color
dashStyle
LevelLine style
DashStyle.Dash
DashStyle.DashDot
DashStyle.DashDotDot
DashStyle.Dot
DashStyle.Solid
width
LevelLine strength
Example
Last updated