Interface Layer1PriceAxisRangeCalculatable


public interface Layer1PriceAxisRangeCalculatable
Implement this interface if you want to manually calculate price axis ranges for your indicators
  • 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 alias
      linesCount - 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 top
      inputInfo - 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