Deep-Stonks-Group / Forecasting-Team-3

Other
0 stars 2 forks source link

Get Resistance/Support #11

Open calebheinzman opened 3 years ago

calebheinzman commented 3 years ago

Little Background:

Steps:

  1. Create a new branch SupportandResistance

  2. Within forecast team 3, create a function: add_resistance_and_support(data) This function can be in it's own python file if you would like. When you're done we'll move it to the PythonDataProcessing repo.

  3. Use get_stock_data to get a data frame with stock data. You can use print(data) to see the format. It's basically a table.

  4. Follow the steps in the tutorial link above to get lines. Feel free to brainstorm improvements too.

  5. Within the function you will probably need to create a new column in the data frame for all the support / resistance new values. I'm not sure the best way to do this. Idk if a set number of columns is best or if we should have it dynamically add columns? One idea is to have SupportClose and ResistanceClose columns then have a Support Far and ResistanceFar column. Either way, the rows for each of these columns correspond to a date. You can put the y value of any support line here. So that each date has corresponding support/resistance lines.

  6. Add this column to that stock data frame. See sma and ema.