huseinzol05 / Stock-Prediction-Models

Gathers machine learning and deep learning models for Stock forecasting including trading bots and simulations
Apache License 2.0
7.69k stars 2.74k forks source link

stock-forecasting-js Candlestick colours are backwards - FIXED #53

Closed windowshopr closed 4 years ago

windowshopr commented 4 years ago

Love the repository! Great work, keep doing what you're doing.

I was playing with the forecasting-js and noticed that the candlestick colours were backwards (a bullish candlestick was red, and bearish was green), so to fix that, just edit the init.js file, find the candlestick part and make sure it reads:

    }, {
      type: 'candlestick',
      name: 'STOCK',
      data: stocks,
      itemStyle: {
        normal: {
          color: '#14b143',
          color0: '#ef232a',
          borderColor: '#14b143',
          borderColor0: '#ef232a'
        },

Also, would be amazing to have a dropdown option to choose which model/agent to use when training and forecasting your own data :D

windowshopr commented 4 years ago

I should also mention that there are 2 other sections (3 in total) that have candlestick colours so you'll need to swap them there too. Just do a search in your text editor :)