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

Notification

Icon
Error

Options
Go to last post Go to first unread
jb00013  
#1 Posted : Monday, December 2, 2013 3:13:28 AM(UTC)
jb00013

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 12/2/2013(UTC)
Posts: 1

I've been trying to create a custom indicator to create support and resistance lines into metastock.
The idea looks simple but I can't find the right formula.

The indicator should create a resistance line at the High where four lower high lie back and two lowers high after that point. For example:

10 - 15 - 14 - 18 - 20 (high) - 18 - 16.

How to create this formula.

Thanks in advance.

Peter
henry1224  
#2 Posted : Monday, December 2, 2013 3:29:44 PM(UTC)
henry1224

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 10/29/2004(UTC)
Posts: 1,394
Location: Glastonbury, CT

Was thanked: 2 time(s) in 2 post(s)
I would have you look at the following functions
Ref(HHV(H,Length),-1)
Ref(LLV(L,Length),-1)

The length is the lookback length
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.