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

Re: [amibroker] Question: No highs for 20 day period before today



PureBytes Links

Trading Reference Links

maybe something like this

HC = C > Ref ( HHV ( C, 20 ), -1 ); // could also be written C == HHV ( C, 21 )
PHC = ref(sum(HC,20),-1)==0; // needs the ref-1 to exclude current bar

On 6/19/05, Quad Rate Serial Abby <quad_pumped_abby@xxxxxxxxx> wrote:
> Hi,
> 
> I'm having a brain cramp on this.  I have code to find a close that is
> the highest in 20 days, ala:
> 
> C > Ref ( HHV ( C, 20 ), -1 )
> 
> How do I now set a condition that the 20 days prior to today did not
> have any close that resulted in the condition above over that period?
> I thought this was trivial, but I guess not for me. Any help would be
> appreciated.  Thanks,
> 
> Bret
> 
> 
> 
> 
> 
> 
> 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
> 
> 
> 
> 
> 
> 
> 


-- 
Cheers
Graham
http://e-wire.net.au/~eb_kavan/


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/