Posted by Mohammad Rahhal, Last modified by Diana Alkouni on 14 September 2020 12:37 PM


 Public Function ParabolicSAR(chart_ID As Long, MinAf As Double, MaxAf As Double) As String


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 SAR indicator is most often used to set trailing price stops. A stop and reversal (SAR) occur when the price penetrates a  Parabolic SAR level.


Key Description 
chart_ID Chart identifier, 0 is the current chart, a value of type Long
MinAf Min value for accumulation factor, a value of type Double.
MaxAf 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.


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

Back to VTL Client Script Index

(1 vote(s))
Not helpful

Comments (0)
Post a new comment
Full Name:
CAPTCHA Verification 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).

Help Desk Software by Hybrid Solutions