NexusFi: Find Your Edge


Home Menu

 





Backtest Correlation Dividends


Discussion in Stocks and ETFs

Updated
    1. trending_up 2,195 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 2 posts
    2. attach_file 1 attachments




 
Search this Thread

Backtest Correlation Dividends

  #1 (permalink)
fizuaal77
Paris France
 
Posts: 1 since Nov 2019
Thanks Given: 0
Thanks Received: 0

Hello all, Hope you are well,

I am a beginner in VBA & in modelling, that's why I'm asking for your help today.

I have a data base with 300 stocks annual dividends and monthly stocks prices. I have therefore made a vba graph (sheet "Base 100 Dividendes") comparing the stock price evolution of a stock (orange curve), with its dividendes evolution (blue curve). The histogram illustrates the dividend progression.
Problem: I am trying to create a model with a backtest. This model would try to find a correlation between the histogram's evolution and the stock price evolution. This model can be backtested on the all period or just 1, 2 or 3years. (I don't much knowledge in maths & stats).
Example: On the stock 7532 JP Equity, we can see that the stock price is positively correlated to the the histogram evolution.
I'm open to any solutions even though I'd like to stay on VBA Excel. Pls contact me in private if you try to send me an .xlsm file.

Thank you very much! have a nice day,

Attached Files
Elite Membership required to download: test1.xlsx
Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Cheap historycal L1 data for stocks
Stocks and ETFs
What broker to use for trading palladium futures
Commodities
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
About a successful futures trader who didnĀ“t know anyth …
Psychology and Money Management
MC PL editor upgrade
MultiCharts
 
  #3 (permalink)
 semiopen 
hillsborough nj
 
Experience: Advanced
Platform: Tradestation/Excel
Broker: TradeStation
Trading: emicro
Posts: 98 since Sep 2018
Thanks Given: 18
Thanks Received: 46


Hi,

I use Excel VBA for analysis and have made a few posts on here.

I don't consider dividends in my analysis, but have been sort of rethinking that. Theoretically, as long as adjusted prices are used, dividends can be ignored - certainly makes programming easier to do that. I'm slightly interested in total return analysis and have been considering including dividends; however it is a non-trivial amount of work to set up and the benefits are doubtful.

Your chart Base 100 Dividends is not convincing - stock prices and dividends are rising over time (16 years) but not sure what that suggests other than that the company (or whatever you are looking at) is viable.

Your arrangement of multiple securities prices horizontally in columns is a bit questionable. Each security should have its own worksheet. When a summary type display is necessary, that should be built from the individual detail security worksheets that one is interested in. The columnar arrangement is a design flaw that probably has to be corrected if you want to improve your analysis.

Correlation matrices are easy to set up (google - correlation matrix excel vba). In this case, you have a little advantage in that your data is already set up in columns.

InvestExcel is a decent place to get excel examples.

Good luck in your research, it looks like you have made a good start.

Reply With Quote




Last Updated on January 23, 2020


© 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