[docs]defset_bar_colors(self,color_up:str,color_down:str):"""Sets the colors of the bars. Args: color_up (str): The color of the bar, when its value is higher than the previous bar. color_down (str): The color of the bar, when its value is lower than the previous bar. """self.instance.send(self.id,'setBarColorsAwesome',{'colorUp':color_up,'colorDown':color_down},)returnself
[docs]defset_period_counts(self,short_periods:int,long_periods:int):"""Sets the number of short-term and long-term time periods used to calculate the indicator. Args: short_periods (int): Short-term period count. long_periods (int): Long-term period count. """self.instance.send(self.id,'setPeriodCountsAwesome',{'shortPeriods':short_periods,'longPeriods':long_periods},)returnself