jpriggs / Stockgenie

GNU General Public License v3.0
0 stars 0 forks source link

Prediction #15

Closed jpriggs closed 6 years ago

jpriggs commented 6 years ago

A method was created in the Regression class that is made up of 2 algorithms:

  1. Generates a list of valid future time stamps respecting end of market hours, weekends, and holidays.

  2. The valid time stamp list is then passed on to an algorithm that adds specified index values based on the api time interval and function to a dictionary with the time stamp as the key and the price as the value.

Once the values have been passed to the view, a recommendation is made ('BUY'/'SELL') based on if the latest actual market price is higher or lower than the latest returned predicted price.

Then the text is passed to a new class called ColorizeText that will color BUY as green, and SELL as red.

Some adjustments were made to the stock-predict-box css and a few changes were made to the predict box in the template.