Knowledgebase:
ChartSetSymbolPeriod
Posted by Mohammad Rahhal, Last modified by Rawan Al Hourani on 12 July 2017 01:20 PM

Syntax

Public Function ChartSetSymbolPeriod(chart_id As Long, Period As ENUM_TIMEFRAMES)As Boolean

This function is used to change the period of the specified given the chart with a new time frame.

Parameters

Key Description
chart_id Chart identifier .0 is the current chart,as a value of type long.
Period The new time frame, value of type ENUM_TIMEFRAMES.

Return value

Returns true if successful, otherwise returns false, to get error call GetLastError().

Sample

Public Sub main()

AlertMessage ChartSetSymbolPeriod(0,PERIOD_H1) 'Returns true and reloads the chart with the new period.

End Sub


See Also


Back to VTL Client Script Index

(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