Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to produce StochRSI with TEMA as a source.

See original GitHub issue

Hello… I’ve been working with this component a couple of months now. I’ve built my project around it. It’s great.

I am having a bit of difficulty trying to replicate an indicator on my chart.

I need to create a StochRSI (1,1,5,2) with the source of it’s data from TEMA(9). I’m only interested in the K of the StochRSI, which produces 0 and 100 only.

Here is what it looks like in TradingView: image

My problem is that when I try to do this. I only get 0 and nothing else. I’m supposed to get 100 for certain candles.

Here is my code:

 //convert candles
            var quotes = s.CandleHistories.Select(c => new Quote()
                                                Date = c.Time.DateTime,
                                                Open = c.Open,
                                                High = c.High,
                                                Low = c.Low,
                                                Close = c.Close,
                                                Volume = c.Volume
            //Get tema values
            var tema9 = quotes.GetTema(9);

            //Get StochRSI with Tema9 as source
            var temaquotes = tema9
                                .Where(x => x.Tema.HasValue)
                                .Select(x => new Quote() { 
                                    Close = Convert.ToDecimal(x.Tema.Value),
                                    Date = x.Date

            //This output ONLY produces 0... no 100s
            var stochrsiTema = temaquotes.GetStochRsi(1,1,5,2);

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

cyberyagacommented, Aug 3, 2022

Oh Wow… What a stupid mistake…

Thanks for the help again. At least we got the GetStochRsi method to chain with GetTema 😃

DaveSkendercommented, Jul 26, 2022

I’ll try to take a look this weekend. Thanks for the extra info.

the project is now in .NET 7 …

I usually wait for GA before taking on new .NET versions, but got ahead of myself on this one. I sorta regret it as it requires me to keep two versions of Visual Studio on my computer and it breaks some VS Code IDE compatibility. Probably won’t do it again.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Stoch RSI is broken · Issue #203 · TA-Lib/ta-lib-python
I got it working by using Tulip indicators and calling fastk, fastd = ti.stoch(rsi, rsi, rsi, 14, 3, 3) , still can't get...
Read more >
TA-Lib is widely used by trading software developers requiring to perform technical analysis of financial market data. Includes 150+ indicators such as ADX, ......
Read more >
StochRSI - thinkorswim Learning Center
The Stochastic RSI technical indicator applies Stochastic Oscillator to values of the Relative Strength Index (RSI). The indicator thus produces two main plots ......
Read more >
pine script - Adding Stochastic RSI, DMI and RSI together
I am trying to add Stochastic RSI, DMI and RSI together in trading view, but encountering this following error - "Add to Chart...
Read more >
Stochastic RSI Explained
Stochastic RSI is a technical analysis indicator used to determine whether an asset is overbought or oversold.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found