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

Re: Ehlers.dll



PureBytes Links

Trading Reference Links

in fact I have also a bug , stefan ( not me )who have written the 
plugin had given me the source code, I have changed the period 
inside the code and now it seems to work

try it and download the modified dll in third party
price = (H + L) / 2;

x=int(sbDC(price)/2);
Buy=Cross(Close,MA(Close,x));
Sell=Cross(MA(Close,x),Close);


Plot(x,"",1,1);

stephane

Ps : stefan are you OK??

> Maybe that was a bad example, it seems to work with MA's it 
doesn't 
> work if I use with RSI or StochK etc....
> 
> wdbaker8
> 
> --- In amibroker@xxxx, "wdbaker8" <wdbaker8@xxxx> wrote:
> > Hi,
> > In using Ehlers.dll, I would like to use 
> > half of the dominant cycle or a derivative thereof
> > for the period to be used in MA etc...
> > Example:
> > 
> > 
> > price = (H + L) / 2;
> > 
> > x=int(sbDC(price)/2);
> > buy=cross(close,ma(close,x));
> > sell=cross(ma(close,x),close);
> > 
> > The problem is I keep getting errors when I try
> > to do this. I have tried it numerous ways and 
> > for some reason it is not reading the sbDC(price) as
> > a number or something. If I replace x=int(sbDC(price)/2;
> > with x=14 then it works fine so I know that I can use a
> > variable to represent the periods, it just doesn't like
> > to use the sbDC(price). Looking for any ideas
> > 
> > Thanks
> > wdbaker8