Indicators
Indicators
Half Trend (half_trend)

Half Trend (half_trend)

def half_trend(high: NDArray[Shape["*", Float]], low: NDArray[Shape["*", Float]], close: NDArray[Shape["*", Float]], amplitude: float | int, channel_deviation: float | int, atr_length: float | int) -> NDArray[Shape["2 *"], Float]:
    """
    Half Trend
    Inputs: high, low, close
    Options: amplitude[2], channel_deviation[2], atr_length[100]
    Outputs: ?ht(ohlc), bar_color
    """
    pass

The Half Trend indicator requires 3 input and 3 option parameters.

This indicator returns 2 outputs

Inputs

  • high - a numpy.array of numpy.float64
  • low - a numpy.array of numpy.float64
  • close - a numpy.array of numpy.float64

Options

  • amplitude - float | int
  • channel_deviation - float | int
  • atr_length - float | int

Outputs

  • ?ht(ohlc)
  • bar_color