PureBytes Links
Trading Reference Links
|
Steve
By the way, the first line of my code has an
error.
Should be :
aa = C - Ref(C,-4); /* Instead of :aa = C - Ref(C,4); */
Bernard
Bernard Bourée<A
href="">bbouree@xxxx
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
Steve Wiser
To: <A title=amibroker@xxxxxxxxxx
href="">amibroker@xxxxxxxxxxxxxxx
Sent: Sunday, June 10, 2001 5:30 PM
Subject: Re: [amibroker] MS PREV
Bernard I am not sure, lets wait till Tomasz gets back
to us on this. Byt the resulting code still provides some interesting
information.SteveAt 05:05 PM 6/10/01 +0200, you wrote:
<FONT face=arial
size=2>Steve I must admit
that I am not sure that I have fully understand the difference between the
MS PREV function and the Ref(xx, -1).In
your translation of my code you have replaced PREV by Ref()
function.Are you sure that is correct
? Bernard Bourée<A
href="">bbouree@xxxx
----- Original Message -----
From: Steve Wiser
To: <A
href="">amibroker@xxxxxxxxxxxxxxx
Sent: Sunday, June 10, 2001 12:59 PM
Subject: Re: [amibroker] MS PREV
Bernard:
Will this work for you. Remember as you cut and paste, put this
into notepad first to get the line breaks right. Then cut and paste that
into Amibroker. This appears to indicate when a change in price
direction may be eminent.
Steve
aa = C - Ref(C,4);
bb = Sum(Abs( C - ref(C,-1) ) ,4
);
/*Sum(Abs(ROC(C,1,$)),4);*/
cc = (Abs((AA)/BB));
dd = ((2/3)-(2/31))+(2/31);
ee = ( CC*DD)^2 ;
ff = (C-Ref(C,-1));
/*{Sig:= If( Cum(1) = 5, Ref(C,-1)+EE*FF, PREV
+ EE * (C - PREV));}*/
var1 = ee*ff+ Ref(C,-1);
var2 = Ref(var1,-1)+EE*(C - Ref(var1,-1) );
var3 = IIf( Cum(1) == 5 , var1, var2);
Graph1 = var3;
At 08:44 AM 6/10/01 +0200, you wrote:
Hi Tomasz and Steve,
Thank you for your reply.
Here is my formula:
aa= C - Ref(C,4);
bb=Sum(Abs(Roc(C,1,$)),4)
cc=(Abs((AA)/BB))
dd=((2/3)-(2/31))+(2/31)
ee=(CC*DD)^2
ff=(C-Ref(C,-1))
Sig:=If(Cum(1)=5, Ref(C,-1)+EE*FF, PREV + EE * (C - PREV))
Regards
Bernard Bourée
Your
use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
|