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

Notification

Icon
Error

Options
Go to last post Go to first unread
anley  
#1 Posted : Thursday, May 6, 2010 10:37:50 AM(UTC)
anley

Rank: Newbie

Groups: Registered, Registered Users
Joined: 5/6/2010(UTC)
Posts: 5

Hello everyone

Been a long time user of Metastock but never used the indicator builder and am having a real problem with something real simple.

This is what I'm trying to program -

When today's high is > than 4X the 10-day ATR (and today's high is also) above the high of 10 days ago.

Any help of ideas and you'd make my day.

Thanks a lot and good trading/researching everyone.

Alex


Justin  
#2 Posted : Thursday, May 6, 2010 11:03:33 AM(UTC)
Justin

Rank: Advanced Member

Groups: Registered, Registered Users, Unverified Users
Joined: 9/13/2004(UTC)
Posts: 673
Location: Salt Lake City, UT

I would think that:

H > (ATR(10) * 4) AND H > Ref(H,-10)

would meet the criteria.
anley  
#3 Posted : Thursday, May 6, 2010 2:00:33 PM(UTC)
anley

Rank: Newbie

Groups: Registered, Registered Users
Joined: 5/6/2010(UTC)
Posts: 5

Justin

Thanks a lot.

I didn't explain it well enought though. Having said that your code helped me get it right. What it ended up as is this -

H > Ref(H,-10) + (ATR(10) * 4)

One more quick question -

Is there a way to scan my data files (prices) and get a print out (or other type of indication) when the above is true, ie = 1?

For example, I download my end of day data (I use Datalink) then scan the prices and it tells me weach security which has triggered the indicator?

Thanks a lot.

Alex
anley  
#4 Posted : Thursday, May 6, 2010 2:24:50 PM(UTC)
anley

Rank: Newbie

Groups: Registered, Registered Users
Joined: 5/6/2010(UTC)
Posts: 5

It's OK Justin.

I'm working out [censored] to do the above myself. Using the Explorer.
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.