Interface Layer1PriceAxisRangeCalculatable
public interface Layer1PriceAxisRangeCalculatable
Implement this interface if you want to manually calculate
price axis ranges for your indicators
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classLayer1PriceAxisRangeCalculatable.InputPriceAxisInfoRange of values for this indicator [minValue, maxValue]static classLayer1PriceAxisRangeCalculatable.ResultPriceAxisInfo -
Method Summary
Modifier and Type Method Description java.util.Map<java.lang.String,Layer1PriceAxisRangeCalculatable.ResultPriceAxisInfo>getPriceRanges(java.lang.String alias, double linesCount, java.util.Map<java.lang.String,Layer1PriceAxisRangeCalculatable.InputPriceAxisInfo> inputInfo)You can use PriceRangeCalculationHelper for existing implementations
-
Method Details
-
getPriceRanges
java.util.Map<java.lang.String,Layer1PriceAxisRangeCalculatable.ResultPriceAxisInfo> getPriceRanges(java.lang.String alias, double linesCount, java.util.Map<java.lang.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
-