Beautiful. Thank you.



________________________________
From: Anthony Faragasso <[email protected]>
To: [email protected]
Sent: Tuesday, June 30, 2009 10:40:02 PM
Subject: Re: [amibroker] looking for more efficient code





sum(h > ref(h,-1),5) ==5;
 
----- Original Message ----- 
>From: James 
>To: amibro...@yahoogrou ps.com 
>Sent: Tuesday, June 30, 2009 11:32 PM
>Subject: [amibroker] looking for more efficient code
>
>
>Is the a more efficient way to say something like the following:
> 
>Ref (H,-1) > Ref(H,-2) AND Ref (H,-2) > Ref (H,-3) AND Ref (H,-3) > Ref(H,-4) 
>AND Ref (H,-4) > Ref (H,-5) etc.
> 
>What I am looking for is someway to say a condition (in this case H > previous 
>H) is "repeated" x bars backward, so that x can be a parameter without having 
>to type the whole thing out. I know there is an eloquent solution, but I am 
>drawing a blank.
> 
>Thanks for your help,
>James
>



      

Reply via email to