PureBytes Links
Trading Reference Links
|
Right said, Fred! :-))
Thanks
Markus
----- Original Message -----
From: <fctonetti@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Friday, February 21, 2003 5:41 PM
Subject: [amibroker] Re: Writing a "trading system"
Because HHV(High,25) includes todays high and thus High can not be
greater then it.
Try
Buy=High>HHV(Ref(High,-1),25);
Sell=Low<LLV(Ref(Low,-1),10);
Short=Low<LLV(Ref(Low,-1),25);
Cover=High>HHV(Ref(High,-1),10);
--- In amibroker@xxxxxxxxxxxxxxx, "IVA GmbH" <funnybiz@xxxx> wrote:
> Hello,
>
> I´m trying to write a simple trading system to get my feet wet with
AB´s backtest ability.
>
> I want to buy when the high is higher than the highest high of the
last 25 days and sell and the low is lower then the last 10 days.
>
> On the short side, I want to short when the low is lower than the
lowest low ofthe preceeding 25 days and cover the position when the
high is higher than the highest high ofthe last 10 days.
>
> Why does this NOT work:
>
> Buy=High>HHV(High,25);
>
> Sell=Low<LLV(Low,10);
>
> Short=Low<LLV(Low,25);
>
> Cover=High>HHV(High,10);
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|