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

Notification

Icon
Error

Options
Go to last post Go to first unread
jjstein  
#1 Posted : Sunday, August 27, 2006 9:08:01 AM(UTC)
jjstein

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/13/2005(UTC)
Posts: 715
Location: Midwest, USA

Was thanked: 1 time(s) in 1 post(s)

I've imported a small set of dates -- not consecutive -- which all have "1" as the closing price.

EXAMPLE:

Code:

Date Close
8/31/1998 1
9/21/2001 1
10/9/2002 1
Using The Downloader's CONVERT function to import, the data seems OK. Now, using the "Security" function in an indicator (on any security)...

Code:

Security("C:\METASTOCK DATA\IMPORT\_Bull",C);
...and plotting in a separate window, the security ALWAYS shows up as an horizontal line with the value of "1". I expected the "1" value ONLY on the dates imported, but it shows up as a constant value of "1" on every date.

What's wrong?

hayseed  
#2 Posted : Thursday, September 7, 2006 9:26:34 PM(UTC)
hayseed

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 3/7/2005(UTC)
Posts: 1,346

hey johnathan.... the trouble is close is close untill further notice.... a closing value of 1 stays 1 untill it's different...

possibly you can achieve your goal by using something like

Security("aaaa",C)>Ref( Security("aaaa",C),-1)

of course you'd use your data path.... consecutive days might pose a problem..... just a quick thought....h

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.