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?
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Unverified Users Joined: 7/12/2007(UTC) Posts: 134 Location: Perth Western Australia
|
|
|
|
|
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.
|
|
|
|
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)
|
|
|
|
|
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.