[docs]defset_arrow_color(self,color:str):"""Sets the color of the arrow. Args: color (str): New arrow color as string, should be in HEX format e.g. #FFFFFF. """self.instance.send(self.id,'setArrowColor',{'color':color})returnself
[docs]defset_arrow_size(self,width:int,height:int):"""Sets the size of the arrow in pixels. Args: width (int): New arrow width. height (int): New arrow height. """self.instance.send(self.id,'setArrowSize',{'width':width,'height':height})returnself
[docs]defset_arrow_type(self,arrow_type:int):"""Sets the arrow type (direction). Args: arrow_type (int): New arrow type. """self.instance.send(self.id,'setArrowType',{'arrowType':arrow_type})returnself
[docs]defupdate_position(self,x_value:int|float,y_value:int|float):"""Updates the drawing tool location. Args: x_value (int | float): X-value for the cross point. y_value (int | float): Y-value (price) for the cross point. """self.instance.send(self.id,'updateArrowPosition',{'xValue':x_value,'yValue':y_value})returnself