Knowledgebase:
Calculate PIP Value
Posted by Rula Halaseh, Last modified by Mohammad Ghawanmeh on 28 July 2015 02:00 PM

'''#####################################################################################
'''#### Script Name: Calculate PIP Value 
'''#### Author : Rula Halaseh 
'''#### Website : www.Hybrid-solutions.com 
'''#### Date : 07/05/2012 15:21:30 
'''#### Description: Calculates the PIP value for the current chart 
'''#####################################################################################

Public Sub main()

Dim piploc
Dim pip
Dim Symbol
Symbol = ChartSymbol(0) 'Returns the Symbol name of the open chart
AlertMessage SymbolInfoInteger (ChartSymbol(0),1,piploc)'Saves the PIP location in piploc variable
AlertMessage CSTR(piploc) 'displays PIP location
pip=10^piploc 'Calculates PIP Value
AlertMessage CSTR(pip) 'Displays the PIP Value
End Sub

(0 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