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

Notification

Icon
Error

Options
Go to last post Go to first unread
singhvi  
#1 Posted : Sunday, July 1, 2012 3:19:58 AM(UTC)
singhvi

Rank: Newbie

Groups: Registered, Registered Users, Unverified Users
Joined: 3/13/2008(UTC)
Posts: 5

Hi, I want to count the bars from high to high and low to low in downtrends and uptrends respectively. How do I code for that? I also want to automate labeling of Fib and Lucas numbers from a bar as a starting point. Any help in this would be really appreciated.
MS Support  
#2 Posted : Monday, August 20, 2012 4:09:44 PM(UTC)
MS Support

Rank: Advanced Member

Groups: Moderators, Registered, Registered Users, Subscribers
Joined: 10/8/2010(UTC)
Posts: 1,838

Thanks: 79 times
Was thanked: 148 time(s) in 144 post(s)
if you have a set condition that identifies a high or low point, you could use valuewhen to count the bars between the two most recent points:

hipoint := {formula for high} ;
valuewhen(1, hipoint, cum(1)) - valuewhen(2, hipoint, cum(1))
Users browsing this topic
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.