@Deprecated public class LineBreakFeedInfo extends FeedInfo implements ITailoredFeedInfo<ILineBreak>
DEFAULT_BASE_PERIOD, INFINITE_BASE_PERIOD
Constructor and Description |
---|
LineBreakFeedInfo(IFinancialInstrument financialInstrument,
OfferSide offerSide)
Deprecated.
Constructor, that uses minimal set of parameters.
|
LineBreakFeedInfo(IFinancialInstrument financialInstrument,
OfferSide offerSide,
Period timeSession)
Deprecated.
Constructor, that uses default values for:
creation point,
CreationPoint.CLOSE
number of look-back lines, LineBreakLookback.THREE_LINES ;
base period, IFeedDescriptor.DEFAULT_BASE_PERIOD . |
LineBreakFeedInfo(IFinancialInstrument financialInstrument,
OfferSide offerSide,
Period timeSession,
CreationPoint creationPoint)
Deprecated.
Constructor, that uses default values for:
number of look-back lines,
LineBreakLookback.THREE_LINES ;
base period, IFeedDescriptor.DEFAULT_BASE_PERIOD . |
LineBreakFeedInfo(IFinancialInstrument financialInstrument,
OfferSide offerSide,
Period timeSession,
CreationPoint creationPoint,
LineBreakLookback lookbackLines)
Deprecated.
Constructor, that uses default values for:
base period,
IFeedDescriptor.DEFAULT_BASE_PERIOD . |
LineBreakFeedInfo(IFinancialInstrument financialInstrument,
OfferSide offerSide,
Period timeSession,
CreationPoint creationPoint,
LineBreakLookback lookbackLines,
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 |
setLineBreakLookback(LineBreakLookback lookbackLines)
Deprecated.
Setter for DataType.LINE_BREAK number of look-back lines.
|
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, 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, setOfferSide, setPriceRange, setReversalAmount, setTickBarSize
public LineBreakFeedInfo(IFinancialInstrument financialInstrument, OfferSide offerSide)
Period.TICK
CreationPoint.CLOSE
LineBreakLookback.THREE_LINES
;
IFeedDescriptor.DEFAULT_BASE_PERIOD
.
financialInstrument
- instrumentofferSide
- offer sidepublic LineBreakFeedInfo(IFinancialInstrument financialInstrument, OfferSide offerSide, Period timeSession)
CreationPoint.CLOSE
LineBreakLookback.THREE_LINES
;
IFeedDescriptor.DEFAULT_BASE_PERIOD
.
financialInstrument
- instrumentofferSide
- offer sidetimeSession
- indicates how often we take a price. Can be any valid Period
. If null, then default Period.TICK
is used.public LineBreakFeedInfo(IFinancialInstrument financialInstrument, OfferSide offerSide, Period timeSession, CreationPoint creationPoint)
LineBreakLookback.THREE_LINES
;
IFeedDescriptor.DEFAULT_BASE_PERIOD
.
financialInstrument
- instrumentofferSide
- offer sidetimeSession
- indicates how often we take a price. Can be any valid Period
. If null, then default Period.TICK
is used.creationPoint
- price point of the time session. If null, then default CreationPoint.CLOSE
is used.public LineBreakFeedInfo(IFinancialInstrument financialInstrument, OfferSide offerSide, Period timeSession, CreationPoint creationPoint, LineBreakLookback lookbackLines)
IFeedDescriptor.DEFAULT_BASE_PERIOD
.
financialInstrument
- instrumentofferSide
- offer sidetimeSession
- indicates how often we take a price. Can be any valid Period
. If null, then default Period.TICK
is used.creationPoint
- price point of the time session. If null, then default CreationPoint.CLOSE
is used.lookbackLines
- number of lines which will define turnaround price. If null, then default LineBreakLookback.THREE_LINES
is used.public LineBreakFeedInfo(IFinancialInstrument financialInstrument, OfferSide offerSide, Period timeSession, CreationPoint creationPoint, LineBreakLookback lookbackLines, Period basePeriod)
financialInstrument
- instrumentofferSide
- offer sidetimeSession
- indicates how often we take a price. Can be any valid Period
. If null, then default Period.TICK
is used.creationPoint
- price point of the time session. If null, then default CreationPoint.CLOSE
is used.lookbackLines
- number of lines which will define turnaround price. If null, then default LineBreakLookback.THREE_LINES
is used.basePeriod
- the period, in which lines are calculated. If base period is given Period.INFINITY
, then new lines 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
- CreationPointpublic void setLineBreakLookback(LineBreakLookback lookbackLines)
FeedInfo
setLineBreakLookback
in interface IFeedInfo
setLineBreakLookback
in class FeedInfo
lookbackLines
- LineBreakLookbackCopyright © 2024. All rights reserved.