Overview
VibeTrader provides a comprehensive set of drawing tools for technical analysis. All drawing tools share a common interaction model based on handles (anchor points) that you place and manipulate on the chart.Available Drawing Tools
Line
Simple line tool for drawing trend lines between two points.
Parallel Lines
Draw parallel channel lines for identifying support and resistance zones.
Polyline
Multi-segment line with variable number of handles for complex patterns.
Fibonacci Retracement
Standard Fibonacci retracement levels (23.6%, 38.2%, 50%, 61.8%, etc.).
Fibonacci Retrace Vertical
Vertical Fibonacci retracement for time-based analysis.
Fibonacci Time Zone
Fibonacci time zones for identifying potential reversal times.
Gann Angles
Gann fan with multiple angle lines (1x1, 1x2, 2x1, 1x3, 3x1, etc.).
Drawing Tool Usage
Creating Drawings
Select Drawing Tool
Choose your desired drawing tool from the toolbar. The tool ID format is used internally:
line- Line drawingparallel- Parallel linespolyline- Polylinefibonacci_retrace- Fibonacci retracementfibonacci_retrace_v- Vertical Fibonaccifibonacci_timezone- Fibonacci time zonesgann_angles- Gann angles
Place Anchor Points
Click on the chart to place anchor points (handles). Most tools require 2 handles, except polyline which supports unlimited handles.
Mouse Controls
Click on Drawing
Click on Drawing
Select a drawing to display its handles and enable editing.
Ctrl + Click (Complete)
Ctrl + Click (Complete)
Complete a variable-handle drawing like polyline when you’re done adding points.
Ctrl + Click on Handle
Ctrl + Click on Handle
Remove a specific handle from a variable-handle drawing.
Ctrl + Drag on Segment
Ctrl + Drag on Segment
Insert a new handle at the cursor position on a polyline segment.
Drag Drawing
Drag Drawing
Click and drag a selected drawing to move it to a different position on the chart while maintaining its shape.
Keyboard Controls
ESC
Unselect the currently selected drawing.
DELETE
Delete the currently selected drawing.
Fibonacci Retracement
The Fibonacci retracement tool displays the following levels:
How to Use
- Identify Trend: Find a significant price move (swing high to swing low, or vice versa)
- Place First Handle: Click at the start of the move
- Place Second Handle: Click at the end of the move
- Analyze Levels: The tool automatically draws horizontal lines at each Fibonacci level with percentage labels
Fibonacci levels automatically stop rendering when they exceed the visible chart area to maintain performance.
Gann Angles
Gann angles help identify potential support and resistance based on geometric relationships.Angle Multiples
The Gann tool draws angles at these multiples of the base angle:- 1x1: Main diagonal (45-degree equivalent in price/time space)
- 1x2: Half the slope of 1x1
- 2x1: Double the slope of 1x1
- 1x3: One-third the slope
- 3x1: Triple the slope
Frame Structure
The Gann tool also draws:- Diagonal lines connecting opposite corners
- Horizontal lines at top and bottom
- Vertical lines at left and right
Polyline Tool
The polyline is a special variable-handle drawing tool:Features
- Unlimited Points: Add as many anchor points as needed
- Dynamic Editing: Insert handles by
Ctrl + Dragon segments - Handle Removal:
Ctrl + Clickon handles to remove them - Flexible Completion:
Ctrl + Clickto complete when done
Use Cases
Complex Patterns
Draw head and shoulders, triangles, or other complex chart patterns.
Trend Channels
Outline multi-touch trend channels with precision.
Drawing State System
Each drawing has several states:Handle System
Handles are the anchor points of drawings:Handle Properties
Visual Representation
- Handles appear as circles with 5-pixel radius
- Hit detection uses 8-pixel radius for easier clicking
- Handles are only visible when a drawing is selected
Handle Manipulation
Hit Testing
Each drawing tool implements custom hit detection:- Lines: 4-pixel distance threshold from the line
- Fibonacci: 4-pixel vertical distance from each level line
- Gann: 4-pixel distance from any angle line or frame element
Hit testing ensures you can easily select drawings even with small or diagonal elements.
Coordinate System Integration
Drawings integrate with the chart coordinate system:Time-Based vs Bar-Based
Rendering System
Drawings render as SVG elements:CSS Classes
.drawing- Normal drawing state.drawing-highlight- Selected drawing (highlighted).drawing-handle- Handle circles.drawing-stretching- Drawing being stretched.drawing-moving- Drawing being dragged
Best Practices
Placement Accuracy
Placement Accuracy
Zoom in before placing handles for precise alignment with specific price levels or time points.
Drawing Organization
Drawing Organization
Use ESC to deselect drawings after creation to keep the chart clean.
Performance
Performance
Avoid creating excessive drawings on a single chart. Remove outdated analysis to maintain performance.
Color Coding
Color Coding
Use different drawing types for different purposes (e.g., Fibonacci for retracements, lines for trends).
Technical Implementation
All drawings extend the baseDrawing class: