Thanks Terry. This is a start and if I get something working, I'll post here.
--- In [email protected], "Terry" <[EMAIL PROTECTED]> wrote: > > This isn't exactly what you want, but it may give you some ideas: > > > > myCount = Sum(O == SelectedValue(L),200) + Sum(H == > SelectedValue(L),200) + Sum(H == SelectedValue(L),200) + Sum(C == > SelectedValue(L),200); > > > > Plot(C,Name(),1,styleCandle); > > Plot(myCount,"count",colorBlue,styleOwnScale); > > > > You may not want exact matches since there probably will be few. You can > change to < or use the AlmostEqual function. > > > > PS: I tried LastValue instead of SelectedValue, but that is always the > very last value of the array (so always compares to today). > > -- > > Terry > > > > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of voyager_3k > Sent: Thursday, August 17, 2006 19:54 > To: [email protected] > Subject: [amibroker] finding support counts > > > > I'd like to take a reference bar low price and look back upto 200 bars > > to find and count every bar, as compared to ref bar, which had an > > O/H/L/C at the low price for this ref bar. > > > > Anyone have suggestions on how i could do that? I'm aware of the > > 'CUM' function, but that did not seem to be working for this purpose. > > > > TIA > > AP > > > > > > > > > > > > > > Please note that this group is for discussion between users only. > > > > To get support from AmiBroker please send an e-mail directly to > > SUPPORT {at} amibroker.com > > > > For other support material please check also: > > http://www.amibroker.com/support.html > > > > > > Yahoo! Groups Links > > > > http://groups.yahoo.com/group/amibroker/ > > > > [EMAIL PROTECTED] > > > > http://docs.yahoo.com/info/terms/ > Please note that this group is for discussion between users only. To get support from AmiBroker please send an e-mail directly to SUPPORT {at} amibroker.com For other support material please check also: http://www.amibroker.com/support.html Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/amibroker/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/amibroker/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
