標準偏差を配列適用【iStdDevOnArray】

double iStdDevOnArray(double array[ ], int toral, int ma_period, int ma_shift, int ma_method, int shift)

 

Calculation of the Standard Deviation indicator on data stored in a numeric array. Unlike iStdDev(…), the iStdDevOnArray function does not take data by symbol name, timeframe, the applied price. The price data must be previously prepared. The indicator is calculated from left to right. To access to the array elements as to a series array (i.e., from right to left), one has to use the ArraySetAsSeries function.

標準偏差 インディケータを、数値配列に格納されているデータで計算します。iStdDev(…) と異なり、iStdDevOnArray 関数は、シンボル名、期間、適用された価格データを受け取りません。事前に価格データを準備する必要があります。インディケータは、左から右に計算されます。直列配列(すなわち、右から左)の配列要素にアクセスするためには、ArraySetAsSeries 関数を使用する必要があります。

Parameters:

パラメータ:

array[]
Array with data.

データ配列。

total
The number of items to be counted.

カウントするアイテムの数。

ma_period
MA period.

MAの期間。

ma_shift
MA shift.

MAの転移。

ma_method
MA method. It can be any of the Moving Average method enumerationvalue.

MAの方式。移動平均方式の列挙値のいずれかを指定できます。

shift
Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago).

インディケータ バッファから取得するインデックスの値(現在のバーを基準に、指定された期間の量だけ過去にシフトする)

 

Sample:

サンプル:

Leave a Reply

Your email address will not be published. Required fields are marked *

CAPTCHA


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">