PureBytes Links
Trading Reference Links
|
hi rob.
The prev line in the code looks like an EMA.
an example of prev is.
((h+l+c)/3)+ prev
this divides the h,l,and c by 3 and then adds this to yesterdays
value of the ((h+l+c)/3).
an %18 ema , about 10 days is created by
(close*0.18)+(prev*0.82)
prev confuses me as i wouldnt mind knowing what it does when applied
to certain true conditions in formulas, the MS manual only shows
simple examples. i dont know if the prev was yesterday or if it was
a value of when the cond was true.
If anyone can explain, please do.
cheers: john.
--- In amibroker@xxxx, Robert Nemeth <rjnemeth@xxxx> wrote:
> I wanted to let you know someone is looking at this
> since I haven't seen any other posts on this topic.
> Below is some code I've been playing with as an
> indicator. Could you tell me what is "PREV" in the MS
> code in your message?
> Tnx
> Bob
> scHilbertQ(C);
> //Plot(inphase,"",2,1); //not used
> //Plot(quadrature,"",3,1); //not used
> inr=IIf(inphase>Ref(inphase,-1),1,0);
> qr=IIf(quadrature>Ref(quadrature,-1),1,0);
> inpr=IIf(inr*qr>0,1,0);
> inpf=IIf(inr+qr<1,-1,0);
> ipres=inpr+inpf;
> iqne=qr*inr<1 AND qr+inr==1;
> opres=iqne*(IIf(inr,1,-1));
> Plot(ipres,"",2,1);
> //Plot(opres,"",3,1); //only one plot at a time
> --- nenapacwanfr <nenapacwanfr@xxxx> wrote:
> > Hello,
> >
> > I have had an idea with a detrender, so I have
> > written the Hilbert
> > quadrature and hilbert inphase as plugins they are
> > available in the
> > files /plugin/indicator dll
> > if you have interest,
> > you can plot them with
> > scHilbertQ(C);
> > Plot(inphase,"",2,1);
> > Plot(quadrature,"",3,1);
> >
> > the code in Ms was
> > /*
> > value1:=C - Ref(C,-6);
> > value2:= Ref(value1,-3);
> > value3:=0.75*(value1-Ref(value1,-6)) +
> > 0.25*(Ref(value1,-2)-Ref
> > (value1,-4));
> >
> > inphase:= (0.2 * value2) + (0.8* PREV);
> > {Ema 9 jours}
> > quad:= (0.2 * value3) + ( 0.8 * PREV);
> > {Ema 9 jours}
> > inphase
> > */
> >
> > stephane
> >
> >
> > ------------------------ Yahoo! Groups Sponsor
> >
> >
> >
> > Your use of Yahoo! Groups is subject to
> > http://docs.yahoo.com/info/terms/
> >
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
|