Ejemplo n.º 1
0
def main_execute():

    advisor = Advisor()

    intervals = [60, 120, 720]
    processor = DataProcessor(intervals)
    subset_df = processor.get_dataframe_subset(3500)

    advisor.calc_buy_sell(intervals, subset_df)

    processor.plot(subset_df)
    processor.db.close()
def main_execute():

    trading_advisor = TradingAdvisor()

    intervals = [20, 60, 120]
    processor = DataProcessor(intervals)
    subset_df = processor.get_dataframe_subset(500)

    advisor.calc_buy_sell(intervals, subset_df)

    processor.plot(subset_df)
    processor.db.close()