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. |
RenkoFeedDescriptor(Instrument instrument,
PriceRange brickSize,
OfferSide offerSide,
Period basePeriod)
This constructor sets renko session to Period.TICK, renko creation point to
RenkoCreationPoint.CLOSE and renko type to RenkoType.REGULAR. |
RenkoFeedDescriptor(Instrument instrument,
PriceRange brickSize,
OfferSide offerSide,
Period timeSession,
CreationPoint creationPoint)
This constructor sets base period to default (
IFeedDescriptor.DEFAULT_BASE_PERIOD) and renko type to RenkoType.REGULAR. |
RenkoFeedDescriptor(Instrument instrument,
PriceRange brickSize,
OfferSide offerSide,
Period timeSession,
CreationPoint creationPoint,
Period basePeriod)
This constructor sets renko type to
RenkoType.REGULAR. |
RenkoFeedDescriptor(Instrument instrument,
PriceRange brickSize,
OfferSide offerSide,
Period timeSession,
CreationPoint creationPoint,
Period basePeriod,
RenkoType renkoType)
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, DataType.KAGI 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 |
setRenkoType(RenkoType renkoType)
Setter for DataType.RENKO bricks type.
|
void |
setTimeSession(Period timeSession)
Setter for DataType.LINE_BREAK, DataType.RENKO, DataType.KAGI, DataType.POINT_AND_FIGURE session period
|
equals, getCalculationMethod, getCreationPoint, getDataInterpolationDescriptor, getDataType, getFilter, getInstrument, getLineBreakLookback, getOfferSide, getPeriod, getPriceRange, getRenkoCreationPoint, getRenkoSession, getRenkoType, getReversalAmount, getTickBarSize, getTimeSession, hashCode, setCalculationMethod, setDataInterpolationDescriptor, setDataType, setFilter, setInstrument, setLineBreakLookback, setOfferSide, setPriceRange, setReversalAmount, setTickBarSize, toString, validateBasePeriod, validateCalculationMethod, validateCreationPoint, validateLineBreakLookback, validatePriceRange, validateRenkoCreationPoint, validateRenkoSession, validateRenkoType, validateTimeSession, validateTurnaroundAmount, valueOfclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetCalculationMethod, getCreationPoint, getDataInterpolationDescriptor, getDataType, getFilter, getInstrument, getLineBreakLookback, getOfferSide, getPeriod, getPriceRange, getRenkoCreationPoint, getRenkoSession, getRenkoType, getReversalAmount, getTickBarSize, getTimeSession, setCalculationMethod, 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, renko creation point to RenkoCreationPoint.CLOSE and renko type to RenkoType.REGULAR.instrument - instrumentbrickSize - brick sizeofferSide - offer sidepublic RenkoFeedDescriptor(Instrument instrument, PriceRange brickSize, OfferSide offerSide, Period basePeriod)
RenkoCreationPoint.CLOSE and renko type to RenkoType.REGULAR.instrument - instrumentbrickSize - brick sizeofferSide - offer sidebasePeriod - 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) and renko type to RenkoType.REGULAR.instrument - instrumentbrickSize - brick sizeofferSide - offer sidetimeSession - time sessioncreationPoint - creation point@Deprecated public RenkoFeedDescriptor(Instrument instrument, PriceRange brickSize, OfferSide offerSide, Period renkoSessionPeriod, RenkoCreationPoint renkoCreationPoint)
IFeedDescriptor.DEFAULT_BASE_PERIOD) and renko type to RenkoType.REGULAR.instrument - instrumentbrickSize - brick sizeofferSide - offer siderenkoSessionPeriod - time sessionrenkoCreationPoint - creation point@Deprecated public RenkoFeedDescriptor(Instrument instrument, PriceRange brickSize, OfferSide offerSide, Period renkoSessionPeriod, RenkoCreationPoint renkoCreationPoint, Period basePeriod)
RenkoType.REGULAR.instrument - instrumentbrickSize - brick sizeofferSide - offer siderenkoSessionPeriod - time sessionrenkoCreationPoint - creation pointbasePeriod - 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)
RenkoType.REGULAR.instrument - instrumentbrickSize - brick sizeofferSide - offer sidetimeSession - time sessioncreationPoint - creation pointbasePeriod - 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, RenkoType renkoType)
instrument - instrumentbrickSize - brick sizeofferSide - offer sidetimeSession - time sessioncreationPoint - creation pointbasePeriod - 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.renkoType - renko typepublic void setPeriod(Period period)
FeedDescriptorDataType.TICK_BAR, DataType.PRICE_RANGE_AGGREGATION, DataType.RENKO, DataType.POINT_AND_FIGURE, DataType.LINE_BREAK, DataType.KAGI)
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).
Period.INFINITY is not allowed on remote run.setPeriod in interface IFeedDescriptorsetPeriod in class FeedDescriptorperiod - periodpublic void setRenkoSession(Period timeSession)
FeedDescriptorsetRenkoSession in interface IFeedDescriptorsetRenkoSession in class FeedDescriptortimeSession - Renko session periodpublic void setTimeSession(Period timeSession)
FeedDescriptorsetTimeSession in interface IFeedDescriptorsetTimeSession in class FeedDescriptortimeSession - session periodpublic void setRenkoCreationPoint(RenkoCreationPoint renkoCreationPoint)
FeedDescriptorsetRenkoCreationPoint in interface IFeedDescriptorsetRenkoCreationPoint in class FeedDescriptorrenkoCreationPoint - RenkoCreationPointpublic void setCreationPoint(CreationPoint creationPoint)
FeedDescriptorsetCreationPoint in interface IFeedDescriptorsetCreationPoint in class FeedDescriptorcreationPoint - CreationPointpublic void setRenkoType(RenkoType renkoType)
FeedDescriptorsetRenkoType in interface IFeedDescriptorsetRenkoType in class FeedDescriptorrenkoType - RenkoTypeCopyright © 2025. All rights reserved.