Skip to content

Wrong Indicator Calculation ( I think) #809

@TonyWellbrock

Description

@TonyWellbrock

Hello,
I am new to programming and especially when it comes to vectorbt, but I think something is wrong with the indicator calculation. I got 90 trades in 275 days of annual data from 1h candles while backtesting.py had only 24 or so. Then I continued my research and wrote a Pinescript strategy with the strategy I backtested with vectorbt and backtesting.py, and Tradingview had only 21 trades.
Long story short: I found that my calculated RSI values showed a big difference to the values of the RSI in Tradingview, although they were both calculated on the closing price data.
I will link you everything you need to see the difference yourself.

I hope someone can help me!

I have linked all the code below, as well as the data and the output:

VectorBT & Backtesting.py + Ergebnisse.txt

RSI Data VectorBT.txt

Image Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions