Hi there,

I'm quite new here and before diving into the algorithm framework I wanted to implement a simple algorithm, but unfortunately I seem to have a bug somewhere and can't find it.

The trading rules:
Buy if 14-day-RSI smaller than 30
Sell if 14-day-RSI larger than 40, or exit after 10 days

The strange thing is, that the algorithm buys from time to time slightly above the buying threshold:

129750_1609773246.jpg

Probably it is some dumb mistake, but I tried a few hours now and somehow can't find the problem. Would be nice to get some input regarding that issue!

Thanks a lot in advance!

Cheers,
Georg

 

Author