logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

2 Pages12>
Options
Go to last post Go to first unread
lfe885  
#1 Posted : Thursday, November 10, 2005 12:19:03 PM(UTC)
lfe885

Rank: Newbie

Groups: Registered, Registered Users
Joined: 11/10/2005(UTC)
Posts: 2

Hi, I want to know if its possible to reference an excel spreadsheet from within a metastock filter. In my exploration I only want to see stocks that are in a "HOT" sector. The ticker & HOT/COLD sector data is located in an excel spreadsheet. In the filter I want to say something like "...AND MySpreadsheet(Ticker).Value = "HOT"". Is this possible?. Are there any alternate ways to acheive the same result? Thanks in advance.
StorkBite  
#2 Posted : Thursday, November 10, 2005 3:10:40 PM(UTC)
StorkBite

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 3/19/2005(UTC)
Posts: 2,995

Was thanked: 14 time(s) in 10 post(s)
Hey lfe885- Welcome to the forum! Perhaps the easiest way would be to create an Excel exploration... search, sort, custom formula fields, etc. and a DDE interface should get you started. Especially if you already have all of your symbols set up. You should be able to do this without any problems.
lfe885  
#3 Posted : Monday, November 14, 2005 12:09:58 PM(UTC)
lfe885

Rank: Newbie

Groups: Registered, Registered Users
Joined: 11/10/2005(UTC)
Posts: 2

Hi G_Stockman, Thanks for the quick response. What is an excel exploration? I'm fairly new to metastock and couldnt find any info in metastock help about excel explorations. (I'm using version 7.2). Thanks
StorkBite  
#4 Posted : Monday, November 14, 2005 4:12:56 PM(UTC)
StorkBite

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 3/19/2005(UTC)
Posts: 2,995

Was thanked: 14 time(s) in 10 post(s)
Well... set up an Excel spreadsheet with the criteria that you are interested in exploring. For example: close, MovAvg, etc. Then you can create a link to the MetaStock data feed and allow it to update your worksheet. Once you have the data captured in your Excel worksheet, sort it (explore it) as you see fit using Excel's commands. You can run statistical commands etc. on the data. You don't really need MetaStock to do that if your whole objective is to get the data back into Excel anyway. Check out DDE and OLE in the User's Manual. That'll give you an idea of where to begin.
dieselpr  
#5 Posted : Tuesday, November 15, 2005 3:30:35 AM(UTC)
dieselpr

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 4/27/2005(UTC)
Posts: 130

G-Stock I have a quick question about the OLE set-up I played around with it some but I fell short on how to due simple thing in it also. I was wondering what would you need to just post the current close in excel say in cell A1? I was able to get the link set-up and copy the link over but mine wouldn't update with a live feed. :( Any chance you have the answer to this question? I heard you had to set-up an Automated set-up of some kind to get the data to keep updating.
StorkBite  
#6 Posted : Tuesday, November 15, 2005 6:15:03 AM(UTC)
StorkBite

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 3/19/2005(UTC)
Posts: 2,995

Was thanked: 14 time(s) in 10 post(s)
Quote:
I heard you had to set-up an Automated set-up of some kind to get the data to keep updating.
Yep, I actually use it every day. What data provider are you using?
dieselpr  
#7 Posted : Tuesday, November 15, 2005 12:46:08 PM(UTC)
dieselpr

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 4/27/2005(UTC)
Posts: 130

I'm using a DDE set-up right now with FXCM.
StorkBite  
#8 Posted : Tuesday, November 15, 2005 6:26:42 PM(UTC)
StorkBite

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 3/19/2005(UTC)
Posts: 2,995

