PureBytes Links
Trading Reference Links
|
Bernard
I am not sure, lets wait till Tomasz gets back to us on this. Byt
the resulting code still provides some interesting information.
Steve
At 05:05 PM 6/10/01 +0200, you wrote:
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
bbouree@xxxx
----- Original Message -----
From: Steve Wiser
To:
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
|