SetArrowStyle
Posted by Mohammad Rahhal, Last modified by Abdullah Almasharfah on 10 January 2019 11:39 AM

Syntax

Public Function SetArrowStyle(chart_id As Long, seriesName As String, code As Integer) As Boolean

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

(1 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