Discussions
»
Product and Service Development
»
Formula Assistance
»
Got a simple problem to solve (for anyone who's good)
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
|
|
|
|
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.
|
|
|
|
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
|
|
|
|
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)
|
Discussions
»
Product and Service Development
»
Formula Assistance
»
Got a simple problem to solve (for anyone who's good)
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.