Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upUpdated getBars - support for adjustmentFollowDPDF #48
Conversation
|
@joel23888 I'd like to revisit this, but possibly as one option in a to-be-added new options or overrides vector. I'd rather not expand the interface with a bunch of toggles at the top-level. Thoughts? |
|
Thanks. I think a vector approach would be good because there are currently several options. Would you want to default to adjusting for corporate actions or following DPDF? Also, would you include gapFillInitialBar in the vector as well? |
|
Yup. I'm out and about right now so can't take a detailed look right now but a single (named) vector may do, potentially also overrides. Might be best to list a few options and have test function or two. So your help in this is greatly appreciated. ;-) |
|
Happy to help, but I will have to look at this in more detail next week. Initial thoughts:
|
|
Quickly:
|
|
@eddelbuettel I am busy with other things at the moment but I will return to this when things free up. |
|
@eddelbuettel I can take a look at this - for the two calls you mentioned do you mean pick a corporate action and show expected behavior? |
|
@joel23888 yes, I guess my idea was to show a call without the option set and then one with it set so that we see in changed output that it was actually affecting the outcome as planned. |
|
@eddelbuettel I have something working with an options vector (and remove the boolean paramter gapFillInitialBar) but no defaults. I think by default the behavior should reflect gapFillInitialBar=TRUE and adjustmentFollowDPDF=TRUE (after testing if it not passed then it will not adjust by default). What do you think and if you agree what is the preferred way to default? |
|
@eddelbuettel You can see some of the tests I ran on this at: Let me know on the defaults and I'll make any adjustments and submit a new pull request. |
|
The tests look good. (The commit is "dirty" as you included dll files...) A new (or modified) pull request would be good, this moves in the right direction! |
|
Can you make that a new or updated pull request? I can always clean up / adjust afterwards. |
|
Submitted a new one. Or let me know if you prefer me to clean up on Monday. Whatever works for you. |
This is a potential solution for adjusting intraday bar requests for corporate actions such as stock splits.