public class RenkoFeedDescriptor extends FeedDescriptor implements ITailoredFeedDescriptor<IRenkoBar>
FeedDescriptorDEFAULT_BASE_PERIOD, INFINITE_BASE_PERIOD| Constructor and Description |
|---|
RenkoFeedDescriptor(Instrument instrument,
PriceRange brickSize,
OfferSide offerSide)
"Fast" constructor, which has minimal set of parameters for
FeedDescriptor creation
This constructor sets base period to default (IFeedDescriptor.DEFAULT_BASE_PERIOD), renko session to Period.TICK and renko creation point to RenkoCreationPoint.CLOSE. |
RenkoFeedDescriptor(Instrument instrument,
PriceRange brickSize,
OfferSide offerSide,
Period basePeriod)
This constructor sets renko session to Period.TICK and renko creation point to
RenkoCreationPoint.CLOSE. |
RenkoFeedDescriptor(Instrument instrument,
PriceRange brickSize,
OfferSide offerSide,
Period timeSession,
CreationPoint creationPoint)
This constructor sets base period to default (
IFeedDescriptor.DEFAULT_BASE_PERIOD) |
RenkoFeedDescriptor(Instrument instrument,
PriceRange brickSize,
OfferSide offerSide,
Period timeSession,
CreationPoint creationPoint,
Period basePeriod)
Constructor, that sets all required fields.
|
RenkoFeedDescriptor(Instrument instrument,
PriceRange brickSize,
OfferSide offerSide,
Period renkoSessionPeriod,
RenkoCreationPoint renkoCreationPoint)
Deprecated.
- use analog constructor, which takes CreationPoint instead of RenkoCreationPoint
|
RenkoFeedDescriptor(Instrument instrument,
PriceRange brickSize,
OfferSide offerSide,
Period renkoSessionPeriod,
RenkoCreationPoint renkoCreationPoint,
Period basePeriod)
Deprecated.
- use analog constructor, which takes CreationPoint instead of RenkoCreationPoint
|
| Modifier and Type | Method and Description |
|---|---|
void |
setCreationPoint(CreationPoint creationPoint)
Setter for DataType.LINE_BREAK, DataType.RENKO data creation point
|
void |
setPeriod(Period period)
Setter for period.
|
void |
setRenkoCreationPoint(RenkoCreationPoint renkoCreationPoint)
Setter for DataType.RENKO data creation point
|
void |
setRenkoSession(Period timeSession)
Setter for DataType.RENKO session period
|
void |
setTimeSession(Period timeSession)
Setter for DataType.LINE_BREAK, DataType.RENKO session period
|
equals, getCreationPoint, getDataInterpolationDescriptor, getDataType, getFilter, getInstrument, getLineBreakLookback, getOfferSide, getPeriod, getPriceRange, getRenkoCreationPoint, getRenkoSession, getReversalAmount, getTickBarSize, getTimeSession, hashCode, setDataInterpolationDescriptor, setDataType, setFilter, setInstrument, setLineBreakLookback, setOfferSide, setPriceRange, setReversalAmount, setTickBarSize, toString, validateBasePeriod, validateCreationPoint, validateLineBreakLookback, validateRenkoCreationPoint, validateRenkoSession, validateTimeSession, valueOfclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetCreationPoint, getDataInterpolationDescriptor, getDataType, getFilter, getInstrument, getLineBreakLookback, getOfferSide, getPeriod, getPriceRange, getRenkoCreationPoint, getRenkoSession, getReversalAmount, getTickBarSize, getTimeSession, setDataInterpolationDescriptor, setDataType, setFilter, setInstrument, setLineBreakLookback, setOfferSide, setPriceRange, setReversalAmount, setTickBarSizepublic RenkoFeedDescriptor(Instrument instrument, PriceRange brickSize, OfferSide offerSide)
FeedDescriptor creation
This constructor sets base period to default (IFeedDescriptor.DEFAULT_BASE_PERIOD), renko session to Period.TICK and renko creation point to RenkoCreationPoint.CLOSE.instrument - brickSize - offerSide - public RenkoFeedDescriptor(Instrument instrument, PriceRange brickSize, OfferSide offerSide, Period basePeriod)
RenkoCreationPoint.CLOSE.instrument - brickSize - offerSide - basePeriod - - the period, in which the renko bars are calculated. If base period is given Period.INFINITY, then renko bars are calculated from the beginning of the history.
Everything else at data loading time is considered as a default value (oIFeedDescriptor.DEFAULT_BASE_PERIOD), including null.public RenkoFeedDescriptor(Instrument instrument, PriceRange brickSize, OfferSide offerSide, Period timeSession, CreationPoint creationPoint)
IFeedDescriptor.DEFAULT_BASE_PERIOD)instrument - brickSize - offerSide - timeSession - creationPoint - @Deprecated public RenkoFeedDescriptor(Instrument instrument, PriceRange brickSize, OfferSide offerSide, Period renkoSessionPeriod, RenkoCreationPoint renkoCreationPoint)
IFeedDescriptor.DEFAULT_BASE_PERIOD)instrument - brickSize - offerSide - renkoSessionPeriod - renkoCreationPoint - @Deprecated public RenkoFeedDescriptor(Instrument instrument, PriceRange brickSize, OfferSide offerSide, Period renkoSessionPeriod, RenkoCreationPoint renkoCreationPoint, Period basePeriod)
instrument - brickSize - offerSide - renkoSessionPeriod - renkoCreationPoint - basePeriod - - the period, in which the renko bars are calculated. If base period is given Period.INFINITY, then renko bars are calculated from the beginning of the history.
Everything else at data loading time is considered as a default value (IFeedDescriptor.DEFAULT_BASE_PERIOD), including null.public RenkoFeedDescriptor(Instrument instrument, PriceRange brickSize, OfferSide offerSide, Period timeSession, CreationPoint creationPoint, Period basePeriod)
instrument - brickSize - offerSide - timeSession - creationPoint - basePeriod - - the period, in which the renko bars are calculated. If base period is given Period.INFINITY, then renko bars are calculated from the beginning of the history.
Everything else at data loading time is considered as a default value (IFeedDescriptor.DEFAULT_BASE_PERIOD), including null.public void setPeriod(Period period)
FeedDescriptorDataType.TICK_BAR, DataType.PRICE_RANGE_AGGREGATION, DataType.RENKO, DataType.POINT_AND_FIGURE, DataType.LINE_BREAK)
period works as a base period (more information about base period - IFeedDescriptor.DEFAULT_BASE_PERIOD).
Only two base periods are possible - Period.INFINITY and one week (IFeedDescriptor.DEFAULT_BASE_PERIOD). If one provides anything else (including null) than Period.INFINITY, then at data
loading time it is considered to be as a default base period (IFeedDescriptor.DEFAULT_BASE_PERIOD).setPeriod in interface IFeedDescriptorsetPeriod in class FeedDescriptorpublic void setRenkoSession(Period timeSession)
FeedDescriptorsetRenkoSession in interface IFeedDescriptorsetRenkoSession in class FeedDescriptorpublic void setTimeSession(Period timeSession)
FeedDescriptorsetTimeSession in interface IFeedDescriptorsetTimeSession in class FeedDescriptorpublic void setRenkoCreationPoint(RenkoCreationPoint renkoCreationPoint)
FeedDescriptorsetRenkoCreationPoint in interface IFeedDescriptorsetRenkoCreationPoint in class FeedDescriptorpublic void setCreationPoint(CreationPoint creationPoint)
FeedDescriptorsetCreationPoint in interface IFeedDescriptorsetCreationPoint in class FeedDescriptorCopyright © 2016. All rights reserved.