Posted by Mohammad Rahhal, Last modified by Diana Alkouni on 08 September 2020 07:28 AM


 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.


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().


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))
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