@Deprecated public class KagiFeedInfo extends FeedInfo implements ITailoredFeedInfo<IKagi>
DEFAULT_BASE_PERIOD, INFINITE_BASE_PERIOD
Constructor and Description |
---|
KagiFeedInfo(IFinancialInstrument financialInstrument,
OfferSide offerSide)
Deprecated.
Constructor, that uses minimal set of parameters.
|
KagiFeedInfo(IFinancialInstrument financialInstrument,
OfferSide offerSide,
PriceRange turnaroundAmount)
Deprecated.
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
|
KagiFeedInfo(IFinancialInstrument financialInstrument,
OfferSide offerSide,
PriceRange turnaroundAmount,
Period timeSession)
Deprecated.
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
|
KagiFeedInfo(IFinancialInstrument financialInstrument,
OfferSide offerSide,
PriceRange turnaroundAmount,
Period timeSession,
CreationPoint creationPoint)
Deprecated.
Constructor for Kagi data with static turnaround price in pips (turnaroundAmount), which uses default values for:
base period -
IFeedDescriptor.DEFAULT_BASE_PERIOD
|
KagiFeedInfo(IFinancialInstrument financialInstrument,
OfferSide offerSide,
PriceRange turnaroundAmount,
Period timeSession,
CreationPoint creationPoint,
Period basePeriod)
Deprecated.
Constructor, that sets all the 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 |
setPriceRange(PriceRange turnaroundAmount)
Deprecated.
Setter for price range
|
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, 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, setReversalAmount, setTickBarSize
public KagiFeedInfo(IFinancialInstrument financialInstrument, OfferSide offerSide)
IFeedDescriptor.DEFAULT_BASE_PERIOD
CreationPoint.CLOSE
Period.TICK
PriceRange.ONE_PIP
financialInstrument
- instrumentofferSide
- offer sidepublic KagiFeedInfo(IFinancialInstrument financialInstrument, OfferSide offerSide, PriceRange turnaroundAmount)
IFeedDescriptor.DEFAULT_BASE_PERIOD
CreationPoint.CLOSE
Period.TICK
financialInstrument
- instrumentofferSide
- offer sideturnaroundAmount
- amount of price change in pips that is required to create a new Kagi line with opposite trend.public KagiFeedInfo(IFinancialInstrument financialInstrument, OfferSide offerSide, PriceRange turnaroundAmount, Period timeSession)
IFeedDescriptor.DEFAULT_BASE_PERIOD
CreationPoint.CLOSE
financialInstrument
- 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 KagiFeedInfo(IFinancialInstrument financialInstrument, OfferSide offerSide, PriceRange turnaroundAmount, Period timeSession, CreationPoint creationPoint)
IFeedDescriptor.DEFAULT_BASE_PERIOD
financialInstrument
- 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 KagiFeedInfo(IFinancialInstrument financialInstrument, OfferSide offerSide, PriceRange turnaroundAmount, Period timeSession, CreationPoint creationPoint, Period basePeriod)
PriceRange
).financialInstrument
- 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.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 setPriceRange(PriceRange turnaroundAmount)
FeedInfo
setPriceRange
in interface IFeedInfo
setPriceRange
in class FeedInfo
turnaroundAmount
- price rangeCopyright © 2024. All rights reserved.