public class KagiFeedDescriptor extends FeedDescriptor implements ITailoredFeedDescriptor<IKagi>
DEFAULT_BASE_PERIOD, INFINITE_BASE_PERIOD
Constructor and Description |
---|
KagiFeedDescriptor(Instrument instrument,
OfferSide offerSide)
Constructor, that uses minimal set of parameters.
|
KagiFeedDescriptor(Instrument instrument,
OfferSide offerSide,
PriceRange turnaroundAmount)
Constructor for Kagi data with static turnaround price in pips (turnaroundAmount), which uses default values for:
base period -
IFeedDescriptor.DEFAULT_BASE_PERIOD
creation point - CreationPoint.CLOSE
time session - Period.TICK
|
KagiFeedDescriptor(Instrument instrument,
OfferSide offerSide,
PriceRange turnaroundAmount,
Period timeSession)
Constructor for Kagi data with static turnaround price in pips (turnaroundAmount), which uses default values for:
base period -
IFeedDescriptor.DEFAULT_BASE_PERIOD
creation point - CreationPoint.CLOSE
|
KagiFeedDescriptor(Instrument instrument,
OfferSide offerSide,
PriceRange turnaroundAmount,
Period timeSession,
CreationPoint creationPoint)
Constructor for Kagi data with static turnaround price in pips (turnaroundAmount), which uses default values for:
base period -
IFeedDescriptor.DEFAULT_BASE_PERIOD
|
KagiFeedDescriptor(Instrument instrument,
OfferSide offerSide,
PriceRange turnaroundAmount,
Period timeSession,
CreationPoint creationPoint,
Period basePeriod)
Constructor, that sets all the required fields.
|
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 |
setPriceRange(PriceRange turnaroundAmount)
Setter for price range
|
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, setRenkoCreationPoint, setRenkoSession, setRenkoType, 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, setRenkoCreationPoint, setRenkoSession, setRenkoType, setReversalAmount, setTickBarSize
public KagiFeedDescriptor(Instrument instrument, OfferSide offerSide)
IFeedDescriptor.DEFAULT_BASE_PERIOD
CreationPoint.CLOSE
Period.TICK
PriceRange.ONE_PIP
instrument
- instrumentofferSide
- offer sidepublic KagiFeedDescriptor(Instrument instrument, OfferSide offerSide, PriceRange turnaroundAmount)
IFeedDescriptor.DEFAULT_BASE_PERIOD
CreationPoint.CLOSE
Period.TICK
instrument
- instrumentofferSide
- offer sideturnaroundAmount
- amount of price change in pips that is required to create a new Kagi line with opposite trend.public KagiFeedDescriptor(Instrument instrument, OfferSide offerSide, PriceRange turnaroundAmount, Period timeSession)
IFeedDescriptor.DEFAULT_BASE_PERIOD
CreationPoint.CLOSE
instrument
- instrumentofferSide
- offer sideturnaroundAmount
- amount of price change in pips that is required to create a new Kagi line with opposite trend.timeSession
- indicates how often we take a price for Kagi construction. Can be any valid Period
. If null, then default Period.TICK
is used.public KagiFeedDescriptor(Instrument instrument, OfferSide offerSide, PriceRange turnaroundAmount, Period timeSession, CreationPoint creationPoint)
IFeedDescriptor.DEFAULT_BASE_PERIOD
instrument
- instrumentofferSide
- offer sideturnaroundAmount
- amount of price change in pips that is required to create a new Kagi line with opposite trend.timeSession
- indicates how often we take a price for Kagi construction. 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. If time session is Period.TICK
, then this parameter has no effect.public KagiFeedDescriptor(Instrument instrument, OfferSide offerSide, PriceRange turnaroundAmount, Period timeSession, CreationPoint creationPoint, Period basePeriod)
PriceRange
).instrument
- instrumentofferSide
- offer sideturnaroundAmount
- amount of price change in pips that is required to create a new Kagi line with opposite trend.timeSession
- indicates how often we take a price for Kagi construction. 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. If time session is Period.TICK
, then this parameter has no effect.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
, 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 setTimeSession(Period timeSession)
FeedDescriptor
setTimeSession
in interface IFeedDescriptor
setTimeSession
in class FeedDescriptor
timeSession
- session periodpublic void setCreationPoint(CreationPoint creationPoint)
FeedDescriptor
setCreationPoint
in interface IFeedDescriptor
setCreationPoint
in class FeedDescriptor
creationPoint
- CreationPointpublic void setPriceRange(PriceRange turnaroundAmount)
FeedDescriptor
setPriceRange
in interface IFeedDescriptor
setPriceRange
in class FeedDescriptor
turnaroundAmount
- price rangeCopyright © 2024. All rights reserved.