public class RenkoFeedDescriptor extends FeedDescriptor implements ITailoredFeedDescriptor<IRenkoBar>
FeedDescriptor
DEFAULT_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, valueOf
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getCalculationMethod, getCreationPoint, getDataInterpolationDescriptor, getDataType, getFilter, getInstrument, getLineBreakLookback, getOfferSide, getPeriod, getPriceRange, getRenkoCreationPoint, getRenkoSession, getRenkoType, getReversalAmount, getTickBarSize, getTimeSession, setCalculationMethod, setDataInterpolationDescriptor, setDataType, setFilter, setInstrument, setLineBreakLookback, setOfferSide, setPriceRange, setReversalAmount, setTickBarSize
public 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)
FeedDescriptor
DataType.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 IFeedDescriptor
setPeriod
in class FeedDescriptor
period
- periodpublic void setRenkoSession(Period timeSession)
FeedDescriptor
setRenkoSession
in interface IFeedDescriptor
setRenkoSession
in class FeedDescriptor
timeSession
- Renko session periodpublic void setTimeSession(Period timeSession)
FeedDescriptor
setTimeSession
in interface IFeedDescriptor
setTimeSession
in class FeedDescriptor
timeSession
- session periodpublic void setRenkoCreationPoint(RenkoCreationPoint renkoCreationPoint)
FeedDescriptor
setRenkoCreationPoint
in interface IFeedDescriptor
setRenkoCreationPoint
in class FeedDescriptor
renkoCreationPoint
- RenkoCreationPointpublic void setCreationPoint(CreationPoint creationPoint)
FeedDescriptor
setCreationPoint
in interface IFeedDescriptor
setCreationPoint
in class FeedDescriptor
creationPoint
- CreationPointpublic void setRenkoType(RenkoType renkoType)
FeedDescriptor
setRenkoType
in interface IFeedDescriptor
setRenkoType
in class FeedDescriptor
renkoType
- RenkoTypeCopyright © 2024. All rights reserved.