dobule iEnvelopesOnArray(double array[ ], int total, int ma_period, int ma_method, int ma_shift, double deviation, int mode, int shift)
Calculation of the Envelopes indicator on data stored in a numeric array.
Unlike iEnvelopes(...), the iEnvelopesOnArray 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.
エンベローブ インディケータを、数値配列に格納されているデータで計算します。iEnvelopes(...) と異なり、iEnvelopesOnArray
関数は、シンボル名、期間、適用された価格データを受け取りません。事前に価格データを準備する必要があります。インディケータは、左から右に計算されます。直列配列(すなわち、右から左)の配列要素にアクセスするためには、ArraySetAsSeries 関数を使用する必要があります。
Parameters:
パラメータ:
| array[] |
- |
Array with data. データ配列。 |
| total |
- |
The number of items to be counted. カウントするアイテムの数。 |
| ma_period |
- |
Averaging period for calculation of the main line. 主線の計算のための平均期間。 |
| ma_method |
- |
MAの方式。移動平均方式の列挙値のいずれかを指定できます。 |
| ma_shift |
- |
MA shift. Indicator line offset relate to the chart by timeframe. MAの転移。インディケータのずれた線を時間枠のチャートに関連付けます。 |
| deviation |
- |
Percent deviation from the main line. 本線からの偏差率。 |
| mode |
- |
インディケータ線のインデックス。インディケータ線の識別子の列挙値のいずれかを指定できます。 |
| shift |
- |
Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago). インディケータ バッファから取得するインデックスの値(現在のバーを基準に、指定された期間の量だけ過去にシフトする) |
|
Sample:
サンプル:
double val=iEnvelopesOnArray(ExtBuffer, 0, 13, MODE_SMA, 0.2, MODE_UPPER,0 );
|