[Eiffel-mas-tips] Re. Problem with emailing generated signals (fwd)
Brought to you by:
jcochrane
From: Jim C. <jt...@di...> - 2003-05-16 16:38:17
|
A problem emailing MAS's generated signals is addressed below. The problem occurred on a Windows system, but it can also apply to Linux. > Ok Jim, > > I reinstalled MAS from scratch and this is what I did: > > 1 - changed "symbols" to "symbols.txt". Subsequently I changed = > mas_httprc's > symbols file name to "symbols.txt" > 2 - I got rid of all of the symbols in the "symbols.txt" file to contain > just "OSIP" and "YHOO". > 3 - Setup a registerant and setup MACD Buy and Sell signals. > 4 - set relative date to 3 months prior > 4a - ran fake_mailer > 5 - ran market analysis. > > I didn't get many errors that I got before... I got this in the server Good, it sounds like you're now succeeding in retrieving the data. > console window: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > 'elm' is not recognized as an internal or external command, > operable program or batch file. OK, this is nonintuitive, but the problem is that you need to set the MAS_MAILER environment variable to the fake_mailer.bat file. If this file is not in your path, you should set MAS_MAILER to the full path of the file. After you've set MAS_MAILER, start mas up again, remove the old registrant, and create a new registrant. mas will use the MAS_MAILER variable as the "mailer" program. Make sure you set the variable first and then start up mas. (I need to redesign this - It gives a lot of users trouble.) Try the market analysis again after you've done this and let's see how far you get this time. Jim > Notification to user John Smith failed with error: Command 'elm -s '2 TA > Events R > eceived at 05/15/2003, 6:55:23.920 PM (Notification to John Smith)' > js@xyz. > net <C:\Documents and Settings\js\My > Documents\Investments\mas1.6.5\lib\c > js...@xy......' failed > with non-zero return code: 1. > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > Notes: > A - MAS DID create an indicator file, but it was empty. > B - Server process DID NOT quit on me. It kept running with no = > problems. > > OSIP should have a BUY signal I think, from looking at = > clearstation.com's > graph. > YHOO should not have any signals. > > Your help is greatly appreciated. > > Thanks, > > -----Original Message----- > From: Jim [mailto:xxxx]=20 > Sent: Thursday, May 15, 2003 2:05 AM > To: xxxx > Cc: xxxx > Subject: Re: [MAS-discuss] Hello?=20 > > > > Jim, > >=20 > > I am a win32 user... So very different from the others on this list. > > > [I'm also sending this to the discuss list at least part of my response = > will > be relevant for Linux users and, perhaps there are mas Windows users who > subscribe to this list. (Anyone?)] > > >=20 > > Is is possible to run reports and get indicators mailed to me=20 > > _without_ =3D a persistent data source? Ie. Just Yahoo? > > Yes, as long as mas has a place to get its data - from files, from the = > web, > or from a database, it can run a market analysis and send the resulting > signals. > > >=20 > > First off this tool is great, and if I can get over my issues then=20 > > I'll =3D be golden. > > Thanks, I'm glad you like it. I think MAS is quite powerful and = > flexible, > but its weakness is that its power is rather difficult to use. I'm = > hoping > to address that in future releases. > > >=20 > > I'm having issues running Market Analysis through the command line =3D = > > > client. > >=20 > > I am running the server with the -w option so I'm grabbing quotes from = > > > yahoo. GUI works just fine, and I can graph & view analysis on the=20 > > gui =3D with no problems. > >=20 > > I haven't changed anything in the "data" directory, but I have updated = > > > =3D the "symbols" file to list my own symbols that I want to run=20 > > analysis on. > >=20 > > I set up a registrant. I ran fake_mailer.bat to get that going. And = > =3D=20 > > then I "Run Market Analysis" from the command line client. > >=20 > > Server Output keeps showing "Result for vip is empty - symbol may be=20 > > invalid." for each symbol in my symbol file. > > This message occurs when the http retrieval for the symbol results in an > empty data set. This can occur, for example, when the eod_start_date=09 > and eod_end_date settings in your mas_httprc file result in an empty = > time > interval. For example, I just tried this setting: > > eod_start_date now > eod_end_date now > > and got the same error, since now - now is an interval of 0 length. When = > the > first data file (wat.txt in this case) in my symbol list does not yet = > exist, > the server aborts with the error: > > Result for wat is empty - symbol may be invalid. > Failed to open input file > /suse_6_3/home2/finance/.mas/charting/cached_data/wat.txt - file does = > not > exist. Error occurred retrieving non-intraday period types for wat = > Aborting > the server. > > Does your server process abort? If I try it when the file exists, it = > just > gives the "... symbol may be invalid" error but does not abort. = > (Another > thing that can cause the "... symbol may be invalid" error is having the > wrong setting for the eod_turnover_time - This can cause the server to > attempt to retrieve data for the day when it is not yet available. > > What are the above settings in your mas_httprc file? > > >=20 > > Then "Failed to open input file=20 > > C:\Applications\mas1.6.5\lib\cached_data\.txt - file does not exist.=20 > > Error occurred processing event Slope of MACD Signal Line Cross Above=20 > > 0 (Buy)with period type weekly: Error occurred retrieving non-intraday = > > > period types for . Error occurred processing event Slope of MACD=20 > > Signal Line Cross Below 0 (Sell)with period type weekly: > > Error occurred retrieving non-intraday period types for ." > > These error messages are similar to the ones I got in the above example > (excluding the signal-related errors due to a different context). The = > one > main difference is the file name: ".txt". The question is, why is it = > not > vip.txt? It may be related to the different end-line characters used = > with > DOS vs. UNIX ("\r\n" vs. "\n"). Anyway, we should first look at your > mas_httprc settings. If we fix that, the file name issue may go away. > > Actualy, another windows user recently had this same problem (except for = > the > mysterious ".txt" file name). He fixed it by simply uninstalling and > reinstalling mas. He must have changed something before the reinstall = > that > the server couldn't digest. If we can't find the cause of your problem, = > you > might try that, too. > > >=20 > > Can you help me here? > >=20 > > I am assuming that the "Run Market Analysis" will "email" to an output = > > > =3D file specified in the "fake_mailer.bat". In that output file I=20 > > should have =3D the > > signals that the server found. > >=20 > > Is this a correct assumption? > > Yes, that's how it is supposed to work. > > Let me know the answers to the above questions and we can go from there. > (Perhaps you should respond just to me so as not to overburden the other > list subscribers. If we find a solution I'll try to find time to put it = > in > the FAQ so others can refer to it.) > > > Jim > > >=20 > > Thanks for any help and I think I went through all the distr. Docs, so = > > > hopefully this isn't just a RTFM question. ------- End of Forwarded Message |