PureBytes Links
Trading Reference Links
|
Criteria = ....
Bars = BarsSince(Criteria==true);
Buy = Cross(ADX(14),15) AND Bars < n;
Note: True may need to be replaced by the number 1. I don't remember the
exact format
----- Original Message -----
From: "darrinm81" <fmarx@xxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Tuesday, August 03, 2004 11:40 PM
Subject: [amibroker] If something happened in the last 10 days and then....
> Being new to Amibroker and programming, I have been working on some
> scans.
>
> Can someone help me put the below into Amibroker code:
>
> If a MA crossover has occured in the last n periods,
> Then buy when the ADX crosses 15.
>
> -------
>
> Criteria = Cross( MA(Close,13), MA(Close,21) );
> Buy = Cross(ADX(14),15);
>
> // If 'Criteria' met, then buy when ADX crosses 15....
>
> Filter = Buy;
>
> AddColumn( Close, "Close", 1.4 );
>
> --------
>
> Thanks
>
>
>
>
>
>
> 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
>
>
>
>
>
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/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/
|