Was thanked: 14 time(s) in 10 post(s)
Hey DieselPR- Look at these generic directions. They should be pretty close. Once you have your DDE link working, you will have a functioning array pasted into your Excel worksheet. Since you can't change the elements of an array, you can hide the distracting information by selecting FORMAT | COLUMN | HIDE. For example, if you only wanted to see the close then you could hide the other data. An alternative would be to reference the CLOSE column in a different worksheet of the same workbook. Getting started quickly (referenced from the MetaStock Help file): 1. Open Excel and clear the Office Clipboard: EDIT | OFFICE CLIPBOARD | CLEAR ALL 1. Open MetaStock and display the desired chart (SmartCharts or Charts are OK) 2. Right-click on the price plot or indicator plot and choose COPY from the shortcut menu 4. Change back to Excel, then position the cursor at the desired location within the spreadsheet 5. Right-click on the cell and choose PASTE SPECIAL from the shortcut menu 6. Choose the PASTE LINK radio button; CSV ("comma separated values") as the file type; Click OK. 7. Repeat as desired for further indicators; Right-click on subsequest date/time columns and select HIDE 8. You don't have to have all the applications open in order for the OLE links to remain up-to-date Notes: 1. Format your Excel worksheet: e.g., DATE for first column of data, TIME for second column of data, NUMBER for remaining columns of data Indicator format requires 3 columns: Date, Time, Indicator Value Price plot format requires 8 columns: Date, Time, Open, High, Low, Close, Volume, OI 2. Ensure that your data area has room to expand as data is updated The required data range will depend on the number of data periods loaded by MetaStock 3. Use WINDOW | FREEZE PANE to facilitate readibility 4. Data link will automatically update unless you set it to update manually: EDIT | LINKS | UPDATE MANUAL UserPostedImage HTH, George
dieselpr  
#9 Posted : Tuesday, November 15, 2005 7:39:06 PM(UTC)
dieselpr

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 4/27/2005(UTC)
Posts: 130

Thanks G-Stock Note 4 was the answer I was looking I got the other part, I just couldn't figure out how to update it. :D Thanks again I'll let you know how it goes tonight.
Systematic  
#10 Posted : Thursday, November 24, 2005 9:23:58 PM(UTC)
Systematic

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 9/15/2005(UTC)
Posts: 24

I have never had any success with the update feature when creating OLE links of MetaStock price data in Excel spreadsheets. Neither automatic nor manual updating results in new data being appended to the spreadsheet. Any suggestions about how to identify what may be going wrong here? Thanks... P.S. I'm using EOD version 9.0.
StorkBite  
#11 Posted : Friday, November 25, 2005 3:11:50 AM(UTC)
StorkBite

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 3/19/2005(UTC)
Posts: 2,995

Was thanked: 14 time(s) in 10 post(s)
Hey Systematic- This might be too basic... Check TOOLS | OPTIONS | CALCULATIONS and make sure that your workbook calculations method default is set to automatic. You can force this to automatic for your particular OLE app using VBA: Private Sub Workbook_Activate() With Application .Calculation = xlAutomatic End With End Sub Make sure you're using paste special to create your link. You might check out the simplistic OLE example in the download section. It works for sure. Perhaps if you can't get it to work either there is more going on. You could email me your worksheet and I'd be happy to look at it.
Systematic  
#12 Posted : Sunday, November 27, 2005 3:00:04 AM(UTC)
Systematic

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 9/15/2005(UTC)
Posts: 24

g_stockman, Thanks for your comments. Yes, I do have excel setup for automatic calculations. I tried using your VBA macro with no result. And I also attempted to download the OLE example from this forum but it was shown as containing 0 bytes and WindowsXP was unable to recognize the file format - neither pdf, doc nor notepad formats produced any text! Another curious clue: When I first open the excel file onto which I pasted the MS data (yes, using paste special, link, cvs, etc..), a popup window appears with the message "The workbook you opened contains automatic links to information in another workbook. Do you want to update this workbook with changes made to the other workbook?" with YES and NO choices. If I select the YES option, then the MetaStock application launches and displays an empty chart window that should be occupied by a chart of QQQQ! All the fields in the corresponding excel workbook then display "#N/A". This makes me wonder if there is some MS setting that is amiss here. All suggestions welcome!
StorkBite  
#13 Posted : Sunday, November 27, 2005 3:31:20 AM(UTC)
StorkBite

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 3/19/2005(UTC)
Posts: 2,995

Was thanked: 14 time(s) in 10 post(s)
Ahh... sounds like you're pin pointing the solution now. For the OLE update to occur, you need to have MetaStock running and connected to your data source (for real time). then load up the chart/indicators that you are interested in and minimize MetaStock. Now, when you open Excel, answer yes for the outside link question and you should be in business. Not sure what's up with the OLE example file, but you can d/l this one. It contains no macros. It is an ole sample using Intel data.
Systematic  
#14 Posted : Sunday, November 27, 2005 3:05:09 PM(UTC)
Systematic

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 9/15/2005(UTC)
Posts: 24

