pythonlessons / RL-Bitcoin-trading-bot

Trying to create Reinforcement Learning powered Bitcoin trading bot
MIT License
380 stars 208 forks source link

Indicators #7

Open johnnynunez opened 3 years ago

johnnynunez commented 3 years ago

I have one question. Shouldn't the indicators be for more days? I mean if you get 1h candles and the RSI is calculated with 14 days, shouldn't it be 24 x 14 = 336 margin rows? Because I understand that the library takes the days as rows of the data frame, as if the rows were days.

kianfa commented 5 months ago

As far as I know, RSI is calculateb by 14 previous candles. In 1h timeframe, last 14 hourly candles are used. It's worth noting that the value of 14 is a default parameter, but can be adjusted to accommodate different analysis preferences or trading strategies.