[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [amibroker] help!!!!!



PureBytes Links

Trading Reference Links










Jayson:     Hip. Hip.

 

I have always thought you were too
restrained and polite in your responses to these kinds of posts.  Glad to
hear you say what I knew was bubbling just below the surface.  Well said.

 

For any newbies reading this who think
this is a heatless, uncaring group, let me say it is not.  But help will
come when you help yourself first.

 

Ken

 

And SIGN the darn messages with a name

 

 

 

 

-----Original Message-----
From: Jayson
[mailto:jcasavant@xxxxxxxxxxx] 
Sent: Thursday,
 November 13, 2003<span
> <font
 size=2 face=Tahoma>5:13 PM<font
size=2 face=Tahoma>
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] help!!!!!

 



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".





 





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). 





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....





 





Regards, 





Jayson 



<span
>-----Original Message-----
From: dingo [mailto:dingo@xxxxxxxxxxxx]
Sent: Thursday, November 13, 2003
4:37 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] help!!!!!



Jayson?? Is that you,  duude? 
You feelin' alright?  8-)





 





d





<span
>-----Original Message-----
From: Jayson
[mailto:jcasavant@xxxxxxxxxxx] 
Sent: Thursday, November 13, 2003
4:10 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] help!!!!!



Try harder.....This still looks like MS
code. 





 





Regards, 





Jayson 



<span
>-----Original Message-----
From: alex huynh
[mailto:ahuynh7@xxxxxxxxx]
Sent: Thursday, November 13, 2003
3:58 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] help!!!!!



I tried AFL and I got stuck





 





input AB:





 





//Divergence Formulas
EKA=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 divergence
I1=Zig(CCI(14),3,%)>Ref(Zig(CCI(14),3,%),-1) AND
Ref(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:







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 



<span
>-----Original Message-----
From: ahuynh7
[mailto:ahuynh7@xxxxxxxxx]
Sent: Thursday, November 13, 2003
2:51 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] help!!!!!

I have two formulas from Metastocks need to convert into AFL. The <font
size=2 face="Courier New">
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 Formulas
EKA:=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 divergence
I1:=Zig(CCI(14),3,%)>Ref(Zig(CCI(14),3,%),-1)
AND
Ref(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 filter
pds:=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.5




Send BUG
REPORTS to bugs@xxxxxxxxxxxxx<span
>
Send 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 Yahoo!
Terms of Service. 


Send BUG
REPORTS to bugs@xxxxxxxxxxxxx<span
>
Send 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 Yahoo!
Terms of Service. 



<font size=3
face="Times New Roman">





Do you Yahoo!?
Protect your identity with
Yahoo! Mail AddressGuard 

Send
BUG REPORTS to bugs@xxxxxxxxxxxxx<font size=2
face="Courier New">
Send 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 Yahoo!
Terms of Service. 


Send BUG
REPORTS to bugs@xxxxxxxxxxxxx<span
>
Send 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 Yahoo!
Terms of Service. 





Send
BUG REPORTS to bugs@xxxxxxxxxxxxx<font size=2
face="Courier New">
Send 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 Yahoo!
Terms of Service. 




<font size=2
face="Courier New">Send BUG REPORTS to
bugs@xxxxxxxxxxxxx<span
>
Send 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 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.