Search found 40 matches

by amrsherif
Wed Aug 21, 2019 6:13 am
Forum: Programming
Topic: Code for Fan Chart - Error
Replies: 1
Views: 75

Re: Code for Fan Chart - Error

I believe you need a ‘wend’ at the end of the your while loop (add it as the last line)
by amrsherif
Mon Aug 12, 2019 10:17 am
Forum: Programming
Topic: sample/string error in subroutine
Replies: 2
Views: 116

Re: sample/string error in subroutine

Thanks for the quick response. The example posted gives me the same error. I managed to work around it by splitting the line into two: !tempscalar=@elem(s2, %firstdate2)/@elem(s1, %firstdate2) series s1adj=s1*!tempscalar Old Code 'series s1adj=s1*@elem(s2, %firstdate2)/@elem(s1, %firstdate2) I'm usi...
by amrsherif
Mon Aug 12, 2019 10:02 am
Forum: Programming
Topic: sample/string error in subroutine
Replies: 2
Views: 116

sample/string error in subroutine

One of our subroutines is no longer working (although we've made no changes to the code). I've attached the error message. Specifically, the error is in this line: series s1adj=s1*@elem(s2, %firstdate2)/@elem(s1, %firstdate2) Both %firstdate2 and %firstdate2 are defined properly, and the line "...
by amrsherif
Sat Aug 10, 2019 12:12 pm
Forum: Programming
Topic: Finding the series that leads to "log of nonpositive" error
Replies: 1
Views: 120

Re: Finding the series that leads to "log of nonpositive" error

Not sure if this is late but if you’re still having the issue, you might want to use a string or scalar as an identifier as you loop through the equations. For example, say i have 10 equations then: scalar i=1 for %equation 1 2 3 Estimate your equation here i=i+1 next The variable i will tell you wh...
by amrsherif
Tue Jun 25, 2019 9:58 am
Forum: Data Manipulation
Topic: error in custom date specification
Replies: 2
Views: 230

Re: error in custom date specification

This worked. Thank you
by amrsherif
Tue Jun 25, 2019 6:25 am
Forum: Data Manipulation
Topic: error in custom date specification
Replies: 2
Views: 230

error in custom date specification

Hi, I think this is the correct place to post this question since it is not related to programming. Everytime i click on a series and try to view it as a graph i get a 'error in custom date specification' error. I've had this problem before but cannot remember how it was resolved. Any advice on how ...
by amrsherif
Mon May 13, 2019 8:47 am
Forum: Programming
Topic: Date axis grid lines
Replies: 2
Views: 376

Re: Date axis grid lines

Thank you
by amrsherif
Mon May 13, 2019 5:29 am
Forum: Programming
Topic: Date axis grid lines
Replies: 2
Views: 376

Date axis grid lines

Hi,

How do i turn off date the date axis grid lines in a program? I'm able to go into the chart options --> axis & scaling --> grid lines --> Obs & Date axis grid lines and i can choose none. This works, but chart_1.axis(b) -grid seems to have no effect

thanks
by amrsherif
Wed May 08, 2019 12:17 pm
Forum: Programming
Topic: color setting Eviews 11
Replies: 2
Views: 369

Re: color setting Eviews 11

That works. Thanks for this (and for spotting the typo)
by amrsherif
Wed May 08, 2019 11:04 am
Forum: Programming
Topic: color setting Eviews 11
Replies: 2
Views: 369

color setting Eviews 11

Hi, I upgraded to EViews 11 today, and am having trouble changing colors in graphs. For example: graph chart1.line series1 series2 chart1.textdefault font("Ariel",8,-b,-i,-u) textcolor(0,0,0) fillcolor(255,255,255) framecolor(255,255,255) existing i get the following error: illegal color s...
by amrsherif
Fri Feb 15, 2019 12:04 pm
Forum: Programming
Topic: Bloomberg API
Replies: 3
Views: 620

Re: Bloomberg API

Thanks for this. I believe that their policy has changed. For example, it was the case that once you exceed the monthly limit, you can fetch series that you have already fetched diring the month. This is no longer the case. Also According to their help desk, downloading a time series with 1000 datap...
by amrsherif
Fri Feb 15, 2019 8:46 am
Forum: Programming
Topic: Bloomberg API
Replies: 3
Views: 620

Bloomberg API

Hi, Quick question. Does the bloomberg API request (within Eviews) change depending on the sample of my workfile? For example if i have a workfile that only has 10 days (versus 1000 days let's say) , does the start date in the request change to 10 days or does it request all the historical data, and...
by amrsherif
Fri Feb 08, 2019 12:36 pm
Forum: Programming
Topic: get program name or path
Replies: 10
Views: 635

Re: get program name or path

Ok so i think i’ve figured it out. The problem was my workaround involved making a subroutine that logged the low level program name and then it executed it. The problem seems to have been the execution inside the sub routine. It’s very strange and i don’t know exactly why this was happening. But ha...
by amrsherif
Fri Feb 08, 2019 11:19 am
Forum: Programming
Topic: get program name or path
Replies: 10
Views: 635

Re: get program name or path

i have logmode(name="logseriessource", ts) logmsg at the top of every program that uses logmsg

I do get the crash every single time though. Even if i stop the program before the logsave, and run that part in the command

Eviews 10, August 22 2018 build.
by amrsherif
Fri Feb 08, 2019 10:26 am
Forum: Programming
Topic: get program name or path
Replies: 10
Views: 635

Re: get program name or path

Ok thanks. I found a way around it (had to write a subroutine tat executes the programs). How about the crashing issue? Have you seen anybody reporting bugs/crashing while using logsave?

Go to advanced search