OK. With MetaStock running, connected to the data source (Reuters), smartchart loaded and MS minimized, upon running Excel, opening the desired file and answering YES, something does appear to happen. But not what I expect. The data are not updated beyond the date on which they were originally copied and pasted into the spreadsheet (about 2 weeks ago in this instance). Data (EOD in this case) for more recent dates are NOT appended. This is another clue but I don't know what to make of it...
StorkBite  
#15 Posted : Sunday, November 27, 2005 9:38:11 PM(UTC)
StorkBite

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 3/19/2005(UTC)
Posts: 2,995

Was thanked: 14 time(s) in 10 post(s)
Hey, it's good that we're getting somewhere! Is your MS chart showing current data? Either way, try to hit the refresh data button in the right corner of MS screen. If that doesn't work, re-establish the link from scratch and watch for the change after tomorrows close. Did you have the same problems with the Intel sample that I sent to you? Do you have the same problem with all of the securities that you are trying to load? Make sure you have your woprksheet set up like we discussed earlier in regard to the calc update. You can also try to manually update your worksheet. If all else fails, send me your worksheet and I'll test it on my system and we'll try to figure it out that way. I'm going to be away from my MetaStock program for the next few days, but I'll check in here and see how things are going.
Systematic  
#16 Posted : Sunday, November 27, 2005 11:05:13 PM(UTC)
Systematic

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 9/15/2005(UTC)
Posts: 24

The chart does show current data – it just doesn’t show up in the Excel spreadsheet. I don’t see any refresh button; maybe MS EOD doesn’t have one. The help menu contains no reference to one on the index page. I can’t use your Intel sample because it refers to a specific file location on your computer with the following path: C:\\Documents and Settings\\Daddy\\Local Settings\ emp\\mwl1E8.tmp'!'\\Intel Corp I would have to recreate that path and copy the MS file for INTC there. Without doing that, responding with YES to Excel’s update query results in the contents of all cells being converted from numbers to #NAME? . As it is, I have created three new spreadsheets and established links in them to three different MS files that reside in a directory that I use on my machine. Of course, the data shown in all three spreadsheets is current as of last Friday’s trading. I expect that the problem will again be with the update, as it always has been. (The last time I had experimented with OLE links was last February. That spreadsheet won’t update, either.) I'll post a message after I download tomorrow's EOD data and attempt to update those spreadsheets. Stay tuned...
StorkBite  
#17 Posted : Monday, November 28, 2005 1:57:21 PM(UTC)
StorkBite

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 3/19/2005(UTC)
Posts: 2,995

Was thanked: 14 time(s) in 10 post(s)
Oops... never considered the path... you're right. The refresh button is down there beside the zoom reset button.
Systematic  
#18 Posted : Tuesday, November 29, 2005 1:37:56 AM(UTC)
Systematic

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 9/15/2005(UTC)
Posts: 24

As I expected, the Excel spreadsheets failed to update with today's EOD data -- in triplicate (I had set up three different stocks for this test). It seems to me that there is something fundamentally (please excuse the term) wrong here. This feature has never worked for me. Not over a period of several years. Not on any of four different PCs and a couple of different operating systems. I am most curious as to what might be the cause. Here's one thought. I store all my data locally. And I only use EOD data, not intraday. I also don't use MS's DataOnDemand feature. That is probably the reason why the "refresh" button has never worked (and why I had forgotten about it). In fact, I attempted to refresh a couple of charts prior to performing a Downloader download and nothing happened -- i.e., the chart was not updated to include today's data. But the newly downloaded data now appears on the charts -- yet it did not appear in the spreadsheets. Perhaps this feature only works for MSPro with DoD??? Any further suggestions will be most welcome...
StorkBite  
#19 Posted : Wednesday, November 30, 2005 2:15:48 AM(UTC)
StorkBite

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 3/19/2005(UTC)
Posts: 2,995

Was thanked: 14 time(s) in 10 post(s)
Start Excel Start MS Open chart Right-click on price line Select copy Goto Excel Select EDIT | PASTE SPECIAL | PASTE LINK | CSV | OK That should do it... at least that is the exact steps that I follow and it works for me. Let me know, please.
Systematic  
#20 Posted : Wednesday, November 30, 2005 2:30:18 PM(UTC)
Systematic

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 9/15/2005(UTC)
Posts: 24

Yes, that's the way I always do it. Yet, the Excel spreadsheets never update to show new data...
Users browsing this topic
Guest (Hidden)
2 Pages12>
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.