public interface IIndicatorDrawingSupport
Modifier and Type | Method and Description |
---|---|
IBar[] |
getCandles()
Returns array of candles.
|
float |
getCandleWidthInPixels()
Candle width in pixels
|
int |
getChartHeight()
Returns height of the panel in pixels where drawing should happen
|
int |
getChartWidth()
Returns width of the panel in pixels where drawing should happen
|
Color |
getDowntrendColor()
Returns downtrend color for this indicator
|
int |
getIndexOfFirstCandleOnScreen()
Index in the array of values and candles.
|
Instrument |
getInstrument()
Returns instrument of the chart
|
JFTimeZone |
getJFTimeZone()
Returns time zone of the chart.
|
double |
getMaxPrice()
Returns the maximum value of the price scale.
|
long |
getMaxTime()
Returns the maximum time scale value.
|
float |
getMiddleOfCandle(int index)
X coordinate of the candle with index
|
double |
getMinPrice()
Returns the minimum value of the price scale.
|
long |
getMinTime()
Returns the minimum time scale value.
|
int |
getNumberOfCandlesOnScreen()
Returns number of candles currently visible on the screen.
|
OfferSide |
getOfferSide()
Return offer side of the chart or null if this is ticks chart
|
Period |
getPeriod()
Returns period of the chart.
|
float |
getSpaceBetweenCandlesInPixels()
Returns number of pixels between two candles
|
int |
getXForTime(long time)
Return X coordinate for the specified time.
|
float |
getYForValue(double value)
Returns Y coordinate for the specified value.
|
float |
getYForValue(int value)
Returns Y coordinate for the specified value.
|
boolean |
isChartPanel()
Returns true if Graphics passed to drawOutput method belong to main chart (where candles are shown) or false
if it belongs to separate panel created for this indicator (when IndicatorInfo.isOverChart returns false).
|
boolean |
isLastCandleInProgress()
Returns true if the last candle is not fully formed yet
|
boolean |
isTimeAggregatedPeriod()
Returns current period is whether time aggregated or not.
|
boolean isChartPanel()
int getNumberOfCandlesOnScreen()
int getIndexOfFirstCandleOnScreen()
float getCandleWidthInPixels()
float getSpaceBetweenCandlesInPixels()
float getMiddleOfCandle(int index)
index
- index of the candles or/and valuefloat getYForValue(double value)
value
- indicator valueint getXForTime(long time)
time
- time to get x coordinate forfloat getYForValue(int value)
value
- indicator valueIBar[] getCandles()
boolean isLastCandleInProgress()
int getChartWidth()
int getChartHeight()
Instrument getInstrument()
Period getPeriod()
JFTimeZone getJFTimeZone()
OfferSide getOfferSide()
Color getDowntrendColor()
double getMinPrice()
double getMaxPrice()
long getMinTime()
long getMaxTime()
boolean isTimeAggregatedPeriod()
Copyright © 2016. All rights reserved.