Command for shading areas using intraday data

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

asbatronic2016
Posts: 7
Joined: Thu Nov 10, 2016 2:29 pm

Command for shading areas using intraday data

Postby asbatronic2016 » Thu Nov 10, 2016 2:35 pm

Hi

I have minute by minute data for equity prices for May 06, 2010 between 7:00:00 and 15:59:59.
I want to use a command to insert a shaded area between 08:00:00 and 09:00:00 but it does not work.
I used the following command:
graph graph3.line price
graph3.draw(shade, bottom) 05/06/2010 08:00:00 05/06/2010 09:00:00

I can draw shaded areas using the vertical axis but it looks like Eviews is unable to read correctly the date/time specification.

Thanks in advance
Attachments
Example.WF1
(21.21 KiB) Downloaded 233 times

EViews Jason
EViews Developer
Posts: 870
Joined: Tue Sep 16, 2008 3:50 pm

Re: Command for shading areas using intraday data

Postby EViews Jason » Fri Nov 11, 2016 11:45 am

Try putting the dates in quotes.

Code: Select all

graph3.draw(shade, bottom) "05/06/2010 08:00:00" "05/06/2010 09:00:00"

asbatronic2016
Posts: 7
Joined: Thu Nov 10, 2016 2:29 pm

Re: Command for shading areas using intraday data

Postby asbatronic2016 » Fri Nov 11, 2016 11:54 am

Thanks it worked!
Cheers


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests