java.lang.Object
io.runon.trading.technical.analysis.trend.line.TrendLine

public class TrendLine extends Object
추세선
Author:
macle
  • Constructor Details

    • TrendLine

      public TrendLine(TrendLine.Type type)
      생성자
      Parameters:
      type - Type 추세선 유형
  • Method Details

    • score

      public BigDecimal score(TradeCandle[] candles, int index, int leftCount, BigDecimal shortGapRate)
      하락 기울기 1.0이면 하락 패턴 1.0 보다 커지면 하락기울기가 가파름
      Parameters:
      candles - TradeCandle[] 캔듭배열
      index - int 기준인덱스
      leftCount - int 좌측 건수
      shortGapRate - 짧은캔들 비율
      Returns:
      기울기
    • getType

      public TrendLine.Type getType()
      트렌드 라인 유형 상승 하락
      Returns:
      type up or down