Class MarketPriceConstants
java.lang.Object
com.bluebell.greenhouse.platform.constants.market.price.MarketPriceConstants
Constants for use with
MarketPrices.- Version:
- 2.0.3
- Author:
- Stephen Prizio
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intMinimum number of bars that should appear before and after a charted position.static final List<MarketTimeInterval> Candidate chart intervals, ordered finest to coarsest, used when selecting the resolution that best fits aPosition's duration.static final intMaximum number of times the chart window is widened while chasing the minimum bar count.static final intMinimum number of bars a position chart should contain, achieved by widening the window.static final longUpper bound on the number of bars a chart interval should produce over a position's duration.static final List<MarketTimeInterval> Intervals, ordered finest to coarsest, tried when resolving the best available data for aPosition. -
Method Summary
-
Field Details
-
POSITION_MARKET_PRICE_FALLBACK_INTERVALS
Intervals, ordered finest to coarsest, tried when resolving the best available data for aPosition. -
CHART_INTERVALS
Candidate chart intervals, ordered finest to coarsest, used when selecting the resolution that best fits aPosition's duration. -
CHART_TARGET_MAX_BARS
public static final long CHART_TARGET_MAX_BARSUpper bound on the number of bars a chart interval should produce over a position's duration.- See Also:
-
CHART_MIN_BARS
public static final int CHART_MIN_BARSMinimum number of bars a position chart should contain, achieved by widening the window.- See Also:
-
CHART_CONTEXT_BARS_PER_SIDE
public static final int CHART_CONTEXT_BARS_PER_SIDEMinimum number of bars that should appear before and after a charted position.- See Also:
-
CHART_MAX_WINDOW_EXPANSIONS
public static final int CHART_MAX_WINDOW_EXPANSIONSMaximum number of times the chart window is widened while chasing the minimum bar count.- See Also:
-