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: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of voyager_3k
Sent: Thursday, August 17, 2006 19:54
To: amibroker@yahoogroups.com
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

 

<*> To visit your group on the web, go to:

    http://groups.yahoo.com/group/amibroker/

 

<*> 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/

 

 

 

__._,_.___

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






SPONSORED LINKS
Software support Small business finance Business finance online
Business finance training Business finance course


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to