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

Re: [amibroker] MS PREV



PureBytes Links

Trading Reference Links

Bernard:

One more tweak to add the Price to the indicator. You can see when the 
spike occurs it is just a day before many large trend changes, but alas not 
all so this fails the perfect indicator test. LOL

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;
Graph0 = C;
Graph0Style = 64;