-
Notifications
You must be signed in to change notification settings - Fork 858
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
Data Update plus script for backadjusting futures #25
Comments
Data update is done. The back adjustment script is on my to do list already (at #2 if you're interested). It's not a quick thing to write unfortunately so it could be a while before I get round to it. |
Great, thanks for the data update! I'll patiently look out for the back-adjustment script. Thanks |
+1 for back-adjustment. Does anyone have a panama adjustment script (no matter how rough) to get me started? Would be awesome have something to use as a base for coding up a back-adjustment. Ideally i'd like to be able to create the provided data sets from script. |
This is what I'm using, I store my prices in my SQL Database. A couple of proviso's:
`import pyodbc from GlobalVariables import MyGlobalVariables def CreateStitchdPriceStream():
def StoreStitchedPrices(StitchedPrices, Symbol):
` |
Don't know if this is a good spot to share code. But anyway i profit a lot from sharing. So pick from this here as well if it is useful to you. This is a more general, object oriented approach.
Have fun. It is quite new, so I am thankful if you let me know any bugs you come across. ` class rollingFuturesContract:
''' with open('Z:/Sync/StartMe/PythonPackages/pygruebi/futures_parameters.pickle', 'wb') as f: |
|
gist.github.com is a good place to share code like this. |
How about tidying them up opening a pull request against the repo.? either in master or a WIP branch |
thanks for posting these! super useful! |
Ok, tried plugging the code to gist.gihub.com as suggested in case it might be useful for you Rob or anyone else (I am kind of new to github so thanks for bearing with me. A pull request would need more adjustments): |
https://gist.github.com/gruebi/ebb7c699972216cfa25240e999561fb9 |
Would it be possible to update the docs/introduction.md with the results from the latest data. (I would run through and update it myself however before my most recent pull I was having trouble getting the same numbers from the get_capped_forecast step onwards, and I would like to try again with the new data). Thanks. |
closing this as no longer an issue |
@drSeeS I tried to have a look at your gist but the neither link works? |
@ChrisAllisonMalta should still be working (even including correction of a small bug): |
Hi Rob,
Would you be so kind as to update the CSV data? I would like to simulate performance over Brexit.
Additionally, are you able to provide and script for back-adjusting the futures contracts? I have attempted to create one so I can update the data myself. It is based on the traded price for the new future and subtracting the difference between the traded price of the new future from the price of the old future at the time of trade across the historical data series, but this is yielding some strange results for me. I assume you have something similar you must used when rolling contracts and back-adjusting the price series?
Thanks
The text was updated successfully, but these errors were encountered: