bool ArraySetAsSeries(object array[ ], bool set)
Sets indexing direction of the array. If the set parameter has the TRUE
value, the array will be indexed in a reversed order, i.e., the last element
has a zero index. The FALSE value sets a standard indexing order. The function
returns the previous status.
配列のインデックス方向を設定します。もし、set パラメータが TRUE 値の場合は、配列は逆の順序でインデックス化します。すなわち、最後の要素はゼロのインデックスになります。FALSE
値は通常の順序で設定します。この関数は以前のステータスを返します。
Parameters:
パラメータ:
array[] - The numeric array to set.
設定する数値配列
set - Array indexing order.
配列のインデックス順序
Sample:
サンプル:
double macd_buffer[300];
double signal_buffer[300];
int i,limit=ArraySize(macd_buffer);
ArraySetAsSeries(macd_buffer,true);
for(i=0; i<limit; i++)
macd_buffer[i]=iMA(NULL,0,12,0,MODE_EMA,PRICE_CLOSE,i)-iMA(NULL,0,26,0,MODE_EMA,PRICE_CLOSE,i);
for(i=0; i<limit; i++)
signal_buffer[i]=iMAOnArray(macd_buffer,limit,9,0,MODE_SMA,i);
|