I have historical data of some cryptocurrencies, including OHLCV, and their indicators…
- User
I have historical data of some cryptocurrencies, including OHLCV, and their indicators calculated by ta in csv format ,I want to train a model on them to find out the potential of them to go up and down . I want the model to predict a number in range of -2 to 2 based on currencies current situation First I need to add a label column to my csv files and label each row of my data based on following policy:
label as 2: If the price is ascending in next 5 days and increased more than 5% label as 1: If the price is ascending in next 5 days and increased more than 2% label as 0: If the price is ascending or descending in next 5 days and increased or decreased less than 2% label as -1: If the price is descending in next 5 days and decreased more than than 2% label as -2: If the price is descending in next 5 days and decreased more than than 2%
The main goal is to see if price will rise or stay the same or drop in a 5 days perspective, What is the best and most efficient way to label them based on this?
- Assistant
To label your dataset in the manner you've described, you can write a Python program that reads your CSV file, computes the labels according to the criteria you have provided, and then adds a new column with these labels. Here's an example of how to do it using :
- User
instead of comparing current day price with the five-day later price, Is there a better way than that to find out if the price is ascending or descending in the next 5 days?
- Assistant
- User
which one of the 5 ways that you described is the best way?
- Assistant
- User
i have the following columns calculated in my data : trend_ema_fast trend_ema_slow
based on my intend to label based on next five days price ascending or descending i should use ema_fast or ema_slow for labeling? please give me the proper python code to label data based on proper ema
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.