Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Internal Bar Strength indicator #7

Open
joshuaulrich opened this issue Mar 8, 2015 · 0 comments
Open

Add Internal Bar Strength indicator #7

joshuaulrich opened this issue Mar 8, 2015 · 0 comments
Assignees
Labels
feature request New features

Comments

@joshuaulrich
Copy link
Owner

Internal Bar Strength (IBS) is a mean-reversion indicator described in a couple posts on the QUSMA blog.

The calculation is IBS = (Close - Low) / (High - Low), which equivalent to a 1-period stochastic oscillator with no smoothing. For example:

getSymbols("SPY")
IBS <- (Cl(SPY)-Lo(SPY))/(Hi(SPY)-Lo(SPY))
ibs <- stoch(HLC(SPY), 1)
sum(ibs$fastK - IBS, na.rm=TRUE)  # 0 (or close to it)
@joshuaulrich joshuaulrich added the feature request New features label Mar 8, 2015
@joshuaulrich joshuaulrich self-assigned this Mar 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New features
Projects
None yet
Development

No branches or pull requests

1 participant