[docs]defset_high_color(self,color:str):"""Sets the color for the overbought (high) threshold line. Args: color (str): The color for the high threshold line (overbought). """self.instance.send(self.id,'setHighColor',{'color':color})returnself
[docs]defset_low_color(self,color:str):"""Sets the color for the oversold (low) threshold line. Args: color (str): The color for the low threshold line (oversold). """self.instance.send(self.id,'setLowColor',{'color':color})returnself
[docs]defset_thresholds(self,low_threshold:int|float,high_threshold:int|float):"""Sets the low and high threshold levels for the RSI indicator. Args: low_threshold (int | float): The value for the oversold threshold. high_threshold (int | float): The value for the overbought threshold. """self.instance.send(self.id,'setThresholds',{'lowThreshold':low_threshold,'highThreshold':high_threshold},)returnself