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

Notification

Icon
Error

Options
Go to last post Go to first unread
Muskoka Joe  
#1 Posted : Friday, March 15, 2013 4:12:29 PM(UTC)
Muskoka Joe

Rank: Newbie

Groups: Registered, Registered Users
Joined: 3/15/2013(UTC)
Posts: 3

Trying to ask if last bar is a 10 bar low and it has been at least 10 bars since a 40 bar high then highlight ... here is my attempt, no errors, no highlight bars either ... Thanks!

LOW = LLV(L,10) AND BarsSince(HIGH = HHV(H,40)>=10)
wabbit  
#2 Posted : Friday, March 15, 2013 10:04:05 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)
Muskoka Joe wrote:
LOW = LLV(L,10) AND BarsSince(HIGH = HHV(H,40)>=10)
Although you don't have a syntax error for the formation of the code, you have a syntax error in the BarsSince() function. See the difference between you have written and this:
Code:

LOW = LLV(L,10) AND BarsSince(HIGH = HHV(H,40))>=10;
You might also want to think in your logic about whether the LOW is a new lower low, or an equal low (which is what you have now). 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.