[docs]defset_bar_color(self,color:str):"""Sets the color of the volume bars. Args: color (str): The color to use for the volume bars. """self.instance.send(self.id,'setBarColor',{'color':color})returnself
[docs]defset_show_as_overlay(self,show_as_overlay:bool):"""Sets whether the volume indicator is displayed as an overlay. Args: show_as_overlay (bool): Whether to show the volume bars as an overlay on the price chart. """self.instance.send(self.id,'setShowAsOverlay',{'showAsOverlay':show_as_overlay})returnself
[docs]defset_two_colored_bars(self,use_two_colors:bool):"""Enables or disables two-colored volume bars. Args: use_two_colors (bool): Whether to use two colors for volume bars (e.g., for up and down movements). """self.instance.send(self.id,'setTwoColoredBars',{'useTwoColors':use_two_colors})returnself