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 toset 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 |
Return value
If the function succeeds, the returned value will be True, otherwise, it will be false.To get the detailed error information, callGetLastError().
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 IfEnd Sub
See Also