Skip to content

Construct StochasticRSI indicator properly #147

@FatihErdem

Description

@FatihErdem

Hello,

I am trying to build Stochastic RSI indicator. In StochasticRSI there are K, D, Rsi and Stochastic parameters.

I want build StochRSI(14, 9, 3, 3):

  • RSI = 14
  • Stoch = 9
  • K = 3
  • D = 3
StochasticOscillatorKIndicator k = new StochasticOscillatorKIndicator(series, 3);
StochasticOscillatorDIndicator d = new StochasticOscillatorDIndicator(k);
RSIIndicator rsi = new RSIIndicator(d, 14); // I think it's wrong
StochasticRSIIndicator stochRsi = new StochasticRSIIndicator(rsi, 9);

Result of the stochRsi calculation is totally wrong when compare to result with exchange's graphs.
How can I construct StochasticRSIIndicator properly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementIssue describing or discussing an enhancement for this libraryquestion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions