Hello, I have tried to implement the Bandpass Filter using c#. It is very simple in thoeory. The code on Tradingview is also just 1 line basically.

Problem: The code is compiling fine, but the values go to +/- infinity after a couple of datapoints...

The values should normaly stay between +- 0.1 at max

I simply cant find the reason why this happens.

Please help! Thanks