Syntax
Public Function SetArrowStyle(chart_id As Long, seriesName As String, code As Integer) As Boolean
Description
This function sets an arrow for the indicator. To perform this function successfully, you have to set the drawing style to be DRAW_ARROWS.
Parameters
Key |
Description |
chart_id |
Chart identifier, 0 is the current chart, value of type Long |
seriesName |
Series Name to draw it as an arrow, a value of type String. |
Code |
Symbol code Win gdings .this code can be from 33 to 255. Out or range 33 to 255 cannot be used. |
Return value
If the function succeeds, the returned value will be True, otherwise, it will be false.To get the detailed error information, call GetLastError().
Sample
Public Sub main()
Dim highArry()
Dim result
CopyHigh 0,1, bars(0),highArry
indKey=AddCustomIndicator(0,highArry,1)
result=SetDrawingStyle(0,CSTR(indKey) ,DRAW_ARROWS)
If Cbool(result)= false Then
AlertMessage "the returned value from SetDrawingStyle Function is false .To get the detailed error information, call GetLastError()."
End If
result = SetArrowStyle( 0, cstr(indKey) ,69 )
If Cbool(result)= false Then
AlertMessage "the returned value from SetArrowStyle Function is false .To get the detailed error information, call GetLastError()."
End If
End Sub
See Also
Back to VTL Client Script Index
|