macd

macd

MACD(移動平均収束/発散)。
株価のトレンドの強さ、方向、勢い、期間の変化を明らかにする予定です。

macd(source, fastlen, slowlen, siglen) → [series[float], series[float], series[float]]

// Example 1
study('MACD')
[macdLine, signalLine, histLine] = macd(close, 12, 26, 9)
plot(macdLine, color=color.blue)
plot(signalLine, color=color.orange)
plot(histLine, color=color.red, style=plot.style_histogram)

// Example 2
// If you need only one value, use placeholders '_' like this:
study('MACD')
[_, signalLine, _] = macd(close, 12, 26, 9)
plot(signalLine, color=color.orange)

戻り
3つのMACD系列のタプル: MACDラインとシグナルライン、ヒストグラムのライン。

引数
source (series) 処理する値の系列。
fastlen (integer) ファスト・パラメータ
slowlen (integer) スロー・パラメータ
siglen (integer) 信号の長さのパラメーター。

\ 最新情報をチェック /

コメントを残す

Pineスクリプト

前の記事

lowestbars
Pineスクリプト

次の記事

max