MQL4 Reference
Technical indicators
iRSIOnArray
| 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.
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);
|
|
|