This is a simple JavaScript tool for analyzing cryptocurrency data to determine if it's in a bear market.
- Replace the
cryptoData
object inbear_market_analyzer.js
with your cryptocurrency price data. - Run the script using Node.js or in a web browser environment.
- The script will output whether the cryptocurrency is in a bear market, along with the average price and current price.
Suppose you have the following cryptocurrency price data:
const cryptoData = {
prices: [100, 90, 80, 70, 60, 50, 40, 30, 20, 10]
};