IndicatorBuffer.prototype. smaメソッド
概要
自身のインジケーターバッファーから単純移動平均(SMA)の値を計算し、出力結果を対象のインジケーターバッファーにセットします。
シグニチャ
sma(targetBuffer,maPeriod,index)return number
- 引数
-
No キー 値 1 outputBuffer 移動平均を格納するインジケーターバッファー 2 maPeriod 移動平均を求める期間 3 index 移動平均をもとめるindex - 戻り値
- 移動平均の値