|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IIndicatorDrawingSupport
Various helper methods to be able to draw indicators
| Method Summary | |
|---|---|
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 |
int |
getIndexOfFirstCandleOnScreen()
Index in the array of values and candles. |
Instrument |
getInstrument()
Returns instrument of the chart |
float |
getYForValue(double value)
Returns Y coordinate for the specified value. |
float |
getYForValue(int value)
Returns Y coordinate for the specified value. |
float |
getMiddleOfCandle(int index)
X coordinate of the candle with index |
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 |
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 |
| Method Detail |
|---|
boolean isChartPanel()
int getNumberOfCandlesOnScreen()
int getIndexOfFirstCandleOnScreen()
float getCandleWidthInPixels()
float getSpaceBetweenCandlesInPixels()
float getMiddleOfCandle(int index)
index - index of the candles or/and value
float getYForValue(double value)
value - indicator value
float getYForValue(int value)
value - indicator value
IBar[] getCandles()
boolean isLastCandleInProgress()
int getChartWidth()
int getChartHeight()
Instrument getInstrument()
Period getPeriod()
OfferSide getOfferSide()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||