PureBytes Links
Trading Reference Links
|
<FONT face=Arial color=#0000ff
size=2>Dale,
It
just frustrates me when people will not even try to help themselves. This
person (who did not even bother to sign his name) posts MS code and asks for a
translation. Then when challenged to attempt the conversion him/her self simply
reposts the original MS code and says "I tried AFL and I got
stuck".
<FONT face=Arial color=#0000ff
size=2>
Tomasz
has integrated tool tip hints for syntax on all AFL functions. The getting
started tutorial in the help files is a great way to learn the basics and
many, many people here donate their time and expertise helping others get up to
speed. The code posted was a fairly straight forward translation that with
a bit of effort any Newbie could have sorted out. It was simply easier to ask
for someone else to do it. This forum is ( I hope) designed for users to help
other users to better use this valuable tool. Members generously share concepts,
indicators and insight. As such it is perhaps the most useful forum I have ever
belonged to (and I have belonged to many).
<SPAN
class=445274021-13112003>Simply making the translation does not help anyone to
learn how to do it themselves and simply invites similar posts. When I see a
post that says "I am trying to do this but am stuck here" I am all over trying
to help. I am in good company and if we can not solve the problem as a group
Tomasz will often step in with a solution. When I see a post that
says "Please do this so I don't have to" It rubs me the
wrong way..... Perhaps I should go crack a cold
one....
<SPAN
class=445274021-13112003>
Regards,
Jayson
<FONT face=Tahoma
size=2>-----Original Message-----From: dingo
[mailto:dingo@xxxxxxxxxxxx]Sent: Thursday, November 13, 2003 4:37
PMTo: amibroker@xxxxxxxxxxxxxxxSubject: RE: [amibroker]
help!!!!!
<FONT face=Arial color=#0000ff
size=2>Jayson?? Is that you, duude? You feelin' alright?
8-)
<FONT face=Arial color=#0000ff
size=2>
<FONT face=Arial color=#0000ff
size=2>d
<FONT
face=Tahoma size=2>-----Original Message-----From: Jayson
[mailto:jcasavant@xxxxxxxxxxx] Sent: Thursday, November 13, 2003
4:10 PMTo: amibroker@xxxxxxxxxxxxxxxSubject: RE:
[amibroker] help!!!!!
Try
harder.....This still looks like MS code.
Regards,
Jayson
<FONT face=Tahoma
size=2>-----Original Message-----From: alex huynh
[mailto:ahuynh7@xxxxxxxxx]Sent: Thursday, November 13, 2003 3:58
PMTo: amibroker@xxxxxxxxxxxxxxxSubject: RE: [amibroker]
help!!!!!
I tried AFL and I got stuck
input AB:
//Divergence
FormulasEKA=3;I1=Zig(CCI(14),EKA,%)>Ref(Zig(CCI),EKA,%),-1) AND
Ref(Zig(CCI(14),EKA,%),-1)<Ref(Zig(CCI(14),EKA,%),-2);V1=ValueWhen(1,I1,Ref(Zig(CCI(14),EKA,%),-1));V2=ValueWhen(1,I1,Ref(C,-1));V3=ValueWhen(2,I1,Ref(Zig(CCI(14),EKA,%),-1));V4=ValueWhen(2,I1,Ref(C,-1));C1=V1>V3
AND V2<V4;C1 AND Ref(C1,-1)=0 AND
CCI(14)>Ref(CCI(14),-1);//Double successive
divergenceI1=Zig(CCI(14),3,%)>Ref(Zig(CCI(14),3,%),-1)
ANDRef(Zig(CCI(14),3,%),-1)<Ref(Zig(CCI(14),3,%),-2);V1=ValueWhen(1,I1,Ref(Zig(CCI(14),3,%),-1));V2=ValueWhen(1,I1,Ref(C,-1));V3=ValueWhen(2,I1,Ref(Zig(CCI(14),3,%),-1));V4=ValueWhen(2,I1,Ref(C,-1));V5=ValueWhen(3,I1,Ref(Zig(CCI(14),3,%),-1));V6=ValueWhen(3,I1,Ref(C,-1));C1=V1<V3
AND V2>V4 AND V3<V5 AND V4>V6;C1 AND Ref(C1,-1)=0 AND
CCI(14)>Ref(CCI(14),-1);
Jayson <jcasavant@xxxxxxxxxxx> wrote:
<BLOCKQUOTE class=replbq
>
<FONT face=Arial color=#0000ff
size=2>Perhaps you could try converting them your self then post here if you
get stuck. You will find that AFL is not that different from the MS formula
language you are used to.
Regards,
Jayson
<FONT face=Tahoma
size=2>-----Original Message-----From: ahuynh7
[mailto:ahuynh7@xxxxxxxxx]Sent: Thursday, November 13, 2003 2:51
PMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker]
help!!!!!I have two formulas from Metastocks need
to convert into AFL. The first one is Divergence and second is zero lag
filter. Any other CCI or TRIX formula is welcome. Thanks you in advanced
for your help!First://Divergence
FormulasEKA:=3;I1:=Zig(CCI(14),EKA,%)>Ref(Zig(CCI),EKA,%),-1) AND
Ref(Zig(CCI(14),EKA,%),-1)<Ref(Zig(CCI(14),EKA,%),-2);V1:=ValueWhen(1,I1,Ref(Zig(CCI(14),EKA,%),-1));V2:=ValueWhen(1,I1,Ref(C,-1));V3:=ValueWhen(2,I1,Ref(Zig(CCI(14),EKA,%),-1));V4:=ValueWhen(2,I1,Ref(C,-1));C1:=V1>V3
AND V2<V4;C1 AND Ref(C1,-1)=0 AND
CCI(14)>Ref(CCI(14),-1)//Double successive
divergenceI1:=Zig(CCI(14),3,%)>Ref(Zig(CCI(14),3,%),-1)
ANDRef(Zig(CCI(14),3,%),-1)<Ref(Zig(CCI(14),3,%),-2);V1:=ValueWhen(1,I1,Ref(Zig(CCI(14),3,%),-1));V2:=ValueWhen(1,I1,Ref(C,-1));V3:=ValueWhen(2,I1,Ref(Zig(CCI(14),3,%),-1));V4:=ValueWhen(2,I1,Ref(C,-1));V5:=ValueWhen(3,I1,Ref(Zig(CCI(14),3,%),-1));V6:=ValueWhen(3,I1,Ref(C,-1));C1:=V1<V3
AND V2>V4 AND V3<V5 AND V4>V6;C1 AND Ref(C1,-1)=0 AND
CCI(14)>Ref(CCI(14),-1)Second:// zero lag IIR
filterpds:=Input("number of
periods",1,20,5);x:=2/(pds+1);xI:=LastValue((1/x)-1);(x*((2*C)-Ref(C,-xI)))+((1-x)*PREV)//
zero lag FIR
filter(C+(3.5*Ref(C,-1))+(4.5*Ref(C,-2))+(3*Ref(C,-3))+(.5*Ref(C,-4))-(.5*Ref(C,-5))-(1.5*Ref(C,-6)))/10.5Send
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.
Do you Yahoo!?Protect
your identity with Yahoo! Mail AddressGuard 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.
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.
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
ADVERTISEMENT
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.
|