NexusFi: Find Your Edge


Home Menu

 





Split and Dividend adjustment


Discussion in MultiCharts

Updated
      Top Posters
    1. looks_one Big Mike with 3 posts (2 thanks)
    2. looks_two FB2012 with 2 posts (0 thanks)
    3. looks_3 ReversionTrader with 1 posts (0 thanks)
    4. looks_4 clonardo with 1 posts (1 thanks)
    1. trending_up 5,127 views
    2. thumb_up 3 thanks given
    3. group 3 followers
    1. forum 6 posts
    2. attach_file 0 attachments




 
Search this Thread

Split and Dividend adjustment

  #1 (permalink)
 FB2012 
Munich Germany
 
Experience: Beginner
Platform: MultiCharts .NET,MultiCharts,Amibroker
Broker: Interactive Brokers IQFeed
Trading: Stocks,Index CFDs
Posts: 149 since Aug 2012
Thanks Given: 81
Thanks Received: 84

Using multiple symbols listed at the NYSE for backtesting, data adjustment is very necessary.
When a split or a dividend payment takes place huge gaps can occur in the daily data.
With IQfeed there is no adjusted data which adjusts those price dislocations. Yahoo data feed delivers a adjustment column but this is not usable in MC.
Therefore, I am asking how others are handling their data adjustment especially for backtesting stock market strategies.

Visit my NexusFi Trade Journal Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Quant vue
Trading Reviews and Vendors
Better Renko Gaps
The Elite Circle
How to apply profiles
Traders Hideout
Cheap historycal L1 data for stocks
Stocks and ETFs
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
  #2 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,463 since Jun 2009
Thanks Given: 33,239
Thanks Received: 101,661

I just went thru this, I think I posted details here:



(cant remember which post, but recent)

Short version, use R quantmod to download Dividends and Splits from Yahoo, then use my own functions to calculate the adjustments. There is also quantmod:::adjustOHLC if you want to trust it, I had problems with it personally.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #3 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,463 since Jun 2009
Thanks Given: 33,239
Thanks Received: 101,661


Nevermind, just realized you are using MC.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #4 (permalink)
 FB2012 
Munich Germany
 
Experience: Beginner
Platform: MultiCharts .NET,MultiCharts,Amibroker
Broker: Interactive Brokers IQFeed
Trading: Stocks,Index CFDs
Posts: 149 since Aug 2012
Thanks Given: 81
Thanks Received: 84

Thank you very much for your suggestion.
I think it should be possible to get the Iqfeed data exported easily, to R or maybe a custom written C# code, using Multicharts.Net or Multicharts.
But in my opinion it will be a very cumbersome workaround, which can be affected by bugs.
Therefore, I hoped to have a reliable proven way to deal with that problem.

Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #5 (permalink)
clonardo
New York, NY USA
 
Posts: 6 since Oct 2013
Thanks Given: 0
Thanks Received: 5

You are correct that IQFeed only has unadjusted data. Unless you are able to reliably get split/dividend data from another source (e.g., Bloomberg), the process that I've found best is this-

1) store unadjusted tick/minute/whatever prices from IQFeed somewhere (e.g., MySQL database)
2) store dividends (which are part of the Yahoo historical data feed)
3) download adjusted and unadjusted daily close prices from Yahoo at the end of each day
4) back into adjustment multipliers + dividend offsets after step 3 each day, then generate a new adjusted output file

Annoying, but manageable. Unfortunately, cannot share my code on this one. Good luck.

Reply With Quote
Thanked by:
  #6 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,463 since Jun 2009
Thanks Given: 33,239
Thanks Received: 101,661


clonardo View Post
You are correct that IQFeed only has unadjusted data. Unless you are able to reliably get split/dividend data from another source (e.g., Bloomberg), the process that I've found best is this-

1) store unadjusted tick/minute/whatever prices from IQFeed somewhere (e.g., MySQL database)
2) store dividends (which are part of the Yahoo historical data feed)
3) download adjusted and unadjusted daily close prices from Yahoo at the end of each day
4) back into adjustment multipliers + dividend offsets after step 3 each day, then generate a new adjusted output file

Annoying, but manageable. Unfortunately, cannot share my code on this one. Good luck.


I am doing something similar already. However, IQFeed does send split adjusted data on closer inspection. But not dividend adjusted data.

Sent from my LG Optimus G Pro

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #7 (permalink)
 ReversionTrader 
San Francisco, CA
 
Experience: Intermediate
Platform: Python, R, WealthLab
Broker: IB + IQFeed
Trading: N/A
Posts: 4 since Feb 2013
Thanks Given: 0
Thanks Received: 0

It seems that Yahoo is no longer allowing API calls for historical data, hence quantmod, TTR, pandas, or any other package/software which relied on Yahoo to get EOD historical data is out of luck.

I had used Yahoo data for a while to do exactly what was described in this thread (to impute Adj factors based on adjusted / unadjusted prices), then to apply these factors to other unadjusted data sets (IQFeed). I'm now in the market for either a new source of adjusted & unadjusted prices, or for a source of splits/dividends with which to create my own adjustment factors. It's surprising how many data vendors only supply unadjusted data.

Any leads, please let me know!

RT

Reply With Quote




Last Updated on May 19, 2017


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts