Class FibonacciRenderer
java.lang.Object
com.arbergashi.charts.render.BaseRenderer
com.arbergashi.charts.render.financial.FibonacciRenderer
- All Implemented Interfaces:
ChartRenderer
FibonacciRenderer - Fibonacci Retracement Levels
Professional Fibonacci retracement renderer for technical analysis. Displays key Fibonacci levels based on swing high and swing low.
Features:
- Retracement Levels: 0%, 23.6%, 38.2%, 50%, 61.8%, 78.6%, 100%
- Extension Levels: 127.2%, 161.8%, 261.8%
- Color Coding: Key levels (38.2%, 50%, 61.8%) emphasized
- Labels: Level percentages displayed
- Auto-Detection: Finds swing high/low automatically
Data Requirements:
Requires price data. Automatically detects swing high and low points within the visible range.
Fibonacci Ratios:
- 0.236 (23.6%) - Shallow retracement
- 0.382 (38.2%) - Key support/resistance
- 0.500 (50.0%) - Psychological level
- 0.618 (61.8%) - Golden ratio
- 0.786 (78.6%) - Deep retracement
- Since:
- 2026-01-01
- Version:
- 1.0.0
- Author:
- Arber Gashi
-
Field Summary
Fields inherited from class BaseRenderer
PIXEL_BUF, PIXEL_BUF4 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddrawData(Graphics2D g, ChartModel model, PlotContext context) Implementation-specific drawing logic.Methods inherited from class BaseRenderer
drawHighlightPoint, drawI18nLabel, drawLabel, getArc, getCachedFont, getCachedGradient, getCachedStroke, getCachedStroke, getCachedStroke, getCubicCurve, getEllipse, getId, getLayerIndex, getLegendColor, getLine, getName, getPathCache, getPointAt, getRect, getRoundRectangle, getSeriesColor, getSeriesStroke, getTheme, getTooltipText, isLegendRequired, isMultiColor, pBuffer, pBuffer4, render, resolveTheme, seriesOrBase, setLayerIndex, setMultiColor, setTheme, setupQualityHints, themeAccent, themeAxisLabel, themeBackground, themeBearish, themeBullish, themeForeground, themeGrid, themeSeriesMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ChartRenderer
clearHover, createContext, getFocusValues, getPreferredYRange, renderEmptyState, supportsEmptyState
-
Constructor Details
-
FibonacciRenderer
public FibonacciRenderer()
-
-
Method Details
-
drawData
Description copied from class:BaseRendererImplementation-specific drawing logic. Must follow Zero-Allocation rules.- Specified by:
drawDatain classBaseRenderer
-