SYNTAX: Bullet(Index: integer, Position: integer [, Color: integer]): integer;
DESCRIPTION: The Bullet function will draw a bullet marker on a chart (a small square marker). The Bullet function returns the color of the chart pixel at the proposed bullet location. The return value can be used to test for the presence of an existing bullet at that location. The return value will be 0 zero if the pixel color is the same as the chart background color. A bullet will not be drawn when the Color parameter is omitted. Use 'eNone' as the Color parameter to erase or remove an existing bullet. NOTE: Bullets are not permanent draw objects to a chart. A bullet is a temporary drawing, that will be lost if the chart is refreshed, moved, or redrawn.
Index: Index is the bar array subscript between 1 and the number of bars on the chart.
Position: Position is one of the following predefined constants, which specify the location of the bullet:
- places bullet above the High of the bar
Color: Color may be one of the following numbers, which indicate the bullet color. These numeric values use the colors that are specified in the chart defaults screen. Select SetUp | Chart from the menu to change the colors.
0 = Normal color
Color may also be one of the following predefined constants:
NOTE: Since clBlack has a value of 0, using it would color the bar with the Normal color instead of black.
EXAMPLE: The following example places a Red bullet below any bar that has a lower low than the previous bar. It places a Green bullet above any bar that has a higher high than the previous bar. It tests to see if a bullet is already in place. A bullet is not drawn if a bullet already exists in that position.
of Variable declarations}