public class LineBreakFeedDescriptor extends FeedDescriptor implements ITailoredFeedDescriptor<ILineBreak>
DEFAULT_BASE_PERIOD, INFINITE_BASE_PERIOD
Constructor and Description |
---|
LineBreakFeedDescriptor(Instrument instrument,
OfferSide offerSide)
Constructor, that uses minimal set of parameters.
|
LineBreakFeedDescriptor(Instrument instrument,
OfferSide offerSide,
Period timeSession)
Constructor, that uses default values for:
creation point,
CreationPoint.CLOSE
number of look-back lines, LineBreakLookback.THREE_LINES ;
base period, IFeedDescriptor.DEFAULT_BASE_PERIOD . |
LineBreakFeedDescriptor(Instrument instrument,
OfferSide offerSide,
Period timeSession,
CreationPoint creationPoint)
Constructor, that uses default values for:
number of look-back lines,
LineBreakLookback.THREE_LINES ;
base period, IFeedDescriptor.DEFAULT_BASE_PERIOD . |
LineBreakFeedDescriptor(Instrument instrument,
OfferSide offerSide,
Period timeSession,
CreationPoint creationPoint,
LineBreakLookback lookbackLines)
Constructor, that uses default values for:
base period,
IFeedDescriptor.DEFAULT_BASE_PERIOD . |
LineBreakFeedDescriptor(Instrument instrument,
OfferSide offerSide,
Period timeSession,
CreationPoint creationPoint,
LineBreakLookback lookbackLines,
Period basePeriod)
Constructor, that sets all required fields.
|
Modifier and Type | Method and Description |
---|---|
void |
setCreationPoint(CreationPoint creationPoint)
Setter for DataType.LINE_BREAK, DataType.RENKO data creation point
|
void |
setLineBreakLookback(LineBreakLookback lookbackLines)
Setter for DataType.LINE_BREAK number of look-back lines.
|
void |
setPeriod(Period period)
Setter for period.
|
void |
setTimeSession(Period timeSession)
Setter for DataType.LINE_BREAK, DataType.RENKO session period
|
equals, getCreationPoint, getDataInterpolationDescriptor, getDataType, getFilter, getInstrument, getLineBreakLookback, getOfferSide, getPeriod, getPriceRange, getRenkoCreationPoint, getRenkoSession, getReversalAmount, getTickBarSize, getTimeSession, hashCode, setDataInterpolationDescriptor, setDataType, setFilter, setInstrument, setOfferSide, setPriceRange, setRenkoCreationPoint, setRenkoSession, setReversalAmount, setTickBarSize, toString, validateBasePeriod, validateCreationPoint, validateLineBreakLookback, validateRenkoCreationPoint, validateRenkoSession, validateTimeSession, valueOf
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getCreationPoint, getDataInterpolationDescriptor, getDataType, getFilter, getInstrument, getLineBreakLookback, getOfferSide, getPeriod, getPriceRange, getRenkoCreationPoint, getRenkoSession, getReversalAmount, getTickBarSize, getTimeSession, setDataInterpolationDescriptor, setDataType, setFilter, setInstrument, setOfferSide, setPriceRange, setRenkoCreationPoint, setRenkoSession, setReversalAmount, setTickBarSize
public LineBreakFeedDescriptor(Instrument instrument, OfferSide offerSide)
Period.TICK
CreationPoint.CLOSE
LineBreakLookback.THREE_LINES
;
IFeedDescriptor.DEFAULT_BASE_PERIOD
.
instrument
- offerSide
- public LineBreakFeedDescriptor(Instrument instrument, OfferSide offerSide, Period timeSession)
CreationPoint.CLOSE
LineBreakLookback.THREE_LINES
;
IFeedDescriptor.DEFAULT_BASE_PERIOD
.
instrument
- offerSide
- timeSession
- - indicates how often we take a price. Can be any valid Period
. If null, then default Period.TICK
is used.public LineBreakFeedDescriptor(Instrument instrument, OfferSide offerSide, Period timeSession, CreationPoint creationPoint)
LineBreakLookback.THREE_LINES
;
IFeedDescriptor.DEFAULT_BASE_PERIOD
.
instrument
- offerSide
- timeSession
- - 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 LineBreakFeedDescriptor(Instrument instrument, OfferSide offerSide, Period timeSession, CreationPoint creationPoint, LineBreakLookback lookbackLines)
IFeedDescriptor.DEFAULT_BASE_PERIOD
.
instrument
- offerSide
- timeSession
- - 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 LineBreakFeedDescriptor(Instrument instrument, OfferSide offerSide, Period timeSession, CreationPoint creationPoint, LineBreakLookback lookbackLines, Period basePeriod)
instrument
- offerSide
- timeSession
- - 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)
FeedDescriptor
DataType.TICK_BAR
, DataType.PRICE_RANGE_AGGREGATION
, DataType.RENKO
, DataType.POINT_AND_FIGURE
, DataType.LINE_BREAK
)
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
).setPeriod
in interface IFeedDescriptor
setPeriod
in class FeedDescriptor
public void setTimeSession(Period timeSession)
FeedDescriptor
setTimeSession
in interface IFeedDescriptor
setTimeSession
in class FeedDescriptor
public void setCreationPoint(CreationPoint creationPoint)
FeedDescriptor
setCreationPoint
in interface IFeedDescriptor
setCreationPoint
in class FeedDescriptor
public void setLineBreakLookback(LineBreakLookback lookbackLines)
FeedDescriptor
setLineBreakLookback
in interface IFeedDescriptor
setLineBreakLookback
in class FeedDescriptor
Copyright © 2016. All rights reserved.