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

Notification

Icon
Error

Options
Go to last post Go to first unread
AMSH  
#1 Posted : Tuesday, February 17, 2009 2:59:45 PM(UTC)
AMSH

Rank: Member

Groups: Registered, Registered Users
Joined: 11/15/2008(UTC)
Posts: 17

Hey All,

Pretty basic question here, but I can't see what I'm doing wrong. Perhaps I'm using this argument incorrectly. When I apply the following as an indicator: BarsSince(L=(LLV(L,2))) it produces values up to about 10. Wouldn't this argument logically only return a one or two? If the L is being compared to the LLV of the low of the last 2 periods, then surely the returned value can only be one bar or two - either yesterday's low or todays is the LLV(L,2) so how can 10 bars have passed since this occured?

Thanks in Advance,

AMSH
wabbit  
#2 Posted : Tuesday, February 17, 2009 10:25:14 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)
Try taking the indicator to bits and see how each part works, this will eventually tell you how the whole thing works.

Start by plotting in a chart:

LLV(L,2);

then in a new window, plot the binary signal:

L=LLV(L,2);

then you can wrap it in the BarsSince() in another new window:

BarsSince(L=LLV(L,2));


You should now be able to see why the BarsSince() returns values in excess of what you were expecting?


Hope this helps.

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.