The purchase of cryptocurrency is carried out at the moment when the current price is below the average price with a period of 200 and when the current price crosses the average price up with a period of 50 and exit when the current price is above the average price with a period of 200…