MQL4 Reference
Technical indicators
iSAR
| double iSAR( |
string symbol, int timeframe, double step, double maximum, int shift) |
Calculates the Parabolic Stop and Reverse system and returns its value.
Parameters:
| symbol |
- |
Symbol the data of which should be used to calculate indicator. NULL means the current symbol. |
| timeframe |
- |
Timeframe. It can be any of Timeframe enumeration values. 0 means the current chart timeframe. |
| step |
- |
Increment, usually 0.02. |
| maximum |
- |
Maximum value, usually 0.2. |
| shift |
- |
Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago). |
Sample:
if(iSAR(NULL,0,0.02,0.2,0)>Close[0]) return(0);
|
|
|