[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: 3 or more consecutive High



PureBytes Links

Trading Reference Links


> correct it should have been ==3 as there were only 3 bars 
considered,
> but the result would have been the same.
> 
> You can use (I do)
> Cond = sum(H>ref(H,-1), 5) >=3;

Graham
1. with this script if I have 5 bar with 3 (or more) NO consecutive 
High it return true and it isn't correct for me.

2. with SUM function I'm limited to the fixed number (5 in this 
scenario) In fact if I have 7 consecutive Hight it doesn't work 
because he count the fixed period (5).

I hope my explanation is good because my english is poor.

---
Giuseppe 





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Has someone you know been affected by illness or disease?
Network for Good is THE place to support health awareness efforts!
http://us.click.yahoo.com/Rcy2bD/UOnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/