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

Notification

Icon
Error

Options
Go to last post Go to first unread
johnl  
#1 Posted : Friday, December 10, 2010 6:54:43 PM(UTC)
johnl

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 11/7/2005(UTC)
Posts: 602

I was working on an indicator that calculates from defined highs and lows. I did not want to use
peak() and trough(). I defined the highs as:

a1:=(C=LLV(C,5));
a2:=(C<Ref(C,1));
a3:=(C<Ref(C,2));
a4:=(C<Ref(C,3));
a5:=(C<Ref(C,4));
a6:=(C<Ref(C,5));
a7:=a1*a2*a3*a4*a5*a6;
a7

Yes I know I am referencing future periods in variables a2 - a6 but that doesn't bother me, my
signals are further into the future and based upon signals 2 or more highs back. My testing looks promising but the problem is that when put into an explorer to get signals I get all "not defined on calculation date" which is the last 5 days. I can't think of how to get rid of that error. Any thoughts?


oztrader  
#2 Posted : Friday, December 10, 2010 11:29:41 PM(UTC)
oztrader

Rank: Advanced Member

Groups: Registered, Registered Users, Unverified Users
Joined: 7/12/2007(UTC)
Posts: 134
Location: Perth Western Australia

Hi John, Ref(a7,-5) oz
johnl  
#3 Posted : Saturday, December 11, 2010 7:12:32 PM(UTC)
johnl

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 11/7/2005(UTC)
Posts: 602

That works but it messes up all my ratios. I will adjust accordingly.

wabbit  
#4 Posted : Saturday, December 11, 2010 8:08:40 PM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
lastvalue(a7)


wabbit [:D]
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.