Data preparation

The trading experiment is tested in a cryptocurrency exchange called Poloniex. In order to test the current approach, m = 11 non-cash assets having the highest volume are pre-selected for the portfolio. Since the first base asset is cash, that is Bitcoin, the size of the portfolio is m+1 = 12. If we had tested in a market with larger volumes, such as foreign exchange market, there m would be as large as the total number of assets in the market.

Historical data of the assets is fed into a neural network, which outputs a portfolio weight vector. Input to a neural network at the end of period t is a tensor , of rank 3 with shape ...

Get Reinforcement Learning with TensorFlow now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.