PureBytes Links
Trading Reference Links
|
sorry I thought that was what lookback was for, just change this line
AvgPercChange = MA(PercChange,20);
where have you referenced Lookback?
On Thu, 3 Mar 2005 17:21:25 -0800 (PST), alex huynh <ahuynh7@xxxxxxxxx> wrote:
> Graham,
>
> It is not it. Thanks for your effort. When you change the LookBack or
> periods the indicator does move.
>
>
> Graham <kavemanperth@xxxxxxxxx> wrote:
> I am no expert on EL, but here is logic attempt to translate
>
>
> LookBack = 20;
> PercChange = (Close - ref(Close,-1))/ref(Close,-1);
> AvgPercChange = MA(PercChange,Lookback);
> NewLevel = Close * (1 + AvgPercChange);
> Plot(NewLevel,"",colorred,styleline);
>
>
>
>
> On Thu, 03 Mar 2005 23:38:46 -0000, ahuynh7 <ahuynh7@xxxxxxxxx> wrote:
> >
> >
> > Help!
> >
> > EasyLanguage
> >
> > Inputs:
> > LookBack(20);
> > Variable:
> > PercChange(0),
> > NewLevel(0),
> > AvgPercChange(0);
> >
> > PercChange = (Close - Close[1])/Close[1];
> > AvgPercChange = Average(PercChange,20);
> > NewLevel = Close * (1 + AvgPercChange);
> > Plot1[1](NewLevel,"");
> >
> > AB
> > /*Inputs:
> > LookBack(20);
> > Variable:
> > PercChange(0),
> > NewLevel(0),
> > AvgPercChange(0);*/
> >
> > PercChange = (Close - Close[1])/Close[1];
> > AvgPercChange = Avg(PercChange,20);
> > NewLevel = Close * (1 + AvgPercChange);
> > Plot(NewLevel,"NewLevel",colorRed,1);
> >
> >
> > Check AmiBroker web page at:
> > http://www.amibroker.com/
> >
> > Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
>
>
> --
> Cheers
> Graham
> http://e-wire.net.au/~eb_kavan/
>
>
> Check AmiBroker web page at:
> http://www.amibroker.com/
>
> Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
>
>
>
>
> ________________________________
> Celebrate Yahoo!'s 10th Birthday!
> Yahoo! Netrospective: 100 Moments of the Web
>
> Check AmiBroker web page at:
> http://www.amibroker.com/
>
> Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
>
>
> Yahoo! Groups Sponsor
> ADVERTISEMENT
>
> ________________________________
> Yahoo! Groups Links
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/amibroker/
>
> To unsubscribe from this group, send an email to:
> amibroker-unsubscribe@xxxxxxxxxxxxxxx
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>
>
--
Cheers
Graham
http://e-wire.net.au/~eb_kavan/
------------------------ Yahoo! Groups Sponsor --------------------~-->
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|