Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 535 Bytes

lifecycle_methods.on_parameters_updated.rst

File metadata and controls

18 lines (12 loc) · 535 Bytes

def on_parameters_updated

This lifecycle method gets called when the strategy's parameters were updated using the self.update_parameters() function

class MyStrategy(Strategy):
    def on_parameters_updated(self, parameters):
        # Do this when the parameters are updated
        self.log_message("Parameters updated")
        self.log_message(parameters)

Reference

.. autofunction:: strategies.strategy.Strategy.on_parameters_updated