Page 1 of 1

Code to calculate how weekday affects stock price ?

Posted: Sun Mar 22, 2015 11:36 pm
by anhkhoa_lpt
Dear Sir/Madam,
I come from Vietnam. Iam researching about how weekday affects stock price. I did it for only one serie (code VNI). Now I want expand it to all stock code (near 600 stocks). How can I do that ?
Thanks & Regards,

Code: Select all

'create one serie equals percent of VNI genr pc_vni=d(vni)/vni(-1) 'create one vector to store results vector(5) weekdays 'calculate return in weekdays for !i=2 to 6 smpl if weekday=!i weekdays(!i-1)=@mean(pc_vni) next delete pc_vni smpl @all

Re: Code to calculate how weekday affects stock price ?

Posted: Mon Mar 23, 2015 1:54 am
by trubador
Have you tried searching the forum? There are plenty of examples about that. For instance:
http://forums.eviews.com/viewtopic.php?f=3&t=9099
http://forums.eviews.com/viewtopic.php? ... 12&p=23385
http://forums.eviews.com/viewtopic.php?f=3&t=10903
And for the batch code, you need to look at the programming examples. A good place to start is:
http://forums.eviews.com/viewtopic.php?f=5&t=1638

Re: Code to calculate how weekday affects stock price ?

Posted: Mon Mar 23, 2015 2:27 am
by anhkhoa_lpt
I understood.
Thank you so much, Mr Trubador