コード例 #1
0
    # Define portfolio-name/trader mappings
    portfolio_name_trader_mappings = [
        # Benchmark trader
        ('Buy-and-hold Trader', Traders.BuyAndHoldTrader()),

        # Simple traders
        ('Simple Trader (perfect prediction)',
         Traders.SimpleTrader_with_perfect_prediction()),
        ('Simple Trader (NN binary perfect prediction)',
         Traders.SimpleTrader_with_nn_binary_perfect_prediction()),
        ('Simple Trader (NN binary prediction)',
         Traders.SimpleTrader_with_nn_binary_prediction()),

        # Deep Q-Learning traders
        ('DQL Trader (perfect prediction)',
         Traders.DqlTrader_with_perfect_prediction()),
        ('DQL Trader (NN binary perfect prediction)',
         Traders.DqlTrader_with_nn_binary_perfect_prediction()),
        ('DQL Trader (NN binary prediction)',
         Traders.DqlTrader_with_nn_binary_prediction()),

        # Code-Camp Task 0 traders
        ('Team Blue Simple Trader (perfect prediction)',
         Traders.TeamBlueSimpleTrader_with_perfect_prediction()),
        ('Team Green Simple Trader (perfect prediction)',
         Traders.TeamGreenSimpleTrader_with_perfect_prediction()),
        ('Team Pink Simple Trader (perfect prediction)',
         Traders.TeamPinkSimpleTrader_with_perfect_prediction()),
        ('Team Red Simple Trader (perfect prediction)',
         Traders.TeamRedSimpleTrader_with_perfect_prediction()),
コード例 #2
0
ファイル: stock_exchange.py プロジェクト: zer0wiz/Trader.AI
    # Define portfolio-name/trader mappings
    portfolio_name_trader_mappings = [
        # Benchmark trader
        ('Buy-and-hold Trader', Traders.BuyAndHoldTrader(), 'chartreuse'),

        # Simple traders
        ('Simple Trader (perfect prediction)',
         Traders.SimpleTrader_with_perfect_prediction(), 'pink'),
        ('Simple Trader (NN binary perfect prediction)',
         Traders.SimpleTrader_with_nn_binary_perfect_prediction(), 'yellow'),
        ('Simple Trader (NN binary prediction)',
         Traders.SimpleTrader_with_nn_binary_prediction(), 'brown'),

        # Deep Q-Learning traders
        ('DQL Trader (perfect prediction)',
         Traders.DqlTrader_with_perfect_prediction(), 'gray'),
        ('DQL Trader (NN binary perfect prediction)',
         Traders.DqlTrader_with_nn_binary_perfect_prediction(), 'magenta'),
        ('DQL Trader (NN binary prediction)',
         Traders.DqlTrader_with_nn_binary_prediction(), 'burlywood'),

        # Code-Camp Task 0 traders
        ('Team Blue Simple Trader (perfect prediction)',
         Traders.TeamBlueSimpleTrader_with_perfect_prediction(), 'blue'),
        ('Team Green Simple Trader (perfect prediction)',
         Traders.TeamGreenSimpleTrader_with_perfect_prediction(), 'green'),
        ('Team Black Simple Trader (perfect prediction)',
         Traders.TeamBlackSimpleTrader_with_perfect_prediction(), 'black'),
        ('Team Red Simple Trader (perfect prediction)',
         Traders.TeamRedSimpleTrader_with_perfect_prediction(), 'red'),