@Deprecated public class RenkoFeedInfo extends FeedInfo implements ITailoredFeedInfo<IRenkoBar>
DEFAULT_BASE_PERIOD, INFINITE_BASE_PERIOD
Constructor and Description |
---|
RenkoFeedInfo(IFinancialInstrument financialInstrument,
PriceRange brickSize,
OfferSide offerSide)
Deprecated.
"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 . |
RenkoFeedInfo(IFinancialInstrument financialInstrument,
PriceRange brickSize,
OfferSide offerSide,
Period basePeriod)
Deprecated.
This constructor sets renko session to Period.TICK and renko creation point to
RenkoCreationPoint.CLOSE . |
RenkoFeedInfo(IFinancialInstrument financialInstrument,
PriceRange brickSize,
OfferSide offerSide,
Period timeSession,
CreationPoint creationPoint)
Deprecated.
This constructor sets base period to default (
IFeedDescriptor.DEFAULT_BASE_PERIOD ) |
RenkoFeedInfo(IFinancialInstrument financialInstrument,
PriceRange brickSize,
OfferSide offerSide,
Period timeSession,
CreationPoint creationPoint,
Period basePeriod)
Deprecated.
Constructor, that sets all required fields.
|
Modifier and Type | Method and Description |
---|---|
void |
setCreationPoint(CreationPoint creationPoint)
Deprecated.
Setter for DataType.LINE_BREAK, DataType.RENKO data creation point
|
void |
setPeriod(Period period)
Deprecated.
Setter for period.
|
void |
setTimeSession(Period timeSession)
Deprecated.
Setter for DataType.LINE_BREAK, DataType.RENKO session period
|
equals, getCreationPoint, getDataInterpolationDescriptor, getDataType, getFilter, getFinancialInstrument, getLineBreakLookback, getOfferSide, getPeriod, getPriceRange, getReversalAmount, getTickBarSize, getTimeSession, hashCode, setDataInterpolationDescriptor, setDataType, setFilter, setFinancialInstrument, setLineBreakLookback, setOfferSide, setPriceRange, setReversalAmount, setTickBarSize, toString, validateBasePeriod, validateCreationPoint, validateLineBreakLookback, validatePriceRange, validateRenkoCreationPoint, validateRenkoSession, validateTimeSession, validateTurnaroundAmount
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getCreationPoint, getDataInterpolationDescriptor, getDataType, getFilter, getFinancialInstrument, getLineBreakLookback, getOfferSide, getPeriod, getPriceRange, getReversalAmount, getTickBarSize, getTimeSession, setDataInterpolationDescriptor, setDataType, setFilter, setFinancialInstrument, setLineBreakLookback, setOfferSide, setPriceRange, setReversalAmount, setTickBarSize
public RenkoFeedInfo(IFinancialInstrument financialInstrument, 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
.financialInstrument
- instrumentbrickSize
- brick sizeofferSide
- offer sidepublic RenkoFeedInfo(IFinancialInstrument financialInstrument, PriceRange brickSize, OfferSide offerSide, Period basePeriod)
RenkoCreationPoint.CLOSE
.financialInstrument
- 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 RenkoFeedInfo(IFinancialInstrument financialInstrument, PriceRange brickSize, OfferSide offerSide, Period timeSession, CreationPoint creationPoint)
IFeedDescriptor.DEFAULT_BASE_PERIOD
)financialInstrument
- instrumentbrickSize
- brick sizeofferSide
- offer sidetimeSession
- time sessioncreationPoint
- creation pointpublic RenkoFeedInfo(IFinancialInstrument financialInstrument, PriceRange brickSize, OfferSide offerSide, Period timeSession, CreationPoint creationPoint, Period basePeriod)
financialInstrument
- 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 void setPeriod(Period period)
FeedInfo
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 - IFeedInfo.DEFAULT_BASE_PERIOD
).
Only two base periods are possible - Period.INFINITY
and one week (IFeedInfo.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 (IFeedInfo.DEFAULT_BASE_PERIOD
).public void setTimeSession(Period timeSession)
IFeedInfo
setTimeSession
in interface IFeedInfo
setTimeSession
in class FeedInfo
timeSession
- session periodpublic void setCreationPoint(CreationPoint creationPoint)
FeedInfo
setCreationPoint
in interface IFeedInfo
setCreationPoint
in class FeedInfo
creationPoint
- CreationPointCopyright © 2024. All rights reserved.