Syntax
Public Function ParabolicSAR(chart_ID As Long, MinAf As Double, MaxAf As Double) As String
Description
The Parabolic SAR was developed by Welles Wilder. This indicator is always in the market (whenever a position is closed, an opposing position is taken).
The Parabolic SARindicator is most often used to set trailing price stops. A stop and reversal (SAR) occur when the price penetrates a Parabolic SAR level.
Parameters
Key | Description |
chart_ID | Chart identifier, 0 is the current chart, a value of type Long |
Min value for accumulation factor, a value of type Double. | |
Max value for accumulation factor, a value of type Double. |
Return value
Returns the handles of a technical indicator, in case of failure returns an empty string.
Sample
Public Sub main()AlertMessage (ParabolicSAR(0,0.02,0.2)) 'Draws the indicator on the chart and shows an AlertMessage with the indicator name.End Sub
See Also