Syntax
Public Function ObjectSeriesSetValue(chart_ID As Long, SeriesName As String, recordNumber As Long, NewValue As Double)As Boolean
Description
This function is used to set the value for specific series in the chart.
Parameters
Key | Description |
chart_ID | Chart identifier, 0 mean the current chart, the value of type Long. |
SeriesName | The series key, the value of type String. |
recordNumber | Bars number, the value of type Long. |
NewValue | The new value to set series, the value of type Double. |
Return value
Returns true if successful, otherwise, it returns false. To read more about the error call GetLastError() function.
Sample
Public Sub main () AlertMessage ObjectSeriesSetValue (0,"SeriesName", Bars (0), 20) End sub
See Also