Algorithm
- class crypto_env.algorithm.Algorithm[source]
Bases:
abc.ABCThe algorithm wrapper template for the customized agent
- class crypto_env.algorithm.BuyAndHold(buy_amount: float)[source]
Bases:
crypto_env.algorithm.algorithm.AlgorithmAn example implementation of class
Algorithm. This algorithm implements the buy and hold strategy. See https://www.investopedia.com/terms/b/buyandhold.asp for more information.
- class crypto_env.algorithm.MovingAverage(price_feature_pos, short_window=30, long_window=180, initial_cap=100)[source]
Bases:
crypto_env.algorithm.algorithm.AlgorithmAn example implementation of class
Algorithm. This algorithm implements the Dual Moving Average Crossover strategy. See https://faculty.fuqua.duke.edu/~charvey/Teaching/BA453_2002/CCAM/CCAM.htm for more information.