Knowledgebase:
ParabolicSAR
Posted by Mohammad Rahhal, Last modified by Rawan Al Hourani on 15 June 2016 02:07 PM

Syntax

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) occurs when the price penetrates a  Parabolic SAR level.

Parameters

Key Description 
chart_ID Chart identifier, 0 is the current chart ,value of type Long
MinAf Min value for accumulation factor, value of type Double.
MaxAf Max value for accumulation factor , 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 chart and shows an AlertMessage with the indicator name.

End Sub


See Also


Back to VTL Client Script Index

(1 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
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