dobule iBandsOnArray(string array[ ], int total, int period, int deviation, int bands_shift, int mode, int shift)
Calculation of the Bollinger Bands indicator on data stored in a numeric
array. Unlike iBands(...), the iBandsOnArray 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.
ボリンジャーバンド インディケータを、数値配列に格納されているデータで計算します。iBands(...) と異なり、iBandsOnArray
関数は、シンボル名、期間、適用された価格データを受け取りません。事前に価格データを準備する必要があります。インディケータは、左から右に計算されます。直列配列(すなわち、右から左)の配列要素にアクセスするためには、ArraySetAsSeries 関数を使用する必要があります。
Parameters:
パラメータ:
| array[] |
- |
Array with data. データ配列。 |
| total |
- |
The number of items to be counted. 0 means the whole array. カウントするアイテムの数。0 は、全体の配列を表します。 |
| period |
- |
Averaging period for calculation. 計算する平均期間。 |
| deviation |
- |
Deviation from the main line. 本線からの偏差。 |
| bands_shift |
- |
The indicator shift relative to the chart. チャートを基準として、インディケータの位置を転移します。 |
| mode |
- |
インディケータの線のインデックス。インディケータ線の識別子の列挙値のいずれかを指定できます。 |
| shift |
- |
Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago). インディケータ バッファから取得するインデックスの値(現在のバーを基準に、指定された期間の量だけ過去にシフトする) |
|
Sample:
サンプル:
if(iBands(ExtBuffer,total,2,0,MODE_LOWER,0)>Low[0]) return(0);
|