public class PointAndFigureFeedDescriptor extends FeedDescriptor implements ITailoredFeedDescriptor<IPointAndFigure>
FeedDescriptor
DEFAULT_BASE_PERIOD, INFINITE_BASE_PERIOD
Constructor and Description |
---|
PointAndFigureFeedDescriptor(Instrument instrument,
PriceRange boxSize,
ReversalAmount reversalAmount,
OfferSide offerSide)
"Fast" constructor, which has minimal set of parameters for
FeedDescriptor creation
Base period is set to default (one week). |
PointAndFigureFeedDescriptor(Instrument instrument,
PriceRange boxSize,
ReversalAmount reversalAmount,
OfferSide offerSide,
Period basePeriod)
"Fast" constructor, which has minimal set of parameters for
FeedDescriptor creation. |
PointAndFigureFeedDescriptor(Instrument instrument,
PriceRange boxSize,
ReversalAmount reversalAmount,
OfferSide offerSide,
Period timeSession,
CalculationMethod calculationMethod,
Period basePeriod)
Constructor, that sets all required fields.
|
PointAndFigureFeedDescriptor(Instrument instrument,
PriceRange boxSize,
ReversalAmount reversalAmount,
OfferSide offerSide,
Period basePeriod,
DataInterpolationDescriptor interpolationDescriptor)
Deprecated.
Interpolation descriptor is not used for P&F calculation any more.
See
PointAndFigureFeedDescriptor(com.dukascopy.api.Instrument, com.dukascopy.api.PriceRange, com.dukascopy.api.ReversalAmount, com.dukascopy.api.OfferSide, com.dukascopy.api.Period, com.dukascopy.api.feed.CalculationMethod, com.dukascopy.api.Period) |
Modifier and Type | Method and Description |
---|---|
void |
setCalculationMethod(CalculationMethod calculationMethod)
Setter for DataType.POINT_AND_FIGURE calculation method.
|
void |
setPeriod(Period period)
Setter for period.
|
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, setCreationPoint, setDataInterpolationDescriptor, setDataType, setFilter, setInstrument, setLineBreakLookback, setOfferSide, setPriceRange, 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, setCreationPoint, setDataInterpolationDescriptor, setDataType, setFilter, setInstrument, setLineBreakLookback, setOfferSide, setPriceRange, setRenkoCreationPoint, setRenkoSession, setRenkoType, setReversalAmount, setTickBarSize
public PointAndFigureFeedDescriptor(Instrument instrument, PriceRange boxSize, ReversalAmount reversalAmount, OfferSide offerSide)
FeedDescriptor
creation
Base period is set to default (one week).instrument
- instrumentboxSize
- box sizereversalAmount
- reversal amountofferSide
- offer sidepublic PointAndFigureFeedDescriptor(Instrument instrument, PriceRange boxSize, ReversalAmount reversalAmount, OfferSide offerSide, Period basePeriod)
FeedDescriptor
creation.
The period represents the base period.instrument
- instrumentboxSize
- box sizereversalAmount
- reversal amountofferSide
- offer sidebasePeriod
- the period, in which the point and figure bars are calculated. If base period is given Period.INFINITY
, then point and figure 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 PointAndFigureFeedDescriptor(Instrument instrument, PriceRange boxSize, ReversalAmount reversalAmount, OfferSide offerSide, Period basePeriod, DataInterpolationDescriptor interpolationDescriptor)
PointAndFigureFeedDescriptor(com.dukascopy.api.Instrument, com.dukascopy.api.PriceRange, com.dukascopy.api.ReversalAmount, com.dukascopy.api.OfferSide, com.dukascopy.api.Period, com.dukascopy.api.feed.CalculationMethod, com.dukascopy.api.Period)
instrument
- instrumentboxSize
- box sizereversalAmount
- reversal amountofferSide
- offer sidebasePeriod
- the period, in which the point and figure bars are calculated. If base period is given Period.INFINITY
, then point and figure 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, ReversalAmount reversalAmount)
method.
To find more about tick interpolation from candles and it's purpose, see DataInterpolationDescriptor
.public PointAndFigureFeedDescriptor(Instrument instrument, PriceRange boxSize, ReversalAmount reversalAmount, OfferSide offerSide, Period timeSession, CalculationMethod calculationMethod, Period basePeriod)
instrument
- instrumentboxSize
- box sizereversalAmount
- reversal amountofferSide
- offer sidetimeSession
- time sessioncalculationMethod
- calculation methodbasePeriod
- the period, in which the point and figure bars are calculated. If base period is given Period.INFINITY
, then point and figure 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 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 setCalculationMethod(CalculationMethod calculationMethod)
FeedDescriptor
setCalculationMethod
in interface IFeedDescriptor
setCalculationMethod
in class FeedDescriptor
calculationMethod
- CalculationMethodCopyright © 2024. All rights reserved.