| 
 PureBytes Links 
Trading Reference Links 
 | 
try this
Buy = Cross( C, ref( HHV(H,10), -1 ) );
-- 
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://www.aflwriting.com
On 05/04/07, Prashanth <prash454.ta@xxxxxxxxx> wrote:
>
>
> Hello,
>
>
>
> Buy = Cross(C,HHV(H,Ref(H,10)));
>
> Sell = Cross(C,LLV(L,Ref(L,10)));
> I am using Low for Sell instead of  High as requested by you.
>
> Cheers
>
> Prashanth
>
>
> ----- Original Message -----
> From:    infynhome
> To: amibroker@xxxxxxxxxxxxxxx
> Sent: Thursday, April 05, 2007 8:27    PM
> Subject: [amibroker] HHV and LLV of 10,20    and 30 days - Breakout AFL help
>
>
>
>
> Hello,
>
> I need to backtest the following system:
>
> Buy when    price moves above HHV of the last 10 trading sessions.
> Sell when price move    below the HHV of the last 10 trading sessions.
>
> Regards
> Mithil    Pradhan
>
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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
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:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> 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/
 
 |