Interface Layer1PriceAxisRangeCalculatable
public interface Layer1PriceAxisRangeCalculatable
Implement this interface if you want to manually calculate
price axis ranges for your indicators
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classRange of values for this indicator [minValue, maxValue]static class -
Method Summary
Modifier and TypeMethodDescriptiongetPriceRanges(String alias, double linesCount, Map<String, Layer1PriceAxisRangeCalculatable.InputPriceAxisInfo> inputInfo) You can use PriceRangeCalculationHelper for existing implementations
-
Method Details
-
getPriceRanges
Map<String,Layer1PriceAxisRangeCalculatable.ResultPriceAxisInfo> getPriceRanges(String alias, double linesCount, Map<String, Layer1PriceAxisRangeCalculatable.InputPriceAxisInfo> inputInfo) You can use PriceRangeCalculationHelper for existing implementations- Parameters:
alias- instrument aliaslinesCount- number of visible horizontal lines, that can display labels. Note that this value is double.
Value 2.3 will means 2 visible lines, and 3/10 of distance between lines as empty space to the topinputInfo- map, containing all indicators for this strategy and this alias (having determined limits. If there was no data for this indicator, it won't be passed here), and their value range- Returns:
- map, where key set should be equal to inputInfo key set, and value represents desired range and labels for this indicator
-