To simplyify the question further, if I add the following line to a basic price chart,
Plot(BarsSince(DayOfWeek()==1),"x",colorPink,styleOwnScale); Can someone explain the plot output... because I'm somewhat confused. TJ? Thanks --- In [email protected], "sidhartha70" <[EMAIL PROTECTED]> wrote: > > Hi All, > > I'm trying to do some logic using the BarsSince() function... I want > to spot when an element of an array is true within the last 10 bars... > > So I used something like, > > x = BarsSince(y)<10; > > Now if I plot the result, > > Plot(x,"x",colorGold,StyleOwnscale); > > I get some quite strange results... x appears to be null for large > periods... I think it's something to do with how BarsSince() works. > > Anyone know what's going on here...? > > Many Thanks >
