Skip to content

Clarify RSI lookback and unstable-period defaults in the docs#748

Open
Whning0513 wants to merge 1 commit into
TA-Lib:masterfrom
Whning0513:fix-issue-603
Open

Clarify RSI lookback and unstable-period defaults in the docs#748
Whning0513 wants to merge 1 commit into
TA-Lib:masterfrom
Whning0513:fix-issue-603

Conversation

@Whning0513

Copy link
Copy Markdown

Fixes #603.
Also addresses #664.

The function docs already mention lookback periods and unstable functions, but they do not explain two points that keep coming up in issues:

  • timeperiod is not always the same as the number of raw observations needed before the first output. RSI(timeperiod=14) needs 15 prices because it starts from 14 price changes.
  • get_unstable_period() returns 0 by default, even for functions documented as unstable, until the caller sets a non-zero unstable period explicitly.

This adds those clarifications to the main Function API docs in the README and generated docs pages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RSI Indicator Requires 1 More Value Than the ‘timeperiod’ Specifies

1 participant