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
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")
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