double iRSIOnArray(double array[ ], int total, int period, int shift)
Calculation of the Relative Strength Index on data stored in a numeric
array. Unlike iRSI(...), the iRSIOnArray 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.
相対力指数(RSI)を、数値配列に格納されているデータで計算します。iRSI(...) と異なり、iRSIOnArray 関数は、シンボル名、期間、適用された価格データを受け取りません。事前に価格データを準備する必要があります。インディケータは、左から右に計算されます。直列配列(すなわち、右から左)の配列要素にアクセスするためには、ArraySetAsSeries 関数を使用する必要があります。
Parameters:
パラメータ:
| array[] |
- |
Array with data. データ配列。 |
| total |
- |
The number of items to be counted. カウントするアイテムの数。 |
| period |
- |
Number of periods for calculation. 計算するための期間の数。 |
| shift |
- |
Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago). インディケータ バッファから取得するインデックスの値(現在のバーを基準に、指定された期間の量だけ過去にシフトする) |
|
Sample:
サンプル:
if(iRSIOnArray(ExtBuffer,1000,14,0)>iRSI(NULL,0,14,PRICE_CLOSE,1)) return(0);
|