def optimizesell_trend30(config): feed = fxsignal.FxcmFeed('GBP/USD', datetime(2019, 1, 1), datetime(2019, 9, 1), 'm30', config['fxcm']) feed.read_csv() data = fxsignal.FeedConverter.fxcm2bt(feed.clean()) runner = fxsignal.OptimizeRunner(feed, data, 'trend30', 'sell') runner.run()
def optimizebuy_keltner2(config): feed = fxsignal.FxcmFeed('EUR/USD', datetime(2015, 10, 1), datetime(2019, 5, 1), 'D1', config['fxcm']) feed.read_csv() data = fxsignal.FeedConverter.fxcm2bt(feed.clean()) runner = fxsignal.OptimizeRunner(feed, data, 'trend_keltner2', 'sell') runner.run()
def optimizebuy_hma(config): feed = fxsignal.FxcmFeed('EUR/USD', datetime(2015, 1, 1), datetime(2019, 5, 1), 'D1', config['fxcm']) feed.read_csv() data = fxsignal.FeedConverter.fxcm2bt(feed.clean()) runner = fxsignal.OptimizeRunner(feed, data, 'trend_jackvortex', 'buy') runner.run()
def optimizesell_hma(config, currency, start_dt): feed = fxsignal.FxcmFeed(currency, start_dt, datetime(2019, 8, 1), 'D1', config['fxcm']) feed.read_csv() data = fxsignal.FeedConverter.fxcm2bt(feed.clean()) runner = fxsignal.OptimizeRunner(feed, data, 'trend_jackvortex', 'sell', file_id=start_dt.strftime("%Y-%m-%d")) runner.run()