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

Re: [amibroker] Re: countback line



PureBytes Links

Trading Reference Links


Ken,
 
as I wrote in my first message, I don't have 
forgotten what Tomasz said about PREV and AMA. They are not identical. AMA is an 
adaptive moving average, PREV works with other functions allowing themto 
refer to themselves.
About AMA, in fact its internal logicmakes 
inessential any function like PREV, but remains an adaptive moving average, 
that's all. Metastock's CBL don't uses any average, it only refers to hard 
values, and PREV have to do the same.
 
Best regards,
 
Franco
<BLOCKQUOTE 
>
----- Original Message ----- 
<DIV 
>From: 
Ken Close 
To: <A title=amibroker@xxxxxxxxxx 
href="">amibroker@xxxxxxxxxxxxxxx 
Sent: Saturday, September 28, 20026:58 
PM
Subject: RE: [amibroker] Re: countback 
line

<SPAN 
class=480055716-28092002>Franco:
<SPAN 
class=480055716-28092002> 
Tomasz will 
jump in here sometime and say that the AMA or ___? other function in Amibroker 
does exactly what PREV does in MS and does it faster. I do not use it andso 
do not have it committed to memory.  You could search in the amibroker 
yahoo group for PREV or AMA or wait and perhaps Tomasz or someone else will 
post a past message on this topic.
<SPAN 
class=480055716-28092002> 
<SPAN 
class=480055716-28092002>Ken
<FONT face=Tahoma 
size=2>-----Original Message-----From: Franco Fornari 
[mailto:ffpsi@xxxx]Sent: Saturday, September 28, 2002 12:09 
PMTo: amibroker@xxxxxxxxxxxxxxxSubject: Re: [amibroker] 
Re: countback line
Hello,
 
yes, I know there isn't in AFL a function 
equivalent to PREV. I tried to use a VB Script, but I'm not able enough. 
Do you know if there is, somewhere on the WEB, the original Guppy's 
formula?
 
Best regards,
 
Franco 
<BLOCKQUOTE 
>
----- Original Message ----- 
<DIV 
>From: 
<A title=nenapacwanfr@xxxx 
href="">Stephane Carrasset 
To: <A title=amibroker@xxxxxxxxxxxx 
href="">amibroker@xxxxxxxxxxxxxxx
Sent: Saturday, September 28, 2002 4:51 
PM
Subject: [amibroker] Re: countback 
line
hello,there is not prev function in 
Amibrokerprev is a recursive function, BUT you can defind it  
with a scripting languagemy choise was since one year was C++but 
there is jscript and vbscriptabout the cbl, I think the ms version 
is not matching the guppy principles but only an adaptation .this is 
not the best trailing stop...steph> > thanks for your 
reply. Maybe you are referring to the dll shared by Stephan. I knowit, 
but its logic seems rather different and I'd like to match it against 
Metastock's CBL.> > Thanks again and best regards> 
> Franco>   ----- Original Message ----- 
>   From: grant >   To: amibroker@xxxxx 
>   Sent: Saturday, September 28, 2002 4:14 
PM>   Subject: Re: [amibroker] countback line> 
> >   Franco, 
>       CBL has been converted 
somewhere here before but I can't find it at the moment, 
>   maybe if you check AB website formular page. I have a 
feeling it was also in one >   of Steven's DLL's. Sorry 
I'm not much help to you but at least you know it's here 
>   somewhere, I'll keep looking. 
>                       
Grant >   Franco Fornari wrote: > 
>     Hello Tomasz and All, sorry if I propose 
the same question again, but I'd need to know if it's possible to 
convert from Metastock language to AFL any formula containing PREV 
function. Tomasz showed many times, in past, how work AMA and AMA2 but, 
if I'm not wrong, this case seems different, because in "Countback line" 
Metastock formula, PREV doesn't refer to any averages but to hard 
values. Is it possible to translate the following formula to AFL? 
LowDays := Input("Enter # days to cover last LOW for CBL calc'n:", 
3, 55, 13); >     If(LOW > LLV(LOW, 
LowDays), {then ...} PREV, {previous CBLlo, else...} If(Ref(H,-2) > 
Ref(H,-1) AND Ref(H,-2) > H AND Ref(H,-1) > H, {then ...} 
Ref(H,-2), {2nd day back high,else...} If((Ref(H,-3)> Ref(H,-2) AND 
Ref(H,-3) > Ref(H,-1) AND Ref(H,-3) > H) AND (Ref(H,-2)> HOR 
Ref(H,-1) > H), {then ... } Ref(H,-3), {3rd day back high,else...} 
If((Ref(H,-4)> Ref(H,-3) AND Ref(H,-4) > Ref(H,-2) AND Ref(H,-4) 
> Ref(H,-1) AND Ref(H,-4) > H) AND (Ref(H,-3)> H OR Ref(H,-2) 
> H OR Ref(H,-1) > H), {then... } Ref(H,-4), {4th day back 
high,else...} If((Ref(H,-5)> Ref(H,-4) AND Ref(H,-5) > Ref(H,-3) 
AND Ref(H,-5) > Ref(H,-2) AND Ref(H,-5) > Ref(H,-1) AND Ref(H,-5) 
> H) AND (Ref(H,-4)> H OR Ref(H,-3) > H OR Ref(H,-2) > H OR 
Ref(H,-1) > H), {then ...} Ref(H,-5), {5th day back high,else...} 
PREV ))))) Any suggestion will be wellcome. Best regards, 
Franco   > > > 
>     Post AmiQuote-related messages ONLY to: 
amiquote@xxxx >     (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.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. 
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. 
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.