PureBytes Links
Trading Reference Links
|
Firstly there are occasions that monday is not the first day of the
week due to public holidays. So set this as first day of week then
check the open to previous bar which also may not always be a friday
run this in daily mode in your AA settings
timeframeset(inweekly);
Filter =Cross(Close, Ref( HHV( High, 3 ), -1 ))
AND Close >= 1
AND Close < 10
AND Close > MA(Close,34)
AND MA(Close,34) > Ref(MA(Close,34),-5)
AND MACD(12,26)>0
AND OBV() > MA(OBV(),21)
AND ATRperc >= 1
AND ATRperc <=10;
timeframerestore();
buy = timeframeexpand(filter,inweekly) and
dayofweek()<ref(dayofweek(),-1) and O>ref(c,-1);
On Wed, 24 Nov 2004 00:37:05 -0000, pennellp2000
<pennellp2000@xxxxxxxxxxxx> wrote:
>
>
> I am testing the following. It is a weekly system. How do I say "buy
> when Mondays open is greater than Fridays (ie the weekly) close".
> The last line below checks Fridays open against the previous Fridays
> close which is not what I want. Thanks in advance Phill
>
> Filter =Cross(Close, Ref( HHV( High, 3 ), -1 ))
> AND Close >= 1
> AND Close < 10
> AND Close > MA(Close,34)
> AND MA(Close,34) > Ref(MA(Close,34),-5)
> AND MACD(12,26)>0
> AND OBV() > MA(OBV(),21)
> AND ATRperc >= 1
> AND ATRperc <=10;
>
> Buy = Filter
> And open > ref(close,-1) ;
>
>
> Check AmiBroker web page at:
> http://www.amibroker.com/
>
> Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> Yahoo! Groups Links
>
>
>
>
>
--
Cheers
Graham
http://e-wire.net.au/~eb_kavan/
------------------------ Yahoo! Groups Sponsor --------------------~-->
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.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/
|