@Deprecated public class RangeBarFeedInfo extends FeedInfo implements ITailoredFeedInfo<IRangeBar>
DEFAULT_BASE_PERIOD, INFINITE_BASE_PERIOD
Constructor and Description |
---|
RangeBarFeedInfo(IFinancialInstrument financialInstrument,
PriceRange priceRange,
OfferSide offerSide)
Deprecated.
"Fast" constructor, which has minimal set of parameters for
FeedDescriptor creation |
RangeBarFeedInfo(IFinancialInstrument financialInstrument,
PriceRange priceRange,
OfferSide offerSide,
Period basePeriod)
Deprecated.
"Fast" constructor, which has minimal set of parameters for
FeedDescriptor creation. |
RangeBarFeedInfo(IFinancialInstrument financialInstrument,
PriceRange priceRange,
OfferSide offerSide,
Period basePeriod,
DataInterpolationDescriptor interpolationDescriptor)
Deprecated.
Constructor, that sets all required fields.
|
Modifier and Type | Method and Description |
---|---|
void |
setPeriod(Period period)
Deprecated.
Setter for period.
|
equals, getCreationPoint, getDataInterpolationDescriptor, getDataType, getFilter, getFinancialInstrument, getLineBreakLookback, getOfferSide, getPeriod, getPriceRange, getReversalAmount, getTickBarSize, getTimeSession, hashCode, setCreationPoint, setDataInterpolationDescriptor, setDataType, setFilter, setFinancialInstrument, setLineBreakLookback, setOfferSide, setPriceRange, setReversalAmount, setTickBarSize, setTimeSession, 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, setCreationPoint, setDataInterpolationDescriptor, setDataType, setFilter, setFinancialInstrument, setLineBreakLookback, setOfferSide, setPriceRange, setReversalAmount, setTickBarSize, setTimeSession
public RangeBarFeedInfo(IFinancialInstrument financialInstrument, PriceRange priceRange, OfferSide offerSide)
FeedDescriptor
creationfinancialInstrument
- instrumentpriceRange
- price rangeofferSide
- offer sidepublic RangeBarFeedInfo(IFinancialInstrument financialInstrument, PriceRange priceRange, OfferSide offerSide, Period basePeriod)
FeedDescriptor
creation.
The period represents the base period.financialInstrument
- instrumentpriceRange
- price rangeofferSide
- offer sidebasePeriod
- the period, in which the range bars are calculated. If base period is given Period.INFINITY
, then range bars are calculated from the beginning of the history.
Everything else at data loading time is considered as a default value (one week), including null.public RangeBarFeedInfo(IFinancialInstrument financialInstrument, PriceRange priceRange, OfferSide offerSide, Period basePeriod, DataInterpolationDescriptor interpolationDescriptor)
financialInstrument
- instrumentpriceRange
- price rangeofferSide
- offer sidebasePeriod
- the period, in which the range bars are calculated. If base period is given Period.INFINITY
, then range bars are calculated from the beginning of the history.
Everything else at data loading time is considered as a default value (one week), including null.interpolationDescriptor
- - tick interpolation descriptor. If null, the DataInterpolationDescriptor.DEFAULT interpolation is used.
To get most suitable interpolation descriptor, use DataInterpolationDescriptor.getSuitableDataInterpolationDescriptor(PriceRange priceRange)
method.
To find more about tick interpolation from candles and it's purpose, see DataInterpolationDescriptor
.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
).Copyright © 2024. All rights reserved.