Beispiel #1
0
    def optimize(start_date, finish_date):
        """
        tunes the hyper-parameters of your strategy
        """
        validate_cwd()
        from jesse.config import config
        config['app']['trading_mode'] = 'optimize'

        register_custom_exception_handler()

        from jesse.modes.optimize_mode import optimize_mode

        optimize_mode(start_date, finish_date)
Beispiel #2
0
def optimize(start_date, finish_date, optimal_total, cpu, debug, csv, json):
    """
    tunes the hyper-parameters of your strategy
    """
    validate_cwd()
    from jesse.config import config
    config['app']['trading_mode'] = 'optimize'

    register_custom_exception_handler()

    # debug flag
    config['app']['debug_mode'] = debug

    from jesse.modes.optimize_mode import optimize_mode

    optimize_mode(start_date, finish_date, optimal_total, cpu, csv, json)