[docs]defset_show_signal(self,show_signal:bool):"""Toggles the visibility of the signal line on the Center of Gravity indicator. Args: show_signal (bool): If True, the signal line will be displayed; otherwise, it will be hidden. """self.instance.send(self.id,'setShowSignal',{'showSignal':show_signal})returnself
[docs]defset_signal_color(self,color:str):"""Sets the color of the signal line in the Center of Gravity indicator. Args: color (str): A string representing the color for the signal line (e.g., '#00FF00' for green). """self.instance.send(self.id,'setSignalColor',{'color':color})returnself
[docs]defset_signal_period_count(self,count:int):"""Defines the number of periods used for calculating the signal line. Args: count (int): The number of periods for the signal calculation. """self.instance.send(self.id,'setSignalPeriodCount',{'count':count})returnself