PureBytes Links
Trading Reference Links
|
concerning the ehlers dll, I think now it accepts
x=int(sbDC(Mp()));
Graph1=x;
concerning the problem with Rsi, Ema, the reason is that these
indicators does not accept variable period
only hhv,llv, ref,ma takes variable period
> Stephane,
> Thanks for trying to help, it works for MA but if I try to use it
for
> any other period it fails.
> example:
> SetBarsRequired( 1000, 0 );
> price = (H + L) / 2;
> x=int(sbDC(myprice));
>
> Graph1=EMA(Close,x);
>
> Also fails for RSI(), stochk(), etc...
>
> Thanks for looking into this
> wdbaker
>
> --- In amibroker@xxxx, "Stephane Carrasset" <nenapacwanfr@xxxx>
wrote:
> > 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
|