Answers.Body: <p>It seems like you are trying to produce two outputs here. This usually makes the models more complex. What if you only predicted the Fibonacci levels for each time step? Then count how many time steps it stays at that level.</p>
  <p>As for producing the Fibonacci levels themselves, you can look into categorical time series where the values are categories instead of real numbers.</p>
  <p>You have a <a href="https://stackoverflow.com/q/43034960/9506872">many-to-one</a> problem. So, yes the model takes two inputs, Duration and Level, but only produces one output, the Level.</p>
  <p>The times septs in a model will always be the same. You have to choose a range that is appropriate and all your predictions will be based on that. It's important to note that finding the best time step size is a trial and error process. For example, you could first try using 10 time steps and if you find the model needs more you retrain it with 20 and compare the results.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-04-28T20:07:41.037Z
Answers.Text: So, I have basically two input for each time step (duration, level) and the output is the next level only ? 2nd question, does the time step have to be equal ? Thanks for your help
Answers.UserDisplayName: user3311337
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-04-30T12:43:37.980Z
Answers.Text: Thanks a lot. Could you please clarify one thing more. Do you confirm that a step is a duration regadless of the duration: i.e input vector (300 minutes, Level 2) output (Level 3) and 1 step is this 300 minutes, but could be 222 or anything else ? or one step is a given duration ? Do you recommend Rocket as time series forecasting for this exercise ?
Answers.UserDisplayName: user3311337
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-04-30T13:08:24.060Z
Answers.Text: @user3311337 Yes you are correct about the steps. However, in time series a time step is how far back you are considering. For example, using one week to forecast the next day is a time step of either 7 days or 1 week. Depends on your data. As for Rocket, I never used it so I can't recommend it.
Answers.UserDisplayName: Marcus
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-04-28T19:53:10.367Z
Answers.LastActivityDate: 2021-04-28T20:20:02.620Z
Answers.LastEditDate: 2021-04-28T20:20:02.620Z
Answers.UserDisplayName: Marcus
Body: <p>I have a set of time series data which gives me fibonacci levels and the duration at which the value is at this level.
  Data structure to look like:</p>
  <pre><code>Date / Duration (minutes) / Level
  
  201201 / 380 / 2
  .....
  
  210422 / 400 / 4
  </code></pre>
  <p>I'd like to create a NN model (LSTM maybe) that would forecast the next level, the probability it reaches it and this for several steps ahead (1 step = 400 minutes).
  Which time series forecasting model would you recommend ?
  Thanks in advance.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-04-28T19:34:10.013Z
Comments.Text: Could you explain what a Fibonacci level is? I'm not sure what you are trying to achieve with your model. What is the desired output?
Comments.UserDisplayName: Marcus
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-04-28T19:38:42.303Z
Comments.Text: Fibonacci levels in stock price (for example) is defined between the minimum and the maximum price during a given period. The range (min, max) is chunck in levels. Below min and above max levels are called extension levels. So, let's say that I look at 1 year back. It gives me my level and I start classifying and I count the duration in minutes price stays in each level. I am now trying to have a time series prediction model which tells me the probability that in X minutes, it should be at the level Y with a given probability. Hope it's clear, if not I am happy to explain more.
Comments.UserDisplayName: user3311337
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-04-28T19:44:34.230Z
Comments.Text: So basically, instead for predicting the actual value of the stock price, you want to know in which range the price will fall in and for how long?
Comments.UserDisplayName: Marcus
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-04-28T19:45:33.450Z
Comments.Text: Exactly this with a given probability
Comments.UserDisplayName: user3311337
Tags: <classification><long-short-term-memory><time-series>
Title: Recommended Time serie forecasting model for Fibonacci levels classification
UserDisplayName: user3311337
ThreadText: # Recommended Time serie forecasting model for Fibonacci levels classification
  
  (Asked by: username_0 on 2021-04-27)
  
  I have a set of time series data which gives me fibonacci levels and the duration at which the value is at this level.
  Data structure to look like:
  Date / Duration (minutes) / Level
  
  201201 / 380 / 2
  .....
  
  210422 / 400 / 4
  
  I'd like to create a NN model (LSTM maybe) that would forecast the next level, the probability it reaches it and this for several steps ahead (1 step = 400 minutes).
  Which time series forecasting model would you recommend ?
  Thanks in advance.
  
  **Tags:** classification, long-short-term-memory, time-series
  > **Comments:**
  > **username_1**: Could you explain what a Fibonacci level is? I'm not sure what you are trying to achieve with your model. What is the desired output?  
  > **username_0**: Fibonacci levels in stock price (for example) is defined between the minimum and the maximum price during a given period. The range (min, max) is chunck in levels. Below min and above max levels are called extension levels. So, let's say that I look at 1 year back. It gives me my level and I start classifying and I count the duration in minutes price stays in each level. I am now trying to have a time series prediction model which tells me the probability that in X minutes, it should be at the level Y with a given probability. Hope it's clear, if not I am happy to explain more.  
  > **username_1**: So basically, instead for predicting the actual value of the stock price, you want to know in which range the price will fall in and for how long?  
  > **username_0**: Exactly this with a given probability  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2021-04-28. Score: 1 | Accepted answer
  
  It seems like you are trying to produce two outputs here. This usually makes the models more complex. What if you only predicted the Fibonacci levels for each time step? Then count how many time steps it stays at that level.
  
  As for producing the Fibonacci levels themselves, you can look into categorical time series where the values are categories instead of real numbers.
  
  You have a [many-to-one](https://stackoverflow.com/q/43034960/9506872) problem. So, yes the model takes two inputs, Duration and Level, but only produces one output, the Level.
  
  The times septs in a model will always be the same. You have to choose a range that is appropriate and all your predictions will be based on that. It's important to note that finding the best time step size is a trial and error process. For example, you could first try using 10 time steps and if you find the model needs more you retrain it with 20 and compare the results.
  
  > **Comments:**
  > **username_0**: So, I have basically two input for each time step (duration, level) and the output is the next level only ? 2nd question, does the time step have to be equal ? Thanks for your help  
  > **username_0**: Thanks a lot. Could you please clarify one thing more. Do you confirm that a step is a duration regadless of the duration: i.e input vector (300 minutes, Level 2) output (Level 3) and 1 step is this 300 minutes, but could be 222 or anything else ? or one step is a given duration ? Do you recommend Rocket as time series forecasting for this exercise ?  
  > **username_1**: @user3311337 Yes you are correct about the steps. However, in time series a time step is how far back you are considering. For example, using one week to forecast the next day is a time step of either 7 days or 1 week. Depends on your data. As for Rocket, I never used it so I can't recommend it.  
  
  ---
  
  