PureBytes Links
Trading Reference Links
|
<FONT
size=2>Henry,
I just reread your request and
realised that I gave you a formula for greater than 20 instead of less than
20.
The '5' represents the number
of bars (or x in your request). So just add this formula to your
conditions.
<FONT
size=2><FONT
color=#000000>Cond = BarsSince( ADX(
14 ) >=
20 ) >= 5<FONT
color=#008000 size=1>;
Regards,<FONT
size=2>William<FONT
face=Tahoma>-----Original Message-----From: Henry Chau
[mailto:henry_chau@xxxxxxxxxxxxxxx]Sent: August 31, 2003 7:47
AMTo: amibroker@xxxxxxxxxxxxxxxSubject: Re: [amibroker]
Help with formula
Hi guys,
For the following buy search what code do i need to
add if I want the ADX(14) to be less than 20 for the last x days ?
Cond1=PDI<FONT color=#000000
size=1>(14<FONT color=#000000
size=1>)>MDI<FONT color=#000000
size=1>(14<FONT color=#000000
size=1>);
Cond2=Cross<FONT color=#000000
size=1>(ADX<FONT color=#000000
size=1>(14<FONT color=#000000
size=1>),MDI<FONT color=#000000
size=1>(14<FONT color=#000000
size=1>));
Cond3=Cond1 AND Cond2;
Filter=cond3;
AddColumn(cond3,<FONT color=#ff00ff
size=1>"My Test");
Buy=Cond3;
Cheers
HenrySend BUG
REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to
suggest@xxxxxxxxxxxxx-----------------------------------------Post
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
Send
BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to
suggest@xxxxxxxxxxxxx-----------------------------------------Post
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
Yahoo! Groups Sponsor
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
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 the Yahoo! Terms of Service.
|