Trader trader_macdext

(PECL trader >= 0.2.0)

trader_macdext — MACD with controllable MA type


설명

trader_macdext(
    array $real,
    int $fastPeriod = ?,
    int $fastMAType = ?,
    int $slowPeriod = ?,
    int $slowMAType = ?,
    int $signalPeriod = ?,
    int $signalMAType = ?
): array
                

매개변수

real
Array of real values.
fastPeriod
Number of period for the fast MA. Valid range from 2 to 100000.
fastMAType
빠른 MA에 대한 이동 평균 유형. TRADER_MA_TYPE_* 일련의 상수를 사용해야 합니다.
slowPeriod
Number of period for the slow MA. Valid range from 2 to 100000.
slowMAType
느린 MA에 대한 이동 평균 유형. TRADER_MA_TYPE_* 일련의 상수를 사용해야 합니다.
signalPeriod
Smoothing for the signal line (nb of period). Valid range from 1 to 100000.
signalMAType
신호 라인에 대한 이동 평균 유형. TRADER_MA_TYPE_* 일련의 상수를 사용해야 합니다.

반환 값

계산된 데이터가 있는 배열을 반환하거나 실패 시 false를 반환합니다.