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

Notification

Icon
Error

Options
Go to last post Go to first unread
Thom  
#1 Posted : Tuesday, January 10, 2006 2:56:23 AM(UTC)
Thom

Rank: Member

Groups: Registered, Registered Users
Joined: 1/5/2006(UTC)
Posts: 14

Not sure if this is the right place for this question. Searched around but couldn't find a related topic... Is there a way to import data into MetaStock so that it can then be formatted as a formula and acted upon by a System Test? I have data in an Excel Spreadsheet different from the standard O,H,L,C,V,OI price identifiers. I created and OLE link and charted the data and it appears to be an indicator with great potential. I'd like to run a System Test to be sure but I need to get the data into MetaStock in a price identifier format such as the O,H,L,C,etc. (or do I?). Can this be done (for instance, add a column to the data in the Downloader), or is there otherwise some way to accomplish what I'm attempting to do? Thanks, Thom
weird  
#2 Posted : Tuesday, January 10, 2006 6:18:57 AM(UTC)
weird

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 8/3/2005(UTC)
Posts: 40

Hi Thom Have a look at http://www.metastockcsv.com
StorkBite  
#3 Posted : Tuesday, January 10, 2006 8:20:57 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)
Are you stuck doing this via OLE? If so, I'd like to see your solution. All that comes to mind quickly is that you'd have to run your test based on the individual components of the price (open OR high OR low, etc). If you're willing to get out of OLE and manually update, and assuming EOD data, your could use the Downloader to create the security from your Excel data. From there, you would be able to run any system test and plot the data in its entirity. I'm interested in this sorta stuff, so I'll keep an eye on this thread.
Thom  
#4 Posted : Wednesday, January 11, 2006 3:28:10 AM(UTC)
Thom

Rank: Member

Groups: Registered, Registered Users
Joined: 1/5/2006(UTC)
Posts: 14

