[docs]defset_fill_enabled(self,enabled:bool):"""Enables or disables the fill area for the SuperTrend indicator. Args: enabled (bool): True to enable the fill, False to disable it. """self.instance.send(self.id,'setFillEnabled',{'fillEnabled':enabled})returnself
[docs]defset_line_width(self,width:int|float):"""Sets the width of the SuperTrend line. Args: width (int | float): The width of the line in pixels. """self.instance.send(self.id,'setLineWidth',{'width':width})returnself
[docs]defset_lower_color(self,color:str):"""Sets the color for the lower part of the SuperTrend indicator. Args: color (str): The color for the lower trend line. """self.instance.send(self.id,'setLowerColor',{'color':color})returnself
[docs]defset_multiplier(self,multiplier:float):"""Sets the multiplier for the SuperTrend calculation. Args: multiplier (float): The multiplier used to calculate the SuperTrend levels. """self.instance.send(self.id,'setMultiplierSuperTrend',{'Multiplier':multiplier})returnself
[docs]defset_upper_color(self,color:str):"""Sets the color for the upper part of the SuperTrend indicator. Args: color (str): The color for the upper trend line. """self.instance.send(self.id,'setUpperColor',{'color':color})returnself