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

Cci keltner #28

Merged
merged 6 commits into from
May 31, 2014
Merged

Cci keltner #28

merged 6 commits into from
May 31, 2014

Conversation

XilinJia
Copy link
Contributor

added functions of cci and keltnerbands

@milktrader
Copy link
Member

Have you gotten correct output from cci? I'm getting errors. Could you use MarketData objects to demonstrate?

cci(ohlc,9)

ohlc is a 505-row object in MarketData

corrected error in cci function
@XilinJia
Copy link
Contributor Author

error corrected.

removed redundant timestamp
@XilinJia
Copy link
Contributor Author

removed the redundant timestamp variable

@milktrader
Copy link
Member

Excellent, let's keep going. We need to add tests, which should be done by adding to the test/momentum.jl file. The correct answers are:

cci(ohlc).values[1]     => 123.823
cci(ohlc).timestamp[1]  => date(1980,1,31)
cci(ohlc).values[end]   =>  -64.314384

@milktrader
Copy link
Member

After adding tests, it's simple to test them from repl

using FactCheck

@runtest MarketTechnicals momentum

Once those are passing, that's the last piece, and then we can go through the keltner code and do the same. And then when we're done, we need to git squash the commits since there is a lot of cruft here.

@milktrader
Copy link
Member

I'll add tests later.

milktrader pushed a commit that referenced this pull request May 31, 2014
@milktrader milktrader merged commit b0bad1d into JuliaQuant:master May 31, 2014
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.

2 participants