Hey Weird, Thanks! I just downloaded the plug-in and I'll work through it tonight. It appears that this is the answer. g_stockman, Yeah, it appears I'm stuck using OLE. The data is completely independent of MetaStock and is not a component of O,H,L,C,V, or OI. I have numbers and dates. Via OLE I can chart the numbers against a base security in a seperate indicator window, but there's no "formula" in the indicator that could be referenced by a System Test. The only option that I'm aware of would be to create an empty base security file and place the data into the file via the Downloader. This creates its' own set of issues. The data I have will be used as an indicator against a base security, so to create the data as a base security itself kind of defeats the purpose and doesn't really help. Basically, I need to create an "IF" formula that the System Tester can reference (i.e., =IF(my data>x,"buy","hold"); thus, I need to get "my data" into MetaStock somehow. I just started using MetaStock a few months ago and I'm still learning the more detailed applications, but Weird's plug-in suggestion looks to be the answer. I'll post back on the results. Thom
StorkBite  
#5 Posted : Wednesday, January 11, 2006 3:51:35 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)
So, you're trying to use your Excel data as an index by which to compare your other MS securities? Can you upload a small sample of your Excel data that you are OLE linking back to MS?
Thom  
#6 Posted : Friday, January 13, 2006 3:57:34 AM(UTC)
Thom

Rank: Member

Groups: Registered, Registered Users
Joined: 1/5/2006(UTC)
Posts: 14

Yep, that's it. The plug-in doesn't seem to support MS's commodities symbols so looks like a no go there (I've got an email request in with the developer for more info). I'm using COT data that I've run various calculations against to come up with a set of numbers that now reside in a single column in an Excel spreadsheet. Via OLE, I can chart the data in MS against its base commodity and it appears to provide some very good entry/exit points but I want to make sure by running a system test; this would require that the System Tester be able to reference the Excel data in the same way if references O,H,L,C, V, OI, which it can't do. The solution I've come up with at the moment is EXTREMELY tedious, but appears to work: I deleted the volume from a base commodity via the Downloader (I don't use the volume data anyway). Since the COT data is weekly, I very carefully pasted each weeks data into the corresponding date cell in the Downloader file (yep, one by one: paste, count five cells, paste, count five cells, paste...aaaaggggghhhh!). I then programmed a system test using "volume" as the entry/exit criteria for a single long position knowing what date the test should enter and exit; I then did this for several different positions, manipulating the formula numbers for both long and short positions, to determine if MetaStock was reading the data correctly and it is. So, while tedious, it does work. I only pasted about 4 months worth of weekly data to do the test; a little over 500 more to go, one cell at a time—for each commodity that I follow. I follow 33 markets so that's... let's see, 16,500+ to go; not too bad, right? I've got a brand new bottle of Tylenol right here beside me. I Need to find a better way of doing the cut & paste operation. I suppose I can't complain too much: there was a time when most of the analysis we take for granted because of computers was done by hand. Some of the indicators used today would have been next to impossible for some people to even comprehend, let alone calculate and track on their own. There's no free lunch, no easy road to riches. Ya gotta do what ya gotta do. T.
StorkBite  
#7 Posted : Friday, January 13, 2006 5:22:46 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 Thom- Thanks for your very useful follow up. I'm sorry for having been slow getting up to speed with your dilemma. Your workaround is interesting and useful. Believe it or not, I'm attracted to that method. The power of Excel & MS combined is a tough combination. Lethal! LOL! Anyway, my thoughts on making it not so "EXTREMELY tedious" is to set up an Excel macro prior to pasting to format your data. Within Excel, don't forget that you can hide rows. You could hide every Nth row for example. OR, you can insert rows, such as insert 4 rows every 5th row and copy the contents in a manner to pad your data (same data x 5 days). Once your format matches your underlying security in MS, perform a block Copy & Paste function. Done. See the attached sample. 'Tedious' is a subjective feeling, but I think it's pretty easy. BTW, I'd paste into the OI column, but that's just because I don't otherwise use OI. Here are some >>rough<< Excel macro examples. You can edit them to suit your particular needs. EXCEL Macro- hide every 6th row: [code:1:89e2b18d2d]On Error Resume Next Dim i As Single For i = 0 To 65536 Step 6 Range("A6").Offset(i, 0).Select Selection.EntireRow.Hidden = True Next i Range("A1").Select[/code:1:89e2b18d2d] EXCEL Macro- insert 4 rows every 5th row: [code:1:89e2b18d2d]On Error Resume Next Dim i As Single For i = 0 To 65536 Step 5 Range("A1").Offset(i, 0).Select For j = 0 To 3 Selection.Insert Next j Next i End Sub[/code:1:89e2b18d2d] ************************** BACK TO THE ORIGINAL QUESTION ************************** Once you have your data plotted, you can further manipulate the data and create a custom indicator based upon that data. e.g., when you have your OLE data plotted in the new inner window, it will plot with a name of "Indicator". You can then create a custom indicator based upon that plot, using the P variable (see pp 65-66 in the Formula Primer), or even INDICATOR. See the attached screen shot. Now, this doesn't really take you to home plate, but again, it is interesting. I have been playing with it all morning, but can't seem to get it to be recognized as a valid reference in the Explorer or System Tester. In my example, I named my custom indicator ExcelOLE. If you try to run an exploration, it will show you that the indicator exists, but when you reference it, it will give you an error "requires an indicator plot in the active chart". Duh... well, it is, but I can't figure out why it goes unnoticed. I'm trying to reference it using the fml() function. i.e., Fml("ExcelOLE"). So, that's all I have for the moment. If I get any further, I'll update you here. Please do the same. George
StorkBite  
#8 Posted : Friday, January 13, 2006 5:26:39 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)
UserPostedImage UserPostedImage
Thom  
#9 Posted : Saturday, January 14, 2006 5:21:25 AM(UTC)
Thom

Rank: Member

Groups: Registered, Registered Users
Joined: 1/5/2006(UTC)
Posts: 14

Ah yes, hiding rows—completely forgot about that! Thanks for the reminder and the examples of how to best go about doing it. I actually had begun resorting to your second suggestion which was to insert rows to pad the data. Only issue there is that I have to make sure to account for holidays along the way but that's an easy fix after the fact. Regarding the indicator, I'm with you there. The indicator method was my first attempt. Same results: it won't recognize any data. I tried to reference it with a formula but got nowhere. Best I can figure is that the data must reside within one of the price array identifier columns in the Downloader in order to be recognized. My first thought was to simply add a column to the Downloader file of my base security and paste in the data, but found I could not add columns (aaaggghhh!), only rows (what's up with that?). That's when I went the indicator route, but...you've seen the results. It seems a simple fix to me: Give MS the ability to add columns of additional data into the Downloader file of any base security. I'm not a programmer of that caliber (or any caliber, really), so maybe it entails more than I imagine, but it still seems simple to me. I'll be away for the weekend but will continue working on this to see if I can come up with a better way. In the meantime, thanks for the assistance George; I appreciate it. T.
Users browsing this topic
Guest (Hidden)
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.