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

Notification

Icon
Error

Options
Go to last post Go to first unread
vaughn  
#1 Posted : Thursday, November 3, 2005 3:58:00 AM(UTC)
vaughn

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 3/16/2005(UTC)
Posts: 93
Location: Maryland,US

I am trying to have a column in my explorations show how many new 52 week highs there are and am verifying with an indicator. My code so far is: TheHigh:=Ref(HHV(H,255),-1); TheCheck:=TheHigh>Ref(TheHigh,-1); Sum(TheCheck,255) I am comparing it to a plot of Ref(HHV(H,255),-1). The sumation starts at 0, which is probably what it is supposed to do. The first increase in the sumation occurs when nothing changes on the 52 week high plot. After the first new high all later new highs increase the sumation. UserPostedImage Am I missing something or is there a better way to get a count of new 52 week highs? Thanks vm
sportrider  
#2 Posted : Friday, November 4, 2005 3:06:00 AM(UTC)
sportrider

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 10/12/2005(UTC)
Posts: 141
Location: Brooklyn,NY

Vaughn, I'm new here ,but I think you might be posting in the wrong area-I think this should go in the indicator or exploration part of the forum-Then again I might be wrong. Anyway I think this formula might help you but for some reason I cant get it to plot for the first 52 weeks so thats somthing that youll have to play with until you get it to work.formula that I came up with :Cum(H>Ref(HHV(H,255),-1)); I think on your formula you need to use somthing like O,H,L,C,etc.to compare to the reference.
Jose  
#3 Posted : Friday, November 4, 2005 4:16:47 AM(UTC)
Jose

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 1/19/2005(UTC)
Posts: 1,065
Location: Koh Pha-Ngan, Earth

Was thanked: 2 time(s) in 2 post(s)
You may also want to take a look at the 52-week highs and 52-week lows exploration code for MetaStock. "Explorations for currently active, true 52-week high/low stocks". jose '-)
vaughn  
#4 Posted : Friday, November 4, 2005 9:54:05 PM(UTC)
vaughn

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 3/16/2005(UTC)
Posts: 93
Location: Maryland,US

I will give them both a look. Thanks vm
happysingh  
#5 Posted : Wednesday, November 9, 2005 5:06:03 PM(UTC)
happysingh

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 6/3/2005(UTC)
Posts: 64
Location: India

hi i have tried both 52 week highs and lows in explorations but thy don't find even a single security. i am new to all this and don't know much about formula making so please guide me if i am doing anything wrongs. here is what i write in filter filter { Today's data date, user input section } day:= 9; { today (1~31) } mth:= 11; { current month (1~12) } yr:= 2005; { current year, eg 2003 } { *********************************** } active:=Year()>yr-1 OR (Year()=yr-1 AND (Month()>mth OR Month()=mth AND DayOfMonth()>=day)); start:=active AND Alert(active=0,2); DayOfMonth()=day AND Month()=mth AND Year()=yr AND Highest(start) AND C<Ref(LowestSince(1,start,C),-1) AND V>0
Jose  
#6 Posted : Wednesday, November 9, 2005 5:17:27 PM(UTC)
Jose

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 1/19/2005(UTC)
Posts: 1,065
Location: Koh Pha-Ngan, Earth

Was thanked: 2 time(s) in 2 post(s)
HappySingh, you've set your exploration date to 9/Nov/2005. If you've applied the exploration to US stocks, it is then likely that you don't have this data available yet, as the markets have yet to close. Try setting your exploration date to 8/Nov/2005, and make sure the Explorer settings are: MetaStock -> Tools -> The Explorer -> Options -> Load 2600 periods. jose '-)
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.