Calculates the Parabolic Stop and Reverse system indicator and returns its value.
await Indicators.SAR(symbol:string, timeframe:string, step:int, maximum:int, priceType:int)
Parameters
| Name |
Type |
Действие |
Значение по умолчанию |
| symbol |
string |
Symbol name on the data of which the indicator will be calculated. null means the current symbol. |
— |
| timeframe |
string |
TimeFrame. It can be any of TimeFrame enumeration values. 0 means the current chart timeframe. |
— |
| step |
int |
The step of price increment, usually 0.02. |
— |
| maximum |
int |
The maximum step, usually 0.2. |
— |
| priceType |
int |
Price type |
— |
Return value
Numerical values of the Parabolic Stop and Reverse system indicator.
Example
let list = await Indicator.SAR(null, 0, 0.02, 0.2, PriceType.Bid);