Class PivotPointsRenderer
java.lang.Object
com.arbergashi.charts.render.BaseRenderer
com.arbergashi.charts.render.financial.PivotPointsRenderer
- All Implemented Interfaces:
ChartRenderer
PivotPointsRenderer - Support/Resistance Pivot Points
Professional pivot points renderer for intraday trading levels. Displays pivot point (PP) with support (S1, S2, S3) and resistance (R1, R2, R3) levels.
Features:
- Pivot Point (PP): Central reference level (blue)
- Resistance Levels: R1, R2, R3 (red, progressively lighter)
- Support Levels: S1, S2, S3 (green, progressively lighter)
- Labels: Level names displayed at right edge
- Multiple Methods: Standard, Fibonacci, Woodie, Camarilla
Data Requirements:
Requires previous period's OHLC data (High, Low, Close).
Calculation (Standard Method):
PP = (High + Low + Close) / 3 R1 = 2*PP - Low R2 = PP + (High - Low) R3 = High + 2*(PP - Low) S1 = 2*PP - High S2 = PP - (High - Low) S3 = Low - 2*(High - PP)
Interpretation:
- Price above PP = Bullish bias
- Price below PP = Bearish bias
- R1, R2, R3 = Potential resistance targets
- S1, S2, S3 = Potential support targets
- Breaks above/below levels = Strong momentum
- Since:
- 2026-01-01
- Version:
- 1.0.0
- Author:
- Arber Gashi
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumSupported pivot point calculation methods. -
Field Summary
Fields inherited from class BaseRenderer
PIXEL_BUF, PIXEL_BUF4 -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddrawData(Graphics2D g, ChartModel model, PlotContext context) Implementation-specific drawing logic.voidMethods 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
-
PivotPointsRenderer
public PivotPointsRenderer() -
PivotPointsRenderer
-
-
Method Details
-
drawData
Description copied from class:BaseRendererImplementation-specific drawing logic. Must follow Zero-Allocation rules.- Specified by:
drawDatain classBaseRenderer
-
getPivotMethod
-
setPivotMethod
-