Event that triggers when pointer is pressed down on top of the drawing tool.
Event handler containing the following parameters:
-'xPosition' and 'yPosition' parameters return the current cursor position in axis values.
-'xPositionClient' and 'yPositionClient' return the current cursor position in client coordinates (zero equals top-left corner).
-'drawingTool' gets the drawing tool instance.
-'isControlPoint' tells if the event was triggered by one of the drawing tool's control points.
-'button' indicates the pressed mouse button.
Event that triggers when pointer is moved onto the drawing tool.
Event handler containing the following parameters:
-'xPosition' and 'yPosition' parameters return the current cursor position in axis values.
-'xPositionClient' and 'yPositionClient' return the current cursor position in client coordinates (zero equals top-left corner).
-'drawingTool' gets the drawing tool instance.
-'isControlPoint' tells if the event was triggered by one of the drawing tool's control points.
Event that triggers when pointer is moved away from the drawing tool.
Event handler containing the following parameters:
-'xPosition' and 'yPosition' parameters return the current cursor position in axis values.
-'xPositionClient' and 'yPositionClient' return the current cursor position in client coordinates (zero equals top-left corner).
-'drawingTool' gets the drawing tool instance.
-'isControlPoint' tells if the event was triggered by one of the drawing tool's control points.
Event that triggers when pointer is released on top of the drawing tool.
Event handler containing the following parameters:
-'xPosition' and 'yPosition' parameters return the current cursor position in axis values.
-'xPositionClient' and 'yPositionClient' return the current cursor position in client coordinates (zero equals top-left corner).
-'drawingTool' gets the drawing tool instance.
-'isControlPoint' tells if the event was triggered by one of the drawing tool's control points.
-'button' indicates the released mouse button.
Updates the drawing tool based on the control points' locations.
Starting point X-location.
Starting point Y-location.
First end point X-location.
First end point Y-location.
Second end point X-location.
Second end point Y-location.
Pitchfork, also known as Andrew's Pitchfork, can be used to identify support and resistance levels for a stock's price. It places three control points on the chart and draws a line from the first point through the midpoint of the other points.