예제 #1
0
def evaluate_random(Strategy, parameters):

    DateRange = gekkoWrapper.getRandomDateRange(DatasetRange, deltaDays=settings['deltaDays'])
    params = expandGekkoStrategyParameters(parameters, Strategy)
    
    BacktestResult = gekkoWrapper.Evaluate(30, watch, [DateRange], params, "http://localhost:3000")
    BalancedProfit = BacktestResult[0][0]
    return BalancedProfit
예제 #2
0
def evaluate_random(Strategy, parameters):

    DateRange = gekkoWrapper.getRandomDateRange(
        DatasetRange, deltaDays=settings['deltaDays'])
    params = expandGekkoStrategyParameters(parameters, Strategy)

    return gekkoWrapper.Evaluate(dict, 30, DateRange, params,
                                 "http://localhost:3000")
예제 #3
0
def Evaluate(Strategy, parameters):

    DateRange = gekkoWrapper.getRandomDateRange(DatasetRange, deltaDays=settings['deltaDays'])
    params = expandGekkoStrategyParameters(parameters, Strategy)

    BacktestResult = gekkoWrapper.Evaluate(bayesSettings, watch,
                                           [DateRange], params, gsettings['GekkoURLs'][0])
    BalancedProfit = BacktestResult[0][0]
    return BalancedProfit